void SUB_IDERESTRICT417(int32*_SUB_IDERESTRICT417_LONG_P417){
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 "data407.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{
*_SUB_IDERESTRICT417_LONG_X= 0 ;
if(!qbevent)break;evnt(28182,18808,"ide_methods.bas");}while(r);
S_64735:;
if ((*_SUB_IDERESTRICT417_LONG_P417& 4 )||is_error_pending()){
if(qbevent){evnt(28182,18809,"ide_methods.bas");if(r)goto S_64735;}
do{
*_SUB_IDERESTRICT417_LONG_X=*_SUB_IDERESTRICT417_LONG_X+ 1 ;
if(!qbevent)break;evnt(28182,18809,"ide_methods.bas");}while(r);
}
S_64738:;
if ((*_SUB_IDERESTRICT417_LONG_P417& 8 )||is_error_pending()){
if(qbevent){evnt(28182,18810,"ide_methods.bas");if(r)goto S_64738;}
do{
*_SUB_IDERESTRICT417_LONG_X=*_SUB_IDERESTRICT417_LONG_X+ 1 ;
if(!qbevent)break;evnt(28182,18810,"ide_methods.bas");}while(r);
}
S_64741:;
if ((-(*_SUB_IDERESTRICT417_LONG_X> 1 ))||is_error_pending()){
if(qbevent){evnt(28182,18811,"ide_methods.bas");if(r)goto S_64741;}
do{
*_SUB_IDERESTRICT417_LONG_P417=*_SUB_IDERESTRICT417_LONG_P417& 243 ;
if(!qbevent)break;evnt(28182,18811,"ide_methods.bas");}while(r);
}
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free407.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;
}
