{"type": "func", "start": 5369122880, "end": 5369123091, "name": "GameToolbox::addBackButton", "pseudocode": "// \n// GameToolbox::addBackButton from 0x140065040 to 0x140065113 (211 bytes)\n// \n// 22 xrefs:\n// > CreatorLayer::init @ 0x14009d1f0\n// > EditLevelLayer::init @ 0x1400d6746\n// > GauntletLayer::init @ 0x1401f658f\n// > GauntletSelectLayer::init @ 0x1401f9415\n// > GJDropDownLayer::init @ 0x140257294\n// > GJGarageLayer::init @ 0x1402749ed\n// > GJShopLayer::init @ 0x1402aab22\n// > LeaderboardsLayer::init @ 0x1402c2627\n// > LevelAreaLayer::init @ 0x1402c45f7\n// > LevelAreaInnerLayer::init @ 0x1402c6685\n// > LevelBrowserLayer::init @ 0x1402c9fd5\n// > LevelInfoLayer::init @ 0x1402f9785\n// > LevelListLayer::init @ 0x140305000\n// > LevelSearchLayer::init @ 0x14030dc4f\n// > LevelSelectLayer::init @ 0x140319168\n// > SecretRewardsLayer::init @ 0x1403d2c25\n// > SecretLayer::init @ 0x1403ddcd8\n// > SecretLayer2::init @ 0x1403e3093\n// > SecretLayer3::init @ 0x1403eb4b7\n// > SecretLayer4::init @ 0x1403f0812\n// > SecretLayer5::init @ 0x1403f4818\n// > <???> @ 0x1406c5d78\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 GameToolbox::addBackButton(cocos2d::CCLayer *a1, cocos2d::CCMenuItem *a2)\n{\n  struct cocos2d::CCSprite *v4; // r14\n  cocos2d::CCNode *v5; // rax\n  struct cocos2d::CCPoint v6; // [rsp+40h] [rbp+8h] BYREF\n  struct cocos2d::CCPoint v7; // [rsp+48h] [rbp+10h] BYREF\n  cocos2d::CCPoint v8; // [rsp+50h] [rbp+18h] BYREF\n\n  v4 = cocos2d::CCSprite::createWithSpriteFrameName(\"controllerBtn_B_001.png\");\n  a1->addChild_1(a1, v4);\n  a2->getPosition_0(a2);\n  v5 = a2->getParent(a2);\n  cocos2d::CCNode::convertToWorldSpace(v5, &v7);\n  cocos2d::CCNode::convertToNodeSpace(a1, &v6);\n  cocos2d::CCPoint::CCPoint(&v8, 28.0, 10.0);\n  cocos2d::CCPoint::operator+(&v6, &v7);\n  v4->setPosition_0(v4, &v7);\n  ((void (__fastcall *)(struct cocos2d::CCSprite *))v4->setScale_0)(v4);\n}", "assembly": "; \n; GameToolbox::addBackButton from 0x140065040 to 0x140065113 (211 bytes)\n; \n; 22 xrefs:\n; > CreatorLayer::init @ 0x14009d1f0\n; > EditLevelLayer::init @ 0x1400d6746\n; > GauntletLayer::init @ 0x1401f658f\n; > GauntletSelectLayer::init @ 0x1401f9415\n; > GJDropDownLayer::init @ 0x140257294\n; > GJGarageLayer::init @ 0x1402749ed\n; > GJShopLayer::init @ 0x1402aab22\n; > LeaderboardsLayer::init @ 0x1402c2627\n; > LevelAreaLayer::init @ 0x1402c45f7\n; > LevelAreaInnerLayer::init @ 0x1402c6685\n; > LevelBrowserLayer::init @ 0x1402c9fd5\n; > LevelInfoLayer::init @ 0x1402f9785\n; > LevelListLayer::init @ 0x140305000\n; > LevelSearchLayer::init @ 0x14030dc4f\n; > LevelSelectLayer::init @ 0x140319168\n; > SecretRewardsLayer::init @ 0x1403d2c25\n; > SecretLayer::init @ 0x1403ddcd8\n; > SecretLayer2::init @ 0x1403e3093\n; > SecretLayer3::init @ 0x1403eb4b7\n; > SecretLayer4::init @ 0x1403f0812\n; > SecretLayer5::init @ 0x1403f4818\n; > <???> @ 0x1406c5d78\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\nmov     [rsp+arg_18], rbx                                              ; +0x0, 0x140065040\npush    rsi                                                            ; +0x5, 0x140065045\npush    rdi                                                            ; +0x6, 0x140065046\npush    r14                                                            ; +0x7, 0x140065047\nsub     rsp, 20h                                                       ; +0x9, 0x140065049\nmov     rsi, rcx                                                       ; +0xd, 0x14006504d\nmov     rdi, rdx                                                       ; +0x10, 0x140065050\nlea     rcx, aControllerbtnB; \"controllerBtn_B_001.png\"                ; +0x13, 0x140065053\ncall    cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0x1a, 0x14006505a\nmov     r8, [rsi]                                                      ; +0x20, 0x140065060\nmov     rcx, rsi                                                       ; +0x23, 0x140065063\nmov     rdx, rax                                                       ; +0x26, 0x140065066\nmov     r14, rax                                                       ; +0x29, 0x140065069\ncall    qword ptr [r8+1C0h]                                            ; +0x2c, 0x14006506c\nmov     r8, [rdi]                                                      ; +0x33, 0x140065073\nmov     rcx, rdi                                                       ; +0x36, 0x140065076\ncall    qword ptr [r8+0C8h]                                            ; +0x39, 0x140065079\nmov     r8, [rdi]                                                      ; +0x40, 0x140065080\nmov     rcx, rdi                                                       ; +0x43, 0x140065083\nmov     rbx, rax                                                       ; +0x46, 0x140065086\ncall    qword ptr [r8+1E8h]                                            ; +0x49, 0x140065089\nmov     r8, rbx                                                        ; +0x50, 0x140065090\nlea     rdx, [rsp+38h+arg_8]                                           ; +0x53, 0x140065093\nmov     rcx, rax                                                       ; +0x58, 0x140065098\ncall    cs:?convertToWorldSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const &) ; +0x5b, 0x14006509b\nlea     rdx, [rsp+38h+arg_0]                                           ; +0x61, 0x1400650a1\nmov     rcx, rsi                                                       ; +0x66, 0x1400650a6\nmov     r8, rax                                                        ; +0x69, 0x1400650a9\ncall    cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x6c, 0x1400650ac\nmovss   xmm2, cs:flt_14062307C                                         ; +0x72, 0x1400650b2\nlea     rcx, [rsp+38h+arg_10]                                          ; +0x7a, 0x1400650ba\nmovss   xmm1, cs:dword_140623154                                       ; +0x7f, 0x1400650bf\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x87, 0x1400650c7\nmov     r8, rax                                                        ; +0x8d, 0x1400650cd\nlea     rdx, [rsp+38h+arg_8]                                           ; +0x90, 0x1400650d0\nlea     rcx, [rsp+38h+arg_0]                                           ; +0x95, 0x1400650d5\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x9a, 0x1400650da\nmov     rax, [r14]                                                     ; +0xa0, 0x1400650e0\nlea     rdx, [rsp+38h+arg_8]                                           ; +0xa3, 0x1400650e3\nmov     rcx, r14                                                       ; +0xa8, 0x1400650e8\ncall    qword ptr [rax+0B8h]                                           ; +0xab, 0x1400650eb\nmov     rax, [r14]                                                     ; +0xb1, 0x1400650f1\nmov     rcx, r14                                                       ; +0xb4, 0x1400650f4\nmovss   xmm1, cs:dword_140622B74                                       ; +0xb7, 0x1400650f7\ncall    qword ptr [rax+0A0h]                                           ; +0xbf, 0x1400650ff\nmov     rbx, [rsp+38h+arg_18]                                          ; +0xc5, 0x140065105\nadd     rsp, 20h                                                       ; +0xca, 0x14006510a\npop     r14                                                            ; +0xce, 0x14006510e\npop     rdi                                                            ; +0xd0, 0x140065110\npop     rsi                                                            ; +0xd1, 0x140065111\nretn                                                                   ; +0xd2, 0x140065112", "xrefs": ["CreatorLayer::init @ 0x14009d1f0", "EditLevelLayer::init @ 0x1400d6746", "GauntletLayer::init @ 0x1401f658f", "GauntletSelectLayer::init @ 0x1401f9415", "GJDropDownLayer::init @ 0x140257294", "GJGarageLayer::init @ 0x1402749ed", "GJShopLayer::init @ 0x1402aab22", "LeaderboardsLayer::init @ 0x1402c2627", "LevelAreaLayer::init @ 0x1402c45f7", "LevelAreaInnerLayer::init @ 0x1402c6685", "LevelBrowserLayer::init @ 0x1402c9fd5", "LevelInfoLayer::init @ 0x1402f9785", "LevelListLayer::init @ 0x140305000", "LevelSearchLayer::init @ 0x14030dc4f", "LevelSelectLayer::init @ 0x140319168", "SecretRewardsLayer::init @ 0x1403d2c25", "SecretLayer::init @ 0x1403ddcd8", "SecretLayer2::init @ 0x1403e3093", "SecretLayer3::init @ 0x1403eb4b7", "SecretLayer4::init @ 0x1403f0812", "SecretLayer5::init @ 0x1403f4818", "<???> @ 0x1406c5d78"], "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"}