// // sub_1004C4FA8 from 0x1004c4fa8 to 0x1004c50ac (260 bytes) // // 2 xrefs: // > sub_1004C4744 @ 0x1004c4d48 // > sub_1004C4DE4 @ 0x1004c4e74 // // 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:22 +0000 // __int64 __fastcall sub_1004C4FA8(__int64 a1) { __int64 result; // x0 int v3; // w0 __int16 v4; // w8 __int64 v5; // x0 __int64 v6; // x0 __int64 v7; // x19 __int64 v8; // x0 __int64 v9; // x0 unsigned __int16 v10; // [xsp+Ch] [xbp-14h] BYREF unsigned __int8 v11; // [xsp+Eh] [xbp-12h] result = *(_QWORD *)(a1 + 1016); if ( result ) { if ( *(_DWORD *)(a1 + 1028) == 30 ) v3 = *(_DWORD *)(result + 816); else v3 = (int)(*(float (__fastcall **)(__int64))(*(_QWORD *)result + 1464LL))(result); if ( sub_10004BBD8(v3) ) { v4 = -1; v11 = -1; } else { v11 = -81; v4 = -20561; } v10 = v4; v5 = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 824), *(int *)(a1 + 1032)); if ( v5 ) (*(void (__fastcall **)(__int64, unsigned __int16 *))(*(_QWORD *)v5 + 1072LL))(v5, &v10); v6 = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 760), *(int *)(a1 + 1032)); if ( v6 ) sub_1001FCCFC(v6, v10 | (v11 << 16)); result = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 768), *(int *)(a1 + 1032)); if ( result ) { v7 = result; v8 = *(_QWORD *)(result + 424); if ( v8 ) (*(void (__fastcall **)(__int64, unsigned __int16 *))(*(_QWORD *)v8 + 960LL))(v8, &v10); result = sub_10038A980(v7); if ( result ) { v9 = sub_10038A980(v7); return (*(__int64 (__fastcall **)(__int64, unsigned __int16 *))(*(_QWORD *)v9 + 960LL))(v9, &v10); } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source