// // UIOptionsLayer::toggleUIGroup from 0xa2cbe8 to 0xa2cd84 (412 bytes) // // 3 xrefs: // > UIOptionsLayer::init @ 0xa2e1b8 // > UIOptionsLayer::ccTouchBegan @ 0xa2efec // > @ 0x45358 // // 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 12:59:45 +0000 // __int64 __fastcall UIOptionsLayer::toggleUIGroup(UIOptionsLayer *this, int a2) { __int64 v4; // x0 char *v5; // x1 __int64 v6; // x3 __int64 v8[2]; // [xsp+30h] [xbp+30h] BYREF void *v9; // [xsp+40h] [xbp+40h] if ( *((_DWORD *)this + 264) != a2 ) { v8[0] = 0; v8[1] = 0; v9 = nullptr; std::string::__init(v8, "P1 Move", 7u); switch ( a2 ) { case 2: std::string::assign(v8, "P2 Move"); break; case 3: std::string::assign(v8, "P1 Jump"); break; case 4: std::string::assign(v8, "P2 Jump"); break; } v4 = *((_QWORD *)this + 131); if ( v4 ) { v5 = (char *)v8 + 1; if ( (v8[0] & 1) != 0 ) v5 = (char *)v9; (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v4 + 928LL))(v4, v5); } v6 = *(_QWORD *)this; *((_DWORD *)this + 264) = a2; (*(void (__fastcall **)(UIOptionsLayer *, __int64, bool))(v6 + 1352))(this, 1, a2 == 1); (*(void (__fastcall **)(UIOptionsLayer *, __int64, bool))(*(_QWORD *)this + 1352LL))(this, 2, a2 == 2); (*(void (__fastcall **)(UIOptionsLayer *, __int64, bool))(*(_QWORD *)this + 1352LL))(this, 3, a2 == 3); (*(void (__fastcall **)(UIOptionsLayer *, __int64, bool))(*(_QWORD *)this + 1352LL))(this, 4, a2 == 4); if ( (v8[0] & 1) != 0 ) operator delete(v9); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source