{"type": "func", "start": 4300142544, "end": 4300142748, "name": "GameToolbox::addBackButton", "pseudocode": "// \n// GameToolbox::addBackButton from 0x1004ef7d0 to 0x1004ef89c (204 bytes)\n// \n// 23 xrefs:\n// > EditLevelLayer::init @ 0x1001fbae3\n// > LevelAreaLayer::init @ 0x100277a84\n// > LevelAreaInnerLayer::init @ 0x100279e66\n// > CreatorLayer::init @ 0x100298342\n// > LevelInfoLayer::init @ 0x1002bf522\n// > GJShopLayer::init @ 0x100323aec\n// > LevelListLayer::init @ 0x10035d579\n// > GJGarageLayer::init @ 0x10036abd7\n// > GauntletLayer::init @ 0x100392e24\n// > SecretLayer4::init @ 0x1003b1505\n// > WorldSelectLayer::init @ 0x1003c23dd\n// > LevelSelectLayer::init @ 0x100432822\n// > SecretLayer5::init @ 0x10047a784\n// > SecretLayer6::init @ 0x10047eedf\n// > LevelBrowserLayer::init @ 0x10048c639\n// > SecretLayer2::init @ 0x10049da18\n// > SecretLayer3::init @ 0x1004a4b3f\n// > LeaderboardsLayer::init @ 0x100512c0e\n// > GauntletSelectLayer::init @ 0x100571b64\n// > GJDropDownLayer::init @ 0x1005e845b\n// > SecretLayer::init @ 0x1005fb447\n// > LevelSearchLayer::init @ 0x100629be8\n// > SecretRewardsLayer::init @ 0x100630522\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall GameToolbox::addBackButton(cocos2d::CCLayer *a1, cocos2d::CCMenuItem *a2)\n{\n  cocos2d::CCSprite *v3; // rbx\n  const cocos2d::CCPoint *v4; // r12\n  unsigned __int64 v5; // [rsp+8h] [rbp-38h] BYREF\n  unsigned __int64 v6; // [rsp+10h] [rbp-30h] BYREF\n  double v7[5]; // [rsp+18h] [rbp-28h] BYREF\n\n  v3 = cocos2d::CCSprite::createWithSpriteFrameName(\"controllerBtn_B_001.png\");\n  ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *))a1->addChild)(a1, v3);\n  v4 = (const cocos2d::CCPoint *)((__int64 (__fastcall *)(cocos2d::CCMenuItem *))a2->getParent)(a2);\n  ((void (__fastcall *)(cocos2d::CCMenuItem *))a2->getPosition)(a2);\n  cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v7, v4);\n  cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v5, (const cocos2d::CCPoint *)a1);\n  sub_10028CBE0((float *)&v6, 28.0, 10.0);\n  sub_10028CCE0(v7, &v5, &v6);\n  ((void (__fastcall *)(cocos2d::CCSprite *, double *))v3->setPosition)(v3, v7);\n  ((void (__fastcall *)(cocos2d::CCSprite *, float))v3->setScale)(v3, 0.69999999);\n}", "assembly": "; \n; GameToolbox::addBackButton from 0x1004ef7d0 to 0x1004ef89c (204 bytes)\n; \n; 23 xrefs:\n; > EditLevelLayer::init @ 0x1001fbae3\n; > LevelAreaLayer::init @ 0x100277a84\n; > LevelAreaInnerLayer::init @ 0x100279e66\n; > CreatorLayer::init @ 0x100298342\n; > LevelInfoLayer::init @ 0x1002bf522\n; > GJShopLayer::init @ 0x100323aec\n; > LevelListLayer::init @ 0x10035d579\n; > GJGarageLayer::init @ 0x10036abd7\n; > GauntletLayer::init @ 0x100392e24\n; > SecretLayer4::init @ 0x1003b1505\n; > WorldSelectLayer::init @ 0x1003c23dd\n; > LevelSelectLayer::init @ 0x100432822\n; > SecretLayer5::init @ 0x10047a784\n; > SecretLayer6::init @ 0x10047eedf\n; > LevelBrowserLayer::init @ 0x10048c639\n; > SecretLayer2::init @ 0x10049da18\n; > SecretLayer3::init @ 0x1004a4b3f\n; > LeaderboardsLayer::init @ 0x100512c0e\n; > GauntletSelectLayer::init @ 0x100571b64\n; > GJDropDownLayer::init @ 0x1005e845b\n; > SecretLayer::init @ 0x1005fb447\n; > LevelSearchLayer::init @ 0x100629be8\n; > SecretRewardsLayer::init @ 0x100630522\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x1004ef7d0\nmov     rbp, rsp                                                       ; +0x1, 0x1004ef7d1\npush    r15                                                            ; +0x4, 0x1004ef7d4\npush    r14                                                            ; +0x6, 0x1004ef7d6\npush    r12                                                            ; +0x8, 0x1004ef7d8\npush    rbx                                                            ; +0xa, 0x1004ef7da\nsub     rsp, 20h                                                       ; +0xb, 0x1004ef7db\nmov     r15, rsi                                                       ; +0xf, 0x1004ef7df\nmov     r14, rdi                                                       ; +0x12, 0x1004ef7e2\nlea     rdi, aControllerbtnB; \"controllerBtn_B_001.png\"                ; +0x15, 0x1004ef7e5\ncall    cocos2d__CCSprite__createWithSpriteFrameName                   ; +0x1c, 0x1004ef7ec\nmov     rbx, rax                                                       ; +0x21, 0x1004ef7f1\nmov     rax, [r14]                                                     ; +0x24, 0x1004ef7f4\nmov     rdi, r14                                                       ; +0x27, 0x1004ef7f7\nmov     rsi, rbx                                                       ; +0x2a, 0x1004ef7fa\ncall    qword ptr [rax+1B8h]                                           ; +0x2d, 0x1004ef7fd\nmov     rax, [r15]                                                     ; +0x33, 0x1004ef803\nmov     rdi, r15                                                       ; +0x36, 0x1004ef806\ncall    qword ptr [rax+1F0h]                                           ; +0x39, 0x1004ef809\nmov     r12, rax                                                       ; +0x3f, 0x1004ef80f\nmov     rax, [r15]                                                     ; +0x42, 0x1004ef812\nmov     rdi, r15                                                       ; +0x45, 0x1004ef815\ncall    qword ptr [rax+0C0h]                                           ; +0x48, 0x1004ef818\nlea     r15, [rbp+var_28]                                              ; +0x4e, 0x1004ef81e\nmov     rdi, r15                                                       ; +0x52, 0x1004ef822\nmov     rsi, r12                                                       ; +0x55, 0x1004ef825\nmov     rdx, rax                                                       ; +0x58, 0x1004ef828\ncall    cocos2d__CCNode__convertToWorldSpace                           ; +0x5b, 0x1004ef82b\nlea     r12, [rbp+var_38]                                              ; +0x60, 0x1004ef830\nmov     rdi, r12                                                       ; +0x64, 0x1004ef834\nmov     rsi, r14                                                       ; +0x67, 0x1004ef837\nmov     rdx, r15                                                       ; +0x6a, 0x1004ef83a\ncall    cocos2d__CCNode__convertToNodeSpace                            ; +0x6d, 0x1004ef83d\nlea     r14, [rbp+var_30]                                              ; +0x72, 0x1004ef842\nmovss   xmm0, cs:dword_100815408                                       ; +0x76, 0x1004ef846\nmovss   xmm1, cs:dword_100814FEC                                       ; +0x7e, 0x1004ef84e\nmov     rdi, r14                                                       ; +0x86, 0x1004ef856\ncall    sub_10028CBE0                                                  ; +0x89, 0x1004ef859\nmov     rdi, r15                                                       ; +0x8e, 0x1004ef85e\nmov     rsi, r12                                                       ; +0x91, 0x1004ef861\nmov     rdx, r14                                                       ; +0x94, 0x1004ef864\ncall    sub_10028CCE0                                                  ; +0x97, 0x1004ef867\nmov     rax, [rbx]                                                     ; +0x9c, 0x1004ef86c\nmov     rdi, rbx                                                       ; +0x9f, 0x1004ef86f\nmov     rsi, r15                                                       ; +0xa2, 0x1004ef872\ncall    qword ptr [rax+0B8h]                                           ; +0xa5, 0x1004ef875\nmov     rax, [rbx]                                                     ; +0xab, 0x1004ef87b\nmovss   xmm0, cs:dword_100814FC4                                       ; +0xae, 0x1004ef87e\nmov     rdi, rbx                                                       ; +0xb6, 0x1004ef886\ncall    qword ptr [rax+0A0h]                                           ; +0xb9, 0x1004ef889\nadd     rsp, 20h                                                       ; +0xbf, 0x1004ef88f\npop     rbx                                                            ; +0xc3, 0x1004ef893\npop     r12                                                            ; +0xc4, 0x1004ef894\npop     r14                                                            ; +0xc6, 0x1004ef896\npop     r15                                                            ; +0xc8, 0x1004ef898\npop     rbp                                                            ; +0xca, 0x1004ef89a\nretn                                                                   ; +0xcb, 0x1004ef89b", "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"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}