{"type": "func", "start": 3794912, "end": 3795042, "name": "EditorUI::scaleXYChanged", "pseudocode": "// \n// EditorUI::scaleXYChanged from 0x39e7e0 to 0x39e862 (130 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'EditorUI::scaleXYChanged @ 0x39e86c\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::scaleXYChanged(EditorUI *a1, float a2, float a3, bool a4)\n{\n  _BOOL4 v4; // r6\n  cocos2d::CCArray *m_selectedObjects; // r11\n  cocos2d::CCPoint v9; // [sp+0h] [bp-24h]\n  bool v10; // [sp+Ch] [bp-18h]\n  cocos2d::CCPoint v11; // [sp+14h] [bp-10h] BYREF\n\n  v4 = a4;\n  if ( a1->m_selectedObject )\n  {\n    ((void (__fastcall *)(EditorUI *, _DWORD, bool))a1->scaleXChanged)(a1, LODWORD(a2), a4);\n    ((void (__fastcall *)(EditorUI *, _DWORD, _BOOL4))a1->scaleYChanged)(a1, LODWORD(a3), v4);\n  }\n  else if ( cocos2d::CCArray::count(a1->m_selectedObjects) )\n  {\n    m_selectedObjects = a1->m_selectedObjects;\n    cocos2d::CCPoint::CCPoint(&v11, &a1->m_pivotPoint);\n    LODWORD(v9.x) = &v11;\n    v9.y = 0.0;\n    EditorUI::scaleObjects(a1, m_selectedObjects, a2, a3, v9, (ObjectScaleType)v4, v10);\n  }\n}", "assembly": "; \n; EditorUI::scaleXYChanged from 0x39e7e0 to 0x39e862 (130 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'EditorUI::scaleXYChanged @ 0x39e86c\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\nPUSH.W          {R4-R11,LR}                                            ; +0x0, 0x39e7e0\nMOV             R6, R3                                                 ; +0x4, 0x39e7e4\nLDR             R3, =(__stack_chk_guard_ptr - 0x39E7F4)                ; +0x6, 0x39e7e6\nMOV             R7, R2                                                 ; +0x8, 0x39e7e8\nSUB             SP, SP, #0x24                                          ; +0xa, 0x39e7ea\nLDR.W           R8, [R0,#0x374]                                        ; +0xc, 0x39e7ec\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x10, 0x39e7f0\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x12, 0x39e7f2\nMOV             R4, R0                                                 ; +0x14, 0x39e7f4\nMOV             R10, R1                                                ; +0x16, 0x39e7f6\nLDR             R2, [R3]                                               ; +0x18, 0x39e7f8\nMOV             R5, R3                                                 ; +0x1a, 0x39e7fa\nSTR             R2, [SP,#0x24+var_8]                                   ; +0x1c, 0x39e7fc\nCMP.W           R8, #0                                                 ; +0x1e, 0x39e7fe\nBEQ             loc_39E81E                                             ; +0x22, 0x39e802\nLDR             R3, [R0]                                               ; +0x24, 0x39e804\nMOV             R2, R6                                                 ; +0x26, 0x39e806\nLDR.W           R3, [R3,#0x2A8]                                        ; +0x28, 0x39e808\nBLX             R3                                                     ; +0x2c, 0x39e80c\nLDR             R3, [R4]                                               ; +0x2e, 0x39e80e\nMOV             R0, R4                                                 ; +0x30, 0x39e810\nMOV             R1, R7                                                 ; +0x32, 0x39e812\nMOV             R2, R6                                                 ; +0x34, 0x39e814\nLDR.W           R3, [R3,#0x2AC]                                        ; +0x36, 0x39e816\nBLX             R3                                                     ; +0x3a, 0x39e81a\nB               loc_39E850                                             ; +0x3c, 0x39e81c\nLDR.W           R0, [R0,#0x260]; this                                  ; +0x3e, 0x39e81e\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x42, 0x39e822\nCBZ             R0, loc_39E850                                         ; +0x46, 0x39e826\nLDR.W           R11, [R4,#0x260]                                       ; +0x48, 0x39e828\nADD.W           R9, SP, #0x24+var_10                                   ; +0x4c, 0x39e82c\nADD.W           R1, R4, #0x208; cocos2d::CCPoint *                     ; +0x50, 0x39e830\nMOV             R0, R9; this                                           ; +0x54, 0x39e834\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x56, 0x39e836\nSTR.W           R9, [SP,#0x24+var_24]; int                             ; +0x5a, 0x39e83a\nSTR.W           R8, [SP,#0x24+var_20]; int                             ; +0x5e, 0x39e83e\nMOV             R0, R4; int                                            ; +0x62, 0x39e842\nSTR             R6, [SP,#0x24+var_1C]; char                            ; +0x64, 0x39e844\nMOV             R1, R11; this                                          ; +0x66, 0x39e846\nMOV             R2, R10; int                                           ; +0x68, 0x39e848\nMOV             R3, R7; int                                            ; +0x6a, 0x39e84a\nBL              _ZN8EditorUI12scaleObjectsEPN7cocos2d7CCArrayEffNS0_7CCPointE15ObjectScaleTypeb; EditorUI::scaleObjects(cocos2d::CCArray *,float,float,cocos2d::CCPoint,ObjectScaleType,bool) ; +0x6c, 0x39e84c\nLDR             R2, [SP,#0x24+var_8]                                   ; +0x70, 0x39e850\nLDR             R3, [R5]                                               ; +0x72, 0x39e852\nCMP             R2, R3                                                 ; +0x74, 0x39e854\nBEQ             loc_39E85C                                             ; +0x76, 0x39e856\nBLX             __stack_chk_fail                                       ; +0x78, 0x39e858\nADD             SP, SP, #0x24 ; '$'                                    ; +0x7c, 0x39e85c\nPOP.W           {R4-R11,PC}                                            ; +0x7e, 0x39e85e", "xrefs": ["`non-virtual thunk to'EditorUI::scaleXYChanged @ 0x39e86c"], "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"}