{"name": "Sys_Sleep", "code": "int __fastcall Sys_Sleep ( int @@a1@@ ) { int @@result@@ ; fd_set @@readfds@@ ; struct timeval @@timeout@@ ; unsigned int @@v4@@ ; int @@v5@@ ; if ( @@a1@@ ) { @@result@@ = * ( _DWORD * ) ( com_dedicated + Number L ) ; if ( @@result@@ ) { @@result@@ = ttycon_on ; if ( ttycon_on == Number ) { memset ( & @@readfds@@ , Number , sizeof ( @@readfds@@ ) ) ; @@v5@@ = Number ; @@v4@@ = ( unsigned int ) & @@timeout@@ ; @@readfds@@ . fds_bits [ Number ] |= Number ; if ( @@a1@@ >= Number ) { @@timeout@@ . tv_sec = @@a1@@ / Number ; @@timeout@@ . tv_usec = Number * ( @@a1@@ % Number ) ; @@result@@ = select ( Number , & @@readfds@@ , Number L , Number L , & @@timeout@@ ) ; } else { @@result@@ = select ( Number , & @@readfds@@ , Number L , Number L , Number L ) ; } } else if ( @@a1@@ < Number ) { @@result@@ = usleep ( Number ) ; } } else if ( @@a1@@ > Number ) { @@result@@ = com_yieldCPU ; if ( com_yieldCPU ) { @@result@@ = * ( _DWORD * ) ( com_yieldCPU + Number L ) ; if ( @@result@@ > Number ) { if ( * ( _DWORD * ) ( com_yieldCPU + Number L ) == Number ) { if ( @@a1@@ > Number ) return usleep ( Number ) ; } else if ( * ( _DWORD * ) ( com_yieldCPU + Number L ) != Number ) { return usleep ( Number * @@a1@@ ) ; } return usleep ( Number * ( @@a1@@ - Number ) ) ; } } } } return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "int", "s": 4}, "location": "r56"}, {"n": "result", "t": {"T": 1, "n": "int", "s": 4}, "location": "r8"}, {"n": "readfds", "t": {"T": 6, "n": "fd_set", "l": [{"T": 4, "n": "fds_bits", "t": "__fd_mask[16]", "s": 128}]}, "location": "s160"}, {"n": "timeout", "t": {"T": 6, "n": "struct timeval", "l": [{"T": 4, "n": "tv_sec", "t": "__time_t", "s": 8}, {"T": 4, "n": "tv_usec", "t": "__suseconds_t", "s": 8}]}, "location": "s32"}, {"n": "v5", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}, {"n": "v4", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s8"}]}