// // sub_1004C4E80 from 0x1004c4e80 to 0x1004c4fa8 (296 bytes) // // 2 xrefs: // > sub_1004C4744 @ 0x1004c4bec // > sub_1004C4DE4 @ 0x1004c4e64 // // 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 // _QWORD *__fastcall sub_1004C4E80(_QWORD *result) { _DWORD *v1; // x8 _QWORD *v2; // x19 int v3; // w22 int v4; // w20 signed int i; // w21 __int64 v6; // x0 __int64 v7; // x1 __int16 v8; // [xsp+Ch] [xbp-54h] BYREF char v9; // [xsp+Eh] [xbp-52h] v1 = (_DWORD *)result[127]; if ( v1 ) { v2 = result; result = (_QWORD *)result[132]; if ( result ) { if ( *((_DWORD *)v2 + 257) == 30 ) { v3 = v1[204]; } else { v3 = (int)(*(float (__fastcall **)(_DWORD *))(*(_QWORD *)v1 + 1464LL))(v1); result = (_QWORD *)v2[132]; } result = (_QWORD *)sub_1002E757C((__int64)result); if ( (int)result >= 1 ) { v4 = (int)result; for ( i = 0; i != v4; ++i ) { v6 = sub_1002E75A0(v2[132], i); if ( v6 ) { if ( v3 == i ) v7 = 125; else v7 = 65; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 912LL))(v6, v7); } result = (_QWORD *)v2[133]; if ( result ) { result = (_QWORD *)sub_1002E757C((__int64)result); if ( i < (int)result ) { result = (_QWORD *)sub_1002E75A0(v2[133], i); if ( result ) { if ( v3 == i ) { v9 = 96; v8 = -160; } else { v9 = -1; v8 = -1; } result = (_QWORD *)(*(__int64 (__fastcall **)(_QWORD *, __int16 *))(*result + 1072LL))(result, &v8); } } } } } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source