//
// GameToolbox::addBackButton from 0x1004ef7d0 to 0x1004ef89c (204 bytes)
//
// 23 xrefs:
// > EditLevelLayer::init @ 0x1001fbae3
// > LevelAreaLayer::init @ 0x100277a84
// > LevelAreaInnerLayer::init @ 0x100279e66
// > CreatorLayer::init @ 0x100298342
// > LevelInfoLayer::init @ 0x1002bf522
// > GJShopLayer::init @ 0x100323aec
// > LevelListLayer::init @ 0x10035d579
// > GJGarageLayer::init @ 0x10036abd7
// > GauntletLayer::init @ 0x100392e24
// > SecretLayer4::init @ 0x1003b1505
// > WorldSelectLayer::init @ 0x1003c23dd
// > LevelSelectLayer::init @ 0x100432822
// > SecretLayer5::init @ 0x10047a784
// > SecretLayer6::init @ 0x10047eedf
// > LevelBrowserLayer::init @ 0x10048c639
// > SecretLayer2::init @ 0x10049da18
// > SecretLayer3::init @ 0x1004a4b3f
// > LeaderboardsLayer::init @ 0x100512c0e
// > GauntletSelectLayer::init @ 0x100571b64
// > GJDropDownLayer::init @ 0x1005e845b
// > SecretLayer::init @ 0x1005fb447
// > LevelSearchLayer::init @ 0x100629be8
// > SecretRewardsLayer::init @ 0x100630522
//
// 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
//
void __fastcall GameToolbox::addBackButton(cocos2d::CCLayer *a1, cocos2d::CCMenuItem *a2)
{
cocos2d::CCSprite *v3; // rbx
const cocos2d::CCPoint *v4; // r12
unsigned __int64 v5; // [rsp+8h] [rbp-38h] BYREF
unsigned __int64 v6; // [rsp+10h] [rbp-30h] BYREF
double v7[5]; // [rsp+18h] [rbp-28h] BYREF
v3 = cocos2d::CCSprite::createWithSpriteFrameName("controllerBtn_B_001.png");
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *))a1->addChild)(a1, v3);
v4 = (const cocos2d::CCPoint *)((__int64 (__fastcall *)(cocos2d::CCMenuItem *))a2->getParent)(a2);
((void (__fastcall *)(cocos2d::CCMenuItem *))a2->getPosition)(a2);
cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v7, v4);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v5, (const cocos2d::CCPoint *)a1);
sub_10028CBE0((float *)&v6, 28.0, 10.0);
sub_10028CCE0(v7, &v5, &v6);
((void (__fastcall *)(cocos2d::CCSprite *, double *))v3->setPosition)(v3, v7);
((void (__fastcall *)(cocos2d::CCSprite *, float))v3->setScale)(v3, 0.69999999);
}