//
// GameToolbox::addBackButton from 0x1004ebf90 to 0x1004ec05c (204 bytes)
//
// 23 xrefs:
// > EditLevelLayer::init @ 0x1001de24f
// > LevelAreaLayer::init @ 0x100264084
// > LevelAreaInnerLayer::init @ 0x100266466
// > CreatorLayer::init @ 0x100282f31
// > LevelInfoLayer::init @ 0x1002ac161
// > GJShopLayer::init @ 0x10030f13e
// > LevelListLayer::init @ 0x100348b44
// > GJGarageLayer::init @ 0x100353fe7
// > GauntletLayer::init @ 0x10037dd84
// > SecretLayer4::init @ 0x10039a905
// > WorldSelectLayer::init @ 0x1003ab7dd
// > LevelSelectLayer::init @ 0x10042007f
// > SecretLayer5::init @ 0x10046f0e4
// > SecretLayer6::init @ 0x10047383f
// > LevelBrowserLayer::init @ 0x1004820fa
// > SecretLayer2::init @ 0x1004969e8
// > SecretLayer3::init @ 0x10049db0f
// > LeaderboardsLayer::init @ 0x100513c41
// > GauntletSelectLayer::init @ 0x10059ee64
// > GJDropDownLayer::init @ 0x1006bb94d
// > SecretLayer::init @ 0x1006d2247
// > LevelSearchLayer::init @ 0x100706658
// > SecretRewardsLayer::init @ 0x10070d152
//
// This function is hookable on this platform (idp: pc, 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:31:22 +0000
//
__int64 __fastcall GameToolbox::addBackButton(__int64 a1, __int64 a2, double a3)
{
char *v4; // rbx
__int64 v5; // r12
unsigned int *v6; // rax
unsigned __int64 v8; // [rsp+8h] [rbp-38h] BYREF
unsigned __int64 v9; // [rsp+10h] [rbp-30h] BYREF
double v10[5]; // [rsp+18h] [rbp-28h] BYREF
v4 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"controllerBtn_B_001.png", a3);
(*(void (__fastcall **)(__int64, char *))(*(_QWORD *)a1 + 456LL))(a1, v4);
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 512LL))(a2);
v6 = (unsigned int *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 192LL))(a2);
cocos2d::CCNode::convertToWorldSpace(v10, v5, v6);
cocos2d::CCNode::convertToNodeSpace((double *)&v8, a1, (unsigned int *)v10);
sub_100278250((float *)&v9, 28.0, 10.0);
sub_100278350(v10, &v8, &v9);
(*(void (__fastcall **)(char *, double *))(*(_QWORD *)v4 + 184LL))(v4, v10);
return (*(__int64 (__fastcall **)(char *, float))(*(_QWORD *)v4 + 160LL))(v4, 0.69999999);
}