void SUB_CLOSEMAIN(){
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 "data45.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_19573:;
if ((-(FUNC_GETRCSTATEVAR((void*)( ((char*)(__UDT_VWATCHON)) + ((0+0)) ))== 1 ))||is_error_pending()){
if(qbevent){evnt(17075);if(r)goto S_19573;}
do{
SUB_VWATCHADDLABEL(&(pass2968= 0 ),&(pass2969= -1 ));
if(!qbevent)break;evnt(17075);}while(r);
}
do{
SUB_XEND();
if(!qbevent)break;evnt(17076);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2970=*__LONG_MAINTXTBUF),qbs_new_txt_len("return;",7));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(17077);}while(r);
S_19578:;
if ((-(FUNC_GETRCSTATEVAR((void*)( ((char*)(__UDT_VWATCHON)) + ((0+0)) ))== 1 ))||is_error_pending()){
if(qbevent){evnt(17078);if(r)goto S_19578;}
do{
SUB_WRITEBUFLINE(&(pass2971=*__LONG_MAINTXTBUF),qbs_new_txt_len("VWATCH_SETNEXTLINE:;",20));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(17079);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2972=*__LONG_MAINTXTBUF),qbs_new_txt_len("switch (*__LONG_VWATCH_GOTO) {",30));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(17080);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2973=*__LONG_MAINTXTBUF),qbs_add(qbs_add(qbs_add(qbs_new_txt_len("#include ",9),func_chr( 34 )),qbs_new_txt_len("vw_main_dispatch.txt",20)),func_chr( 34 )));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(17081);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2974=*__LONG_MAINTXTBUF),qbs_new_txt_len("    default:",12));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(17082);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2975=*__LONG_MAINTXTBUF),qbs_new_txt_len("        *__LONG_VWATCH_GOTO=*__LONG_VWATCH_LINENUMBER;",54));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(17083);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2976=*__LONG_MAINTXTBUF),qbs_new_txt_len("        goto VWATCH_SETNEXTLINE;",32));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(17084);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2977=*__LONG_MAINTXTBUF),qbs_new_txt_len("}",1));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(17085);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2978=*__LONG_MAINTXTBUF),qbs_new_txt_len("VWATCH_SKIPLINE:;",17));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(17087);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2979=*__LONG_MAINTXTBUF),qbs_new_txt_len("switch (*__LONG_VWATCH_GOTO) {",30));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(17088);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2980=*__LONG_MAINTXTBUF),qbs_add(qbs_add(qbs_add(qbs_new_txt_len("#include ",9),func_chr( 34 )),qbs_new_txt_len("vw_main_skip.txt",16)),func_chr( 34 )));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(17089);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2981=*__LONG_MAINTXTBUF),qbs_new_txt_len("}",1));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(17090);}while(r);
}
do{
SUB_WRITEBUFLINE(&(pass2982=*__LONG_MAINTXTBUF),qbs_new_txt_len("}",1));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(17093);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2983=*__LONG_RETTXTBUF),qbs_new_txt_len("}",1));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(17094);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2984=*__LONG_RETTXTBUF),qbs_new_txt_len("}",1));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(17095);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2985=*__LONG_RETTXTBUF),qbs_new_txt_len("error(3);",9));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(17096);}while(r);
do{
*_SUB_CLOSEMAIN_LONG_MAININCBUF=FUNC_OPENBUFFER(qbs_new_txt_len("O",1),qbs_add(__STRING_TMPDIR,qbs_new_txt_len("main.txt",8)));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(17098);}while(r);
S_19596:;
fornext_value2987= 0 ;
fornext_finalvalue2987=*__LONG_SUBFUNCNLAST;
fornext_step2987= 1 ;
if (fornext_step2987<0) fornext_step_negative2987=1; else fornext_step_negative2987=0;
if (is_error_pending()) goto fornext_error2987;
goto fornext_entrylabel2987;
while(1){
fornext_value2987=fornext_step2987+(*_SUB_CLOSEMAIN_LONG_I);
fornext_entrylabel2987:
*_SUB_CLOSEMAIN_LONG_I=fornext_value2987;
if (fornext_step_negative2987){
if (fornext_value2987<fornext_finalvalue2987) break;
}else{
if (fornext_value2987>fornext_finalvalue2987) break;
}
fornext_error2987:;
if(qbevent){evnt(17099);if(r)goto S_19596;}
do{
SUB_WRITEBUFLINE(&(pass2988=*_SUB_CLOSEMAIN_LONG_MAININCBUF),qbs_add(qbs_add(qbs_add(qbs_add(qbs_add(qbs_new_txt_len("#include ",9),func_chr( 34 )),qbs_new_txt_len("main",4)),qbs__tostr((int32)(*_SUB_CLOSEMAIN_LONG_I),NULL,0)),qbs_new_txt_len(".txt",4)),func_chr( 34 )));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(17100);}while(r);
fornext_continue_2986:;
}
fornext_exit_2986:;
do{
SUB_WRITEBUFLINE(&(pass2989=*_SUB_CLOSEMAIN_LONG_MAININCBUF),qbs_new_txt_len("qbs *func__compdate() {",23));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(17102);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2990=*_SUB_CLOSEMAIN_LONG_MAININCBUF),qbs_new_txt_len("return qbs_new_txt(__DATE__);",29));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(17103);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2991=*_SUB_CLOSEMAIN_LONG_MAININCBUF),qbs_new_txt_len("}",1));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(17104);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2992=*_SUB_CLOSEMAIN_LONG_MAININCBUF),qbs_new_txt_len("qbs *func__comptime() {",23));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(17105);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2993=*_SUB_CLOSEMAIN_LONG_MAININCBUF),qbs_new_txt_len("return qbs_new_txt(__TIME__);",29));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(17106);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2994=*_SUB_CLOSEMAIN_LONG_MAININCBUF),qbs_new_txt_len("}",1));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(17107);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2995=*_SUB_CLOSEMAIN_LONG_MAININCBUF),qbs_new_txt_len("qbs *func__compvers() {",23));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(17108);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2996=*_SUB_CLOSEMAIN_LONG_MAININCBUF),qbs_add(qbs_add(qbs_add(qbs_add(qbs_add(qbs_new_txt_len("return qbs_new_txt(",19),func_chr( 34 )),qbs_new_txt_len("QB64-PE v",9)),__STRING_VERSION),func_chr( 34 )),qbs_new_txt_len(");",2)));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(17109);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2997=*_SUB_CLOSEMAIN_LONG_MAININCBUF),qbs_new_txt_len("}",1));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(17110);}while(r);
do{
*__LONG_FIRSTLINENUMBERLABELVWATCH= 0 ;
if(!qbevent)break;evnt(17112);}while(r);
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free45.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;
}
