// // sub_1004CB010 from 0x1004cb010 to 0x1004cb090 (128 bytes) // // 3 xrefs: // > sub_1004CB5F0 @ 0x1004cb610 // > sub_1004CB79C @ 0x1004cb7c0 // > sub_1004CB8E0 @ 0x1004cb8f0 // // 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:06:25 +0000 // __int64 __fastcall sub_1004CB010(__int64 a1, int a2) { __int64 result; // x0 unsigned int v5; // w21 result = 0; if ( a2 >= 1 && *(_QWORD *)(a1 + 152) ) { if ( (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 152)) ) { v5 = 0; while ( 1 ) { result = sub_1002E75A0(*(_QWORD *)(a1 + 152), v5); if ( result ) { if ( *(_DWORD *)(result + 320) == a2 ) break; } if ( ++v5 >= (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 152)) ) return 0; } } else { return 0; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source