{"type": "func", "start": 5369123104, "end": 5369123517, "name": "GameToolbox::addRThumbScrollButton", "pseudocode": "// \n// GameToolbox::addRThumbScrollButton from 0x140065120 to 0x1400652bd (413 bytes)\n// \n// 3 xrefs:\n// > AchievementsLayer::customSetup @ 0x140082298\n// > LevelBrowserLayer::init @ 0x1402c9fdd\n// > <???> @ 0x1406c5d84\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::addRThumbScrollButton(cocos2d::CCLayer *a1)\n{\n  cocos2d::CCDirector *v2; // rax\n  struct cocos2d::CCSprite *v3; // r14\n  cocos2d::CCSprite_vtbl *v4; // rbx\n  __int64 v5; // rcx\n  cocos2d::CCDirector *v6; // rax\n  float v7; // xmm0_4\n  const cocos2d::CCPoint *v8; // rax\n  struct cocos2d::CCSprite *v9; // rdi\n  __int64 v10; // rax\n  struct cocos2d::CCSprite *v11; // rdi\n  __int64 v12; // rax\n  float v13; // [rsp+54h] [rbp+Ch]\n  cocos2d::CCPoint v14; // [rsp+58h] [rbp+10h] BYREF\n  cocos2d::CCPoint v15; // [rsp+60h] [rbp+18h] BYREF\n\n  v2 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(a1);\n  cocos2d::CCDirector::getWinSize(v2);\n  v3 = cocos2d::CCSprite::createWithSpriteFrameName(\"controllerBtn_RThumb_001.png\");\n  a1->addChild_1(a1, v3);\n  v4 = v3->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v5);\n  v7 = cocos2d::CCDirector::getScreenRight(v6) - 24.0;\n  cocos2d::CCPoint::CCPoint(&v14, v7, (float)(v13 * 0.5) + 80.0);\n  v4->setPosition_0(v3, v8);\n  v9 = cocos2d::CCSprite::createWithSpriteFrameName(\"edit_upBtn_001.png\");\n  a1->addChild_1(a1, v9);\n  cocos2d::CCPoint::CCPoint(&v15, 0.0, 22.0);\n  v10 = (__int64)v3->getPosition_0(v3);\n  cocos2d::CCPoint::operator+(v10, &v14);\n  v9->setPosition_0(v9, &v14);\n  ((void (__fastcall *)(struct cocos2d::CCSprite *))v9->setScale_0)(v9);\n  v11 = cocos2d::CCSprite::createWithSpriteFrameName(\"edit_downBtn_001.png\");\n  a1->addChild_1(a1, v11);\n  cocos2d::CCPoint::CCPoint(&v15, 0.0, -22.0);\n  v12 = (__int64)v3->getPosition_0(v3);\n  cocos2d::CCPoint::operator+(v12, &v14);\n  v11->setPosition_0(v11, &v14);\n  ((void (__fastcall *)(struct cocos2d::CCSprite *))v11->setScale_0)(v11);\n}", "assembly": "; \n; GameToolbox::addRThumbScrollButton from 0x140065120 to 0x1400652bd (413 bytes)\n; \n; 3 xrefs:\n; > AchievementsLayer::customSetup @ 0x140082298\n; > LevelBrowserLayer::init @ 0x1402c9fdd\n; > <???> @ 0x1406c5d84\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, 0x140065120\npush    rsi                                                            ; +0x5, 0x140065125\npush    rdi                                                            ; +0x6, 0x140065126\npush    r14                                                            ; +0x7, 0x140065127\nsub     rsp, 30h                                                       ; +0x9, 0x140065129\nmovaps  [rsp+48h+var_28], xmm6                                         ; +0xd, 0x14006512d\nmov     rsi, rcx                                                       ; +0x12, 0x140065132\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x15, 0x140065135\nmov     rcx, rax                                                       ; +0x1b, 0x14006513b\nlea     rdx, [rsp+48h+arg_0]                                           ; +0x1e, 0x14006513e\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x23, 0x140065143\nlea     rcx, aControllerbtnR; \"controllerBtn_RThumb_001.png\"           ; +0x29, 0x140065149\ncall    cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0x30, 0x140065150\nmov     r8, [rsi]                                                      ; +0x36, 0x140065156\nmov     rcx, rsi                                                       ; +0x39, 0x140065159\nmov     rdx, rax                                                       ; +0x3c, 0x14006515c\nmov     r14, rax                                                       ; +0x3f, 0x14006515f\ncall    qword ptr [r8+1C0h]                                            ; +0x42, 0x140065162\nmovss   xmm6, [rsp+48h+arg_4]                                          ; +0x49, 0x140065169\nmulss   xmm6, cs:dword_140622B08                                       ; +0x4f, 0x14006516f\nmov     rbx, [r14]                                                     ; +0x57, 0x140065177\naddss   xmm6, cs:dword_14062326C                                       ; +0x5a, 0x14006517a\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x62, 0x140065182\nmov     rcx, rax                                                       ; +0x68, 0x140065188\ncall    cs:?getScreenRight@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getScreenRight(void) ; +0x6b, 0x14006518b\nmovaps  xmm2, xmm6                                                     ; +0x71, 0x140065191\nlea     rcx, [rsp+48h+arg_8]                                           ; +0x74, 0x140065194\nsubss   xmm0, cs:dword_140623140                                       ; +0x79, 0x140065199\nmovaps  xmm1, xmm0                                                     ; +0x81, 0x1400651a1\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x84, 0x1400651a4\nmov     rdx, rax                                                       ; +0x8a, 0x1400651aa\nmov     rcx, r14                                                       ; +0x8d, 0x1400651ad\ncall    qword ptr [rbx+0B8h]                                           ; +0x90, 0x1400651b0\nlea     rcx, aEditUpbtn001Pn; \"edit_upBtn_001.png\"                     ; +0x96, 0x1400651b6\ncall    cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0x9d, 0x1400651bd\nmov     r8, [rsi]                                                      ; +0xa3, 0x1400651c3\nmov     rcx, rsi                                                       ; +0xa6, 0x1400651c6\nmov     rdx, rax                                                       ; +0xa9, 0x1400651c9\nmov     rdi, rax                                                       ; +0xac, 0x1400651cc\ncall    qword ptr [r8+1C0h]                                            ; +0xaf, 0x1400651cf\nmovss   xmm2, cs:dword_140623134                                       ; +0xb6, 0x1400651d6\nlea     rcx, [rsp+48h+arg_10]                                          ; +0xbe, 0x1400651de\nxorps   xmm1, xmm1                                                     ; +0xc3, 0x1400651e3\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xc6, 0x1400651e6\nmov     rdx, [r14]                                                     ; +0xcc, 0x1400651ec\nmov     rcx, r14                                                       ; +0xcf, 0x1400651ef\nmov     rbx, rax                                                       ; +0xd2, 0x1400651f2\ncall    qword ptr [rdx+0C8h]                                           ; +0xd5, 0x1400651f5\nmov     r8, rbx                                                        ; +0xdb, 0x1400651fb\nlea     rdx, [rsp+48h+arg_8]                                           ; +0xde, 0x1400651fe\nmov     rcx, rax                                                       ; +0xe3, 0x140065203\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0xe6, 0x140065206\nmov     rax, [rdi]                                                     ; +0xec, 0x14006520c\nlea     rdx, [rsp+48h+arg_8]                                           ; +0xef, 0x14006520f\nmov     rcx, rdi                                                       ; +0xf4, 0x140065214\ncall    qword ptr [rax+0B8h]                                           ; +0xf7, 0x140065217\nmov     rax, [rdi]                                                     ; +0xfd, 0x14006521d\nmov     rcx, rdi                                                       ; +0x100, 0x140065220\nmovss   xmm6, cs:dword_140622B74                                       ; +0x103, 0x140065223\nmovaps  xmm1, xmm6                                                     ; +0x10b, 0x14006522b\ncall    qword ptr [rax+0A0h]                                           ; +0x10e, 0x14006522e\nlea     rcx, aEditDownbtn001; \"edit_downBtn_001.png\"                   ; +0x114, 0x140065234\ncall    cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0x11b, 0x14006523b\nmov     r8, [rsi]                                                      ; +0x121, 0x140065241\nmov     rcx, rsi                                                       ; +0x124, 0x140065244\nmov     rdx, rax                                                       ; +0x127, 0x140065247\nmov     rdi, rax                                                       ; +0x12a, 0x14006524a\ncall    qword ptr [r8+1C0h]                                            ; +0x12d, 0x14006524d\nmovss   xmm2, cs:dword_1406238A4                                       ; +0x134, 0x140065254\nlea     rcx, [rsp+48h+arg_10]                                          ; +0x13c, 0x14006525c\nxorps   xmm1, xmm1                                                     ; +0x141, 0x140065261\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x144, 0x140065264\nmov     rdx, [r14]                                                     ; +0x14a, 0x14006526a\nmov     rcx, r14                                                       ; +0x14d, 0x14006526d\nmov     rbx, rax                                                       ; +0x150, 0x140065270\ncall    qword ptr [rdx+0C8h]                                           ; +0x153, 0x140065273\nmov     r8, rbx                                                        ; +0x159, 0x140065279\nlea     rdx, [rsp+48h+arg_8]                                           ; +0x15c, 0x14006527c\nmov     rcx, rax                                                       ; +0x161, 0x140065281\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x164, 0x140065284\nmov     rax, [rdi]                                                     ; +0x16a, 0x14006528a\nlea     rdx, [rsp+48h+arg_8]                                           ; +0x16d, 0x14006528d\nmov     rcx, rdi                                                       ; +0x172, 0x140065292\ncall    qword ptr [rax+0B8h]                                           ; +0x175, 0x140065295\nmov     rax, [rdi]                                                     ; +0x17b, 0x14006529b\nmovaps  xmm1, xmm6                                                     ; +0x17e, 0x14006529e\nmov     rcx, rdi                                                       ; +0x181, 0x1400652a1\ncall    qword ptr [rax+0A0h]                                           ; +0x184, 0x1400652a4\nmov     rbx, [rsp+48h+arg_18]                                          ; +0x18a, 0x1400652aa\nmovaps  xmm6, [rsp+48h+var_28]                                         ; +0x18f, 0x1400652af\nadd     rsp, 30h                                                       ; +0x194, 0x1400652b4\npop     r14                                                            ; +0x198, 0x1400652b8\npop     rdi                                                            ; +0x19a, 0x1400652ba\npop     rsi                                                            ; +0x19b, 0x1400652bb\nretn                                                                   ; +0x19c, 0x1400652bc", "xrefs": ["AchievementsLayer::customSetup @ 0x140082298", "LevelBrowserLayer::init @ 0x1402c9fdd", "<???> @ 0x1406c5d84"], "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"}