// // ParentalOptionsLayer::goToPage from 0x8f29fc to 0x8f2cf8 (764 bytes) // // 4 xrefs: // > ParentalOptionsLayer::onNextPage @ 0x8f2d00 // > ParentalOptionsLayer::onPrevPage @ 0x8f2d0c // > ParentalOptionsLayer::init @ 0x8f7040 // > @ 0x879d0 // // 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:56:59 +0000 // __int64 __fastcall ParentalOptionsLayer::goToPage(ParentalOptionsLayer *this, int a2) { unsigned int v2; // w22 int v4; // w0 const char *v5; // x1 __int64 v6; // x19 const char *v7; // x0 size_t v8; // x0 cocos2d::CCArray *v9; // x20 unsigned int v10; // w19 unsigned int v11; // w1 __int64 v12; // x0 __int64 v13; // x19 const char *v14; // x0 size_t v15; // x0 __int64 v16; // x19 __int64 v17; // x19 const char *v18; // x0 size_t v19; // x0 cocos2d::CCArray *v20; // x20 unsigned int v21; // w19 unsigned int v22; // w1 __int64 v23; // x0 __int64 v24; // x19 const char *v25; // x0 size_t v26; // x0 __int64 v27; // x19 __int64 v28; // x2 char *v30; // [xsp+48h] [xbp+48h] char *v31; // [xsp+48h] [xbp+48h] char *v32; // [xsp+48h] [xbp+48h] char *v33; // [xsp+48h] [xbp+48h] __int64 v34; // [xsp+50h] [xbp+50h] BYREF __int64 v35; // [xsp+58h] [xbp+58h] void *v36; // [xsp+60h] [xbp+60h] v2 = a2; v4 = *((_DWORD *)this + 167); if ( v4 < a2 ) { v2 = 0; } else if ( a2 < 0 ) { v2 = v4; } v5 = (const char *)*((unsigned int *)this + 165); if ( (_DWORD)v5 != v2 ) { v6 = *((_QWORD *)this + 85); v7 = (const char *)ParentalOptionsLayer::objectKey(this, v5); v34 = 0; v30 = (char *)v7; v35 = 0; v36 = nullptr; v8 = strlen(v7); std::string::__init(&v34, v30, v8); v9 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(v6, &v34); if ( (v34 & 1) != 0 ) operator delete(v36); v10 = 0; if ( v9 ) { while ( v10 < (unsigned int)cocos2d::CCArray::count(v9) ) { v11 = v10++; v12 = cocos2d::CCArray::objectAtIndex(v9, v11); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v12 + 344LL))(v12, 0); } } v13 = *((_QWORD *)this + 85); v14 = (const char *)ParentalOptionsLayer::layerKey(this, (const char *)*((unsigned int *)this + 165)); v34 = 0; v31 = (char *)v14; v35 = 0; v36 = nullptr; v15 = strlen(v14); std::string::__init(&v34, v31, v15); v16 = cocos2d::CCDictionary::objectForKey(v13, &v34); if ( (v34 & 1) != 0 ) { operator delete(v36); if ( !v16 ) { LABEL_14: v17 = *((_QWORD *)this + 85); v18 = (const char *)ParentalOptionsLayer::objectKey(this, (const char *)v2); v34 = 0; v32 = (char *)v18; v35 = 0; v36 = nullptr; v19 = strlen(v18); std::string::__init(&v34, v32, v19); v20 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(v17, &v34); if ( (v34 & 1) != 0 ) operator delete(v36); v21 = 0; if ( v20 ) { while ( v21 < (unsigned int)cocos2d::CCArray::count(v20) ) { v22 = v21++; v23 = cocos2d::CCArray::objectAtIndex(v20, v22); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v23 + 344LL))(v23, 1); } } v24 = *((_QWORD *)this + 85); v25 = (const char *)ParentalOptionsLayer::layerKey(this, (const char *)v2); v34 = 0; v33 = (char *)v25; v35 = 0; v36 = nullptr; v26 = strlen(v25); std::string::__init(&v34, v33, v26); v27 = cocos2d::CCDictionary::objectForKey(v24, &v34); if ( (v34 & 1) != 0 ) { operator delete(v36); if ( !v27 ) goto LABEL_23; } else if ( !v27 ) { LABEL_23: v28 = *((_QWORD *)this + 92); *((_DWORD *)this + 165) = v2; (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v28 + 344LL))(v28, (int)v2 > 0); (*(void (__fastcall **)(_QWORD, bool))(**((_QWORD **)this + 93) + 344LL))( *((_QWORD *)this + 93), *((_DWORD *)this + 165) < *((_DWORD *)this + 167)); return _stack_chk_guard; } (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v27 + 344LL))(v27, 1); goto LABEL_23; } } else if ( !v16 ) { goto LABEL_14; } (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v16 + 344LL))(v16, 0); goto LABEL_14; } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source