//
// GameToolbox::addBackButton from 0x69cb08 to 0x69cc24 (284 bytes)
//
// 24 xrefs:
// > CreatorLayer::init @ 0x7dd660
// > LevelSearchLayer::init @ 0x7e3e80
// > LevelInfoLayer::init @ 0x7ec5e4
// > EditLevelLayer::init @ 0x7f13e8
// > LevelBrowserLayer::init @ 0x7f9e18
// > GJGarageLayer::init @ 0x8c2d88
// > LevelSelectLayer::init @ 0x8c5910
// > GJDropDownLayer::init @ 0x8ed2f0
// > LeaderboardsLayer::init @ 0x94fc08
// > SecretLayer::init @ 0xa61d74
// > GauntletSelectLayer::init @ 0xa77478
// > GauntletLayer::init @ 0xa799a4
// > GJShopLayer::init @ 0xa7f4cc
// > SecretLayer2::init @ 0xa90e04
// > SecretLayer3::init @ 0xa934bc
// > SecretLayer4::init @ 0xa97724
// > WorldSelectLayer::init @ 0xaa85f0
// > LevelAreaLayer::init @ 0xb5c544
// > LevelAreaInnerLayer::init @ 0xb5d2fc
// > SecretRewardsLayer::init @ 0xba09c4
// > LevelListLayer::init @ 0xbafaa8
// > SecretLayer5::init @ 0xbc8c28
// > SecretLayer6::init @ 0xbc9318
// > ??> @ 0x55240
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:50:40 +0000
//
__int64 __fastcall GameToolbox::addBackButton(GameToolbox *this, cocos2d::CCLayer *a2, cocos2d::CCMenuItem *a3)
{
__int64 v5; // x20
cocos2d::CCNode *v6; // x26
const cocos2d::CCPoint *v7; // x0
void (__fastcall *v8)(__int64, __int64 *); // x22
__int64 v10; // [xsp+60h] [xbp+60h] BYREF
_BYTE v11[8]; // [xsp+68h] [xbp+68h] BYREF
__int64 v12; // [xsp+70h] [xbp+70h] BYREF
v5 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"controllerBtn_B_001.png", _stack_chk_guard);
(*(void (__fastcall **)(GameToolbox *, __int64))(*(_QWORD *)this + 456LL))(this, v5);
v6 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(cocos2d::CCLayer *))(*(_QWORD *)a2 + 512LL))(a2);
v7 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(cocos2d::CCLayer *))(*(_QWORD *)a2 + 192LL))(a2);
cocos2d::CCNode::convertToWorldSpace(&v12, v6, v7);
cocos2d::CCNode::convertToNodeSpace(&v10, this, (const cocos2d::CCPoint *)&v12);
v8 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v5 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, 28.0, 10.0);
cocos2d::CCPoint::operator+(&v12, &v10);
v8(v5, &v12);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v5 + 160LL))(v5, 0.7);
return _stack_chk_guard;
}