{"type": "func", "start": 3794624, "end": 3794754, "name": "EditorUI::scaleXChanged", "pseudocode": "// \n// EditorUI::scaleXChanged from 0x39e6c0 to 0x39e742 (130 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'EditorUI::scaleXChanged @ 0x39e74c\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\n// local variable allocation has failed, the output may be wrong!\nvoid EditorUI::scaleXChanged(EditorUI *a1, float a2, bool a3)\n{\n  ObjectScaleType v4; // r8\n  GameObject *m_selectedObject; // r0\n  cocos2d::CCArray *m_selectedObjects; // r7\n  cocos2d::CCPoint v8; // [sp+0h] [bp-20h]\n  bool v9; // [sp+Ch] [bp-14h]\n  cocos2d::CCPoint v10; // [sp+14h] [bp-Ch] BYREF\n\n  v4 = a3;\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 ( cocos2d::CCArray::count(a1->m_selectedObjects) )\n  {\n    m_selectedObjects = a1->m_selectedObjects;\n    cocos2d::CCPoint::CCPoint(&v10, &a1->m_pivotPoint);\n    LODWORD(v8.x) = &v10;\n    LODWORD(v8.y) = 1;\n    EditorUI::scaleObjects(a1, m_selectedObjects, a2, 0.0, v8, v4, v9);\n  }\n}", "assembly": "; \n; EditorUI::scaleXChanged from 0x39e6c0 to 0x39e742 (130 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'EditorUI::scaleXChanged @ 0x39e74c\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\nLDR             R3, =(__stack_chk_guard_ptr - 0x39E6CA)                ; +0x0, 0x39e6c0\nPUSH.W          {R4-R8,LR}                                             ; +0x2, 0x39e6c2\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x39e6c6\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x39e6c8\nVPUSH           {D8}                                                   ; +0xa, 0x39e6ca\nMOV             R4, R0                                                 ; +0xe, 0x39e6ce\nMOV             R8, R2                                                 ; +0x10, 0x39e6d0\nLDR.W           R0, [R0,#0x374]; this                                  ; +0x12, 0x39e6d2\nLDR             R2, [R3]                                               ; +0x16, 0x39e6d6\nMOV             R5, R3                                                 ; +0x18, 0x39e6d8\nVMOV            S16, R1                                                ; +0x1a, 0x39e6da\nSUB             SP, SP, #0x20                                          ; +0x1e, 0x39e6de\nSTR             R2, [SP,#0x20+var_4]                                   ; +0x20, 0x39e6e0\nCBZ             R0, loc_39E6FA                                         ; +0x22, 0x39e6e2\nADDW            R3, R0, #0x464                                         ; +0x24, 0x39e6e4\nVLDR            S15, [R3]                                              ; +0x28, 0x39e6e8\nVMUL.F32        S15, S16, S15                                          ; +0x2c, 0x39e6ec\nVMOV            R1, S15; float                                         ; +0x30, 0x39e6f0\nBL              _ZN10GameObject18updateCustomScaleXEf; GameObject::updateCustomScaleX(float) ; +0x34, 0x39e6f4\nB               loc_39E72C                                             ; +0x38, 0x39e6f8\nLDR.W           R0, [R4,#0x260]; this                                  ; +0x3a, 0x39e6fa\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x3e, 0x39e6fe\nCBZ             R0, loc_39E72C                                         ; +0x42, 0x39e702\nLDR.W           R7, [R4,#0x260]                                        ; +0x44, 0x39e704\nADD             R6, SP, #0x20+var_C                                    ; +0x48, 0x39e708\nADD.W           R1, R4, #0x208; cocos2d::CCPoint *                     ; +0x4a, 0x39e70a\nMOV             R0, R6; this                                           ; +0x4e, 0x39e70e\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x50, 0x39e710\nMOVS            R3, #1                                                 ; +0x54, 0x39e714\nSTR             R6, [SP,#0x20+var_20]; int                             ; +0x56, 0x39e716\nMOV             R0, R4; int                                            ; +0x58, 0x39e718\nSTR             R3, [SP,#0x20+var_1C]; int                             ; +0x5a, 0x39e71a\nMOV             R1, R7; this                                           ; +0x5c, 0x39e71c\nSTR.W           R8, [SP,#0x20+var_18]; char                            ; +0x5e, 0x39e71e\nMOVS            R3, #0; int                                            ; +0x62, 0x39e722\nVMOV            R2, S16; int                                           ; +0x64, 0x39e724\nBL              _ZN8EditorUI12scaleObjectsEPN7cocos2d7CCArrayEffNS0_7CCPointE15ObjectScaleTypeb; EditorUI::scaleObjects(cocos2d::CCArray *,float,float,cocos2d::CCPoint,ObjectScaleType,bool) ; +0x68, 0x39e728\nLDR             R2, [SP,#0x20+var_4]                                   ; +0x6c, 0x39e72c\nLDR             R3, [R5]                                               ; +0x6e, 0x39e72e\nCMP             R2, R3                                                 ; +0x70, 0x39e730\nBEQ             loc_39E738                                             ; +0x72, 0x39e732\nBLX             __stack_chk_fail                                       ; +0x74, 0x39e734\nADD             SP, SP, #0x20 ; ' '                                    ; +0x78, 0x39e738\nVPOP            {D8}                                                   ; +0x7a, 0x39e73a\nPOP.W           {R4-R8,PC}                                             ; +0x7e, 0x39e73e", "xrefs": ["`non-virtual thunk to'EditorUI::scaleXChanged @ 0x39e74c"], "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"}