{"type": "func", "start": 7044128, "end": 7044312, "name": "EditorUI::scaleXChanged", "pseudocode": "// \n// EditorUI::scaleXChanged from 0x6b7c20 to 0x6b7cd8 (184 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'EditorUI::scaleXChanged @ 0x6b7cdc\n// > <???> @ 0x89400\n// > <???> @ 0x1156c00\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 EditorUI::scaleXChanged(EditorUI *a1, float a2, bool a3)\n{\n  GameObject *m_selectedObject; // x0\n  cocos2d::CCArray *m_selectedObjects; // x22\n  cocos2d::CCPoint v7; // [xsp+50h] [xbp+50h] BYREF\n  cocos2d::CCPoint v8; // 0:s2.4,4:s3.4\n\n  m_selectedObject = a1->m_selectedObject;\n  if ( m_selectedObject )\n  {\n    GameObject::updateCustomScaleX(m_selectedObject, a2 * m_selectedObject->m_pixelScaleX);\n  }\n  else if ( (unsigned int)cocos2d::CCArray::count(a1->m_selectedObjects) )\n  {\n    m_selectedObjects = a1->m_selectedObjects;\n    cocos2d::CCPoint::CCPoint(&v7, &a1->m_pivotPoint);\n    EditorUI::scaleObjects(a1, m_selectedObjects, a2, 0.0, v8, (ObjectScaleType)&v7, 1);\n  }\n}", "assembly": "; \n; EditorUI::scaleXChanged from 0x6b7c20 to 0x6b7cd8 (184 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'EditorUI::scaleXChanged @ 0x6b7cdc\n; > <???> @ 0x89400\n; > <???> @ 0x1156c00\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\nSTP             X29, X30, [SP,#var_60]!                                ; +0x0, 0x6b7c20\nMOV             X29, SP                                                ; +0x4, 0x6b7c24\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x8, 0x6b7c28\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x6b7c2c\nMOV             X20, X0                                                ; +0x10, 0x6b7c30\nSTP             X21, X22, [SP,#0x60+var_40]                            ; +0x14, 0x6b7c34\nUXTB            W21, W1                                                ; +0x18, 0x6b7c38\nLDR             X0, [X0,#0x530]; this                                  ; +0x1c, 0x6b7c3c\nLDR             X1, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x6b7c40\nLDR             X1, [X1]                                               ; +0x24, 0x6b7c44\nSTR             X1, [X29,#0x60+var_8]                                  ; +0x28, 0x6b7c48\nCBZ             X0, loc_6B7C80                                         ; +0x2c, 0x6b7c4c\nLDR             S1, [X0,#0x510]                                        ; +0x30, 0x6b7c50\nFMUL            S0, S0, S1; float                                      ; +0x34, 0x6b7c54\nBL              _ZN10GameObject18updateCustomScaleXEf; GameObject::updateCustomScaleX(float) ; +0x38, 0x6b7c58\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x3c, 0x6b7c5c\nLDR             X1, [X29,#0x60+var_8]                                  ; +0x40, 0x6b7c60\nLDR             X0, [X19]                                              ; +0x44, 0x6b7c64\nCMP             X1, X0                                                 ; +0x48, 0x6b7c68\nB.NE            loc_6B7CD4                                             ; +0x4c, 0x6b7c6c\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0x50, 0x6b7c70\nLDP             X21, X22, [SP,#0x60+var_40]                            ; +0x54, 0x6b7c74\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0x58, 0x6b7c78\nRET; char                                                              ; +0x5c, 0x6b7c7c\nLDR             X0, [X20,#0x338]; this                                 ; +0x60, 0x6b7c80\nSTR             Q0, [X29,#0x60+var_20]                                 ; +0x64, 0x6b7c84\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x68, 0x6b7c88\nLDR             Q0, [X29,#0x60+var_20]                                 ; +0x6c, 0x6b7c8c\nCBZ             W0, loc_6B7C5C                                         ; +0x70, 0x6b7c90\nADD             X2, X29, #0x60+var_10                                  ; +0x74, 0x6b7c94\nADD             X1, X20, #0x2B8; cocos2d::CCPoint *                    ; +0x78, 0x6b7c98\nMOV             X0, X2; this                                           ; +0x7c, 0x6b7c9c\nLDR             X22, [X20,#0x338]                                      ; +0x80, 0x6b7ca0\nSTR             Q0, [X29,#0x60+var_30]                                 ; +0x84, 0x6b7ca4\nSTR             X2, [X29,#0x60+var_20]                                 ; +0x88, 0x6b7ca8\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x8c, 0x6b7cac\nLDR             Q0, [X29,#0x60+var_30]                                 ; +0x90, 0x6b7cb0\nLDR             X2, [X29,#0x60+var_20]; int                            ; +0x94, 0x6b7cb4\nFMOV            S1, WZR                                                ; +0x98, 0x6b7cb8\nMOV             X0, X20; int                                           ; +0x9c, 0x6b7cbc\nMOV             X1, X22; this                                          ; +0xa0, 0x6b7cc0\nMOV             W3, #1; int                                            ; +0xa4, 0x6b7cc4\nMOV             W4, W21; int                                           ; +0xa8, 0x6b7cc8\nBL              _ZN8EditorUI12scaleObjectsEPN7cocos2d7CCArrayEffNS0_7CCPointE15ObjectScaleTypeb; EditorUI::scaleObjects(cocos2d::CCArray *,float,float,cocos2d::CCPoint,ObjectScaleType,bool) ; +0xac, 0x6b7ccc\nB               loc_6B7C5C                                             ; +0xb0, 0x6b7cd0\nBL              .__stack_chk_fail                                      ; +0xb4, 0x6b7cd4", "xrefs": ["`non-virtual thunk to'EditorUI::scaleXChanged @ 0x6b7cdc", "<???> @ 0x89400", "<???> @ 0x1156c00"], "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"}