// // MoreVideoOptionsLayer::addToggle from 0x1001156d0 to 0x100115a20 (848 bytes) // // 1 xrefs: // > MoreVideoOptionsLayer::init @ 0x1001154e0 // // 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:10 +0000 // __int64 __fastcall MoreVideoOptionsLayer::addToggle(__int64 a1, char *a2, char *a3, char *a4) { int v8; // w8 __int64 v9; // x23 int v10; // w8 __int64 v11; // x20 __int64 v12; // x0 __int64 v13; // x0 __int64 v14; // x22 __int64 v15; // x26 __int64 v16; // x0 __int64 v17; // x24 __int64 v18; // x25 __int64 ToggleButton; // x22 __int64 v20; // x23 __n128 v21; // q0 __int64 result; // x0 __int64 v23; // x24 __int64 v24; // x21 __int64 v25; // x0 char *CString; // x0 __int64 v27; // x21 __int64 v28; // x21 __n128 v29; // q0 float32x2_t *v30; // x19 double v31; // d0 __n128 v32; // q0 void *v33[2]; // [xsp+20h] [xbp-90h] BYREF char v34; // [xsp+37h] [xbp-79h] void *v35[2]; // [xsp+38h] [xbp-78h] BYREF char v36; // [xsp+4Fh] [xbp-61h] __int64 v37; // [xsp+50h] [xbp-60h] BYREF void *__p[2]; // [xsp+58h] [xbp-58h] BYREF char v39; // [xsp+6Fh] [xbp-41h] v8 = *(_DWORD *)(a1 + 664); *(_DWORD *)(a1 + 664) = v8 + 1; if ( v8 < 10 ) v9 = 0; else v9 = (unsigned int)(int)(float)(v8 / 0xAu); v10 = *(_DWORD *)(a1 + 668); if ( v10 <= (int)v9 ) v10 = v9; *(_DWORD *)(a1 + 668) = v10; v11 = atoi(a3); v12 = GameManager::sharedState(v11); GameManager::getGameVariable(v12, a3); v14 = v13; v15 = *(_QWORD *)(a1 + 680); sub_100009900(__p, a3); v16 = sub_1003064AC(__p); cocos2d::CCDictionary::setObject_1(v15, v16, (int)v11); if ( v39 < 0 ) operator delete(__p[0]); MoreVideoOptionsLayer::nextPosition(&v37, a1, v9); v17 = MoreVideoOptionsLayer::layerForPage(a1, v9); sub_100009900(v35, a2); v18 = *(_QWORD *)(a1 + 552); sub_1000262F4(__p, (double *)&v37); sub_1000262BC((float *)v33, 8.0, 0.0); ToggleButton = GameToolbox::createToggleButton( (__int64 *)v35, (__int64)MoreVideoOptionsLayer::onToggle, 0, v14, v18, (float32x2_t *)__p, a1, v17, 0.8, 0.5, 110.0, (float *)v33, (__int64)"bigFont.fnt", 0, 0, 0); if ( v36 < 0 ) operator delete(v35[0]); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)ToggleButton + 72LL))(ToggleButton, v11); CCMenuItemToggler::setSizeMult(ToggleButton, 1.0); MoreVideoOptionsLayer::incrementCountForPage(a1, v9); v20 = MoreVideoOptionsLayer::objectsForPage(a1, v9); v21 = sub_1002E74E0(v20, ToggleButton); (*(void (__fastcall **)(__int64, _QWORD, __n128))(*(_QWORD *)ToggleButton + 344LL))(ToggleButton, 0, v21); result = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v17 + 344LL))(v17, 0); if ( a4 ) { v23 = *(_QWORD *)(a1 + 672); sub_100009900(__p, a4); v24 = sub_1003064AC(__p); v25 = sub_1003065B0("info_%i", v11); CString = (char *)cocos2d::CCString::getCString(v25); sub_100009900(v33, CString); cocos2d::CCDictionary::setObject(v23, v24, v33); if ( v34 < 0 ) operator delete(v33[0]); if ( v39 < 0 ) operator delete(__p[0]); v27 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_infoIcon_001.png"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v27 + 160LL))(v27, 0.5); v28 = CCMenuItemSpriteExtra::create(v27, 0, a1, MoreVideoOptionsLayer::onInfo, 0); v29 = CCMenuItemSpriteExtra::setSizeMult(2.0); (*(void (__fastcall **)(__int64, __int64, __n128))(*(_QWORD *)v28 + 72LL))(v28, v11, v29); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v28); v30 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)ToggleButton + 192LL))(ToggleButton); sub_1000262BC((float *)v33, -18.0, 16.0); *(float32x2_t *)&v31 = sub_100026318(v30, (float32x2_t *)v33, (float32x2_t *)__p); (*(void (__fastcall **)(__int64, void **, double))(*(_QWORD *)v28 + 184LL))(v28, __p, v31); v32 = sub_1002E74E0(v20, v28); return (*(__int64 (__fastcall **)(__int64, _QWORD, __n128))(*(_QWORD *)v28 + 344LL))(v28, 0, v32); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source