{"type": "func", "start": 4295269924, "end": 4295270356, "name": "GameToolbox::addRThumbScrollButton", "pseudocode": "// \n// GameToolbox::addRThumbScrollButton from 0x100049e24 to 0x100049fd4 (432 bytes)\n// \n// 2 xrefs:\n// > LevelBrowserLayer::init @ 0x100496b74\n// > AchievementsLayer::customSetup @ 0x1004a4550\n// \n// This function is hookable on this platform (idp: arm, 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 10:57:40 +0000\n// \n\n__int64 __fastcall GameToolbox::addRThumbScrollButton(__int64 a1)\n{\n  __int64 v2; // x0\n  __int64 v3; // x20\n  __int64 v4; // x0\n  __int64 v5; // x0\n  double v6; // d0\n  __int64 v7; // x21\n  float32x2_t *v8; // x22\n  double v9; // d0\n  __int64 v10; // x21\n  float32x2_t *v11; // x19\n  double v12; // d0\n  float32x2_t v14; // [xsp+8h] [xbp-48h] BYREF\n  float32x2_t v15; // [xsp+10h] [xbp-40h] BYREF\n  __int64 v16; // [xsp+18h] [xbp-38h] BYREF\n\n  v2 = cocos2d::CCDirector::sharedDirector(a1);\n  cocos2d::CCDirector::getWinSize(&v16, v2);\n  v3 = cocos2d::CCSprite::createWithSpriteFrameName(\"controllerBtn_RThumb_001.png\");\n  v4 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 456LL))(a1, v3);\n  v5 = cocos2d::CCDirector::sharedDirector(v4);\n  v6 = sub_100207EB0(v5);\n  sub_1000262BC((float *)&v15, *(float *)&v6 + -24.0, (float)(*((float *)&v16 + 1) * 0.5) + 80.0);\n  (*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v3 + 184LL))(v3, &v15);\n  v7 = cocos2d::CCSprite::createWithSpriteFrameName(\"edit_upBtn_001.png\");\n  (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 456LL))(a1, v7);\n  v8 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 192LL))(v3);\n  sub_1000262BC((float *)&v14, 0.0, 22.0);\n  *(float32x2_t *)&v9 = sub_100026318(v8, &v14, &v15);\n  (*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v7 + 184LL))(v7, &v15, v9);\n  (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v7 + 160LL))(v7, 0.7);\n  v10 = cocos2d::CCSprite::createWithSpriteFrameName(\"edit_downBtn_001.png\");\n  (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 456LL))(a1, v10);\n  v11 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 192LL))(v3);\n  sub_1000262BC((float *)&v14, 0.0, -22.0);\n  *(float32x2_t *)&v12 = sub_100026318(v11, &v14, &v15);\n  (*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v10 + 184LL))(v10, &v15, v12);\n  return (*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v10 + 160LL))(v10, 0.7);\n}", "assembly": "; \n; GameToolbox::addRThumbScrollButton from 0x100049e24 to 0x100049fd4 (432 bytes)\n; \n; 2 xrefs:\n; > LevelBrowserLayer::init @ 0x100496b74\n; > AchievementsLayer::customSetup @ 0x1004a4550\n; \n; This function is hookable on this platform (idp: arm, 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 10:57:40 +0000\n; \nSUB             SP, SP, #0x60                                          ; +0x0, 0x100049e24\nSTP             D9, D8, [SP,#0x50+var_30]                              ; +0x4, 0x100049e28\nSTP             X22, X21, [SP,#0x50+var_20]                            ; +0x8, 0x100049e2c\nSTP             X20, X19, [SP,#0x50+var_10]                            ; +0xc, 0x100049e30\nSTP             X29, X30, [SP,#0x50+var_s0]                            ; +0x10, 0x100049e34\nADD             X29, SP, #0x50                                         ; +0x14, 0x100049e38\nMOV             X19, X0                                                ; +0x18, 0x100049e3c\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x1c, 0x100049e40\nADD             X8, SP, #0x50+var_38                                   ; +0x20, 0x100049e44\nBL              cocos2d__CCDirector__getWinSize                        ; +0x24, 0x100049e48\nADRL            X0, aControllerbtnR_1; \"controllerBtn_RThumb_001.png\"  ; +0x28, 0x100049e4c\nBL              cocos2d__CCSprite__createWithSpriteFrameName           ; +0x30, 0x100049e54\nMOV             X20, X0                                                ; +0x34, 0x100049e58\nLDR             X8, [X19]                                              ; +0x38, 0x100049e5c\nLDR             X8, [X8,#0x1C8]                                        ; +0x3c, 0x100049e60\nMOV             X0, X19                                                ; +0x40, 0x100049e64\nMOV             X1, X20                                                ; +0x44, 0x100049e68\nBLR             X8                                                     ; +0x48, 0x100049e6c\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x4c, 0x100049e70\nBL              sub_100207EB0                                          ; +0x50, 0x100049e74\nFMOV            S1, #-24.0                                             ; +0x54, 0x100049e78\nFADD            S0, S0, S1                                             ; +0x58, 0x100049e7c\nLDR             S1, [SP,#0x50+var_34]                                  ; +0x5c, 0x100049e80\nFMOV            S2, #0.5                                               ; +0x60, 0x100049e84\nFMUL            S1, S1, S2                                             ; +0x64, 0x100049e88\nMOV             W8, #0x42A00000                                        ; +0x68, 0x100049e8c\nFMOV            S2, W8                                                 ; +0x6c, 0x100049e90\nFADD            S1, S1, S2                                             ; +0x70, 0x100049e94\nADD             X0, SP, #0x50+var_40                                   ; +0x74, 0x100049e98\nBL              sub_1000262BC                                          ; +0x78, 0x100049e9c\nLDR             X8, [X20]                                              ; +0x7c, 0x100049ea0\nLDR             X8, [X8,#0xB8]                                         ; +0x80, 0x100049ea4\nADD             X1, SP, #0x50+var_40                                   ; +0x84, 0x100049ea8\nMOV             X0, X20                                                ; +0x88, 0x100049eac\nBLR             X8                                                     ; +0x8c, 0x100049eb0\nADRL            X0, aEditUpbtn001Pn; \"edit_upBtn_001.png\"              ; +0x90, 0x100049eb4\nBL              cocos2d__CCSprite__createWithSpriteFrameName           ; +0x98, 0x100049ebc\nMOV             X21, X0                                                ; +0x9c, 0x100049ec0\nLDR             X8, [X19]                                              ; +0xa0, 0x100049ec4\nLDR             X8, [X8,#0x1C8]                                        ; +0xa4, 0x100049ec8\nMOV             X0, X19                                                ; +0xa8, 0x100049ecc\nMOV             X1, X21                                                ; +0xac, 0x100049ed0\nBLR             X8                                                     ; +0xb0, 0x100049ed4\nLDR             X8, [X20]                                              ; +0xb4, 0x100049ed8\nLDR             X8, [X8,#0xC0]                                         ; +0xb8, 0x100049edc\nMOV             X0, X20                                                ; +0xbc, 0x100049ee0\nBLR             X8                                                     ; +0xc0, 0x100049ee4\nMOV             X22, X0                                                ; +0xc4, 0x100049ee8\nADD             X0, SP, #0x50+var_48                                   ; +0xc8, 0x100049eec\nFMOV            S0, WZR                                                ; +0xcc, 0x100049ef0\nFMOV            S1, #22.0                                              ; +0xd0, 0x100049ef4\nBL              sub_1000262BC                                          ; +0xd4, 0x100049ef8\nADD             X8, SP, #0x50+var_40                                   ; +0xd8, 0x100049efc\nADD             X1, SP, #0x50+var_48                                   ; +0xdc, 0x100049f00\nMOV             X0, X22                                                ; +0xe0, 0x100049f04\nBL              sub_100026318                                          ; +0xe4, 0x100049f08\nLDR             X8, [X21]                                              ; +0xe8, 0x100049f0c\nLDR             X8, [X8,#0xB8]                                         ; +0xec, 0x100049f10\nADD             X1, SP, #0x50+var_40                                   ; +0xf0, 0x100049f14\nMOV             X0, X21                                                ; +0xf4, 0x100049f18\nBLR             X8                                                     ; +0xf8, 0x100049f1c\nLDR             X8, [X21]                                              ; +0xfc, 0x100049f20\nLDR             X8, [X8,#0xA0]                                         ; +0x100, 0x100049f24\nADRP            X9, #dword_10075BD20@PAGE                              ; +0x104, 0x100049f28\nLDR             S8, [X9,#dword_10075BD20@PAGEOFF]                      ; +0x108, 0x100049f2c\nMOV             X0, X21                                                ; +0x10c, 0x100049f30\nFMOV            S0, S8                                                 ; +0x110, 0x100049f34\nBLR             X8                                                     ; +0x114, 0x100049f38\nADRL            X0, aEditDownbtn001; \"edit_downBtn_001.png\"            ; +0x118, 0x100049f3c\nBL              cocos2d__CCSprite__createWithSpriteFrameName           ; +0x120, 0x100049f44\nMOV             X21, X0                                                ; +0x124, 0x100049f48\nLDR             X8, [X19]                                              ; +0x128, 0x100049f4c\nLDR             X8, [X8,#0x1C8]                                        ; +0x12c, 0x100049f50\nMOV             X0, X19                                                ; +0x130, 0x100049f54\nMOV             X1, X21                                                ; +0x134, 0x100049f58\nBLR             X8                                                     ; +0x138, 0x100049f5c\nLDR             X8, [X20]                                              ; +0x13c, 0x100049f60\nLDR             X8, [X8,#0xC0]                                         ; +0x140, 0x100049f64\nMOV             X0, X20                                                ; +0x144, 0x100049f68\nBLR             X8                                                     ; +0x148, 0x100049f6c\nMOV             X19, X0                                                ; +0x14c, 0x100049f70\nADD             X0, SP, #0x50+var_48                                   ; +0x150, 0x100049f74\nFMOV            S0, WZR                                                ; +0x154, 0x100049f78\nFMOV            S1, #-22.0                                             ; +0x158, 0x100049f7c\nBL              sub_1000262BC                                          ; +0x15c, 0x100049f80\nADD             X8, SP, #0x50+var_40                                   ; +0x160, 0x100049f84\nADD             X1, SP, #0x50+var_48                                   ; +0x164, 0x100049f88\nMOV             X0, X19                                                ; +0x168, 0x100049f8c\nBL              sub_100026318                                          ; +0x16c, 0x100049f90\nLDR             X8, [X21]                                              ; +0x170, 0x100049f94\nLDR             X8, [X8,#0xB8]                                         ; +0x174, 0x100049f98\nADD             X1, SP, #0x50+var_40                                   ; +0x178, 0x100049f9c\nMOV             X0, X21                                                ; +0x17c, 0x100049fa0\nBLR             X8                                                     ; +0x180, 0x100049fa4\nLDR             X8, [X21]                                              ; +0x184, 0x100049fa8\nLDR             X8, [X8,#0xA0]                                         ; +0x188, 0x100049fac\nMOV             X0, X21                                                ; +0x18c, 0x100049fb0\nFMOV            S0, S8                                                 ; +0x190, 0x100049fb4\nBLR             X8                                                     ; +0x194, 0x100049fb8\nLDP             X29, X30, [SP,#0x50+var_s0]                            ; +0x198, 0x100049fbc\nLDP             X20, X19, [SP,#0x50+var_10]                            ; +0x19c, 0x100049fc0\nLDP             X22, X21, [SP,#0x50+var_20]                            ; +0x1a0, 0x100049fc4\nLDP             D9, D8, [SP,#0x50+var_30]                              ; +0x1a4, 0x100049fc8\nADD             SP, SP, #0x60 ; '`'                                    ; +0x1a8, 0x100049fcc\nRET                                                                    ; +0x1ac, 0x100049fd0", "xrefs": ["LevelBrowserLayer::init @ 0x100496b74", "AchievementsLayer::customSetup @ 0x1004a4550"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}