#line 17568 "qb64pe.bas"
void SUB_CLOSEMAIN(){
#line 17568 "qb64pe.bas"
qbs *tqbs;
#line 17568 "qb64pe.bas"
ptrszint tmp_long;
#line 17568 "qb64pe.bas"
int32 tmp_fileno;
#line 17568 "qb64pe.bas"
uint32 qbs_tmp_base=qbs_tmp_list_nexti;
#line 17568 "qb64pe.bas"
uint8 *tmp_mem_static_pointer=mem_static_pointer;
#line 17568 "qb64pe.bas"
uint32 tmp_cmem_sp=cmem_sp;
#line 17568 "qb64pe.bas"
#include "data55.txt"
#line 17568 "qb64pe.bas"
mem_lock *sf_mem_lock;
#line 17568 "qb64pe.bas"
new_mem_lock();
#line 17568 "qb64pe.bas"
sf_mem_lock=mem_lock_tmp;
#line 17568 "qb64pe.bas"
sf_mem_lock->type=3;
#line 17568 "qb64pe.bas"
libqb_check_stack();
#line 17568 "qb64pe.bas"
if (is_error_pending()) goto exit_subfunc;
#line 17569 "qb64pe.bas"
S_20056:;
#line 17569 "qb64pe.bas"
if ((-(FUNC_GETRCSTATEVAR((void*)( ((char*)(__UDT_VWATCHON)) + ((0+0)) ))== 1 ))||is_error_pending()){
#line 17569 "qb64pe.bas"
if(qbevent){evnt(17569);if(r)goto S_20056;}
#line 17569 "qb64pe.bas"
do{
#line 17569 "qb64pe.bas"
SUB_VWATCHADDLABEL(&(pass2421= 0 ),&(pass2422= -1 ));
#line 17569 "qb64pe.bas"
if(!qbevent)break;evnt(17569);}while(r);
#line 17569 "qb64pe.bas"
}
#line 17570 "qb64pe.bas"
do{
#line 17570 "qb64pe.bas"
SUB_XEND();
#line 17570 "qb64pe.bas"
if(!qbevent)break;evnt(17570);}while(r);
#line 17571 "qb64pe.bas"
do{
#line 17571 "qb64pe.bas"
SUB_WRITEBUFLINECPP(__LONG_MAINTXTBUF,qbs_new_txt_len("return;",7));
#line 17571 "qb64pe.bas"
qbs_cleanup(qbs_tmp_base,0);
#line 17571 "qb64pe.bas"
if(!qbevent)break;evnt(17571);}while(r);
#line 17572 "qb64pe.bas"
S_20061:;
#line 17572 "qb64pe.bas"
if ((-(FUNC_GETRCSTATEVAR((void*)( ((char*)(__UDT_VWATCHON)) + ((0+0)) ))== 1 ))||is_error_pending()){
#line 17572 "qb64pe.bas"
if(qbevent){evnt(17572);if(r)goto S_20061;}
#line 17573 "qb64pe.bas"
do{
#line 17573 "qb64pe.bas"
SUB_WRITEBUFLINECPP(__LONG_MAINTXTBUF,qbs_new_txt_len("VWATCH_SETNEXTLINE:;",20));
#line 17573 "qb64pe.bas"
qbs_cleanup(qbs_tmp_base,0);
#line 17573 "qb64pe.bas"
if(!qbevent)break;evnt(17573);}while(r);
#line 17574 "qb64pe.bas"
do{
#line 17574 "qb64pe.bas"
SUB_WRITEBUFLINECPP(__LONG_MAINTXTBUF,qbs_new_txt_len("switch (*__LONG_VWATCH_GOTO) {",30));
#line 17574 "qb64pe.bas"
qbs_cleanup(qbs_tmp_base,0);
#line 17574 "qb64pe.bas"
if(!qbevent)break;evnt(17574);}while(r);
#line 17575 "qb64pe.bas"
do{
#line 17575 "qb64pe.bas"
SUB_WRITEBUFLINECPP(__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 )));
#line 17575 "qb64pe.bas"
qbs_cleanup(qbs_tmp_base,0);
#line 17575 "qb64pe.bas"
if(!qbevent)break;evnt(17575);}while(r);
#line 17576 "qb64pe.bas"
do{
#line 17576 "qb64pe.bas"
SUB_WRITEBUFLINECPP(__LONG_MAINTXTBUF,qbs_new_txt_len("    default:",12));
#line 17576 "qb64pe.bas"
qbs_cleanup(qbs_tmp_base,0);
#line 17576 "qb64pe.bas"
if(!qbevent)break;evnt(17576);}while(r);
#line 17577 "qb64pe.bas"
do{
#line 17577 "qb64pe.bas"
SUB_WRITEBUFLINECPP(__LONG_MAINTXTBUF,qbs_new_txt_len("        *__LONG_VWATCH_GOTO=*__LONG_VWATCH_LINENUMBER;",54));
#line 17577 "qb64pe.bas"
qbs_cleanup(qbs_tmp_base,0);
#line 17577 "qb64pe.bas"
if(!qbevent)break;evnt(17577);}while(r);
#line 17578 "qb64pe.bas"
do{
#line 17578 "qb64pe.bas"
SUB_WRITEBUFLINECPP(__LONG_MAINTXTBUF,qbs_new_txt_len("        goto VWATCH_SETNEXTLINE;",32));
#line 17578 "qb64pe.bas"
qbs_cleanup(qbs_tmp_base,0);
#line 17578 "qb64pe.bas"
if(!qbevent)break;evnt(17578);}while(r);
#line 17579 "qb64pe.bas"
do{
#line 17579 "qb64pe.bas"
SUB_WRITEBUFLINECPP(__LONG_MAINTXTBUF,qbs_new_txt_len("}",1));
#line 17579 "qb64pe.bas"
qbs_cleanup(qbs_tmp_base,0);
#line 17579 "qb64pe.bas"
if(!qbevent)break;evnt(17579);}while(r);
#line 17581 "qb64pe.bas"
do{
#line 17581 "qb64pe.bas"
SUB_WRITEBUFLINECPP(__LONG_MAINTXTBUF,qbs_new_txt_len("VWATCH_SKIPLINE:;",17));
#line 17581 "qb64pe.bas"
qbs_cleanup(qbs_tmp_base,0);
#line 17581 "qb64pe.bas"
if(!qbevent)break;evnt(17581);}while(r);
#line 17582 "qb64pe.bas"
do{
#line 17582 "qb64pe.bas"
SUB_WRITEBUFLINECPP(__LONG_MAINTXTBUF,qbs_new_txt_len("switch (*__LONG_VWATCH_GOTO) {",30));
#line 17582 "qb64pe.bas"
qbs_cleanup(qbs_tmp_base,0);
#line 17582 "qb64pe.bas"
if(!qbevent)break;evnt(17582);}while(r);
#line 17583 "qb64pe.bas"
do{
#line 17583 "qb64pe.bas"
SUB_WRITEBUFLINECPP(__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 )));
#line 17583 "qb64pe.bas"
qbs_cleanup(qbs_tmp_base,0);
#line 17583 "qb64pe.bas"
if(!qbevent)break;evnt(17583);}while(r);
#line 17584 "qb64pe.bas"
do{
#line 17584 "qb64pe.bas"
SUB_WRITEBUFLINECPP(__LONG_MAINTXTBUF,qbs_new_txt_len("}",1));
#line 17584 "qb64pe.bas"
qbs_cleanup(qbs_tmp_base,0);
#line 17584 "qb64pe.bas"
if(!qbevent)break;evnt(17584);}while(r);
#line 17585 "qb64pe.bas"
}
#line 17587 "qb64pe.bas"
do{
#line 17587 "qb64pe.bas"
SUB_WRITEBUFLINECPP(__LONG_MAINTXTBUF,qbs_new_txt_len("}",1));
#line 17587 "qb64pe.bas"
qbs_cleanup(qbs_tmp_base,0);
#line 17587 "qb64pe.bas"
if(!qbevent)break;evnt(17587);}while(r);
#line 17588 "qb64pe.bas"
do{
#line 17588 "qb64pe.bas"
SUB_WRITEBUFLINE(&(pass2423=*__LONG_RETTXTBUF),qbs_new_txt_len("}",1));
#line 17588 "qb64pe.bas"
qbs_cleanup(qbs_tmp_base,0);
#line 17588 "qb64pe.bas"
if(!qbevent)break;evnt(17588);}while(r);
#line 17589 "qb64pe.bas"
do{
#line 17589 "qb64pe.bas"
SUB_WRITEBUFLINE(&(pass2424=*__LONG_RETTXTBUF),qbs_new_txt_len("}",1));
#line 17589 "qb64pe.bas"
qbs_cleanup(qbs_tmp_base,0);
#line 17589 "qb64pe.bas"
if(!qbevent)break;evnt(17589);}while(r);
#line 17590 "qb64pe.bas"
do{
#line 17590 "qb64pe.bas"
SUB_WRITEBUFLINE(&(pass2425=*__LONG_RETTXTBUF),qbs_new_txt_len("error(3);",9));
#line 17590 "qb64pe.bas"
qbs_cleanup(qbs_tmp_base,0);
#line 17590 "qb64pe.bas"
if(!qbevent)break;evnt(17590);}while(r);
#line 17592 "qb64pe.bas"
do{
#line 17592 "qb64pe.bas"
*_SUB_CLOSEMAIN_LONG_MAININCBUF=FUNC_OPENBUFFER(qbs_new_txt_len("O",1),qbs_add(__STRING_TMPDIR,qbs_new_txt_len("main.txt",8)));
#line 17592 "qb64pe.bas"
qbs_cleanup(qbs_tmp_base,0);
#line 17592 "qb64pe.bas"
if(!qbevent)break;evnt(17592);}while(r);
#line 17593 "qb64pe.bas"
S_20079:;
#line 17593 "qb64pe.bas"
fornext_value2427= 0 ;
#line 17593 "qb64pe.bas"
fornext_finalvalue2427=*__LONG_SUBFUNCNLAST;
#line 17593 "qb64pe.bas"
fornext_step2427= 1 ;
#line 17593 "qb64pe.bas"
if (fornext_step2427<0) fornext_step_negative2427=1; else fornext_step_negative2427=0;
#line 17593 "qb64pe.bas"
if (is_error_pending()) goto fornext_error2427;
#line 17593 "qb64pe.bas"
goto fornext_entrylabel2427;
#line 17593 "qb64pe.bas"
while(1){
#line 17593 "qb64pe.bas"
fornext_value2427=fornext_step2427+(*_SUB_CLOSEMAIN_LONG_I);
#line 17593 "qb64pe.bas"
fornext_entrylabel2427:
#line 17593 "qb64pe.bas"
*_SUB_CLOSEMAIN_LONG_I=fornext_value2427;
#line 17593 "qb64pe.bas"
if (fornext_step_negative2427){
#line 17593 "qb64pe.bas"
if (fornext_value2427<fornext_finalvalue2427) break;
#line 17593 "qb64pe.bas"
}else{
#line 17593 "qb64pe.bas"
if (fornext_value2427>fornext_finalvalue2427) break;
#line 17593 "qb64pe.bas"
}
#line 17593 "qb64pe.bas"
fornext_error2427:;
#line 17593 "qb64pe.bas"
if(qbevent){evnt(17593);if(r)goto S_20079;}
#line 17594 "qb64pe.bas"
do{
#line 17594 "qb64pe.bas"
SUB_WRITEBUFLINE(&(pass2428=*_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 )));
#line 17594 "qb64pe.bas"
qbs_cleanup(qbs_tmp_base,0);
#line 17594 "qb64pe.bas"
if(!qbevent)break;evnt(17594);}while(r);
#line 17595 "qb64pe.bas"
fornext_continue_2426:;
#line 17595 "qb64pe.bas"
}
#line 17595 "qb64pe.bas"
fornext_exit_2426:;
#line 17596 "qb64pe.bas"
do{
#line 17596 "qb64pe.bas"
SUB_WRITEBUFLINE(&(pass2429=*_SUB_CLOSEMAIN_LONG_MAININCBUF),qbs_new_txt_len("qbs *func__compdate() {",23));
#line 17596 "qb64pe.bas"
qbs_cleanup(qbs_tmp_base,0);
#line 17596 "qb64pe.bas"
if(!qbevent)break;evnt(17596);}while(r);
#line 17597 "qb64pe.bas"
do{
#line 17597 "qb64pe.bas"
SUB_WRITEBUFLINE(&(pass2430=*_SUB_CLOSEMAIN_LONG_MAININCBUF),qbs_new_txt_len("return qbs_new_txt(__DATE__);",29));
#line 17597 "qb64pe.bas"
qbs_cleanup(qbs_tmp_base,0);
#line 17597 "qb64pe.bas"
if(!qbevent)break;evnt(17597);}while(r);
#line 17598 "qb64pe.bas"
do{
#line 17598 "qb64pe.bas"
SUB_WRITEBUFLINE(&(pass2431=*_SUB_CLOSEMAIN_LONG_MAININCBUF),qbs_new_txt_len("}",1));
#line 17598 "qb64pe.bas"
qbs_cleanup(qbs_tmp_base,0);
#line 17598 "qb64pe.bas"
if(!qbevent)break;evnt(17598);}while(r);
#line 17599 "qb64pe.bas"
do{
#line 17599 "qb64pe.bas"
SUB_WRITEBUFLINE(&(pass2432=*_SUB_CLOSEMAIN_LONG_MAININCBUF),qbs_new_txt_len("qbs *func__comptime() {",23));
#line 17599 "qb64pe.bas"
qbs_cleanup(qbs_tmp_base,0);
#line 17599 "qb64pe.bas"
if(!qbevent)break;evnt(17599);}while(r);
#line 17600 "qb64pe.bas"
do{
#line 17600 "qb64pe.bas"
SUB_WRITEBUFLINE(&(pass2433=*_SUB_CLOSEMAIN_LONG_MAININCBUF),qbs_new_txt_len("return qbs_new_txt(__TIME__);",29));
#line 17600 "qb64pe.bas"
qbs_cleanup(qbs_tmp_base,0);
#line 17600 "qb64pe.bas"
if(!qbevent)break;evnt(17600);}while(r);
#line 17601 "qb64pe.bas"
do{
#line 17601 "qb64pe.bas"
SUB_WRITEBUFLINE(&(pass2434=*_SUB_CLOSEMAIN_LONG_MAININCBUF),qbs_new_txt_len("}",1));
#line 17601 "qb64pe.bas"
qbs_cleanup(qbs_tmp_base,0);
#line 17601 "qb64pe.bas"
if(!qbevent)break;evnt(17601);}while(r);
#line 17602 "qb64pe.bas"
do{
#line 17602 "qb64pe.bas"
SUB_WRITEBUFLINE(&(pass2435=*_SUB_CLOSEMAIN_LONG_MAININCBUF),qbs_new_txt_len("qbs *func__compvers() {",23));
#line 17602 "qb64pe.bas"
qbs_cleanup(qbs_tmp_base,0);
#line 17602 "qb64pe.bas"
if(!qbevent)break;evnt(17602);}while(r);
#line 17603 "qb64pe.bas"
do{
#line 17603 "qb64pe.bas"
SUB_WRITEBUFLINE(&(pass2436=*_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)));
#line 17603 "qb64pe.bas"
qbs_cleanup(qbs_tmp_base,0);
#line 17603 "qb64pe.bas"
if(!qbevent)break;evnt(17603);}while(r);
#line 17604 "qb64pe.bas"
do{
#line 17604 "qb64pe.bas"
SUB_WRITEBUFLINE(&(pass2437=*_SUB_CLOSEMAIN_LONG_MAININCBUF),qbs_new_txt_len("}",1));
#line 17604 "qb64pe.bas"
qbs_cleanup(qbs_tmp_base,0);
#line 17604 "qb64pe.bas"
if(!qbevent)break;evnt(17604);}while(r);
#line 17606 "qb64pe.bas"
do{
#line 17606 "qb64pe.bas"
*__LONG_FIRSTLINENUMBERLABELVWATCH= 0 ;
#line 17606 "qb64pe.bas"
if(!qbevent)break;evnt(17606);}while(r);
#line 17607 "qb64pe.bas"
exit_subfunc:;
#line 17607 "qb64pe.bas"
free_mem_lock(sf_mem_lock);
#line 17607 "qb64pe.bas"
#include "free55.txt"
#line 17607 "qb64pe.bas"
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;
#line 17607 "qb64pe.bas"
cmem_sp=tmp_cmem_sp;
#line 17607 "qb64pe.bas"
}
