void SUB_INSERTELEMENTS(qbs*_SUB_INSERTELEMENTS_STRING_A,int32*_SUB_INSERTELEMENTS_LONG_I,qbs*_SUB_INSERTELEMENTS_STRING_ELEMENTS){
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 "data139.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,140,"elements.bas");}while(r);
S_36933:;
if ((-(*_SUB_INSERTELEMENTS_LONG_I== 0 ))||is_error_pending()){
if(qbevent){evnt(28165,142,"elements.bas");if(r)goto S_36933;}
S_36934:;
if ((qbs_cleanup(qbs_tmp_base,qbs_equal(_SUB_INSERTELEMENTS_STRING_A,qbs_new_txt_len("",0))))||is_error_pending()){
if(qbevent){evnt(28165,143,"elements.bas");if(r)goto S_36934;}
do{
qbs_set(_SUB_INSERTELEMENTS_STRING_A,_SUB_INSERTELEMENTS_STRING_ELEMENTS);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28165,144,"elements.bas");}while(r);
do{
goto exit_subfunc;
if(!qbevent)break;evnt(28165,145,"elements.bas");}while(r);
}
do{
qbs_set(_SUB_INSERTELEMENTS_STRING_A,qbs_add(qbs_add(_SUB_INSERTELEMENTS_STRING_ELEMENTS,__STRING1_SP),_SUB_INSERTELEMENTS_STRING_A));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28165,147,"elements.bas");}while(r);
do{
goto exit_subfunc;
if(!qbevent)break;evnt(28165,148,"elements.bas");}while(r);
}
do{
qbs_set(_SUB_INSERTELEMENTS_STRING_A2,qbs_new_txt_len("",0));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28165,151,"elements.bas");}while(r);
do{
*_SUB_INSERTELEMENTS_LONG_N=FUNC_NUMELEMENTS(_SUB_INSERTELEMENTS_STRING_A);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28165,152,"elements.bas");}while(r);
S_36943:;
fornext_value4432= 1 ;
fornext_finalvalue4432=*_SUB_INSERTELEMENTS_LONG_N;
fornext_step4432= 1 ;
if (fornext_step4432<0) fornext_step_negative4432=1; else fornext_step_negative4432=0;
if (is_error_pending()) goto fornext_error4432;
goto fornext_entrylabel4432;
while(1){
fornext_value4432=fornext_step4432+(*_SUB_INSERTELEMENTS_LONG_I2);
fornext_entrylabel4432:
*_SUB_INSERTELEMENTS_LONG_I2=fornext_value4432;
if (fornext_step_negative4432){
if (fornext_value4432<fornext_finalvalue4432) break;
}else{
if (fornext_value4432>fornext_finalvalue4432) break;
}
fornext_error4432:;
if(qbevent){evnt(28165,154,"elements.bas");if(r)goto S_36943;}
S_36944:;
if ((-(*_SUB_INSERTELEMENTS_LONG_I2> 1 ))||is_error_pending()){
if(qbevent){evnt(28165,155,"elements.bas");if(r)goto S_36944;}
do{
qbs_set(_SUB_INSERTELEMENTS_STRING_A2,qbs_add(_SUB_INSERTELEMENTS_STRING_A2,__STRING1_SP));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28165,155,"elements.bas");}while(r);
}
do{
qbs_set(_SUB_INSERTELEMENTS_STRING_A2,qbs_add(_SUB_INSERTELEMENTS_STRING_A2,FUNC_GETELEMENT(_SUB_INSERTELEMENTS_STRING_A,_SUB_INSERTELEMENTS_LONG_I2)));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28165,156,"elements.bas");}while(r);
S_36948:;
if ((-(*_SUB_INSERTELEMENTS_LONG_I==*_SUB_INSERTELEMENTS_LONG_I2))||is_error_pending()){
if(qbevent){evnt(28165,157,"elements.bas");if(r)goto S_36948;}
do{
qbs_set(_SUB_INSERTELEMENTS_STRING_A2,qbs_add(qbs_add(_SUB_INSERTELEMENTS_STRING_A2,__STRING1_SP),_SUB_INSERTELEMENTS_STRING_ELEMENTS));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28165,157,"elements.bas");}while(r);
}
fornext_continue_4431:;
}
fornext_exit_4431:;
do{
qbs_set(_SUB_INSERTELEMENTS_STRING_A,_SUB_INSERTELEMENTS_STRING_A2);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28165,160,"elements.bas");}while(r);
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free139.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;
}
