qbs* FUNC_GETELEMENTS(qbs*_FUNC_GETELEMENTS_STRING_A,int32*_FUNC_GETELEMENTS_LONG_I1,int32*_FUNC_GETELEMENTS_LONG_I2){
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 "data136.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(28165,93,"elements.bas");}while(r);
S_36899:;
if ((-(*_FUNC_GETELEMENTS_LONG_I2<*_FUNC_GETELEMENTS_LONG_I1))||is_error_pending()){
if(qbevent){evnt(28165,95,"elements.bas");if(r)goto S_36899;}
do{
qbs_set(_FUNC_GETELEMENTS_STRING_GETELEMENTS,qbs_new_txt_len("",0));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28165,95,"elements.bas");}while(r);
do{
goto exit_subfunc;
if(!qbevent)break;evnt(28165,95,"elements.bas");}while(r);
}
do{
*_FUNC_GETELEMENTS_LONG_N= 1 ;
if(!qbevent)break;evnt(28165,96,"elements.bas");}while(r);
do{
*_FUNC_GETELEMENTS_LONG_P= 1 ;
if(!qbevent)break;evnt(28165,97,"elements.bas");}while(r);
LABEL_GETELEMENTSNEXT:;
if(qbevent){evnt(28165,98,"elements.bas");r=0;}
do{
*_FUNC_GETELEMENTS_LONG_I=func_instr(*_FUNC_GETELEMENTS_LONG_P,_FUNC_GETELEMENTS_STRING_A,__STRING1_SP,0|1);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28165,99,"elements.bas");}while(r);
S_36906:;
if ((-(*_FUNC_GETELEMENTS_LONG_N==*_FUNC_GETELEMENTS_LONG_I1))||is_error_pending()){
if(qbevent){evnt(28165,100,"elements.bas");if(r)goto S_36906;}
do{
*_FUNC_GETELEMENTS_LONG_I1POS=*_FUNC_GETELEMENTS_LONG_P;
if(!qbevent)break;evnt(28165,101,"elements.bas");}while(r);
}
S_36909:;
if ((-(*_FUNC_GETELEMENTS_LONG_N==*_FUNC_GETELEMENTS_LONG_I2))||is_error_pending()){
if(qbevent){evnt(28165,103,"elements.bas");if(r)goto S_36909;}
S_36910:;
if ((*_FUNC_GETELEMENTS_LONG_I)||is_error_pending()){
if(qbevent){evnt(28165,104,"elements.bas");if(r)goto S_36910;}
do{
qbs_set(_FUNC_GETELEMENTS_STRING_GETELEMENTS,func_mid(_FUNC_GETELEMENTS_STRING_A,*_FUNC_GETELEMENTS_LONG_I1POS,*_FUNC_GETELEMENTS_LONG_I-*_FUNC_GETELEMENTS_LONG_I1POS,0|1));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28165,105,"elements.bas");}while(r);
}else{
do{
qbs_set(_FUNC_GETELEMENTS_STRING_GETELEMENTS,qbs_right(_FUNC_GETELEMENTS_STRING_A,_FUNC_GETELEMENTS_STRING_A->len-*_FUNC_GETELEMENTS_LONG_I1POS+ 1 ));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28165,107,"elements.bas");}while(r);
}
do{
goto exit_subfunc;
if(!qbevent)break;evnt(28165,109,"elements.bas");}while(r);
}
do{
*_FUNC_GETELEMENTS_LONG_N=*_FUNC_GETELEMENTS_LONG_N+ 1 ;
if(!qbevent)break;evnt(28165,111,"elements.bas");}while(r);
do{
*_FUNC_GETELEMENTS_LONG_P=*_FUNC_GETELEMENTS_LONG_I+ 1 ;
if(!qbevent)break;evnt(28165,112,"elements.bas");}while(r);
do{
goto LABEL_GETELEMENTSNEXT;
if(!qbevent)break;evnt(28165,113,"elements.bas");}while(r);
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free136.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;
qbs_maketmp(_FUNC_GETELEMENTS_STRING_GETELEMENTS);return _FUNC_GETELEMENTS_STRING_GETELEMENTS;
}
