// // AccountLayer::createToggleButton from 0x583cbc to 0x583e58 (412 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:52:56 +0000 // int __fastcall AccountLayer::createToggleButton( int a1, int a2, int a3, int a4, bool a5, const cocos2d::CCPoint *a6, int a7) { int v9; // r7 const char *v10; // r1 int v11; // r6 cocos2d::CCNodeRGBA *v12; // r10 const char *v13; // r2 cocos2d::CCLabelBMFont *v14; // r0 int v15; // r4 void (__fastcall *v16)(int, _BYTE *); // r9 void (__fastcall *v17)(int, _BYTE *); // r9 float *v18; // r0 void (__fastcall *v19)(int, _DWORD); // r6 float *v20; // r0 int (__fastcall *v21)(int, int); // r6 int v22; // r1 void (__fastcall *v24)(cocos2d::CCNodeRGBA *, _BYTE *); // [sp+Ch] [bp-28h] char v25[4]; // [sp+10h] [bp-24h] BYREF int v26; // [sp+14h] [bp-20h] _BYTE v27[8]; // [sp+1Ch] [bp-18h] BYREF _BYTE v28[8]; // [sp+24h] [bp-10h] BYREF *(_DWORD *)v25 = a3; v26 = a4; v9 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_checkOn_001.png", v25); v11 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_checkOff_001.png", v10); (*(void (__fastcall **)(int, int))(*(_DWORD *)v9 + 80))(v9, 1061997773); (*(void (__fastcall **)(int, int))(*(_DWORD *)v11 + 80))(v11, 1061997773); v12 = CCMenuItemToggler::create(v9, v11, a1, *(int *)v25, v26); CCMenuItemToggler::toggle(v12, a5); (*(void (__fastcall **)(const cocos2d::CCPoint *, cocos2d::CCNodeRGBA *))(*(_DWORD *)a6 + 228))(a6, v12); v24 = *(void (__fastcall **)(cocos2d::CCNodeRGBA *, _BYTE *))(*(_DWORD *)v12 + 92); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v28, a6); v24(v12, v28); CCMenuItemToggler::setSizeMult(v12, 1.5); if ( (*(_BYTE *)a2 & 1) != 0 ) v14 = *(cocos2d::CCLabelBMFont **)(a2 + 8); else v14 = (cocos2d::CCLabelBMFont *)(a2 + 1); v15 = cocos2d::CCLabelBMFont::create(v14, "bigFont.fnt", v13); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 464) + 228))(*(_DWORD *)(a1 + 464), v15); v16 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v15 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v28, 0.0, 0.5); v16(v15, v28); v17 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v15 + 92); v18 = (float *)(*(int (__fastcall **)(int))(*(_DWORD *)v9 + 164))(v9); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, (float)((float)(*v18 * 0.5) * 0.8) + 8.0, 0.0); cocos2d::CCPoint::operator+(v28, a7, v27); v17(v15, v28); if ( *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v15 + 164))(v15) > 120.0 ) { v19 = *(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v15 + 80); v20 = (float *)(*(int (__fastcall **)(int))(*(_DWORD *)v15 + 164))(v15); v19(v15, 120.0 / *v20); } v21 = *(int (__fastcall **)(int, int))(*(_DWORD *)v15 + 80); if ( (*(float (__fastcall **)(int))(*(_DWORD *)v15 + 84))(v15) > 0.35 ) v22 = 1051931443; else v22 = (*(int (__fastcall **)(int))(*(_DWORD *)v15 + 84))(v15); return v21(v15, v22); }
GD Web Decomp Icon

GD Web Decomp

Raw Source