void SUB_BUILDUDTDYNLAYOUTM(int32*_SUB_BUILDUDTDYNLAYOUTM_LONG_UDT_INDEX,int32*_SUB_BUILDUDTDYNLAYOUTM_LONG_LAYOUT_MODE){
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 "data267.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(28172,824,"type.bas");}while(r);
do{
if(!qbevent)break;evnt(28172,825,"type.bas");}while(r);
do{
if(!qbevent)break;evnt(28172,826,"type.bas");}while(r);
do{
if(!qbevent)break;evnt(28172,827,"type.bas");}while(r);
do{
if(!qbevent)break;evnt(28172,828,"type.bas");}while(r);
do{
if(!qbevent)break;evnt(28172,829,"type.bas");}while(r);
do{
if(!qbevent)break;evnt(28172,830,"type.bas");}while(r);
do{
*_SUB_BUILDUDTDYNLAYOUTM_LONG_MEMBER_ID=((int32*)(__ARRAY_LONG_UDTXNEXT[0]))[array_check((*_SUB_BUILDUDTDYNLAYOUTM_LONG_UDT_INDEX)-__ARRAY_LONG_UDTXNEXT[4],__ARRAY_LONG_UDTXNEXT[5])];
if(!qbevent)break;evnt(28172,832,"type.bas");}while(r);
do{
*_SUB_BUILDUDTDYNLAYOUTM_LONG_DYNBITS= 0 ;
if(!qbevent)break;evnt(28172,833,"type.bas");}while(r);
do{
*_SUB_BUILDUDTDYNLAYOUTM_LONG_PTRBITS=*__LONG_OFFSETTYPE& 4095ll ;
if(!qbevent)break;evnt(28172,834,"type.bas");}while(r);
do{
*_SUB_BUILDUDTDYNLAYOUTM_LONG_LAYOUTALIGN= 8 ;
if(!qbevent)break;evnt(28172,835,"type.bas");}while(r);
S_41766:;
while((*_SUB_BUILDUDTDYNLAYOUTM_LONG_MEMBER_ID)||is_error_pending()){
if(qbevent){evnt(28172,837,"type.bas");if(r)goto S_41766;}
do{
*_SUB_BUILDUDTDYNLAYOUTM_LONG_MEMBERALIGN= 8 ;
if(!qbevent)break;evnt(28172,838,"type.bas");}while(r);
S_41768:;
if ((FUNC_UDTMEMBERDYNDESC(_SUB_BUILDUDTDYNLAYOUTM_LONG_MEMBER_ID))||is_error_pending()){
if(qbevent){evnt(28172,839,"type.bas");if(r)goto S_41768;}
do{
*_SUB_BUILDUDTDYNLAYOUTM_LONG_MEMBERALIGN=*_SUB_BUILDUDTDYNLAYOUTM_LONG_PTRBITS;
if(!qbevent)break;evnt(28172,840,"type.bas");}while(r);
S_41770:;
}else{
if (-((((int32*)(__ARRAY_LONG_UDTETYPE[0]))[array_check((*_SUB_BUILDUDTDYNLAYOUTM_LONG_MEMBER_ID)-__ARRAY_LONG_UDTETYPE[4],__ARRAY_LONG_UDTETYPE[5])]&*__LONG_ISUDT)!= 0 )){
if(qbevent){evnt(28172,841,"type.bas");if(r)goto S_41770;}
do{
*_SUB_BUILDUDTDYNLAYOUTM_LONG_NESTED_UDT=((int32*)(__ARRAY_LONG_UDTETYPE[0]))[array_check((*_SUB_BUILDUDTDYNLAYOUTM_LONG_MEMBER_ID)-__ARRAY_LONG_UDTETYPE[4],__ARRAY_LONG_UDTETYPE[5])]& 4095ll ;
if(!qbevent)break;evnt(28172,842,"type.bas");}while(r);
S_41772:;
if ((FUNC_UDTDYNHASMEMBERARRAYS(_SUB_BUILDUDTDYNLAYOUTM_LONG_NESTED_UDT,_SUB_BUILDUDTDYNLAYOUTM_LONG_LAYOUT_MODE))||is_error_pending()){
if(qbevent){evnt(28172,843,"type.bas");if(r)goto S_41772;}
do{
*_SUB_BUILDUDTDYNLAYOUTM_LONG_MEMBERALIGN=*_SUB_BUILDUDTDYNLAYOUTM_LONG_PTRBITS;
if(!qbevent)break;evnt(28172,843,"type.bas");}while(r);
}
}
}
S_41776:;
if ((-(*_SUB_BUILDUDTDYNLAYOUTM_LONG_MEMBERALIGN> 8 ))||is_error_pending()){
if(qbevent){evnt(28172,850,"type.bas");if(r)goto S_41776;}
S_41777:;
if ((qb_safe_mod(*_SUB_BUILDUDTDYNLAYOUTM_LONG_DYNBITS,*_SUB_BUILDUDTDYNLAYOUTM_LONG_MEMBERALIGN))||is_error_pending()){
if(qbevent){evnt(28172,851,"type.bas");if(r)goto S_41777;}
do{
*_SUB_BUILDUDTDYNLAYOUTM_LONG_DYNBITS=*_SUB_BUILDUDTDYNLAYOUTM_LONG_DYNBITS+*_SUB_BUILDUDTDYNLAYOUTM_LONG_MEMBERALIGN-(qb_safe_mod(*_SUB_BUILDUDTDYNLAYOUTM_LONG_DYNBITS,*_SUB_BUILDUDTDYNLAYOUTM_LONG_MEMBERALIGN));
if(!qbevent)break;evnt(28172,851,"type.bas");}while(r);
}
do{
*_SUB_BUILDUDTDYNLAYOUTM_LONG_LAYOUTALIGN=*_SUB_BUILDUDTDYNLAYOUTM_LONG_PTRBITS;
if(!qbevent)break;evnt(28172,852,"type.bas");}while(r);
}
do{
tmp_long=array_check((*_SUB_BUILDUDTDYNLAYOUTM_LONG_MEMBER_ID)-__ARRAY_LONG_UDTEFDYNOFFSET[4],__ARRAY_LONG_UDTEFDYNOFFSET[5]);
if (!is_error_pending()) ((int32*)(__ARRAY_LONG_UDTEFDYNOFFSET[0]))[tmp_long]=*_SUB_BUILDUDTDYNLAYOUTM_LONG_DYNBITS;
if(!qbevent)break;evnt(28172,855,"type.bas");}while(r);
S_41783:;
if ((FUNC_UDTMEMBERDYNDESC(_SUB_BUILDUDTDYNLAYOUTM_LONG_MEMBER_ID))||is_error_pending()){
if(qbevent){evnt(28172,857,"type.bas");if(r)goto S_41783;}
do{
*_SUB_BUILDUDTDYNLAYOUTM_LONG_MEMBERSIZE=*_SUB_BUILDUDTDYNLAYOUTM_LONG_PTRBITS;
if(!qbevent)break;evnt(28172,861,"type.bas");}while(r);
S_41785:;
}else{
if (((int32*)(__ARRAY_LONG_UDTEARRAYELEMENTS[0]))[array_check((*_SUB_BUILDUDTDYNLAYOUTM_LONG_MEMBER_ID)-__ARRAY_LONG_UDTEARRAYELEMENTS[4],__ARRAY_LONG_UDTEARRAYELEMENTS[5])]){
if(qbevent){evnt(28172,862,"type.bas");if(r)goto S_41785;}
S_41786:;
if ((-((((int32*)(__ARRAY_LONG_UDTETYPE[0]))[array_check((*_SUB_BUILDUDTDYNLAYOUTM_LONG_MEMBER_ID)-__ARRAY_LONG_UDTETYPE[4],__ARRAY_LONG_UDTETYPE[5])]&*__LONG_ISUDT)!= 0 ))||is_error_pending()){
if(qbevent){evnt(28172,863,"type.bas");if(r)goto S_41786;}
do{
*_SUB_BUILDUDTDYNLAYOUTM_LONG_NESTED_UDT=((int32*)(__ARRAY_LONG_UDTETYPE[0]))[array_check((*_SUB_BUILDUDTDYNLAYOUTM_LONG_MEMBER_ID)-__ARRAY_LONG_UDTETYPE[4],__ARRAY_LONG_UDTETYPE[5])]& 4095ll ;
if(!qbevent)break;evnt(28172,864,"type.bas");}while(r);
S_41788:;
if ((FUNC_UDTDYNHASMEMBERARRAYS(_SUB_BUILDUDTDYNLAYOUTM_LONG_NESTED_UDT,_SUB_BUILDUDTDYNLAYOUTM_LONG_LAYOUT_MODE))||is_error_pending()){
if(qbevent){evnt(28172,865,"type.bas");if(r)goto S_41788;}
do{
*_SUB_BUILDUDTDYNLAYOUTM_LONG_MEMBERSIZE=((int32*)(__ARRAY_LONG_UDTEARRAYELEMENTS[0]))[array_check((*_SUB_BUILDUDTDYNLAYOUTM_LONG_MEMBER_ID)-__ARRAY_LONG_UDTEARRAYELEMENTS[4],__ARRAY_LONG_UDTEARRAYELEMENTS[5])]*FUNC_UDTDYNLAYOUTSIZE(_SUB_BUILDUDTDYNLAYOUTM_LONG_NESTED_UDT);
if(!qbevent)break;evnt(28172,866,"type.bas");}while(r);
}else{
do{
*_SUB_BUILDUDTDYNLAYOUTM_LONG_MEMBERSIZE=((int32*)(__ARRAY_LONG_UDTESIZE[0]))[array_check((*_SUB_BUILDUDTDYNLAYOUTM_LONG_MEMBER_ID)-__ARRAY_LONG_UDTESIZE[4],__ARRAY_LONG_UDTESIZE[5])];
if(!qbevent)break;evnt(28172,868,"type.bas");}while(r);
}
}else{
do{
*_SUB_BUILDUDTDYNLAYOUTM_LONG_MEMBERSIZE=((int32*)(__ARRAY_LONG_UDTESIZE[0]))[array_check((*_SUB_BUILDUDTDYNLAYOUTM_LONG_MEMBER_ID)-__ARRAY_LONG_UDTESIZE[4],__ARRAY_LONG_UDTESIZE[5])];
if(!qbevent)break;evnt(28172,871,"type.bas");}while(r);
}
S_41796:;
}else{
if (((int32*)(__ARRAY_LONG_UDTETYPE[0]))[array_check((*_SUB_BUILDUDTDYNLAYOUTM_LONG_MEMBER_ID)-__ARRAY_LONG_UDTETYPE[4],__ARRAY_LONG_UDTETYPE[5])]&*__LONG_ISUDT){
if(qbevent){evnt(28172,873,"type.bas");if(r)goto S_41796;}
do{
*_SUB_BUILDUDTDYNLAYOUTM_LONG_NESTED_UDT=((int32*)(__ARRAY_LONG_UDTETYPE[0]))[array_check((*_SUB_BUILDUDTDYNLAYOUTM_LONG_MEMBER_ID)-__ARRAY_LONG_UDTETYPE[4],__ARRAY_LONG_UDTETYPE[5])]& 4095ll ;
if(!qbevent)break;evnt(28172,874,"type.bas");}while(r);
S_41798:;
if ((FUNC_UDTDYNHASMEMBERARRAYS(_SUB_BUILDUDTDYNLAYOUTM_LONG_NESTED_UDT,_SUB_BUILDUDTDYNLAYOUTM_LONG_LAYOUT_MODE))||is_error_pending()){
if(qbevent){evnt(28172,875,"type.bas");if(r)goto S_41798;}
do{
*_SUB_BUILDUDTDYNLAYOUTM_LONG_MEMBERSIZE=FUNC_UDTDYNLAYOUTSIZE(_SUB_BUILDUDTDYNLAYOUTM_LONG_NESTED_UDT);
if(!qbevent)break;evnt(28172,876,"type.bas");}while(r);
}else{
do{
*_SUB_BUILDUDTDYNLAYOUTM_LONG_MEMBERSIZE=((int32*)(__ARRAY_LONG_UDTESIZE[0]))[array_check((*_SUB_BUILDUDTDYNLAYOUTM_LONG_MEMBER_ID)-__ARRAY_LONG_UDTESIZE[4],__ARRAY_LONG_UDTESIZE[5])];
if(!qbevent)break;evnt(28172,878,"type.bas");}while(r);
}
}else{
do{
*_SUB_BUILDUDTDYNLAYOUTM_LONG_MEMBERSIZE=((int32*)(__ARRAY_LONG_UDTESIZE[0]))[array_check((*_SUB_BUILDUDTDYNLAYOUTM_LONG_MEMBER_ID)-__ARRAY_LONG_UDTESIZE[4],__ARRAY_LONG_UDTESIZE[5])];
if(!qbevent)break;evnt(28172,881,"type.bas");}while(r);
}
}
}
do{
tmp_long=array_check((*_SUB_BUILDUDTDYNLAYOUTM_LONG_MEMBER_ID)-__ARRAY_LONG_UDTEFDYNSIZE[4],__ARRAY_LONG_UDTEFDYNSIZE[5]);
if (!is_error_pending()) ((int32*)(__ARRAY_LONG_UDTEFDYNSIZE[0]))[tmp_long]=*_SUB_BUILDUDTDYNLAYOUTM_LONG_MEMBERSIZE;
if(!qbevent)break;evnt(28172,884,"type.bas");}while(r);
do{
*_SUB_BUILDUDTDYNLAYOUTM_LONG_DYNBITS=*_SUB_BUILDUDTDYNLAYOUTM_LONG_DYNBITS+*_SUB_BUILDUDTDYNLAYOUTM_LONG_MEMBERSIZE;
if(!qbevent)break;evnt(28172,886,"type.bas");}while(r);
do{
*_SUB_BUILDUDTDYNLAYOUTM_LONG_MEMBER_ID=((int32*)(__ARRAY_LONG_UDTENEXT[0]))[array_check((*_SUB_BUILDUDTDYNLAYOUTM_LONG_MEMBER_ID)-__ARRAY_LONG_UDTENEXT[4],__ARRAY_LONG_UDTENEXT[5])];
if(!qbevent)break;evnt(28172,887,"type.bas");}while(r);
dl_continue_4973:;
}
dl_exit_4973:;
S_41810:;
if ((-(*_SUB_BUILDUDTDYNLAYOUTM_LONG_LAYOUTALIGN> 8 ))||is_error_pending()){
if(qbevent){evnt(28172,893,"type.bas");if(r)goto S_41810;}
S_41811:;
if ((qb_safe_mod(*_SUB_BUILDUDTDYNLAYOUTM_LONG_DYNBITS,*_SUB_BUILDUDTDYNLAYOUTM_LONG_LAYOUTALIGN))||is_error_pending()){
if(qbevent){evnt(28172,894,"type.bas");if(r)goto S_41811;}
do{
*_SUB_BUILDUDTDYNLAYOUTM_LONG_DYNBITS=*_SUB_BUILDUDTDYNLAYOUTM_LONG_DYNBITS+*_SUB_BUILDUDTDYNLAYOUTM_LONG_LAYOUTALIGN-(qb_safe_mod(*_SUB_BUILDUDTDYNLAYOUTM_LONG_DYNBITS,*_SUB_BUILDUDTDYNLAYOUTM_LONG_LAYOUTALIGN));
if(!qbevent)break;evnt(28172,894,"type.bas");}while(r);
}
}
do{
tmp_long=array_check((*_SUB_BUILDUDTDYNLAYOUTM_LONG_UDT_INDEX)-__ARRAY_LONG_UDTXFDYNSIZE[4],__ARRAY_LONG_UDTXFDYNSIZE[5]);
if (!is_error_pending()) ((int32*)(__ARRAY_LONG_UDTXFDYNSIZE[0]))[tmp_long]=*_SUB_BUILDUDTDYNLAYOUTM_LONG_DYNBITS;
if(!qbevent)break;evnt(28172,897,"type.bas");}while(r);
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free267.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;
}
