//
// GameToolbox::addBackButton from 0x100044a80 to 0x100044b64 (228 bytes)
//
// 21 xrefs:
// > LevelInfoLayer::init @ 0x100026220
// > LevelSearchLayer::init @ 0x100052d34
// > SecretLayer5::init @ 0x100074534
// > CreatorLayer::init @ 0x1000b5be0
// > EditLevelLayer::init @ 0x1000ea028
// > GJShopLayer::init @ 0x10014afbc
// > GauntletSelectLayer::init @ 0x1001beddc
// > GauntletLayer::init @ 0x1002326b8
// > LevelListLayer::init @ 0x10024486c
// > SecretRewardsLayer::init @ 0x1002e8408
// > GJGarageLayer::init @ 0x100303140
// > SecretLayer2::init @ 0x100309e7c
// > SecretLayer3::init @ 0x10030ee94
// > LevelAreaLayer::init @ 0x100343cf8
// > LevelAreaInnerLayer::init @ 0x100345898
// > SecretLayer4::init @ 0x10035453c
// > LeaderboardsLayer::init @ 0x1003b0ddc
// > GJDropDownLayer::init @ 0x1003b25c0
// > SecretLayer::init @ 0x1003bda14
// > LevelSelectLayer::init @ 0x100402204
// > LevelBrowserLayer::init @ 0x100415838
//
// 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 *v4; // x19
cocos2d::CCNode *v5; // x22
const cocos2d::CCPoint *v6; // x0
__n128 v7; // q0
__n128 v8; // q1
double v9; // d0
float32x2_t v10; // [xsp+8h] [xbp-38h] BYREF
float32x2_t v11; // [xsp+10h] [xbp-30h] BYREF
float32x2_t v12; // [xsp+18h] [xbp-28h] BYREF
v4 = cocos2d::CCSprite::createWithSpriteFrameName("controllerBtn_B_001.png");
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *))a1->addChild)(a1, v4);
v5 = (cocos2d::CCNode *)((__int64 (__fastcall *)(cocos2d::CCMenuItem *))a2->getParent)(a2);
v6 = (const cocos2d::CCPoint *)((__int64 (__fastcall *)(cocos2d::CCMenuItem *))a2->getPosition)(a2);
cocos2d::CCNode::convertToWorldSpace(v5, v6);
cocos2d::CCNode::convertToNodeSpace(a1, (const cocos2d::CCPoint *)&v11);
v7.n128_u32[0] = 28.0;
v8.n128_u32[0] = 10.0;
sub_100022980(v7, v8, &v10);
*(float32x2_t *)&v9 = sub_1000229DC(&v12, &v10, &v11);
((void (__fastcall *)(cocos2d::CCSprite *, float32x2_t *, double))v4->setPosition)(v4, &v11, v9);
((void (__fastcall *)(cocos2d::CCSprite *, float))v4->setScale)(v4, 0.7);
}