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;
if (is_error_pending()) goto exit_subfunc;
do{
if(!qbevent)break;evnt(14003);}while(r);
do{
if(!qbevent)break;evnt(14004);}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(14006);}while(r);
S_16553:;
if ((-(*_FUNC_PARSEBOOLEANSETTING_LONG_EQUALS== 0 ))||is_error_pending()){
if(qbevent){evnt(14007);if(r)goto S_16553;}
do{
*_FUNC_PARSEBOOLEANSETTING_LONG_PARSEBOOLEANSETTING= 0 ;
if(!qbevent)break;evnt(14007);}while(r);
do{
goto exit_subfunc;
if(!qbevent)break;evnt(14007);}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(14009);}while(r);
S_16558:;
if(qbevent){evnt(14011);if(r)goto S_16558;}
S_16559:;
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(14012);if(r)goto S_16559;}
do{
*_FUNC_PARSEBOOLEANSETTING_LONG_SETTING= -1ll ;
if(!qbevent)break;evnt(14013);}while(r);
do{
*_FUNC_PARSEBOOLEANSETTING_LONG_PARSEBOOLEANSETTING= -1 ;
if(!qbevent)break;evnt(14014);}while(r);
sc_ec_82_end:;
goto sc_2432_end;
}
S_16562:;
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(14016);if(r)goto S_16562;}
do{
*_FUNC_PARSEBOOLEANSETTING_LONG_SETTING= 0ll ;
if(!qbevent)break;evnt(14017);}while(r);
do{
*_FUNC_PARSEBOOLEANSETTING_LONG_PARSEBOOLEANSETTING= -1 ;
if(!qbevent)break;evnt(14018);}while(r);
sc_ec_83_end:;
goto sc_2432_end;
}
do{
*_FUNC_PARSEBOOLEANSETTING_LONG_PARSEBOOLEANSETTING= 0 ;
if(!qbevent)break;evnt(14021);}while(r);
sc_2432_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;
}
