int32 FUNC_PARSEBOOLEANSETTING(qbs*_FUNC_PARSEBOOLEANSETTING_STRING_TOKEN,int32*_FUNC_PARSEBOOLEANSETTING_LONG_SETTING){
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 "data5.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;
do{
if(!qbevent)break;evnt(14512);}while(r);
do{
if(!qbevent)break;evnt(14513);}while(r);
do{
*_FUNC_PARSEBOOLEANSETTING_LONG_EQUALS=func_instr(NULL,_FUNC_PARSEBOOLEANSETTING_STRING_TOKEN,qbs_new_txt_len("=",1),0);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(14515);}while(r);
S_17131:;
if ((-(*_FUNC_PARSEBOOLEANSETTING_LONG_EQUALS== 0 ))||is_error_pending()){
if(qbevent){evnt(14516);if(r)goto S_17131;}
do{
*_FUNC_PARSEBOOLEANSETTING_LONG_PARSEBOOLEANSETTING= 0 ;
if(!qbevent)break;evnt(14516);}while(r);
do{
goto exit_subfunc;
if(!qbevent)break;evnt(14516);}while(r);
}
do{
qbs_set(_FUNC_PARSEBOOLEANSETTING_STRING_VALUE,qbs_lcase(func_mid(_FUNC_PARSEBOOLEANSETTING_STRING_TOKEN,*_FUNC_PARSEBOOLEANSETTING_LONG_EQUALS+ 1 ,NULL,0)));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(14518);}while(r);
S_17136:;
if(qbevent){evnt(14520);if(r)goto S_17136;}
S_17137:;
if ((qbs_cleanup(qbs_tmp_base,qbs_equal(_FUNC_PARSEBOOLEANSETTING_STRING_VALUE,qbs_new_txt_len("true",4))||qbs_equal(_FUNC_PARSEBOOLEANSETTING_STRING_VALUE,qbs_new_txt_len("on",2))||qbs_equal(_FUNC_PARSEBOOLEANSETTING_STRING_VALUE,qbs_new_txt_len("yes",3))||qbs_equal(_FUNC_PARSEBOOLEANSETTING_STRING_VALUE,qbs_new_txt_len("1",1))||qbs_equal(_FUNC_PARSEBOOLEANSETTING_STRING_VALUE,qbs_new_txt_len("-1",2))))||is_error_pending()){
if(qbevent){evnt(14521);if(r)goto S_17137;}
do{
*_FUNC_PARSEBOOLEANSETTING_LONG_SETTING= -1ll ;
if(!qbevent)break;evnt(14522);}while(r);
do{
*_FUNC_PARSEBOOLEANSETTING_LONG_PARSEBOOLEANSETTING= -1 ;
if(!qbevent)break;evnt(14523);}while(r);
sc_ec_84_end:;
goto sc_2532_end;
}
S_17140:;
if ((qbs_cleanup(qbs_tmp_base,qbs_equal(_FUNC_PARSEBOOLEANSETTING_STRING_VALUE,qbs_new_txt_len("false",5))||qbs_equal(_FUNC_PARSEBOOLEANSETTING_STRING_VALUE,qbs_new_txt_len("off",3))||qbs_equal(_FUNC_PARSEBOOLEANSETTING_STRING_VALUE,qbs_new_txt_len("no",2))||qbs_equal(_FUNC_PARSEBOOLEANSETTING_STRING_VALUE,qbs_new_txt_len("0",1))))||is_error_pending()){
if(qbevent){evnt(14525);if(r)goto S_17140;}
do{
*_FUNC_PARSEBOOLEANSETTING_LONG_SETTING= 0ll ;
if(!qbevent)break;evnt(14526);}while(r);
do{
*_FUNC_PARSEBOOLEANSETTING_LONG_PARSEBOOLEANSETTING= -1 ;
if(!qbevent)break;evnt(14527);}while(r);
sc_ec_85_end:;
goto sc_2532_end;
}
do{
*_FUNC_PARSEBOOLEANSETTING_LONG_PARSEBOOLEANSETTING= 0 ;
if(!qbevent)break;evnt(14530);}while(r);
sc_2532_end:;
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free5.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;
return *_FUNC_PARSEBOOLEANSETTING_LONG_PARSEBOOLEANSETTING;
}
