{"type": "func", "start": 5370819984, "end": 5370820593, "name": "EditorUI::updateTransformControl", "pseudocode": "// \n// EditorUI::updateTransformControl from 0x140203590 to 0x1402037f1 (609 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x140751768\n// > <???> @ 0x1408a4078\n// > <???> @ 0x1408a40f4\n// > <???> @ 0x14091b044\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\n__int64 __fastcall EditorUI::updateTransformControl(__int64 a1)\n{\n  double v1; // xmm0_8\n  __int64 result; // rax\n  float v4; // xmm7_4\n  __int64 v5; // rcx\n  cocos2d::CCArray **v6; // rdi\n  cocos2d::CCArray *v7; // rcx\n  struct cocos2d::CCObject *v8; // rax\n  struct cocos2d::CCObject *v9; // rcx\n  struct cocos2d::CCArray *v10; // rdi\n  cocos2d::CCPoint *v11; // rax\n  char v12; // [rsp+90h] [rbp+8h] BYREF\n\n  result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 400) + 344LL))(*(_QWORD *)(a1 + 400));\n  if ( (_BYTE)result )\n  {\n    *(_QWORD *)(a1 + 100) = 0;\n    v4 = 0.0;\n    *(_DWORD *)(a1 + 108) = 0;\n    *(_QWORD *)(a1 + 120) = 0;\n    *(_QWORD *)(a1 + 128) = 0;\n    *(_DWORD *)(a1 + 88) = 1065353216;\n    *(_QWORD *)(a1 + 92) = 1065353216;\n    *(_DWORD *)(a1 + 152) = 1065353216;\n    *(_DWORD *)(a1 + 156) = 1065353216;\n    if ( *(_BYTE *)(a1 + 116) )\n    {\n      v5 = *(_QWORD *)(a1 + 1128);\n      *(_BYTE *)(a1 + 116) = 0;\n      if ( v5 )\n      {\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 360LL))(v5);\n        v6 = (cocos2d::CCArray **)(a1 + 504);\nLABEL_8:\n        v4 = *(float *)&v1;\n        if ( *(float *)&v1 != 0.0 && !*(_BYTE *)(*(_QWORD *)(a1 + 400) + 603LL) )\n        {\n          v9 = *(struct cocos2d::CCObject **)(a1 + 1128);\n          if ( v9 )\n            v10 = cocos2d::CCArray::createWithObject(v9);\n          else\n            v10 = *v6;\n          EditorUI::resetObjectEditorValues(a1 - 440, v10);\n          cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v12, (const struct cocos2d::CCPoint *)(a1 + 376));\n          EditorUI::transformObjects(a1 - 440, v10, v11);\n        }\n        goto LABEL_14;\n      }\n      v6 = (cocos2d::CCArray **)(a1 + 504);\n      v7 = *(cocos2d::CCArray **)(a1 + 504);\n      if ( v7 && cocos2d::CCArray::count(v7) )\n      {\n        v8 = cocos2d::CCArray::objectAtIndex(*v6, 0);\n        v1 = (*(double (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v8 + 360LL))(v8);\n        goto LABEL_8;\n      }\n    }\nLABEL_14:\n    (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 408) + 120LL))(*(_QWORD *)(a1 + 408));\n    (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 408) + 136LL))(*(_QWORD *)(a1 + 408));\n    (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 408) + 368LL))(*(_QWORD *)(a1 + 408));\n    (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 408) + 384LL))(*(_QWORD *)(a1 + 408));\n    (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 408) + 256LL))(*(_QWORD *)(a1 + 408));\n    (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 408) + 272LL))(*(_QWORD *)(a1 + 408));\n    result = GJTransformControl::loadValues(\n               *(_QWORD *)(a1 + 400),\n               *(struct cocos2d::CCObject **)(a1 + 1128),\n               *(cocos2d::CCArray **)(a1 + 504),\n               a1 + 24);\n    if ( v4 != 0.0 )\n      return GJTransformControl::applyRotation(*(_QWORD *)(a1 + 400), v4);\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::updateTransformControl from 0x140203590 to 0x1402037f1 (609 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x140751768\n; > <???> @ 0x1408a4078\n; > <???> @ 0x1408a40f4\n; > <???> @ 0x14091b044\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_10], rbx                                              ; +0x0, 0x140203590\npush    rsi                                                            ; +0x5, 0x140203595\nsub     rsp, 80h                                                       ; +0x6, 0x140203596\nmov     rbx, rcx                                                       ; +0xd, 0x14020359d\nmov     rcx, [rcx+190h]                                                ; +0x10, 0x1402035a0\nmov     rax, [rcx]                                                     ; +0x17, 0x1402035a7\ncall    qword ptr [rax+158h]                                           ; +0x1a, 0x1402035aa\ntest    al, al                                                         ; +0x20, 0x1402035b0\njz      loc_1402037E0                                                  ; +0x22, 0x1402035b2\nxor     eax, eax                                                       ; +0x28, 0x1402035b8\nmovaps  [rsp+88h+var_28], xmm7                                         ; +0x2a, 0x1402035ba\nmov     [rbx+64h], rax                                                 ; +0x2f, 0x1402035bf\nxorps   xmm7, xmm7                                                     ; +0x33, 0x1402035c3\nmov     [rbx+6Ch], eax                                                 ; +0x36, 0x1402035c6\nmov     [rbx+78h], rax                                                 ; +0x39, 0x1402035c9\nmov     [rbx+80h], rax                                                 ; +0x3d, 0x1402035cd\nmov     dword ptr [rbx+58h], 3F800000h                                 ; +0x44, 0x1402035d4\nmov     qword ptr [rbx+5Ch], 3F800000h                                 ; +0x4b, 0x1402035db\nmov     dword ptr [rbx+98h], 3F800000h                                 ; +0x53, 0x1402035e3\nmov     dword ptr [rbx+9Ch], 3F800000h                                 ; +0x5d, 0x1402035ed\nmovaps  [rsp+88h+var_38], xmm8                                         ; +0x67, 0x1402035f7\nxorps   xmm8, xmm8                                                     ; +0x6d, 0x1402035fd\ncmp     [rbx+74h], al                                                  ; +0x71, 0x140203601\njz      loc_140203725                                                  ; +0x74, 0x140203604\nmov     rcx, [rbx+468h]                                                ; +0x7a, 0x14020360a\nmov     [rsp+88h+arg_8], rdi                                           ; +0x81, 0x140203611\nmov     [rbx+74h], al                                                  ; +0x89, 0x140203619\ntest    rcx, rcx                                                       ; +0x8c, 0x14020361c\njz      short loc_140203633                                            ; +0x8f, 0x14020361f\nmov     rax, [rcx]                                                     ; +0x91, 0x140203621\ncall    qword ptr [rax+168h]                                           ; +0x94, 0x140203624\nlea     rdi, [rbx+1F8h]                                                ; +0x9a, 0x14020362a\njmp     short loc_14020366E                                            ; +0xa1, 0x140203631\nlea     rdi, [rbx+1F8h]                                                ; +0xa3, 0x140203633\nmov     rcx, [rdi]                                                     ; +0xaa, 0x14020363a\ntest    rcx, rcx                                                       ; +0xad, 0x14020363d\njz      loc_14020371D                                                  ; +0xb0, 0x140203640\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xb6, 0x140203646\ntest    eax, eax                                                       ; +0xbc, 0x14020364c\njz      loc_14020371D                                                  ; +0xbe, 0x14020364e\nmov     rcx, [rdi]                                                     ; +0xc4, 0x140203654\nxor     edx, edx                                                       ; +0xc7, 0x140203657\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xc9, 0x140203659\nmov     rcx, [rax]                                                     ; +0xcf, 0x14020365f\nmov     rdx, [rcx+168h]                                                ; +0xd2, 0x140203662\nmov     rcx, rax                                                       ; +0xd9, 0x140203669\ncall    rdx                                                            ; +0xdc, 0x14020366c\nmovaps  xmm7, xmm0                                                     ; +0xde, 0x14020366e\nucomiss xmm7, xmm8                                                     ; +0xe1, 0x140203671\njp      short loc_14020367D                                            ; +0xe5, 0x140203675\njz      loc_14020371D                                                  ; +0xe7, 0x140203677\nmov     rax, [rbx+190h]                                                ; +0xed, 0x14020367d\ncmp     byte ptr [rax+25Bh], 0                                         ; +0xf4, 0x140203684\njnz     loc_14020371D                                                  ; +0xfb, 0x14020368b\nmov     rcx, [rbx+468h]                                                ; +0x101, 0x140203691\nmovaps  [rsp+88h+var_18], xmm6                                         ; +0x108, 0x140203698\ntest    rcx, rcx                                                       ; +0x10d, 0x14020369d\njz      short loc_1402036AD                                            ; +0x110, 0x1402036a0\ncall    cs:?createWithObject@CCArray@cocos2d@@SAPEAV12@PEAVCCObject@2@@Z; cocos2d::CCArray::createWithObject(cocos2d::CCObject *) ; +0x112, 0x1402036a2\nmov     rdi, rax                                                       ; +0x118, 0x1402036a8\njmp     short loc_1402036B0                                            ; +0x11b, 0x1402036ab\nmov     rdi, [rdi]                                                     ; +0x11d, 0x1402036ad\nmov     rdx, rdi                                                       ; +0x120, 0x1402036b0\nlea     rcx, [rbx-1B8h]                                                ; +0x123, 0x1402036b3\ncall    EditorUI__resetObjectEditorValues                              ; +0x12a, 0x1402036ba\nmovaps  xmm6, xmm7                                                     ; +0x12f, 0x1402036bf\nlea     rdx, [rbx+178h]                                                ; +0x132, 0x1402036c2\nxorps   xmm6, cs:xmmword_140836CC0                                     ; +0x139, 0x1402036c9\nlea     rcx, [rsp+88h+arg_0]                                           ; +0x140, 0x1402036d0\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x148, 0x1402036d8\nmovss   xmm3, cs:flt_140835080                                         ; +0x14e, 0x1402036de\nlea     rcx, [rbx-1B8h]                                                ; +0x156, 0x1402036e6\nmovss   [rsp+88h+var_48], xmm8                                         ; +0x15d, 0x1402036ed\nmov     r8, rax                                                        ; +0x164, 0x1402036f4\nmovss   [rsp+88h+var_50], xmm8                                         ; +0x167, 0x1402036f7\nmov     rdx, rdi                                                       ; +0x16e, 0x1402036fe\nmovss   [rsp+88h+var_58], xmm6                                         ; +0x171, 0x140203701\nmovss   [rsp+88h+var_60], xmm6                                         ; +0x177, 0x140203707\nmovss   [rsp+88h+var_68], xmm3                                         ; +0x17d, 0x14020370d\ncall    EditorUI__transformObjects                                     ; +0x183, 0x140203713\nmovaps  xmm6, [rsp+88h+var_18]                                         ; +0x188, 0x140203718\nmov     rdi, [rsp+88h+arg_8]                                           ; +0x18d, 0x14020371d\nmov     rcx, [rbx+198h]                                                ; +0x195, 0x140203725\nmovss   xmm1, dword ptr [rbx+58h]                                      ; +0x19c, 0x14020372c\nmov     rax, [rcx]                                                     ; +0x1a1, 0x140203731\ncall    qword ptr [rax+78h]                                            ; +0x1a4, 0x140203734\nmov     rcx, [rbx+198h]                                                ; +0x1a7, 0x140203737\nmovss   xmm1, dword ptr [rbx+5Ch]                                      ; +0x1ae, 0x14020373e\nmov     rax, [rcx]                                                     ; +0x1b3, 0x140203743\ncall    qword ptr [rax+88h]                                            ; +0x1b6, 0x140203746\nmov     rcx, [rbx+198h]                                                ; +0x1bc, 0x14020374c\nmovss   xmm1, dword ptr [rbx+60h]                                      ; +0x1c3, 0x140203753\nmov     rax, [rcx]                                                     ; +0x1c8, 0x140203758\ncall    qword ptr [rax+170h]                                           ; +0x1cb, 0x14020375b\nmov     rcx, [rbx+198h]                                                ; +0x1d1, 0x140203761\nmovss   xmm1, dword ptr [rbx+64h]                                      ; +0x1d8, 0x140203768\nmov     rax, [rcx]                                                     ; +0x1dd, 0x14020376d\ncall    qword ptr [rax+180h]                                           ; +0x1e0, 0x140203770\nmov     rcx, [rbx+198h]                                                ; +0x1e6, 0x140203776\nmovss   xmm1, dword ptr [rbx+68h]                                      ; +0x1ed, 0x14020377d\nmov     rax, [rcx]                                                     ; +0x1f2, 0x140203782\ncall    qword ptr [rax+100h]                                           ; +0x1f5, 0x140203785\nmov     rcx, [rbx+198h]                                                ; +0x1fb, 0x14020378b\nmovss   xmm1, dword ptr [rbx+6Ch]                                      ; +0x202, 0x140203792\nmov     rax, [rcx]                                                     ; +0x207, 0x140203797\ncall    qword ptr [rax+110h]                                           ; +0x20a, 0x14020379a\nmov     r8, [rbx+1F8h]                                                 ; +0x210, 0x1402037a0\nlea     r9, [rbx+18h]                                                  ; +0x217, 0x1402037a7\nmov     rdx, [rbx+468h]                                                ; +0x21b, 0x1402037ab\nmov     rcx, [rbx+190h]                                                ; +0x222, 0x1402037b2\ncall    GJTransformControl__loadValues                                 ; +0x229, 0x1402037b9\nucomiss xmm7, xmm8                                                     ; +0x22e, 0x1402037be\nmovaps  xmm8, [rsp+88h+var_38]                                         ; +0x232, 0x1402037c2\njp      short loc_1402037CC                                            ; +0x238, 0x1402037c8\njz      short loc_1402037DB                                            ; +0x23a, 0x1402037ca\nmov     rcx, [rbx+190h]                                                ; +0x23c, 0x1402037cc\nmovaps  xmm1, xmm7                                                     ; +0x243, 0x1402037d3\ncall    GJTransformControl__applyRotation                              ; +0x246, 0x1402037d6\nmovaps  xmm7, [rsp+88h+var_28]                                         ; +0x24b, 0x1402037db\nmov     rbx, [rsp+88h+arg_10]                                          ; +0x250, 0x1402037e0\nadd     rsp, 80h                                                       ; +0x258, 0x1402037e8\npop     rsi                                                            ; +0x25f, 0x1402037ef\nretn                                                                   ; +0x260, 0x1402037f0", "xrefs": ["<???> @ 0x140751768", "<???> @ 0x1408a4078", "<???> @ 0x1408a40f4", "<???> @ 0x14091b044"], "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"}