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 "data44.txt"
mem_lock *sf_mem_lock;
new_mem_lock();
sf_mem_lock=mem_lock_tmp;
sf_mem_lock->type=3;
libqb_check_stack();
if (is_error_pending()) goto exit_subfunc;
S_19559:;
fornext_value2959=*__LONG_FIRSTLINENUMBERLABELVWATCH;
fornext_finalvalue2959=*__LONG_LASTLINENUMBERLABELVWATCH;
fornext_step2959= 1 ;
if (fornext_step2959<0) fornext_step_negative2959=1; else fornext_step_negative2959=0;
if (is_error_pending()) goto fornext_error2959;
goto fornext_entrylabel2959;
while(1){
fornext_value2959=fornext_step2959+(*_SUB_CLOSEMAINVWATCHSECTION_LONG_I);
fornext_entrylabel2959:
*_SUB_CLOSEMAINVWATCHSECTION_LONG_I=fornext_value2959;
if (fornext_step_negative2959){
if (fornext_value2959<fornext_finalvalue2959) break;
}else{
if (fornext_value2959>fornext_finalvalue2959) break;
}
fornext_error2959:;
if(qbevent){evnt(17058);if(r)goto S_19559;}
S_19560:;
if ((qbs_cleanup(qbs_tmp_base,-(qbs_asc(__STRING_VWATCHUSEDLABELS,*_SUB_CLOSEMAINVWATCHSECTION_LONG_I)== 1 )))||is_error_pending()){
if(qbevent){evnt(17059);if(r)goto S_19560;}
do{
SUB_WRITEBUFLINE(&(pass2960=*__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(17060);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2961=*__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(17061);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2962=*__LONG_VWATCHMAINDISPATCHBUF),qbs_new_txt_len("        break;",14));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(17062);}while(r);
}
fornext_continue_2958:;
}
fornext_exit_2958:;
S_19566:;
fornext_value2964=*__LONG_FIRSTLINENUMBERLABELVWATCH;
fornext_finalvalue2964=*__LONG_LASTLINENUMBERLABELVWATCH;
fornext_step2964= 1 ;
if (fornext_step2964<0) fornext_step_negative2964=1; else fornext_step_negative2964=0;
if (is_error_pending()) goto fornext_error2964;
goto fornext_entrylabel2964;
while(1){
fornext_value2964=fornext_step2964+(*_SUB_CLOSEMAINVWATCHSECTION_LONG_I);
fornext_entrylabel2964:
*_SUB_CLOSEMAINVWATCHSECTION_LONG_I=fornext_value2964;
if (fornext_step_negative2964){
if (fornext_value2964<fornext_finalvalue2964) break;
}else{
if (fornext_value2964>fornext_finalvalue2964) break;
}
fornext_error2964:;
if(qbevent){evnt(17065);if(r)goto S_19566;}
S_19567:;
if ((qbs_cleanup(qbs_tmp_base,-(qbs_asc(__STRING_VWATCHUSEDSKIPLABELS,*_SUB_CLOSEMAINVWATCHSECTION_LONG_I)== 1 )))||is_error_pending()){
if(qbevent){evnt(17066);if(r)goto S_19567;}
do{
SUB_WRITEBUFLINE(&(pass2965=*__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(17067);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2966=*__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(17068);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2967=*__LONG_VWATCHMAINSKIPBUF),qbs_new_txt_len("        break;",14));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(17069);}while(r);
}
fornext_continue_2963:;
}
fornext_exit_2963:;
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free44.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;
}
