int32 FUNC_COUNTELEMENTS(qbs*_FUNC_COUNTELEMENTS_STRING_A){
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 "data46.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{
*_FUNC_COUNTELEMENTS_LONG_N=FUNC_NUMELEMENTS(_FUNC_COUNTELEMENTS_STRING_A);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(17116);}while(r);
do{
*_FUNC_COUNTELEMENTS_LONG_C= 1 ;
if(!qbevent)break;evnt(17117);}while(r);
S_19611:;
fornext_value3000= 1 ;
fornext_finalvalue3000=*_FUNC_COUNTELEMENTS_LONG_N;
fornext_step3000= 1 ;
if (fornext_step3000<0) fornext_step_negative3000=1; else fornext_step_negative3000=0;
if (is_error_pending()) goto fornext_error3000;
goto fornext_entrylabel3000;
while(1){
fornext_value3000=fornext_step3000+(*_FUNC_COUNTELEMENTS_LONG_I);
fornext_entrylabel3000:
*_FUNC_COUNTELEMENTS_LONG_I=fornext_value3000;
if (fornext_step_negative3000){
if (fornext_value3000<fornext_finalvalue3000) break;
}else{
if (fornext_value3000>fornext_finalvalue3000) break;
}
fornext_error3000:;
if(qbevent){evnt(17118);if(r)goto S_19611;}
do{
qbs_set(_FUNC_COUNTELEMENTS_STRING_E,FUNC_GETELEMENT(_FUNC_COUNTELEMENTS_STRING_A,_FUNC_COUNTELEMENTS_LONG_I));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(17119);}while(r);
S_19613:;
if ((qbs_cleanup(qbs_tmp_base,qbs_equal(_FUNC_COUNTELEMENTS_STRING_E,qbs_new_txt_len("(",1))))||is_error_pending()){
if(qbevent){evnt(17120);if(r)goto S_19613;}
do{
*_FUNC_COUNTELEMENTS_LONG_B=*_FUNC_COUNTELEMENTS_LONG_B+ 1 ;
if(!qbevent)break;evnt(17120);}while(r);
}
S_19616:;
if ((qbs_cleanup(qbs_tmp_base,qbs_equal(_FUNC_COUNTELEMENTS_STRING_E,qbs_new_txt_len(")",1))))||is_error_pending()){
if(qbevent){evnt(17121);if(r)goto S_19616;}
do{
*_FUNC_COUNTELEMENTS_LONG_B=*_FUNC_COUNTELEMENTS_LONG_B- 1 ;
if(!qbevent)break;evnt(17121);}while(r);
}
S_19619:;
if ((-(*_FUNC_COUNTELEMENTS_LONG_B< 0 ))||is_error_pending()){
if(qbevent){evnt(17122);if(r)goto S_19619;}
do{
SUB_GIVE_ERROR(qbs_new_txt_len("Unexpected ) encountered",24));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(17122);}while(r);
do{
goto exit_subfunc;
if(!qbevent)break;evnt(17122);}while(r);
}
S_19623:;
if ((qbs_cleanup(qbs_tmp_base,(qbs_equal(_FUNC_COUNTELEMENTS_STRING_E,qbs_new_txt_len(",",1)))&(-(*_FUNC_COUNTELEMENTS_LONG_B== 0 ))))||is_error_pending()){
if(qbevent){evnt(17123);if(r)goto S_19623;}
do{
*_FUNC_COUNTELEMENTS_LONG_C=*_FUNC_COUNTELEMENTS_LONG_C+ 1 ;
if(!qbevent)break;evnt(17123);}while(r);
}
fornext_continue_2999:;
}
fornext_exit_2999:;
do{
*_FUNC_COUNTELEMENTS_LONG_COUNTELEMENTS=*_FUNC_COUNTELEMENTS_LONG_C;
if(!qbevent)break;evnt(17125);}while(r);
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free46.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_COUNTELEMENTS_LONG_COUNTELEMENTS;
}
