{"type": "func", "start": 5369164032, "end": 5369164460, "name": "GameToolbox::addRThumbScrollButton", "pseudocode": "// \n// GameToolbox::addRThumbScrollButton from 0x14006f100 to 0x14006f2ac (428 bytes)\n// \n// 3 xrefs:\n// > AchievementsLayer::customSetup @ 0x140097957\n// > LevelBrowserLayer::init @ 0x1403e3faa\n// > <???> @ 0x140911750\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::addRThumbScrollButton(__int64 a1)\n{\n  __int64 v2; // rax\n  struct cocos2d::CCSprite *v3; // r14\n  __int64 v4; // rbx\n  float v5; // xmm6_4\n  cocos2d::CCDirector *v6; // rax\n  float v7; // xmm0_4\n  __int64 v8; // rax\n  struct cocos2d::CCSprite *v9; // rdi\n  __int64 v10; // rax\n  __int64 v11; // rbx\n  __int64 v12; // rax\n  struct cocos2d::CCSprite *v13; // rdi\n  __int64 v14; // rax\n  __int64 v15; // rbx\n  __int64 v16; // rax\n  char v18; // [rsp+50h] [rbp+8h] BYREF\n  float v19; // [rsp+54h] [rbp+Ch]\n  char v20; // [rsp+58h] [rbp+10h] BYREF\n  char v21; // [rsp+60h] [rbp+18h] BYREF\n\n  v2 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::getWinSize(v2, &v18);\n  v3 = cocos2d::CCSprite::createWithSpriteFrameName(\"controllerBtn_RThumb_001.png\");\n  (*(void (__fastcall **)(__int64, struct cocos2d::CCSprite *))(*(_QWORD *)a1 + 464LL))(a1, v3);\n  v4 = *(_QWORD *)v3;\n  v5 = (float)(v19 * 0.5) + 80.0;\n  v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector();\n  v7 = cocos2d::CCDirector::getScreenRight(v6) - 24.0;\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v20, v7, v5);\n  (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v4 + 184))(v3, v8);\n  v9 = cocos2d::CCSprite::createWithSpriteFrameName(\"edit_upBtn_001.png\");\n  (*(void (__fastcall **)(__int64, struct cocos2d::CCSprite *))(*(_QWORD *)a1 + 464LL))(a1, v9);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v21, 0.0, 22.0);\n  v11 = v10;\n  v12 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v3 + 200LL))(v3);\n  cocos2d::CCPoint::operator+(v12, &v20, v11);\n  (*(void (__fastcall **)(struct cocos2d::CCSprite *, char *))(*(_QWORD *)v9 + 184LL))(v9, &v20);\n  (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v9 + 160LL))(v9);\n  v13 = cocos2d::CCSprite::createWithSpriteFrameName(\"edit_downBtn_001.png\");\n  (*(void (__fastcall **)(__int64, struct cocos2d::CCSprite *))(*(_QWORD *)a1 + 464LL))(a1, v13);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v21, 0.0, -22.0);\n  v15 = v14;\n  v16 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v3 + 200LL))(v3);\n  cocos2d::CCPoint::operator+(v16, &v20, v15);\n  (*(void (__fastcall **)(struct cocos2d::CCSprite *, char *))(*(_QWORD *)v13 + 184LL))(v13, &v20);\n  return (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v13 + 160LL))(v13);\n}", "assembly": "; \n; GameToolbox::addRThumbScrollButton from 0x14006f100 to 0x14006f2ac (428 bytes)\n; \n; 3 xrefs:\n; > AchievementsLayer::customSetup @ 0x140097957\n; > LevelBrowserLayer::init @ 0x1403e3faa\n; > <???> @ 0x140911750\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; \nmov     [rsp+arg_18], rbx                                              ; +0x0, 0x14006f100\npush    rsi                                                            ; +0x5, 0x14006f105\npush    rdi                                                            ; +0x6, 0x14006f106\npush    r14                                                            ; +0x7, 0x14006f107\nsub     rsp, 30h                                                       ; +0x9, 0x14006f109\nmovaps  [rsp+48h+var_28], xmm6                                         ; +0xd, 0x14006f10d\nmov     rsi, rcx                                                       ; +0x12, 0x14006f112\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x15, 0x14006f115\nmov     rcx, rax                                                       ; +0x1b, 0x14006f11b\nlea     rdx, [rsp+48h+arg_0]                                           ; +0x1e, 0x14006f11e\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x23, 0x14006f123\nlea     rcx, aControllerbtnR; \"controllerBtn_RThumb_001.png\"           ; +0x29, 0x14006f129\ncall    cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0x30, 0x14006f130\nmov     rdx, [rsi]                                                     ; +0x36, 0x14006f136\nmov     rcx, rsi                                                       ; +0x39, 0x14006f139\nmov     r14, rax                                                       ; +0x3c, 0x14006f13c\nmov     r8, [rdx+1D0h]                                                 ; +0x3f, 0x14006f13f\nmov     rdx, rax                                                       ; +0x46, 0x14006f146\ncall    r8                                                             ; +0x49, 0x14006f149\nmovss   xmm6, [rsp+48h+arg_4]                                          ; +0x4c, 0x14006f14c\nmulss   xmm6, cs:dword_140834F20                                       ; +0x52, 0x14006f152\nmov     rbx, [r14]                                                     ; +0x5a, 0x14006f15a\naddss   xmm6, cs:dword_14083574C                                       ; +0x5d, 0x14006f15d\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x65, 0x14006f165\nmov     rcx, rax                                                       ; +0x6b, 0x14006f16b\ncall    cs:?getScreenRight@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getScreenRight(void) ; +0x6e, 0x14006f16e\nmovaps  xmm2, xmm6                                                     ; +0x74, 0x14006f174\nlea     rcx, [rsp+48h+arg_8]                                           ; +0x77, 0x14006f177\nsubss   xmm0, cs:dword_1408355E4                                       ; +0x7c, 0x14006f17c\nmovaps  xmm1, xmm0                                                     ; +0x84, 0x14006f184\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x87, 0x14006f187\nmov     rdx, rax                                                       ; +0x8d, 0x14006f18d\nmov     rcx, r14                                                       ; +0x90, 0x14006f190\ncall    qword ptr [rbx+0B8h]                                           ; +0x93, 0x14006f193\nlea     rcx, aEditUpbtn001Pn; \"edit_upBtn_001.png\"                     ; +0x99, 0x14006f199\ncall    cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0xa0, 0x14006f1a0\nmov     rcx, [rsi]                                                     ; +0xa6, 0x14006f1a6\nmov     rdx, rax                                                       ; +0xa9, 0x14006f1a9\nmov     rdi, rax                                                       ; +0xac, 0x14006f1ac\nmov     r8, [rcx+1D0h]                                                 ; +0xaf, 0x14006f1af\nmov     rcx, rsi                                                       ; +0xb6, 0x14006f1b6\ncall    r8                                                             ; +0xb9, 0x14006f1b9\nmovss   xmm2, cs:dword_1408355D0                                       ; +0xbc, 0x14006f1bc\nlea     rcx, [rsp+48h+arg_10]                                          ; +0xc4, 0x14006f1c4\nxorps   xmm1, xmm1                                                     ; +0xc9, 0x14006f1c9\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xcc, 0x14006f1cc\nmov     rcx, [r14]                                                     ; +0xd2, 0x14006f1d2\nmov     rbx, rax                                                       ; +0xd5, 0x14006f1d5\nmov     rdx, [rcx+0C8h]                                                ; +0xd8, 0x14006f1d8\nmov     rcx, r14                                                       ; +0xdf, 0x14006f1df\ncall    rdx                                                            ; +0xe2, 0x14006f1e2\nmov     r8, rbx                                                        ; +0xe4, 0x14006f1e4\nlea     rdx, [rsp+48h+arg_8]                                           ; +0xe7, 0x14006f1e7\nmov     rcx, rax                                                       ; +0xec, 0x14006f1ec\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0xef, 0x14006f1ef\nmov     rax, [rdi]                                                     ; +0xf5, 0x14006f1f5\nlea     rdx, [rsp+48h+arg_8]                                           ; +0xf8, 0x14006f1f8\nmov     rcx, rdi                                                       ; +0xfd, 0x14006f1fd\ncall    qword ptr [rax+0B8h]                                           ; +0x100, 0x14006f200\nmov     rax, [rdi]                                                     ; +0x106, 0x14006f206\nmov     rcx, rdi                                                       ; +0x109, 0x14006f209\nmovss   xmm6, cs:dword_140834FAC                                       ; +0x10c, 0x14006f20c\nmovaps  xmm1, xmm6                                                     ; +0x114, 0x14006f214\ncall    qword ptr [rax+0A0h]                                           ; +0x117, 0x14006f217\nlea     rcx, aEditDownbtn001; \"edit_downBtn_001.png\"                   ; +0x11d, 0x14006f21d\ncall    cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0x124, 0x14006f224\nmov     rcx, [rsi]                                                     ; +0x12a, 0x14006f22a\nmov     rdx, rax                                                       ; +0x12d, 0x14006f22d\nmov     rdi, rax                                                       ; +0x130, 0x14006f230\nmov     r8, [rcx+1D0h]                                                 ; +0x133, 0x14006f233\nmov     rcx, rsi                                                       ; +0x13a, 0x14006f23a\ncall    r8                                                             ; +0x13d, 0x14006f23d\nmovss   xmm2, cs:dword_140835E50                                       ; +0x140, 0x14006f240\nlea     rcx, [rsp+48h+arg_10]                                          ; +0x148, 0x14006f248\nxorps   xmm1, xmm1                                                     ; +0x14d, 0x14006f24d\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x150, 0x14006f250\nmov     rcx, [r14]                                                     ; +0x156, 0x14006f256\nmov     rbx, rax                                                       ; +0x159, 0x14006f259\nmov     rdx, [rcx+0C8h]                                                ; +0x15c, 0x14006f25c\nmov     rcx, r14                                                       ; +0x163, 0x14006f263\ncall    rdx                                                            ; +0x166, 0x14006f266\nmov     r8, rbx                                                        ; +0x168, 0x14006f268\nlea     rdx, [rsp+48h+arg_8]                                           ; +0x16b, 0x14006f26b\nmov     rcx, rax                                                       ; +0x170, 0x14006f270\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x173, 0x14006f273\nmov     rax, [rdi]                                                     ; +0x179, 0x14006f279\nlea     rdx, [rsp+48h+arg_8]                                           ; +0x17c, 0x14006f27c\nmov     rcx, rdi                                                       ; +0x181, 0x14006f281\ncall    qword ptr [rax+0B8h]                                           ; +0x184, 0x14006f284\nmov     rax, [rdi]                                                     ; +0x18a, 0x14006f28a\nmovaps  xmm1, xmm6                                                     ; +0x18d, 0x14006f28d\nmov     rcx, rdi                                                       ; +0x190, 0x14006f290\ncall    qword ptr [rax+0A0h]                                           ; +0x193, 0x14006f293\nmov     rbx, [rsp+48h+arg_18]                                          ; +0x199, 0x14006f299\nmovaps  xmm6, [rsp+48h+var_28]                                         ; +0x19e, 0x14006f29e\nadd     rsp, 30h                                                       ; +0x1a3, 0x14006f2a3\npop     r14                                                            ; +0x1a7, 0x14006f2a7\npop     rdi                                                            ; +0x1a9, 0x14006f2a9\npop     rsi                                                            ; +0x1aa, 0x14006f2aa\nretn                                                                   ; +0x1ab, 0x14006f2ab", "xrefs": ["AchievementsLayer::customSetup @ 0x140097957", "LevelBrowserLayer::init @ 0x1403e3faa", "<???> @ 0x140911750"], "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"}