{"type": "func", "start": 4299142880, "end": 4299143168, "name": "GJScaleControl::ccTouchEnded", "pseudocode": "// \n// GJScaleControl::ccTouchEnded from 0x1003fb6e0 to 0x1003fb800 (288 bytes)\n// \n// 2 xrefs:\n// > sub_1003FB800 @ 0x1003fb804\n// > <???> @ 0x100815298\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 GJScaleControl::ccTouchEnded(GJScaleControl *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)\n{\n  Slider **p_m_sliderY; // x22\n  float v7; // s0\n  cocos2d::CCString *v8; // x0\n  float Value; // s0\n  cocos2d::CCString *v10; // x0\n  GJScaleControlDelegate *m_delegate; // x0\n\n  if ( a1->m_touchID == a2->m_nId )\n  {\n    if ( a1->m_scaleButtonType == Y )\n    {\n      p_m_sliderY = &a1->m_sliderY;\n      Value = Slider::getValue(a1->m_sliderY);\n      v10 = (cocos2d::CCString *)sub_100268F4C(\n                                   \"%.02f\",\n                                   (float)(a1->m_lowerBound\n                                         + (float)(Value * (float)(a1->m_upperBound - a1->m_lowerBound))));\n      a1->m_valueY = cocos2d::CCString::floatValue(v10);\n    }\n    else if ( a1->m_scaleButtonType )\n    {\n      p_m_sliderY = &a1->m_sliderXY;\n    }\n    else\n    {\n      p_m_sliderY = &a1->m_sliderX;\n      v7 = Slider::getValue(a1->m_sliderX);\n      v8 = (cocos2d::CCString *)sub_100268F4C(\n                                  \"%.02f\",\n                                  (float)(a1->m_lowerBound + (float)(v7 * (float)(a1->m_upperBound - a1->m_lowerBound))));\n      a1->m_valueX = cocos2d::CCString::floatValue(v8);\n    }\n    ((void (__fastcall *)(Slider *, cocos2d::CCTouch *, cocos2d::CCEvent *))(*p_m_sliderY)->ccTouchEnded)(\n      *p_m_sliderY,\n      a2,\n      a3);\n    if ( a1->m_touchID != -1 )\n    {\n      a1->m_touchID = -1;\n      m_delegate = a1->m_delegate;\n      if ( m_delegate )\n        ((void (__fastcall *)(GJScaleControlDelegate *))m_delegate->scaleChangeEnded)(m_delegate);\n    }\n  }\n}", "assembly": "; \n; GJScaleControl::ccTouchEnded from 0x1003fb6e0 to 0x1003fb800 (288 bytes)\n; \n; 2 xrefs:\n; > sub_1003FB800 @ 0x1003fb804\n; > <???> @ 0x100815298\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, #0x40                                          ; +0x0, 0x1003fb6e0\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x1003fb6e4\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x1003fb6e8\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x1003fb6ec\nADD             X29, SP, #0x30                                         ; +0x10, 0x1003fb6f0\nLDR             W8, [X0,#0x1B0]                                        ; +0x14, 0x1003fb6f4\nLDR             W9, [X1,#0x38]                                         ; +0x18, 0x1003fb6f8\nCMP             W8, W9                                                 ; +0x1c, 0x1003fb6fc\nB.NE            loc_1003FB7EC                                          ; +0x20, 0x1003fb700\nMOV             X20, X2                                                ; +0x24, 0x1003fb704\nMOV             X21, X1                                                ; +0x28, 0x1003fb708\nMOV             X19, X0                                                ; +0x2c, 0x1003fb70c\nLDRH            W8, [X0,#0x1CA]                                        ; +0x30, 0x1003fb710\nCMP             W8, #1                                                 ; +0x34, 0x1003fb714\nB.EQ            loc_1003FB75C                                          ; +0x38, 0x1003fb718\nCBNZ            W8, loc_1003FB798                                      ; +0x3c, 0x1003fb71c\nADD             X22, X19, #0x198                                       ; +0x40, 0x1003fb720\nLDR             X0, [X19,#0x198]                                       ; +0x44, 0x1003fb724\nBL              Slider__getValue                                       ; +0x48, 0x1003fb728\nLDR             S1, [X19,#0x1F4]                                       ; +0x4c, 0x1003fb72c\nLDR             S2, [X19,#0x1F0]                                       ; +0x50, 0x1003fb730\nFSUB            S2, S2, S1                                             ; +0x54, 0x1003fb734\nFMADD           S0, S0, S2, S1                                         ; +0x58, 0x1003fb738\nFCVT            D0, S0                                                 ; +0x5c, 0x1003fb73c\nSTR             D0, [SP,#0x30+var_30]                                  ; +0x60, 0x1003fb740\nADRL            X0, a02f_0; \"%.02f\"                                    ; +0x64, 0x1003fb744\nBL              sub_100268F4C                                          ; +0x6c, 0x1003fb74c\nBL              cocos2d__CCString__floatValue                          ; +0x70, 0x1003fb750\nSTR             S0, [X19,#0x1B4]                                       ; +0x74, 0x1003fb754\nB               loc_1003FB79C                                          ; +0x78, 0x1003fb758\nADD             X22, X19, #0x1A0                                       ; +0x7c, 0x1003fb75c\nLDR             X0, [X19,#0x1A0]                                       ; +0x80, 0x1003fb760\nBL              Slider__getValue                                       ; +0x84, 0x1003fb764\nLDR             S1, [X19,#0x1F4]                                       ; +0x88, 0x1003fb768\nLDR             S2, [X19,#0x1F0]                                       ; +0x8c, 0x1003fb76c\nFSUB            S2, S2, S1                                             ; +0x90, 0x1003fb770\nFMADD           S0, S0, S2, S1                                         ; +0x94, 0x1003fb774\nFCVT            D0, S0                                                 ; +0x98, 0x1003fb778\nSTR             D0, [SP,#0x30+var_30]                                  ; +0x9c, 0x1003fb77c\nADRL            X0, a02f_0; \"%.02f\"                                    ; +0xa0, 0x1003fb780\nBL              sub_100268F4C                                          ; +0xa8, 0x1003fb788\nBL              cocos2d__CCString__floatValue                          ; +0xac, 0x1003fb78c\nSTR             S0, [X19,#0x1B8]                                       ; +0xb0, 0x1003fb790\nB               loc_1003FB79C                                          ; +0xb4, 0x1003fb794\nADD             X22, X19, #0x1A8                                       ; +0xb8, 0x1003fb798\nLDR             X0, [X22]                                              ; +0xbc, 0x1003fb79c\nLDR             X8, [X0]                                               ; +0xc0, 0x1003fb7a0\nLDR             X8, [X8,#0x380]                                        ; +0xc4, 0x1003fb7a4\nMOV             X1, X21                                                ; +0xc8, 0x1003fb7a8\nMOV             X2, X20                                                ; +0xcc, 0x1003fb7ac\nBLR             X8                                                     ; +0xd0, 0x1003fb7b0\nLDR             W8, [X19,#0x1B0]                                       ; +0xd4, 0x1003fb7b4\nCMN             W8, #1                                                 ; +0xd8, 0x1003fb7b8\nB.EQ            loc_1003FB7EC                                          ; +0xdc, 0x1003fb7bc\nMOV             W8, #0xFFFFFFFF                                        ; +0xe0, 0x1003fb7c0\nSTR             W8, [X19,#0x1B0]                                       ; +0xe4, 0x1003fb7c4\nLDR             X0, [X19,#0x1E8]                                       ; +0xe8, 0x1003fb7c8\nCBZ             X0, loc_1003FB7EC                                      ; +0xec, 0x1003fb7cc\nLDR             X8, [X0]                                               ; +0xf0, 0x1003fb7d0\nLDR             X1, [X8,#0x20]                                         ; +0xf4, 0x1003fb7d4\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xf8, 0x1003fb7d8\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xfc, 0x1003fb7dc\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0x100, 0x1003fb7e0\nADD             SP, SP, #0x40 ; '@'                                    ; +0x104, 0x1003fb7e4\nBR              X1                                                     ; +0x108, 0x1003fb7e8\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x10c, 0x1003fb7ec\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x110, 0x1003fb7f0\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0x114, 0x1003fb7f4\nADD             SP, SP, #0x40 ; '@'                                    ; +0x118, 0x1003fb7f8\nRET                                                                    ; +0x11c, 0x1003fb7fc", "xrefs": ["sub_1003FB800 @ 0x1003fb804", "<???> @ 0x100815298"], "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"}