{"type": "func", "start": 4295248740, "end": 4295249172, "name": "GameToolbox::addRThumbScrollButton", "pseudocode": "// \n// GameToolbox::addRThumbScrollButton from 0x100044b64 to 0x100044d14 (432 bytes)\n// \n// 2 xrefs:\n// > LevelBrowserLayer::init @ 0x100415840\n// > AchievementsLayer::customSetup @ 0x10042207c\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 __fastcall GameToolbox::addRThumbScrollButton(cocos2d::CCLayer *a1)\n{\n  cocos2d::CCDirector *v2; // x0\n  cocos2d::CCSprite *v3; // x20\n  cocos2d::CCDirector *v4; // x0\n  __n128 v5; // q0\n  __n128 v6; // q1\n  cocos2d::CCSprite *v7; // x21\n  float32x2_t *v8; // x22\n  __n128 v9; // q0\n  __n128 v10; // q1\n  double v11; // d0\n  cocos2d::CCSprite *v12; // x21\n  float32x2_t *v13; // x19\n  __n128 v14; // q0\n  __n128 v15; // q1\n  double v16; // d0\n  float32x2_t v17; // [xsp+8h] [xbp-48h] BYREF\n  float32x2_t v18; // [xsp+10h] [xbp-40h] BYREF\n  float v19; // [xsp+1Ch] [xbp-34h]\n\n  v2 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::getWinSize(v2);\n  v3 = cocos2d::CCSprite::createWithSpriteFrameName(\"controllerBtn_RThumb_001.png\");\n  ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *))a1->addChild)(a1, v3);\n  v4 = cocos2d::CCDirector::sharedDirector();\n  v5.n128_f32[0] = sub_1001768E0(v4) + -24.0;\n  v6.n128_f32[0] = (float)(v19 * 0.5) + 80.0;\n  sub_100022980(v5, v6, &v18);\n  ((void (__fastcall *)(cocos2d::CCSprite *, float32x2_t *))v3->setPosition)(v3, &v18);\n  v7 = cocos2d::CCSprite::createWithSpriteFrameName(\"edit_upBtn_001.png\");\n  ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *))a1->addChild)(a1, v7);\n  v8 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v3->getPosition)(v3);\n  v9.n128_u32[0] = 0;\n  v10.n128_u32[0] = 22.0;\n  sub_100022980(v9, v10, &v17);\n  *(float32x2_t *)&v11 = sub_1000229DC(v8, &v17, &v18);\n  ((void (__fastcall *)(cocos2d::CCSprite *, float32x2_t *, double))v7->setPosition)(v7, &v18, v11);\n  ((void (__fastcall *)(cocos2d::CCSprite *, float))v7->setScale)(v7, 0.7);\n  v12 = cocos2d::CCSprite::createWithSpriteFrameName(\"edit_downBtn_001.png\");\n  ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *))a1->addChild)(a1, v12);\n  v13 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v3->getPosition)(v3);\n  v14.n128_u32[0] = 0;\n  v15.n128_u32[0] = -22.0;\n  sub_100022980(v14, v15, &v17);\n  *(float32x2_t *)&v16 = sub_1000229DC(v13, &v17, &v18);\n  ((void (__fastcall *)(cocos2d::CCSprite *, float32x2_t *, double))v12->setPosition)(v12, &v18, v16);\n  ((void (__fastcall *)(cocos2d::CCSprite *, float))v12->setScale)(v12, 0.7);\n}", "assembly": "; \n; GameToolbox::addRThumbScrollButton from 0x100044b64 to 0x100044d14 (432 bytes)\n; \n; 2 xrefs:\n; > LevelBrowserLayer::init @ 0x100415840\n; > AchievementsLayer::customSetup @ 0x10042207c\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\nSUB             SP, SP, #0x60                                          ; +0x0, 0x100044b64\nSTP             D9, D8, [SP,#0x50+var_30]                              ; +0x4, 0x100044b68\nSTP             X22, X21, [SP,#0x50+var_20]                            ; +0x8, 0x100044b6c\nSTP             X20, X19, [SP,#0x50+var_10]                            ; +0xc, 0x100044b70\nSTP             X29, X30, [SP,#0x50+var_s0]                            ; +0x10, 0x100044b74\nADD             X29, SP, #0x50                                         ; +0x14, 0x100044b78\nMOV             X19, X0                                                ; +0x18, 0x100044b7c\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x1c, 0x100044b80\nADD             X8, SP, #0x50+var_38                                   ; +0x20, 0x100044b84\nBL              cocos2d__CCDirector__getWinSize                        ; +0x24, 0x100044b88\nADRL            X0, aControllerbtnR; \"controllerBtn_RThumb_001.png\"    ; +0x28, 0x100044b8c\nBL              cocos2d__CCSprite__createWithSpriteFrameName           ; +0x30, 0x100044b94\nMOV             X20, X0                                                ; +0x34, 0x100044b98\nLDR             X8, [X19]                                              ; +0x38, 0x100044b9c\nLDR             X8, [X8,#0x1B8]                                        ; +0x3c, 0x100044ba0\nMOV             X0, X19                                                ; +0x40, 0x100044ba4\nMOV             X1, X20                                                ; +0x44, 0x100044ba8\nBLR             X8                                                     ; +0x48, 0x100044bac\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x4c, 0x100044bb0\nBL              sub_1001768E0                                          ; +0x50, 0x100044bb4\nFMOV            S1, #-24.0                                             ; +0x54, 0x100044bb8\nFADD            S0, S0, S1                                             ; +0x58, 0x100044bbc\nLDR             S1, [SP,#0x50+var_34]                                  ; +0x5c, 0x100044bc0\nFMOV            S2, #0.5                                               ; +0x60, 0x100044bc4\nFMUL            S1, S1, S2                                             ; +0x64, 0x100044bc8\nMOV             W8, #0x42A00000                                        ; +0x68, 0x100044bcc\nFMOV            S2, W8                                                 ; +0x6c, 0x100044bd0\nFADD            S1, S1, S2                                             ; +0x70, 0x100044bd4\nADD             X0, SP, #0x50+var_40                                   ; +0x74, 0x100044bd8\nBL              sub_100022980                                          ; +0x78, 0x100044bdc\nLDR             X8, [X20]                                              ; +0x7c, 0x100044be0\nLDR             X8, [X8,#0xB8]                                         ; +0x80, 0x100044be4\nADD             X1, SP, #0x50+var_40                                   ; +0x84, 0x100044be8\nMOV             X0, X20                                                ; +0x88, 0x100044bec\nBLR             X8                                                     ; +0x8c, 0x100044bf0\nADRL            X0, aEditUpbtn001Pn; \"edit_upBtn_001.png\"              ; +0x90, 0x100044bf4\nBL              cocos2d__CCSprite__createWithSpriteFrameName           ; +0x98, 0x100044bfc\nMOV             X21, X0                                                ; +0x9c, 0x100044c00\nLDR             X8, [X19]                                              ; +0xa0, 0x100044c04\nLDR             X8, [X8,#0x1B8]                                        ; +0xa4, 0x100044c08\nMOV             X0, X19                                                ; +0xa8, 0x100044c0c\nMOV             X1, X21                                                ; +0xac, 0x100044c10\nBLR             X8                                                     ; +0xb0, 0x100044c14\nLDR             X8, [X20]                                              ; +0xb4, 0x100044c18\nLDR             X8, [X8,#0xC0]                                         ; +0xb8, 0x100044c1c\nMOV             X0, X20                                                ; +0xbc, 0x100044c20\nBLR             X8                                                     ; +0xc0, 0x100044c24\nMOV             X22, X0                                                ; +0xc4, 0x100044c28\nADD             X0, SP, #0x50+var_48                                   ; +0xc8, 0x100044c2c\nFMOV            S0, WZR                                                ; +0xcc, 0x100044c30\nFMOV            S1, #22.0                                              ; +0xd0, 0x100044c34\nBL              sub_100022980                                          ; +0xd4, 0x100044c38\nADD             X8, SP, #0x50+var_40                                   ; +0xd8, 0x100044c3c\nADD             X1, SP, #0x50+var_48                                   ; +0xdc, 0x100044c40\nMOV             X0, X22                                                ; +0xe0, 0x100044c44\nBL              sub_1000229DC                                          ; +0xe4, 0x100044c48\nLDR             X8, [X21]                                              ; +0xe8, 0x100044c4c\nLDR             X8, [X8,#0xB8]                                         ; +0xec, 0x100044c50\nADD             X1, SP, #0x50+var_40                                   ; +0xf0, 0x100044c54\nMOV             X0, X21                                                ; +0xf4, 0x100044c58\nBLR             X8                                                     ; +0xf8, 0x100044c5c\nLDR             X8, [X21]                                              ; +0xfc, 0x100044c60\nLDR             X8, [X8,#0xA0]                                         ; +0x100, 0x100044c64\nADRP            X9, #dword_100635380@PAGE                              ; +0x104, 0x100044c68\nLDR             S8, [X9,#dword_100635380@PAGEOFF]                      ; +0x108, 0x100044c6c\nMOV             X0, X21                                                ; +0x10c, 0x100044c70\nFMOV            S0, S8                                                 ; +0x110, 0x100044c74\nBLR             X8                                                     ; +0x114, 0x100044c78\nADRL            X0, aEditDownbtn001; \"edit_downBtn_001.png\"            ; +0x118, 0x100044c7c\nBL              cocos2d__CCSprite__createWithSpriteFrameName           ; +0x120, 0x100044c84\nMOV             X21, X0                                                ; +0x124, 0x100044c88\nLDR             X8, [X19]                                              ; +0x128, 0x100044c8c\nLDR             X8, [X8,#0x1B8]                                        ; +0x12c, 0x100044c90\nMOV             X0, X19                                                ; +0x130, 0x100044c94\nMOV             X1, X21                                                ; +0x134, 0x100044c98\nBLR             X8                                                     ; +0x138, 0x100044c9c\nLDR             X8, [X20]                                              ; +0x13c, 0x100044ca0\nLDR             X8, [X8,#0xC0]                                         ; +0x140, 0x100044ca4\nMOV             X0, X20                                                ; +0x144, 0x100044ca8\nBLR             X8                                                     ; +0x148, 0x100044cac\nMOV             X19, X0                                                ; +0x14c, 0x100044cb0\nADD             X0, SP, #0x50+var_48                                   ; +0x150, 0x100044cb4\nFMOV            S0, WZR                                                ; +0x154, 0x100044cb8\nFMOV            S1, #-22.0                                             ; +0x158, 0x100044cbc\nBL              sub_100022980                                          ; +0x15c, 0x100044cc0\nADD             X8, SP, #0x50+var_40                                   ; +0x160, 0x100044cc4\nADD             X1, SP, #0x50+var_48                                   ; +0x164, 0x100044cc8\nMOV             X0, X19                                                ; +0x168, 0x100044ccc\nBL              sub_1000229DC                                          ; +0x16c, 0x100044cd0\nLDR             X8, [X21]                                              ; +0x170, 0x100044cd4\nLDR             X8, [X8,#0xB8]                                         ; +0x174, 0x100044cd8\nADD             X1, SP, #0x50+var_40                                   ; +0x178, 0x100044cdc\nMOV             X0, X21                                                ; +0x17c, 0x100044ce0\nBLR             X8                                                     ; +0x180, 0x100044ce4\nLDR             X8, [X21]                                              ; +0x184, 0x100044ce8\nLDR             X8, [X8,#0xA0]                                         ; +0x188, 0x100044cec\nMOV             X0, X21                                                ; +0x18c, 0x100044cf0\nFMOV            S0, S8                                                 ; +0x190, 0x100044cf4\nBLR             X8                                                     ; +0x194, 0x100044cf8\nLDP             X29, X30, [SP,#0x50+var_s0]                            ; +0x198, 0x100044cfc\nLDP             X20, X19, [SP,#0x50+var_10]                            ; +0x19c, 0x100044d00\nLDP             X22, X21, [SP,#0x50+var_20]                            ; +0x1a0, 0x100044d04\nLDP             D9, D8, [SP,#0x50+var_30]                              ; +0x1a4, 0x100044d08\nADD             SP, SP, #0x60 ; '`'                                    ; +0x1a8, 0x100044d0c\nRET                                                                    ; +0x1ac, 0x100044d10", "xrefs": ["LevelBrowserLayer::init @ 0x100415840", "AchievementsLayer::customSetup @ 0x10042207c"], "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"}