//
// PauseLayer::createToggleButton from 0x6c6cbc to 0x6c6eb0 (500 bytes)
//
// 1 xrefs:
// > ??> @ 0x4d208
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall PauseLayer::createToggleButton(
cocos2d::CCObject *a1,
__int64 a2,
void (__cdecl *a3)(cocos2d::CCObject *),
size_t a4,
bool a5,
cocos2d::CCNode *a6,
const cocos2d::CCPoint *a7)
{
cocos2d::CCSprite *v11; // x21
cocos2d::CCSprite *v12; // x20
CCMenuItemToggler *v13; // x20
cocos2d::CCNode *v14; // x0
void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x26
cocos2d::CCLabelBMFont *v16; // x20
void (__fastcall *setAnchorPoint)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // x25
cocos2d::CCSprite *v18; // x0
const cocos2d::CCSize *(__fastcall *getContentSize)(const cocos2d::CCNode *__hidden); // x1
void (__fastcall *v20)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x21
float *v21; // x0
cocos2d::CCPoint v23; // [xsp+88h] [xbp+88h] BYREF
cocos2d::CCPoint v24; // [xsp+90h] [xbp+90h] BYREF
cocos2d::CCPoint v25; // 0:kr00_8.8
cocos2d::SEL_MenuHandler v26; // 0:^70.16
v26.ptr = a3;
v26.adj = a4;
v11 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_checkOn_001.png");
v12 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_checkOff_001.png");
v11->setScale(v11, 0.6);
v12->setScale(v12, 0.6);
v13 = CCMenuItemToggler::create(v11, v12, a1, v26);
CCMenuItemToggler::toggle(v13, a5);
a6->addChild(a6, v13);
v14 = a6;
setPosition = v13->setPosition;
v25 = cocos2d::CCNode::convertToNodeSpace(v14, a7);
((void (__fastcall *)(CCMenuItemToggler *, cocos2d::CCPoint *, float, float))setPosition)(v13, &v24, v25.x, v25.y);
CCMenuItemToggler::setSizeMult(v13, 1.5);
v16 = cocos2d::CCLabelBMFont::create();
((void (__fastcall *)(cocos2d::CCObject *, cocos2d::CCLabelBMFont *))a1->__vftable[5].update)(a1, v16);
setAnchorPoint = v16->setAnchorPoint;
cocos2d::CCPoint::CCPoint(&v24, 0.0, 0.5);
setAnchorPoint(v16, &v24);
v18 = v11;
getContentSize = v11->getContentSize;
v20 = v16->setPosition;
v21 = (float *)getContentSize(v18);
cocos2d::CCPoint::CCPoint(&v23, (float)((float)(*v21 * 0.5) * 0.6) + 6.0, 0.0);
cocos2d::CCPoint::operator+(&v24, a7, &v23);
v20(v16, &v24);
cocos2d::CCLabelBMFont::limitLabelWidth(v16, 80.0, 0.4, 0.0);
return _stack_chk_guard;
}