void SUB_SORT(ptrszint*_SUB_SORT_ARRAY_STRING998_ARR){
qbs *tqbs;
ptrszint tmp_long;
int32 tmp_fileno;
uint32 qbs_tmp_base=qbs_tmp_list_nexti;
uint8 *tmp_mem_static_pointer=mem_static_pointer;
uint32 tmp_cmem_sp=cmem_sp;
#include "data361.txt"
mem_lock *sf_mem_lock;
new_mem_lock();
sf_mem_lock=mem_lock_tmp;
sf_mem_lock->type=3;
if (is_error_pending()) goto exit_subfunc;
S_62106:;
fornext_value7005=func_lbound(_SUB_SORT_ARRAY_STRING998_ARR,1,1)+ 1 ;
fornext_finalvalue7005=func_ubound(_SUB_SORT_ARRAY_STRING998_ARR,1,1);
fornext_step7005= 1 ;
if (fornext_step7005<0) fornext_step_negative7005=1; else fornext_step_negative7005=0;
if (is_error_pending()) goto fornext_error7005;
goto fornext_entrylabel7005;
while(1){
fornext_value7005=fornext_step7005+(*_SUB_SORT_LONG_I);
fornext_entrylabel7005:
*_SUB_SORT_LONG_I=fornext_value7005;
qbs_cleanup(qbs_tmp_base,0);
if (fornext_step_negative7005){
if (fornext_value7005<fornext_finalvalue7005) break;
}else{
if (fornext_value7005>fornext_finalvalue7005) break;
}
fornext_error7005:;
if(qbevent){evnt(25769,20114,"ide_methods.bas");if(r)goto S_62106;}
do{
qbs_set(_SUB_SORT_STRING_X,qbs_new_fixed(&((uint8*)(_SUB_SORT_ARRAY_STRING998_ARR[0]))[(array_check((*_SUB_SORT_LONG_I)-_SUB_SORT_ARRAY_STRING998_ARR[4],_SUB_SORT_ARRAY_STRING998_ARR[5]))*998],998,1));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25769,20115,"ide_methods.bas");}while(r);
do{
*_SUB_SORT_LONG_J=*_SUB_SORT_LONG_I- 1 ;
if(!qbevent)break;evnt(25769,20116,"ide_methods.bas");}while(r);
S_62109:;
while((qbs_cleanup(qbs_tmp_base,-(*_SUB_SORT_LONG_J>=func_lbound(_SUB_SORT_ARRAY_STRING998_ARR,1,1))))||is_error_pending()){
if(qbevent){evnt(25769,20117,"ide_methods.bas");if(r)goto S_62109;}
S_62110:;
if ((qbs_cleanup(qbs_tmp_base,qbs_lessorequal(qbs_new_fixed(&((uint8*)(_SUB_SORT_ARRAY_STRING998_ARR[0]))[(array_check((*_SUB_SORT_LONG_J)-_SUB_SORT_ARRAY_STRING998_ARR[4],_SUB_SORT_ARRAY_STRING998_ARR[5]))*998],998,1),_SUB_SORT_STRING_X)))||is_error_pending()){
if(qbevent){evnt(25769,20118,"ide_methods.bas");if(r)goto S_62110;}
do{
goto ww_exit_7006;
if(!qbevent)break;evnt(25769,20118,"ide_methods.bas");}while(r);
}
do{
tmp_long=array_check((*_SUB_SORT_LONG_J+ 1 )-_SUB_SORT_ARRAY_STRING998_ARR[4],_SUB_SORT_ARRAY_STRING998_ARR[5]);
if (!is_error_pending()) qbs_set(qbs_new_fixed(&((uint8*)(_SUB_SORT_ARRAY_STRING998_ARR[0]))[tmp_long*998],998,1),qbs_new_fixed(&((uint8*)(_SUB_SORT_ARRAY_STRING998_ARR[0]))[(array_check((*_SUB_SORT_LONG_J)-_SUB_SORT_ARRAY_STRING998_ARR[4],_SUB_SORT_ARRAY_STRING998_ARR[5]))*998],998,1));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25769,20119,"ide_methods.bas");}while(r);
do{
*_SUB_SORT_LONG_J=*_SUB_SORT_LONG_J- 1 ;
if(!qbevent)break;evnt(25769,20120,"ide_methods.bas");}while(r);
ww_continue_7006:;
}
ww_exit_7006:;
do{
tmp_long=array_check((*_SUB_SORT_LONG_J+ 1 )-_SUB_SORT_ARRAY_STRING998_ARR[4],_SUB_SORT_ARRAY_STRING998_ARR[5]);
if (!is_error_pending()) qbs_set(qbs_new_fixed(&((uint8*)(_SUB_SORT_ARRAY_STRING998_ARR[0]))[tmp_long*998],998,1),_SUB_SORT_STRING_X);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25769,20122,"ide_methods.bas");}while(r);
fornext_continue_7004:;
}
fornext_exit_7004:;
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free361.txt"
if ((tmp_mem_static_pointer>=mem_static)&&(tmp_mem_static_pointer<=mem_static_limit)) mem_static_pointer=tmp_mem_static_pointer; else mem_static_pointer=mem_static;
cmem_sp=tmp_cmem_sp;
}
