// // sub_1005C0B8C from 0x1005c0b8c to 0x1005c0c20 (148 bytes) // // 2 xrefs: // > @ 0x1009ab6e8 // > @ 0x1009ab780 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:09:21 +0000 // __int64 __fastcall sub_1005C0B8C(__int64 a1, char a2, int a3) { __int64 v4; // x20 int v5; // w8 __int16 v6; // w8 if ( (a2 & 1) == 0 ) { v5 = -1; goto LABEL_6; } if ( !a3 ) { if ( (unsigned int)(*(_DWORD *)(a1 + 716) + 1) > 1 ) return 0; v6 = atomic_load((unsigned int *)(a1 + 100)); if ( (v6 & 0x100) != 0 ) { LABEL_10: *(_DWORD *)(a1 + 716) = 0; return 0; } v5 = *(_DWORD *)(*(_QWORD *)(a1 + 168) + 69864LL) + 1; LABEL_6: *(_DWORD *)(a1 + 716) = v5; return 0; } v4 = *(_QWORD *)(a1 + 168); if ( !v4 ) goto LABEL_10; sub_100568CC4(*(_QWORD *)(a1 + 168), 3u); *(_DWORD *)(a1 + 716) = 0; sub_100568CE4(v4, 3u); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source