// // GameLevelOptionsLayer::didToggle from 0x10037fac0 to 0x10037fc64 (420 bytes) // // 1 xrefs: // > @ 0x100936ce0 // // 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:03:29 +0000 // __int64 *__fastcall GameLevelOptionsLayer::didToggle(__int64 *result, int a2) { __int64 *v3; // x19 __int64 v4; // x8 int v5; // w22 _BOOL4 v6; // w10 int v7; // w21 __int64 *v8; // x0 __int64 v9; // x0 _BOOL8 v11; // x1 __int64 v12; // x9 void *v13; // x19 void *__p[2]; // [xsp+0h] [xbp-40h] BYREF char v15; // [xsp+17h] [xbp-29h] int v16; // [xsp+1Ch] [xbp-24h] BYREF v3 = result; if ( a2 > 2 ) { if ( (unsigned int)(a2 - 3) >= 2 ) { if ( a2 == 5 ) *(_BYTE *)(result[141] + 1528) ^= 1u; } else { v4 = result[141]; v5 = *(_DWORD *)(v4 + 1436); v6 = a2 != 3; if ( v5 != 1 ) v6 = 1; if ( a2 == 3 ) v7 = v6; else v7 = 2 * (v5 != 2); *(_DWORD *)(v4 + 1436) = v7; v16 = 3; v8 = sub_100019268(result + 135, &v16); if ( v8 ) { v9 = v8[3]; if ( v9 ) { v11 = a2 == 3 && v5 != 1; CCMenuItemToggler::toggle(v9, v11); } } v16 = 4; result = sub_100019268(v3 + 135, &v16); if ( result ) { result = (__int64 *)result[3]; if ( result ) return (__int64 *)CCMenuItemToggler::toggle((__int64)result, v7 == 2); } } return result; } if ( a2 != 1 ) { if ( a2 == 2 ) *(_BYTE *)(result[141] + 770) ^= 1u; return result; } v12 = result[141]; if ( (*(char *)(v12 + 1495) & 0x8000000000000000LL) != 0 ) { if ( *(_QWORD *)(v12 + 1480) ) goto LABEL_27; return (__int64 *)sub_10037FC80(result); } if ( !*(_BYTE *)(v12 + 1495) ) return (__int64 *)sub_10037FC80(result); LABEL_27: sub_100009900(__p, "Changing LDM will delete your saved checkpoint for this level."); v13 = FLAlertLayer::create_1( (__int64)(v3 + 140), (__int64)"Low Detail Mode", (__int64)__p, (__int64)"Cancel", (__int64)"OK", 380.0); if ( v15 < 0 ) operator delete(__p[0]); return (__int64 *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v13 + 1312LL))(v13); }
GD Web Decomp Icon

GD Web Decomp

Raw Source