// // sub_1004B5D08 from 0x1004b5d08 to 0x1004b5d6c (100 bytes) // // 10 xrefs: // > sub_10044C4AC @ 0x10044c520 // > sub_10044C4AC @ 0x10044c52c // > sub_10044CEC4 @ 0x10044cf48 // > sub_10044CEC4 @ 0x10044cf54 // > sub_10044CEC4 @ 0x10044cfc0 // > sub_10044CEC4 @ 0x10044cfcc // > sub_10044E9B4 @ 0x10044eaac // > sub_1004AC844 @ 0x1004ac8c8 // > sub_1004D5434 @ 0x1004d54b8 // > sub_1004D5434 @ 0x1004d54c8 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // __int64 __fastcall sub_1004B5D08(_QWORD *a1) { __int64 result; // x0 semaphore_t semaphore; // [xsp+Ch] [xbp-14h] BYREF semaphore = 0; if ( !a1 ) return 31; result = semaphore_create(mach_task_self_, &semaphore, 0, 0); if ( (_DWORD)result ) return 28; *a1 = semaphore; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source