{"type": "func", "start": 5370818544, "end": 5370818798, "name": "EditorUI::scaleXChanged", "pseudocode": "// \n// EditorUI::scaleXChanged from 0x140202ff0 to 0x1402030ee (254 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1407517c8\n// > <???> @ 0x14091afcc\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:28:14 +0000\n// \n\nint __fastcall EditorUI::scaleXChanged(__int64 a1, float a2, char a3)\n{\n  float *v3; // rbx\n  float v6; // xmm0_4\n  __int64 v7; // rax\n  float v8; // xmm1_4\n  int result; // eax\n  cocos2d::CCPoint *v10; // rax\n  char v11; // [rsp+60h] [rbp+8h] BYREF\n\n  v3 = *(float **)(a1 + 1136);\n  if ( v3 )\n  {\n    v6 = roundf((float)(a2 * v3[330]) * 1000.0);\n    v3[16] = 0.0;\n    v7 = *(_QWORD *)v3;\n    v8 = (float)(int)v6 / 1000.0;\n    v3[290] = v8;\n    v3[249] = v8;\n    result = (*(__int64 (__fastcall **)(float *))(v7 + 1288))(v3);\n    *((_BYTE *)v3 + 848) = 1;\n    *((_BYTE *)v3 + 872) = 1;\n  }\n  else\n  {\n    result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 512));\n    if ( result )\n    {\n      cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v11, (const struct cocos2d::CCPoint *)(a1 + 384));\n      return EditorUI::scaleObjects(a1 - 432, *(cocos2d::CCArray **)(a1 + 512), a2, 0.0, v10, 1, a3);\n    }\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::scaleXChanged from 0x140202ff0 to 0x1402030ee (254 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1407517c8\n; > <???> @ 0x14091afcc\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:28:14 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140202ff0\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x140202ff5\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x140202ffa\npush    rdi                                                            ; +0xf, 0x140202fff\nsub     rsp, 50h                                                       ; +0x10, 0x140203000\nmov     rbx, [rcx+470h]                                                ; +0x14, 0x140203004\nmovzx   ebp, r8b                                                       ; +0x1b, 0x14020300b\nmovaps  [rsp+58h+var_18], xmm7                                         ; +0x1f, 0x14020300f\nmovaps  xmm7, xmm1                                                     ; +0x24, 0x140203014\nmov     rdi, rcx                                                       ; +0x27, 0x140203017\ntest    rbx, rbx                                                       ; +0x2a, 0x14020301a\njz      short loc_140203086                                            ; +0x2d, 0x14020301d\nmulss   xmm7, dword ptr [rbx+528h]                                     ; +0x2f, 0x14020301f\nmulss   xmm7, cs:dword_140835AA4                                       ; +0x37, 0x140203027\nmovaps  xmm0, xmm7; X                                                  ; +0x3f, 0x14020302f\ncall    cs:__imp_roundf                                                ; +0x42, 0x140203032\nmov     rcx, rbx                                                       ; +0x48, 0x140203038\nmov     dword ptr [rbx+40h], 0                                         ; +0x4b, 0x14020303b\ncvttss2si eax, xmm0                                                    ; +0x52, 0x140203042\nmovd    xmm1, eax                                                      ; +0x56, 0x140203046\nmov     rax, [rbx]                                                     ; +0x5a, 0x14020304a\ncvtdq2ps xmm1, xmm1                                                    ; +0x5d, 0x14020304d\ndivss   xmm1, cs:dword_140835AA4                                       ; +0x60, 0x140203050\nmovss   dword ptr [rbx+488h], xmm1                                     ; +0x68, 0x140203058\nmovss   dword ptr [rbx+3E4h], xmm1                                     ; +0x70, 0x140203060\nmovss   xmm1, cs:flt_140835080                                         ; +0x78, 0x140203068\ncall    qword ptr [rax+508h]                                           ; +0x80, 0x140203070\nmov     byte ptr [rbx+350h], 1                                         ; +0x86, 0x140203076\nmov     byte ptr [rbx+368h], 1                                         ; +0x8d, 0x14020307d\njmp     short loc_1402030D4                                            ; +0x94, 0x140203084\nmov     rcx, [rcx+200h]                                                ; +0x96, 0x140203086\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x9d, 0x14020308d\ntest    eax, eax                                                       ; +0xa3, 0x140203093\njz      short loc_1402030D4                                            ; +0xa5, 0x140203095\nlea     rdx, [rdi+180h]                                                ; +0xa7, 0x140203097\nlea     rcx, [rsp+58h+arg_0]                                           ; +0xae, 0x14020309e\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0xb3, 0x1402030a3\nmov     rdx, [rdi+200h]                                                ; +0xb9, 0x1402030a9\nlea     rcx, [rdi-1B0h]                                                ; +0xc0, 0x1402030b0\nmov     [rsp+58h+var_28], bpl                                          ; +0xc7, 0x1402030b7\nxorps   xmm3, xmm3                                                     ; +0xcc, 0x1402030bc\nmov     [rsp+58h+var_30], 1                                            ; +0xcf, 0x1402030bf\nmovaps  xmm2, xmm7                                                     ; +0xd7, 0x1402030c7\nmov     [rsp+58h+var_38], rax                                          ; +0xda, 0x1402030ca\ncall    EditorUI__scaleObjects                                         ; +0xdf, 0x1402030cf\nmov     rbx, [rsp+58h+arg_8]                                           ; +0xe4, 0x1402030d4\nmov     rbp, [rsp+58h+arg_10]                                          ; +0xe9, 0x1402030d9\nmov     rsi, [rsp+58h+arg_18]                                          ; +0xee, 0x1402030de\nmovaps  xmm7, [rsp+58h+var_18]                                         ; +0xf3, 0x1402030e3\nadd     rsp, 50h                                                       ; +0xf8, 0x1402030e8\npop     rdi                                                            ; +0xfc, 0x1402030ec\nretn                                                                   ; +0xfd, 0x1402030ed", "xrefs": ["<???> @ 0x1407517c8", "<???> @ 0x14091afcc"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}