// // sub_1005C6948 from 0x1005c6948 to 0x1005c69ec (164 bytes) // // 2 xrefs: // > sub_10057D348 @ 0x10057d510 // > @ 0x1009ab7e8 // // 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:25 +0000 // __int64 __fastcall sub_1005C6948(__int64 a1, char a2, int a3, int a4) { __int64 v5; // x20 bool v6; // zf int v7; // w8 __int16 v9; // w8 if ( (a2 & 1) == 0 ) { v7 = -1; LABEL_9: *(_DWORD *)(a1 + 556) = v7; return 0; } if ( !a3 ) { if ( (unsigned int)(*(_DWORD *)(a1 + 556) + 1) > 1 ) return 0; v9 = atomic_load((unsigned int *)(a1 + 100)); if ( (v9 & 0x100) != 0 ) v7 = 0; else v7 = *(_DWORD *)(*(_QWORD *)(a1 + 168) + 69864LL) + 1; goto LABEL_9; } v5 = *(_QWORD *)(a1 + 168); if ( v5 ) v6 = a4 == 0; else v6 = 0; if ( v6 ) { sub_100568CC4(*(_QWORD *)(a1 + 168), 3u); *(_DWORD *)(a1 + 556) = 0; sub_100568CE4(v5, 3u); } else { *(_DWORD *)(a1 + 556) = 0; } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source