// // sub_1004A0C04 from 0x1004a0c04 to 0x1004a0cb0 (172 bytes) // // 1 xrefs: // > sub_10049E474 @ 0x10049ee98 // // 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_1004A0C04(__int64 a1) { __int64 result; // x0 int v3; // w10 _BOOL4 v4; // w8 __int64 v5; // x9 unsigned int v6; // w20 __int64 v7; // x0 __int64 v8; // x9 result = CCMenuItemToggler::toggle(*(_QWORD *)(a1 + 1080), 0); v3 = *(_DWORD *)(a1 + 1132); v4 = v3 != 1; *(_DWORD *)(a1 + 1132) = v4; v5 = *(_QWORD *)(a1 + 680); if ( v5 ) { *(_BYTE *)(v5 + 1485) = v3 != 1; *(_BYTE *)(v5 + 1486) = 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 + 1485) = *(_DWORD *)(a1 + 1132) == 1; *(_BYTE *)(v7 + 1486) = 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