qbs* FUNC_UDTDYNARRAYBOUNDEXPR(qbs*_FUNC_UDTDYNARRAYBOUNDEXPR_STRING_DESC_EXPR,qbs*_FUNC_UDTDYNARRAYBOUNDEXPR_STRING_DIMENSION_EXPR,int32*_FUNC_UDTDYNARRAYBOUNDEXPR_LONG_WANT_UPPER){
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 "data33.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(16407);}while(r);
do{
qbs_set(_FUNC_UDTDYNARRAYBOUNDEXPR_STRING_HELPER_NAME,qbs_add(qbs_new_txt_len("udt_dyn_array_bound_",20),qbs__tostr((int32)(FUNC_UNIQUENUMBER()),NULL,0)));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(16415);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2794=*__LONG_GLOBTXTBUF),qbs_add(qbs_add(qbs_new_txt_len("static int64 ",13),_FUNC_UDTDYNARRAYBOUNDEXPR_STRING_HELPER_NAME),qbs_new_txt_len("(ptrszint *qb_desc,int64 qb_dim){",33)));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(16417);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2795=*__LONG_GLOBTXTBUF),qbs_new_txt_len("ptrszint qb_i;",14));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(16418);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2796=*__LONG_GLOBTXTBUF),qbs_new_txt_len("if ((!qb_desc)||(qb_dim<1)||(qb_dim>qb_desc[3])){error(9); return 0;}",69));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(16419);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2797=*__LONG_GLOBTXTBUF),qbs_new_txt_len("qb_i=(qb_desc[3]-qb_dim)*4+4;",29));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(16420);}while(r);
S_18911:;
if ((*_FUNC_UDTDYNARRAYBOUNDEXPR_LONG_WANT_UPPER)||is_error_pending()){
if(qbevent){evnt(16421);if(r)goto S_18911;}
do{
SUB_WRITEBUFLINE(&(pass2798=*__LONG_GLOBTXTBUF),qbs_new_txt_len("return qb_desc[qb_i]+qb_desc[qb_i+1]-1;",39));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(16422);}while(r);
}else{
do{
SUB_WRITEBUFLINE(&(pass2799=*__LONG_GLOBTXTBUF),qbs_new_txt_len("return qb_desc[qb_i];",21));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(16424);}while(r);
}
do{
SUB_WRITEBUFLINE(&(pass2800=*__LONG_GLOBTXTBUF),qbs_new_txt_len("}",1));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(16426);}while(r);
do{
qbs_set(_FUNC_UDTDYNARRAYBOUNDEXPR_STRING_UDTDYNARRAYBOUNDEXPR,qbs_add(qbs_add(qbs_add(qbs_add(qbs_add(_FUNC_UDTDYNARRAYBOUNDEXPR_STRING_HELPER_NAME,qbs_new_txt_len("(",1)),_FUNC_UDTDYNARRAYBOUNDEXPR_STRING_DESC_EXPR),qbs_new_txt_len(",",1)),_FUNC_UDTDYNARRAYBOUNDEXPR_STRING_DIMENSION_EXPR),qbs_new_txt_len(")",1)));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(16428);}while(r);
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free33.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_UDTDYNARRAYBOUNDEXPR_STRING_UDTDYNARRAYBOUNDEXPR);return _FUNC_UDTDYNARRAYBOUNDEXPR_STRING_UDTDYNARRAYBOUNDEXPR;
}
