// // sub_1004A0CB0 from 0x1004a0cb0 to 0x1004a0d60 (176 bytes) // // 1 xrefs: // > sub_10049E474 @ 0x10049ef14 // // 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:02 +0000 // __int64 __fastcall sub_1004A0CB0(__int64 a1) { __int64 result; // x0 int v3; // w9 int v4; // w8 __int64 v5; // x10 unsigned int v6; // w20 __int64 v7; // x0 __int64 v8; // x9 result = CCMenuItemToggler::toggle(*(_QWORD *)(a1 + 1072), 0); v3 = *(_DWORD *)(a1 + 1132); v4 = 2 * (v3 != 2); *(_DWORD *)(a1 + 1132) = v4; v5 = *(_QWORD *)(a1 + 680); if ( v5 ) { *(_BYTE *)(v5 + 1486) = v3 != 2; *(_BYTE *)(v5 + 1485) = 0; } else { result = *(_QWORD *)(a1 + 688); if ( result ) { result = sub_1002E757C(result); if ( (_DWORD)result ) { v6 = 0; do { v7 = sub_1002E75A0(*(_QWORD *)(a1 + 688), v6); *(_BYTE *)(v7 + 1486) = *(_DWORD *)(a1 + 1132) == 2; *(_BYTE *)(v7 + 1485) = 0; ++v6; result = sub_1002E757C(*(_QWORD *)(a1 + 688)); } while ( v6 < (unsigned int)result ); } } else { v8 = *(_QWORD *)(a1 + 1144); if ( v8 ) *(_DWORD *)(v8 + 88) = v4; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source