// // ParentalGateLayer::onDone from 0x8f949c to 0x8f9610 (372 bytes) // // 2 xrefs: // > @ 0xdee08 // > @ 0x1461cf0 // // 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:57:02 +0000 // __int64 __fastcall ParentalGateLayer::onDone(ParentalGateLayer *this, cocos2d::CCObject *a2) { const char *v3; // x0 ParentalOptionsLayer *v4; // x0 __int64 v5; // x3 void (__fastcall *v6)(ParentalGateLayer *, __int64, __int64); // x23 __int64 v7; // x0 __int64 v9; // x0 __int64 v10[2]; // [xsp+48h] [xbp+48h] BYREF void *v11; // [xsp+58h] [xbp+58h] __int64 v12[2]; // [xsp+60h] [xbp+60h] BYREF void *v13; // [xsp+70h] [xbp+70h] v3 = (char *)this + 721; if ( (*((_BYTE *)this + 720) & 1) != 0 ) v3 = *((const char **)this + 92); v4 = (ParentalOptionsLayer *)atoi(v3); if ( (_DWORD)v4 == *((_DWORD *)this + 188) ) { v9 = ParentalOptionsLayer::create(v4); (*(void (__fastcall **)(__int64))(*(_QWORD *)v9 + 1312LL))(v9); NumberInputLayer::onClose(this, nullptr); return _stack_chk_guard; } ParentalGateLayer::generateChallenge(this); v10[0] = 0; v5 = *(_QWORD *)this; v10[1] = 0; v6 = *(void (__fastcall **)(ParentalGateLayer *, __int64, __int64))(v5 + 464); v11 = nullptr; std::string::__init(v10, "Wrong answer!", 0xDu); v12[0] = 0; v12[1] = 0; v13 = nullptr; std::string::__init(v12, &byte_11B8890, 0); v7 = TextAlertPopup::create(v10, 150, v12, 0.8, 0.6); v6(this, v7, 100); if ( (v12[0] & 1) != 0 ) { operator delete(v13); if ( (v10[0] & 1) == 0 ) return _stack_chk_guard; LABEL_8: operator delete(v11); return _stack_chk_guard; } if ( (v10[0] & 1) != 0 ) goto LABEL_8; return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source