{"type": "func", "start": 5369843184, "end": 5369843527, "name": "EditorUI::updateScaleControl", "pseudocode": "// \n// EditorUI::updateScaleControl from 0x140114df0 to 0x140114f47 (343 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x140553ed0\n// > <???> @ 0x14066f5f8\n// > <???> @ 0x14066f650\n// > <???> @ 0x1406c91a4\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::updateScaleControl(EditorUI *a1)\n{\n  GameObject *m_snapBtn; // rcx\n  bool isTrigger; // bp\n  int *p_m_uPreviousPriority; // r14\n  int *v5; // rsi\n  unsigned int v6; // ebx\n  GameObject *v7; // rax\n  __int64 v8; // rax\n  CCMenuItemSpriteExtra *v9; // rax\n\n  if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(**(_QWORD **)&a1->m_bReorderChildDirty + 328LL))(*(_QWORD *)&a1->m_bReorderChildDirty) )\n  {\n    m_snapBtn = (GameObject *)a1->m_snapBtn;\n    isTrigger = 0;\n    if ( m_snapBtn )\n    {\n      isTrigger = GameObject::isTrigger(m_snapBtn);\n      p_m_uPreviousPriority = &a1->m_uPreviousPriority;\n    }\n    else\n    {\n      v5 = &a1->m_uPreviousPriority;\n      p_m_uPreviousPriority = &a1->m_uPreviousPriority;\n      if ( cocos2d::CCArray::count(*(cocos2d::CCArray **)&a1->m_uPreviousPriority) )\n      {\n        isTrigger = 1;\n        v6 = 0;\n        if ( cocos2d::CCArray::count(*(cocos2d::CCArray **)v5) )\n        {\n          while ( 1 )\n          {\n            v7 = (GameObject *)cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)v5, v6);\n            if ( !GameObject::isTrigger(v7) )\n              break;\n            if ( ++v6 >= cocos2d::CCArray::count(*(cocos2d::CCArray **)v5) )\n              goto LABEL_10;\n          }\n          isTrigger = 0;\n        }\n      }\n    }\nLABEL_10:\n    v8 = *(_QWORD *)&a1->m_bReorderChildDirty;\n    if ( BYTE3(a1->m_pUserObject) )\n    {\n      *(_DWORD *)(v8 + 496) = 1082130432;\n      *(_DWORD *)(*(_QWORD *)&a1->m_bReorderChildDirty + 500LL) = 1048576000;\n    }\n    else\n    {\n      *(_DWORD *)(v8 + 500) = 1056964608;\n      if ( isTrigger || (v9 = a1->m_snapBtn) != nullptr && v9[1].m_animationType == 747 )\n        *(_DWORD *)(*(_QWORD *)&a1->m_bReorderChildDirty + 496LL) = 1082130432;\n      else\n        *(_DWORD *)(*(_QWORD *)&a1->m_bReorderChildDirty + 496LL) = 0x40000000;\n    }\n    GJScaleControl::loadValues(\n      *(GJScaleControl **)&a1->m_bReorderChildDirty,\n      (GameObject *)a1->m_snapBtn,\n      *(cocos2d::CCArray **)p_m_uPreviousPriority,\n      (std::unordered_map<int, GameObjectEditorState> *)&a1->m_uIndexInArray);\n  }\n}", "assembly": "; \n; EditorUI::updateScaleControl from 0x140114df0 to 0x140114f47 (343 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x140553ed0\n; > <???> @ 0x14066f5f8\n; > <???> @ 0x14066f650\n; > <???> @ 0x1406c91a4\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    rdi                                                            ; +0x0, 0x140114df0\nsub     rsp, 20h                                                       ; +0x2, 0x140114df2\nmov     rdi, rcx                                                       ; +0x6, 0x140114df6\nmov     rcx, [rcx+120h]                                                ; +0x9, 0x140114df9\nmov     rax, [rcx]                                                     ; +0x10, 0x140114e00\ncall    qword ptr [rax+148h]                                           ; +0x13, 0x140114e03\ntest    al, al                                                         ; +0x19, 0x140114e09\njz      loc_140114F41                                                  ; +0x1b, 0x140114e0b\nmov     rcx, [rdi+388h]                                                ; +0x21, 0x140114e11\nmov     [rsp+28h+arg_8], rbp                                           ; +0x28, 0x140114e18\nxor     bpl, bpl                                                       ; +0x2d, 0x140114e1d\nmov     [rsp+28h+arg_18], r14                                          ; +0x30, 0x140114e20\ntest    rcx, rcx                                                       ; +0x35, 0x140114e25\njz      short loc_140114E3B                                            ; +0x38, 0x140114e28\ncall    GameObject__isTrigger                                          ; +0x3a, 0x140114e2a\nmovzx   ebp, al                                                        ; +0x3f, 0x140114e2f\nlea     r14, [rdi+190h]                                                ; +0x42, 0x140114e32\njmp     short loc_140114EA5                                            ; +0x49, 0x140114e39\nmov     [rsp+28h+arg_10], rsi                                          ; +0x4b, 0x140114e3b\nlea     rsi, [rdi+190h]                                                ; +0x50, 0x140114e40\nmov     rcx, [rsi]                                                     ; +0x57, 0x140114e47\nmov     r14, rsi                                                       ; +0x5a, 0x140114e4a\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x5d, 0x140114e4d\ntest    eax, eax                                                       ; +0x63, 0x140114e53\njz      short loc_140114EA0                                            ; +0x65, 0x140114e55\nmov     rcx, [rsi]                                                     ; +0x67, 0x140114e57\nmov     bpl, 1                                                         ; +0x6a, 0x140114e5a\nmov     [rsp+28h+arg_0], rbx                                           ; +0x6d, 0x140114e5d\nxor     ebx, ebx                                                       ; +0x72, 0x140114e62\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x74, 0x140114e64\ntest    eax, eax                                                       ; +0x7a, 0x140114e6a\njz      short loc_140114E9B                                            ; +0x7c, 0x140114e6c\nxchg    ax, ax                                                         ; +0x7e, 0x140114e6e\nmov     rcx, [rsi]                                                     ; +0x80, 0x140114e70\nmov     edx, ebx                                                       ; +0x83, 0x140114e73\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x85, 0x140114e75\nmov     rcx, rax                                                       ; +0x8b, 0x140114e7b\ncall    GameObject__isTrigger                                          ; +0x8e, 0x140114e7e\ntest    al, al                                                         ; +0x93, 0x140114e83\njz      short loc_140114E98                                            ; +0x95, 0x140114e85\nmov     rcx, [rsi]                                                     ; +0x97, 0x140114e87\ninc     ebx                                                            ; +0x9a, 0x140114e8a\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x9c, 0x140114e8c\ncmp     ebx, eax                                                       ; +0xa2, 0x140114e92\njb      short loc_140114E70                                            ; +0xa4, 0x140114e94\njmp     short loc_140114E9B                                            ; +0xa6, 0x140114e96\nxor     bpl, bpl                                                       ; +0xa8, 0x140114e98\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xab, 0x140114e9b\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xb0, 0x140114ea0\ncmp     byte ptr [rdi+0EBh], 0                                         ; +0xb5, 0x140114ea5\nmov     rax, [rdi+120h]                                                ; +0xbc, 0x140114eac\njz      short loc_140114ED2                                            ; +0xc3, 0x140114eb3\nmov     dword ptr [rax+1F0h], 40800000h                                ; +0xc5, 0x140114eb5\nmov     rax, [rdi+120h]                                                ; +0xcf, 0x140114ebf\nmov     dword ptr [rax+1F4h], 3E800000h                                ; +0xd6, 0x140114ec6\njmp     short loc_140114F1D                                            ; +0xe0, 0x140114ed0\nmov     dword ptr [rax+1F4h], 3F000000h                                ; +0xe2, 0x140114ed2\ntest    bpl, bpl                                                       ; +0xec, 0x140114edc\njnz     short loc_140114F0C                                            ; +0xef, 0x140114edf\nmov     rax, [rdi+388h]                                                ; +0xf1, 0x140114ee1\ntest    rax, rax                                                       ; +0xf8, 0x140114ee8\njz      short loc_140114EF9                                            ; +0xfb, 0x140114eeb\ncmp     dword ptr [rax+40Ch], 2EBh                                     ; +0xfd, 0x140114eed\njz      short loc_140114F0C                                            ; +0x107, 0x140114ef7\nmov     rax, [rdi+120h]                                                ; +0x109, 0x140114ef9\nmov     dword ptr [rax+1F0h], 40000000h                                ; +0x110, 0x140114f00\njmp     short loc_140114F1D                                            ; +0x11a, 0x140114f0a\nmov     rax, [rdi+120h]                                                ; +0x11c, 0x140114f0c\nmov     dword ptr [rax+1F0h], 40800000h                                ; +0x123, 0x140114f13\nmov     r8, [r14]                                                      ; +0x12d, 0x140114f1d\nlea     r9, [rdi+20h]                                                  ; +0x130, 0x140114f20\nmov     rdx, [rdi+388h]                                                ; +0x134, 0x140114f24\nmov     rcx, [rdi+120h]                                                ; +0x13b, 0x140114f2b\ncall    GJScaleControl__loadValues                                     ; +0x142, 0x140114f32\nmov     r14, [rsp+28h+arg_18]                                          ; +0x147, 0x140114f37\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x14c, 0x140114f3c\nadd     rsp, 20h                                                       ; +0x151, 0x140114f41\npop     rdi                                                            ; +0x155, 0x140114f45\nretn                                                                   ; +0x156, 0x140114f46", "xrefs": ["<???> @ 0x140553ed0", "<???> @ 0x14066f5f8", "<???> @ 0x14066f650", "<???> @ 0x1406c91a4"], "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"}