void SUB_CLOSEMAINVWATCHSECTION(){
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 "data21.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_17782:;
fornext_value2608=*__LONG_FIRSTLINENUMBERLABELVWATCH;
fornext_finalvalue2608=*__LONG_LASTLINENUMBERLABELVWATCH;
fornext_step2608= 1 ;
if (fornext_step2608<0) fornext_step_negative2608=1; else fornext_step_negative2608=0;
if (is_error_pending()) goto fornext_error2608;
goto fornext_entrylabel2608;
while(1){
fornext_value2608=fornext_step2608+(*_SUB_CLOSEMAINVWATCHSECTION_LONG_I);
fornext_entrylabel2608:
*_SUB_CLOSEMAINVWATCHSECTION_LONG_I=fornext_value2608;
if (fornext_step_negative2608){
if (fornext_value2608<fornext_finalvalue2608) break;
}else{
if (fornext_value2608>fornext_finalvalue2608) break;
}
fornext_error2608:;
if(qbevent){evnt(15331);if(r)goto S_17782;}
S_17783:;
if ((qbs_cleanup(qbs_tmp_base,-(qbs_asc(__STRING_VWATCHUSEDLABELS,*_SUB_CLOSEMAINVWATCHSECTION_LONG_I)== 1 )))||is_error_pending()){
if(qbevent){evnt(15332);if(r)goto S_17783;}
do{
SUB_WRITEBUFLINE(&(pass2609=*__LONG_VWATCHMAINDISPATCHBUF),qbs_add(qbs_add(qbs_new_txt_len("    case ",9),qbs__tostr((int32)(*_SUB_CLOSEMAINVWATCHSECTION_LONG_I),NULL,0)),qbs_new_txt_len(":",1)));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(15333);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2610=*__LONG_VWATCHMAINDISPATCHBUF),qbs_add(qbs_add(qbs_new_txt_len("        goto VWATCH_LABEL_",26),qbs__tostr((int32)(*_SUB_CLOSEMAINVWATCHSECTION_LONG_I),NULL,0)),qbs_new_txt_len(";",1)));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(15334);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2611=*__LONG_VWATCHMAINDISPATCHBUF),qbs_new_txt_len("        break;",14));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(15335);}while(r);
}
fornext_continue_2607:;
}
fornext_exit_2607:;
S_17789:;
fornext_value2613=*__LONG_FIRSTLINENUMBERLABELVWATCH;
fornext_finalvalue2613=*__LONG_LASTLINENUMBERLABELVWATCH;
fornext_step2613= 1 ;
if (fornext_step2613<0) fornext_step_negative2613=1; else fornext_step_negative2613=0;
if (is_error_pending()) goto fornext_error2613;
goto fornext_entrylabel2613;
while(1){
fornext_value2613=fornext_step2613+(*_SUB_CLOSEMAINVWATCHSECTION_LONG_I);
fornext_entrylabel2613:
*_SUB_CLOSEMAINVWATCHSECTION_LONG_I=fornext_value2613;
if (fornext_step_negative2613){
if (fornext_value2613<fornext_finalvalue2613) break;
}else{
if (fornext_value2613>fornext_finalvalue2613) break;
}
fornext_error2613:;
if(qbevent){evnt(15338);if(r)goto S_17789;}
S_17790:;
if ((qbs_cleanup(qbs_tmp_base,-(qbs_asc(__STRING_VWATCHUSEDSKIPLABELS,*_SUB_CLOSEMAINVWATCHSECTION_LONG_I)== 1 )))||is_error_pending()){
if(qbevent){evnt(15339);if(r)goto S_17790;}
do{
SUB_WRITEBUFLINE(&(pass2614=*__LONG_VWATCHMAINSKIPBUF),qbs_add(qbs_add(qbs_new_txt_len("    case -",10),qbs__tostr((int32)(*_SUB_CLOSEMAINVWATCHSECTION_LONG_I),NULL,0)),qbs_new_txt_len(":",1)));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(15340);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2615=*__LONG_VWATCHMAINSKIPBUF),qbs_add(qbs_add(qbs_new_txt_len("        goto VWATCH_SKIPLABEL_",30),qbs__tostr((int32)(*_SUB_CLOSEMAINVWATCHSECTION_LONG_I),NULL,0)),qbs_new_txt_len(";",1)));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(15341);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2616=*__LONG_VWATCHMAINSKIPBUF),qbs_new_txt_len("        break;",14));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(15342);}while(r);
}
fornext_continue_2612:;
}
fornext_exit_2612:;
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free21.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;
}
