{"type": "func", "start": 5369163808, "end": 5369164018, "name": "GameToolbox::addBackButton", "pseudocode": "// \n// GameToolbox::addBackButton from 0x14006f020 to 0x14006f0f2 (210 bytes)\n// \n// 22 xrefs:\n// > CreatorLayer::init @ 0x140136975\n// > EditLevelLayer::init @ 0x140179a63\n// > GauntletLayer::init @ 0x1402fb300\n// > GauntletSelectLayer::init @ 0x1402fe231\n// > GJDropDownLayer::init @ 0x14035fd7a\n// > GJGarageLayer::init @ 0x14037d211\n// > GJShopLayer::init @ 0x1403b0e3f\n// > LeaderboardsLayer::init @ 0x1403db7c5\n// > LevelAreaLayer::init @ 0x1403dd8ad\n// > LevelAreaInnerLayer::init @ 0x1403df9bd\n// > LevelBrowserLayer::init @ 0x1403e3fa2\n// > LevelInfoLayer::init @ 0x14041e5e1\n// > LevelListLayer::init @ 0x14042ce09\n// > LevelSearchLayer::init @ 0x140436084\n// > LevelSelectLayer::init @ 0x14044250b\n// > SecretRewardsLayer::init @ 0x140568602\n// > SecretLayer::init @ 0x1405737cc\n// > SecretLayer2::init @ 0x140578c33\n// > SecretLayer3::init @ 0x14058110c\n// > SecretLayer4::init @ 0x1405860c0\n// > SecretLayer5::init @ 0x140589e6e\n// > <???> @ 0x140911744\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:25:49 +0000\n// \n\n__int64 __fastcall GameToolbox::addBackButton(__int64 a1, __int64 a2)\n{\n  struct cocos2d::CCSprite *v4; // r15\n  __int64 (__fastcall *v5)(__int64); // rdi\n  __int64 v6; // rbx\n  __int64 v7; // rax\n  __int64 v8; // rax\n  __int64 v9; // rax\n  char v11; // [rsp+50h] [rbp+8h] BYREF\n  char v12; // [rsp+58h] [rbp+10h] BYREF\n  char v13; // [rsp+60h] [rbp+18h] BYREF\n\n  v4 = cocos2d::CCSprite::createWithSpriteFrameName(\"controllerBtn_B_001.png\");\n  (*(void (__fastcall **)(__int64, struct cocos2d::CCSprite *))(*(_QWORD *)a1 + 464LL))(a1, v4);\n  v5 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 504LL);\n  v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 200LL))(a2);\n  v7 = v5(a2);\n  cocos2d::CCNode::convertToWorldSpace(v7, &v12, v6);\n  cocos2d::CCNode::convertToNodeSpace(a1, &v11, v8);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v13, 28.0, 10.0);\n  cocos2d::CCPoint::operator+(&v11, &v12, v9);\n  (*(void (__fastcall **)(struct cocos2d::CCSprite *, char *))(*(_QWORD *)v4 + 184LL))(v4, &v12);\n  return (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v4 + 160LL))(v4);\n}", "assembly": "; \n; GameToolbox::addBackButton from 0x14006f020 to 0x14006f0f2 (210 bytes)\n; \n; 22 xrefs:\n; > CreatorLayer::init @ 0x140136975\n; > EditLevelLayer::init @ 0x140179a63\n; > GauntletLayer::init @ 0x1402fb300\n; > GauntletSelectLayer::init @ 0x1402fe231\n; > GJDropDownLayer::init @ 0x14035fd7a\n; > GJGarageLayer::init @ 0x14037d211\n; > GJShopLayer::init @ 0x1403b0e3f\n; > LeaderboardsLayer::init @ 0x1403db7c5\n; > LevelAreaLayer::init @ 0x1403dd8ad\n; > LevelAreaInnerLayer::init @ 0x1403df9bd\n; > LevelBrowserLayer::init @ 0x1403e3fa2\n; > LevelInfoLayer::init @ 0x14041e5e1\n; > LevelListLayer::init @ 0x14042ce09\n; > LevelSearchLayer::init @ 0x140436084\n; > LevelSelectLayer::init @ 0x14044250b\n; > SecretRewardsLayer::init @ 0x140568602\n; > SecretLayer::init @ 0x1405737cc\n; > SecretLayer2::init @ 0x140578c33\n; > SecretLayer3::init @ 0x14058110c\n; > SecretLayer4::init @ 0x1405860c0\n; > SecretLayer5::init @ 0x140589e6e\n; > <???> @ 0x140911744\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:25:49 +0000\n; \npush    rbx                                                            ; +0x0, 0x14006f020\npush    rsi                                                            ; +0x2, 0x14006f022\npush    rdi                                                            ; +0x3, 0x14006f023\npush    r14                                                            ; +0x4, 0x14006f024\npush    r15                                                            ; +0x6, 0x14006f026\nsub     rsp, 20h                                                       ; +0x8, 0x14006f028\nmov     r14, rcx                                                       ; +0xc, 0x14006f02c\nmov     rsi, rdx                                                       ; +0xf, 0x14006f02f\nlea     rcx, aControllerbtnB; \"controllerBtn_B_001.png\"                ; +0x12, 0x14006f032\ncall    cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0x19, 0x14006f039\nmov     r8, [r14]                                                      ; +0x1f, 0x14006f03f\nmov     rcx, r14                                                       ; +0x22, 0x14006f042\nmov     rdx, rax                                                       ; +0x25, 0x14006f045\nmov     r15, rax                                                       ; +0x28, 0x14006f048\ncall    qword ptr [r8+1D0h]                                            ; +0x2b, 0x14006f04b\nmov     r8, [rsi]                                                      ; +0x32, 0x14006f052\nmov     rcx, rsi                                                       ; +0x35, 0x14006f055\nmov     r9, [r8+0C8h]                                                  ; +0x38, 0x14006f058\nmov     rdi, [r8+1F8h]                                                 ; +0x3f, 0x14006f05f\ncall    r9                                                             ; +0x46, 0x14006f066\nmov     rcx, rsi                                                       ; +0x49, 0x14006f069\nmov     rbx, rax                                                       ; +0x4c, 0x14006f06c\ncall    rdi                                                            ; +0x4f, 0x14006f06f\nmov     rcx, rax                                                       ; +0x51, 0x14006f071\nlea     rdx, [rsp+48h+arg_8]                                           ; +0x54, 0x14006f074\nmov     r8, rbx                                                        ; +0x59, 0x14006f079\ncall    cs:?convertToWorldSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const &) ; +0x5c, 0x14006f07c\nlea     rdx, [rsp+48h+arg_0]                                           ; +0x62, 0x14006f082\nmov     rcx, r14                                                       ; +0x67, 0x14006f087\nmov     r8, rax                                                        ; +0x6a, 0x14006f08a\ncall    cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x6d, 0x14006f08d\nmovss   xmm2, cs:flt_1408354EC                                         ; +0x73, 0x14006f093\nlea     rcx, [rsp+48h+arg_10]                                          ; +0x7b, 0x14006f09b\nmovss   xmm1, cs:dword_140835610                                       ; +0x80, 0x14006f0a0\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x88, 0x14006f0a8\nmov     r8, rax                                                        ; +0x8e, 0x14006f0ae\nlea     rdx, [rsp+48h+arg_8]                                           ; +0x91, 0x14006f0b1\nlea     rcx, [rsp+48h+arg_0]                                           ; +0x96, 0x14006f0b6\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x9b, 0x14006f0bb\nmov     rax, [r15]                                                     ; +0xa1, 0x14006f0c1\nlea     rdx, [rsp+48h+arg_8]                                           ; +0xa4, 0x14006f0c4\nmov     rcx, r15                                                       ; +0xa9, 0x14006f0c9\ncall    qword ptr [rax+0B8h]                                           ; +0xac, 0x14006f0cc\nmov     rax, [r15]                                                     ; +0xb2, 0x14006f0d2\nmov     rcx, r15                                                       ; +0xb5, 0x14006f0d5\nmovss   xmm1, cs:dword_140834FAC                                       ; +0xb8, 0x14006f0d8\ncall    qword ptr [rax+0A0h]                                           ; +0xc0, 0x14006f0e0\nadd     rsp, 20h                                                       ; +0xc6, 0x14006f0e6\npop     r15                                                            ; +0xca, 0x14006f0ea\npop     r14                                                            ; +0xcc, 0x14006f0ec\npop     rdi                                                            ; +0xce, 0x14006f0ee\npop     rsi                                                            ; +0xcf, 0x14006f0ef\npop     rbx                                                            ; +0xd0, 0x14006f0f0\nretn                                                                   ; +0xd1, 0x14006f0f1", "xrefs": ["CreatorLayer::init @ 0x140136975", "EditLevelLayer::init @ 0x140179a63", "GauntletLayer::init @ 0x1402fb300", "GauntletSelectLayer::init @ 0x1402fe231", "GJDropDownLayer::init @ 0x14035fd7a", "GJGarageLayer::init @ 0x14037d211", "GJShopLayer::init @ 0x1403b0e3f", "LeaderboardsLayer::init @ 0x1403db7c5", "LevelAreaLayer::init @ 0x1403dd8ad", "LevelAreaInnerLayer::init @ 0x1403df9bd", "LevelBrowserLayer::init @ 0x1403e3fa2", "LevelInfoLayer::init @ 0x14041e5e1", "LevelListLayer::init @ 0x14042ce09", "LevelSearchLayer::init @ 0x140436084", "LevelSelectLayer::init @ 0x14044250b", "SecretRewardsLayer::init @ 0x140568602", "SecretLayer::init @ 0x1405737cc", "SecretLayer2::init @ 0x140578c33", "SecretLayer3::init @ 0x14058110c", "SecretLayer4::init @ 0x1405860c0", "SecretLayer5::init @ 0x140589e6e", "<???> @ 0x140911744"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}