// // ParentalOptionsLayer::addMasterToggle from 0x100116d58 to 0x1001172a8 (1360 bytes) // // 2 xrefs: // > ParentalOptionsLayer::init @ 0x1001169bc // > ParentalOptionsLayer::init @ 0x1001169e4 // // 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 10:59:11 +0000 // __int64 __fastcall ParentalOptionsLayer::addMasterToggle(_QWORD *a1, char *a2, char *a3, __int64 a4, char *a5) { __int64 v10; // x0 __int64 v11; // x20 __int64 v12; // x0 __int64 v13; // x0 __int64 v14; // x25 __int64 v15; // x21 __int64 v16; // x0 __int64 v17; // x22 __int64 v18; // x24 __int64 v19; // x23 int v20; // w0 __int64 v21; // x28 __int64 v22; // x0 __int64 v23; // x28 __int64 v24; // x27 _BYTE *ToggleButton; // x25 __int64 v26; // x21 _BOOL4 v27; // w26 __int64 v28; // x23 double v29; // d0 __int64 result; // x0 __int64 v31; // x23 __int64 v32; // x22 __int64 v33; // x0 char *CString; // x0 __int64 v35; // x22 __int64 v36; // x22 __n128 v37; // q0 float32x2_t *v38; // x19 double v39; // d0 __n128 v40; // q0 char *__s; // [xsp+20h] [xbp-C0h] void *v42[2]; // [xsp+28h] [xbp-B8h] BYREF char v43; // [xsp+3Fh] [xbp-A1h] void *v44[2]; // [xsp+40h] [xbp-A0h] BYREF char v45; // [xsp+57h] [xbp-89h] float32x2_t v46; // [xsp+58h] [xbp-88h] BYREF void *__p[2]; // [xsp+60h] [xbp-80h] BYREF char v48; // [xsp+77h] [xbp-69h] __int64 v49; // [xsp+78h] [xbp-68h] BYREF v10 = cocos2d::CCDirector::sharedDirector(a1); cocos2d::CCDirector::getWinSize(&v49, v10); v11 = atoi(a3); v12 = GameManager::sharedState(v11); GameManager::getGameVariable(v12, a3); v14 = v13; v15 = a1[86]; sub_100009900(__p, a3); v16 = sub_1003064AC(__p); cocos2d::CCDictionary::setObject_1(v15, v16, (int)v11); __s = a5; v17 = a4; if ( v48 < 0 ) operator delete(__p[0]); v18 = sub_100117A08(a1, 0); v19 = ParentalOptionsLayer::objectsForPage(a1, 0); v20 = sub_100117C04(a1, 0); sub_1000262BC( (float *)&v46, (float)(*(float *)&v49 * 0.5) + -120.0, (float)((float)(*((float *)&v49 + 1) * 0.5) + 50.0) - (float)(80 * v20)); sub_1000262CC((float *)__p, 0.0, 0.0, 80.0, 80.0); v21 = cocos2d::extension::CCScale9Sprite::create("GJ_square05.png", __p); sub_1000262C4((float *)__p, 340.0, 60.0); (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v21 + 320LL))(v21, __p); sub_1000262BC((float *)__p, *(float *)&v49 * 0.5, v46.f32[1]); (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v21 + 184LL))(v21, __p); v22 = (*(__int64 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v18 + 464LL))(v18, v21, 0xFFFFFFFFLL); v23 = sub_1002E736C(v22); sub_100009900(v44, a2); v24 = a1[69]; sub_1000262F4(__p, (double *)&v46); sub_1000262BC((float *)v42, 8.0, 0.0); ToggleButton = (_BYTE *)GameToolbox::createToggleButton( (__int64 *)v44, (__int64)sub_100117C8C, 0, v14, v24, (float32x2_t *)__p, (__int64)a1, v18, 0.9, 0.55, 120.0, (float *)v42, (__int64)"bigFont.fnt", 0, 0, v23); if ( v45 < 0 ) operator delete(v44[0]); (*(void (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)ToggleButton + 72LL))(ToggleButton, v11); CCMenuItemToggler::setSizeMult(ToggleButton, 1.2); ToggleButton[393] = 1; ParentalOptionsLayer::incrementCountForPage(a1, 0); v26 = v19; sub_1002E74E0(v19, ToggleButton); sub_100009900(__p, a3); sub_100009900(v42, "0218"); v27 = sub_1000045BC(__p, v42); if ( v43 < 0 ) operator delete(v42[0]); if ( v48 < 0 ) { operator delete(__p[0]); if ( v27 ) goto LABEL_9; } else if ( v27 ) { LABEL_9: a1[87] = ToggleButton; sub_1002E7570(a1[90], v23); goto LABEL_12; } a1[88] = ToggleButton; LABEL_12: sub_1000262F4(__p, &dbl_1009F3A50); v28 = cocos2d::CCLabelBMFont::create(v17, "chatFont.fnt", 0, __p, -1.0); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v28 + 160LL))(v28, 0.6); sub_1000262BC((float *)__p, 0.0, 0.5); (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v28 + 296LL))(v28, __p); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v18 + 456LL))(v18, v28); sub_1000262BC((float *)v42, 155.0, 0.0); *(float32x2_t *)&v29 = sub_100026318(&v46, (float32x2_t *)v42, (float32x2_t *)__p); (*(void (__fastcall **)(__int64, void **, double))(*(_QWORD *)v28 + 184LL))(v28, __p, v29); (*(void (__fastcall **)(_BYTE *, _QWORD))(*(_QWORD *)ToggleButton + 344LL))(ToggleButton, 0); result = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v18 + 344LL))(v18, 0); if ( __s ) { v31 = a1[85]; sub_100009900(__p, __s); v32 = sub_1003064AC(__p); v33 = sub_1003065B0("info_%i", v11); CString = (char *)cocos2d::CCString::getCString(v33); sub_100009900(v42, CString); cocos2d::CCDictionary::setObject(v31, v32, v42); if ( v43 < 0 ) operator delete(v42[0]); if ( v48 < 0 ) operator delete(__p[0]); v35 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_infoIcon_001.png"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v35 + 160LL))(v35, 0.6); v36 = CCMenuItemSpriteExtra::create(v35, 0, a1, sub_100117D64, 0); v37 = CCMenuItemSpriteExtra::setSizeMult(2.0); (*(void (__fastcall **)(__int64, __int64, __n128))(*(_QWORD *)v36 + 72LL))(v36, v11, v37); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)a1[69] + 456LL))(a1[69], v36); v38 = (float32x2_t *)(*(__int64 (__fastcall **)(_BYTE *))(*(_QWORD *)ToggleButton + 192LL))(ToggleButton); sub_1000262BC((float *)v42, -27.0, 16.0); *(float32x2_t *)&v39 = sub_100026318(v38, (float32x2_t *)v42, (float32x2_t *)__p); (*(void (__fastcall **)(__int64, void **, double))(*(_QWORD *)v36 + 184LL))(v36, __p, v39); v40 = sub_1002E74E0(v26, v36); return (*(__int64 (__fastcall **)(__int64, _QWORD, __n128))(*(_QWORD *)v36 + 344LL))(v36, 0, v40); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source