// // sub_1004E6A64 from 0x1004e6a64 to 0x1004e6b40 (220 bytes) // // 2 xrefs: // > sub_1004E11C0 @ 0x1004e1500 // > sub_1004E81D8 @ 0x1004e8550 // // 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:40 +0000 // __int64 __usercall sub_1004E6A64@(int a1@, unsigned __int64 a2@) { __int64 result; // x0 __int64 v5; // x0 __int64 *v6; // x20 __int64 v7; // x8 __int64 v8; // x22 __int64 v9; // x23 _DWORD *v10; // [xsp+8h] [xbp-38h] BYREF *(_OWORD *)a2 = 0u; *(_OWORD *)(a2 + 16) = 0u; *(_DWORD *)(a2 + 32) = 1065353216; result = GameManager::sharedState(); if ( *(_QWORD *)(result + 552) ) { result = GameManager::sharedState(); if ( *(_QWORD *)(*(_QWORD *)(result + 552) + 3272LL) ) { v5 = GameManager::sharedState(); result = (__int64)sub_10040E10C(*(_QWORD *)(*(_QWORD *)(v5 + 552) + 3272LL), a1); v6 = (__int64 *)result; v7 = *(_QWORD *)result; if ( (int)((*(_QWORD *)(result + 8) - *(_QWORD *)result) >> 2) >= 1 ) { v8 = 0; v9 = 0; do { v10 = (_DWORD *)(v7 + v8); result = (__int64)sub_10001DBA4(a2, (int *)(v7 + v8), (__int64)&unk_10077002E, &v10); *(_DWORD *)(result + 20) = v9++; v7 = *v6; v8 += 4; } while ( v9 < (int)((unsigned __int64)(v6[1] - *v6) >> 2) ); } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source