//
// PauseLayer::createToggleButton from 0x48ef8c to 0x48f0c8 (316 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:49:36 +0000
//
int __fastcall PauseLayer::createToggleButton(
int a1,
int a2,
int a3,
int a4,
bool a5,
const cocos2d::CCPoint *a6,
int a7)
{
int v9; // r9
const char *v10; // r1
int v11; // r7
cocos2d::CCNodeRGBA *v12; // r10
const char *v13; // r2
cocos2d::CCLabelBMFont *v14; // r0
cocos2d::CCLabelBMFont *v15; // r4
void (__fastcall *v16)(cocos2d::CCLabelBMFont *, _BYTE *); // r5
void (__fastcall *v17)(cocos2d::CCLabelBMFont *, _BYTE *); // r10
float *v18; // r0
void (__fastcall *v20)(cocos2d::CCNodeRGBA *, _BYTE *); // [sp+Ch] [bp-28h]
char v21[4]; // [sp+10h] [bp-24h] BYREF
int v22; // [sp+14h] [bp-20h]
_BYTE v23[8]; // [sp+1Ch] [bp-18h] BYREF
_BYTE v24[8]; // [sp+24h] [bp-10h] BYREF
*(_DWORD *)v21 = a3;
v22 = a4;
v9 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_checkOn_001.png", v21);
v11 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_checkOff_001.png", v10);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v9 + 80))(v9, 1058642330);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v11 + 80))(v11, 1058642330);
v12 = CCMenuItemToggler::create(v9, v11, a1, *(int *)v21, v22);
CCMenuItemToggler::toggle(v12, a5);
(*(void (__fastcall **)(const cocos2d::CCPoint *, cocos2d::CCNodeRGBA *))(*(_DWORD *)a6 + 228))(a6, v12);
v20 = *(void (__fastcall **)(cocos2d::CCNodeRGBA *, _BYTE *))(*(_DWORD *)v12 + 92);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v24, a6);
v20(v12, v24);
CCMenuItemToggler::setSizeMult(v12, 1.5);
if ( (*(_BYTE *)a2 & 1) != 0 )
v14 = *(cocos2d::CCLabelBMFont **)(a2 + 8);
else
v14 = (cocos2d::CCLabelBMFont *)(a2 + 1);
v15 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v14, "bigFont.fnt", v13);
(*(void (__fastcall **)(_DWORD, cocos2d::CCLabelBMFont *))(**(_DWORD **)(a1 + 484) + 228))(*(_DWORD *)(a1 + 484), v15);
v16 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _BYTE *))(*(_DWORD *)v15 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, 0.0, 0.5);
v16(v15, v24);
v17 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _BYTE *))(*(_DWORD *)v15 + 92);
v18 = (float *)(*(int (__fastcall **)(int))(*(_DWORD *)v9 + 164))(v9);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v23, (float)((float)(*v18 * 0.5) * 0.6) + 6.0, 0.0);
cocos2d::CCPoint::operator+(v24, a7, v23);
v17(v15, v24);
return cocos2d::CCLabelBMFont::limitLabelWidth(v15, 80.0, 0.4, 0.0);
}