{"type": "func", "start": 5370818176, "end": 5370818519, "name": "EditorUI::updateScaleControl", "pseudocode": "// \n// EditorUI::updateScaleControl from 0x140202e80 to 0x140202fd7 (343 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x1407517f0\n// > <???> @ 0x1408a3f88\n// > <???> @ 0x1408a3fe0\n// > <???> @ 0x14091af78\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::updateScaleControl(__int64 a1)\n{\n  __int64 result; // rax\n  __int64 v3; // rcx\n  char isTrigger; // bp\n  cocos2d::CCArray **v5; // r14\n  cocos2d::CCArray **v6; // rsi\n  unsigned int v7; // ebx\n  struct cocos2d::CCObject *v8; // rax\n  __int64 v9; // rax\n  __int64 v10; // rax\n\n  result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 400) + 344LL))(*(_QWORD *)(a1 + 400));\n  if ( (_BYTE)result )\n  {\n    v3 = *(_QWORD *)(a1 + 1136);\n    isTrigger = 0;\n    if ( v3 )\n    {\n      isTrigger = GameObject::isTrigger(v3);\n      v5 = (cocos2d::CCArray **)(a1 + 512);\n    }\n    else\n    {\n      v6 = (cocos2d::CCArray **)(a1 + 512);\n      v5 = (cocos2d::CCArray **)(a1 + 512);\n      if ( cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 512)) )\n      {\n        isTrigger = 1;\n        v7 = 0;\n        if ( cocos2d::CCArray::count(*v6) )\n        {\n          while ( 1 )\n          {\n            v8 = cocos2d::CCArray::objectAtIndex(*v6, v7);\n            if ( !(unsigned __int8)GameObject::isTrigger(v8) )\n              break;\n            if ( ++v7 >= cocos2d::CCArray::count(*v6) )\n              goto LABEL_10;\n          }\n          isTrigger = 0;\n        }\n      }\n    }\nLABEL_10:\n    v9 = *(_QWORD *)(a1 + 400);\n    if ( *(_BYTE *)(a1 + 307) )\n    {\n      *(_DWORD *)(v9 + 584) = 1082130432;\n      *(_DWORD *)(*(_QWORD *)(a1 + 400) + 588LL) = 1048576000;\n    }\n    else\n    {\n      *(_DWORD *)(v9 + 588) = 1056964608;\n      if ( isTrigger || (v10 = *(_QWORD *)(a1 + 1136)) != 0 && *(_DWORD *)(v10 + 1036) == 747 )\n        *(_DWORD *)(*(_QWORD *)(a1 + 400) + 584LL) = 1082130432;\n      else\n        *(_DWORD *)(*(_QWORD *)(a1 + 400) + 584LL) = 0x40000000;\n    }\n    return GJScaleControl::loadValues(*(_QWORD *)(a1 + 400), *(float **)(a1 + 1136), *v5, a1 + 32);\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::updateScaleControl from 0x140202e80 to 0x140202fd7 (343 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x1407517f0\n; > <???> @ 0x1408a3f88\n; > <???> @ 0x1408a3fe0\n; > <???> @ 0x14091af78\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; \npush    rdi                                                            ; +0x0, 0x140202e80\nsub     rsp, 20h                                                       ; +0x2, 0x140202e82\nmov     rdi, rcx                                                       ; +0x6, 0x140202e86\nmov     rcx, [rcx+190h]                                                ; +0x9, 0x140202e89\nmov     rax, [rcx]                                                     ; +0x10, 0x140202e90\ncall    qword ptr [rax+158h]                                           ; +0x13, 0x140202e93\ntest    al, al                                                         ; +0x19, 0x140202e99\njz      loc_140202FD1                                                  ; +0x1b, 0x140202e9b\nmov     rcx, [rdi+470h]                                                ; +0x21, 0x140202ea1\nmov     [rsp+28h+arg_8], rbp                                           ; +0x28, 0x140202ea8\nxor     bpl, bpl                                                       ; +0x2d, 0x140202ead\nmov     [rsp+28h+arg_18], r14                                          ; +0x30, 0x140202eb0\ntest    rcx, rcx                                                       ; +0x35, 0x140202eb5\njz      short loc_140202ECB                                            ; +0x38, 0x140202eb8\ncall    GameObject__isTrigger                                          ; +0x3a, 0x140202eba\nmovzx   ebp, al                                                        ; +0x3f, 0x140202ebf\nlea     r14, [rdi+200h]                                                ; +0x42, 0x140202ec2\njmp     short loc_140202F35                                            ; +0x49, 0x140202ec9\nmov     [rsp+28h+arg_10], rsi                                          ; +0x4b, 0x140202ecb\nlea     rsi, [rdi+200h]                                                ; +0x50, 0x140202ed0\nmov     rcx, [rsi]                                                     ; +0x57, 0x140202ed7\nmov     r14, rsi                                                       ; +0x5a, 0x140202eda\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x5d, 0x140202edd\ntest    eax, eax                                                       ; +0x63, 0x140202ee3\njz      short loc_140202F30                                            ; +0x65, 0x140202ee5\nmov     rcx, [rsi]                                                     ; +0x67, 0x140202ee7\nmov     bpl, 1                                                         ; +0x6a, 0x140202eea\nmov     [rsp+28h+arg_0], rbx                                           ; +0x6d, 0x140202eed\nxor     ebx, ebx                                                       ; +0x72, 0x140202ef2\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x74, 0x140202ef4\ntest    eax, eax                                                       ; +0x7a, 0x140202efa\njz      short loc_140202F2B                                            ; +0x7c, 0x140202efc\nxchg    ax, ax                                                         ; +0x7e, 0x140202efe\nmov     rcx, [rsi]                                                     ; +0x80, 0x140202f00\nmov     edx, ebx                                                       ; +0x83, 0x140202f03\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x85, 0x140202f05\nmov     rcx, rax                                                       ; +0x8b, 0x140202f0b\ncall    GameObject__isTrigger                                          ; +0x8e, 0x140202f0e\ntest    al, al                                                         ; +0x93, 0x140202f13\njz      short loc_140202F28                                            ; +0x95, 0x140202f15\nmov     rcx, [rsi]                                                     ; +0x97, 0x140202f17\ninc     ebx                                                            ; +0x9a, 0x140202f1a\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x9c, 0x140202f1c\ncmp     ebx, eax                                                       ; +0xa2, 0x140202f22\njb      short loc_140202F00                                            ; +0xa4, 0x140202f24\njmp     short loc_140202F2B                                            ; +0xa6, 0x140202f26\nxor     bpl, bpl                                                       ; +0xa8, 0x140202f28\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xab, 0x140202f2b\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xb0, 0x140202f30\ncmp     byte ptr [rdi+133h], 0                                         ; +0xb5, 0x140202f35\nmov     rax, [rdi+190h]                                                ; +0xbc, 0x140202f3c\njz      short loc_140202F62                                            ; +0xc3, 0x140202f43\nmov     dword ptr [rax+248h], 40800000h                                ; +0xc5, 0x140202f45\nmov     rax, [rdi+190h]                                                ; +0xcf, 0x140202f4f\nmov     dword ptr [rax+24Ch], 3E800000h                                ; +0xd6, 0x140202f56\njmp     short loc_140202FAD                                            ; +0xe0, 0x140202f60\nmov     dword ptr [rax+24Ch], 3F000000h                                ; +0xe2, 0x140202f62\ntest    bpl, bpl                                                       ; +0xec, 0x140202f6c\njnz     short loc_140202F9C                                            ; +0xef, 0x140202f6f\nmov     rax, [rdi+470h]                                                ; +0xf1, 0x140202f71\ntest    rax, rax                                                       ; +0xf8, 0x140202f78\njz      short loc_140202F89                                            ; +0xfb, 0x140202f7b\ncmp     dword ptr [rax+40Ch], 2EBh                                     ; +0xfd, 0x140202f7d\njz      short loc_140202F9C                                            ; +0x107, 0x140202f87\nmov     rax, [rdi+190h]                                                ; +0x109, 0x140202f89\nmov     dword ptr [rax+248h], 40000000h                                ; +0x110, 0x140202f90\njmp     short loc_140202FAD                                            ; +0x11a, 0x140202f9a\nmov     rax, [rdi+190h]                                                ; +0x11c, 0x140202f9c\nmov     dword ptr [rax+248h], 40800000h                                ; +0x123, 0x140202fa3\nmov     r8, [r14]                                                      ; +0x12d, 0x140202fad\nlea     r9, [rdi+20h]                                                  ; +0x130, 0x140202fb0\nmov     rdx, [rdi+470h]                                                ; +0x134, 0x140202fb4\nmov     rcx, [rdi+190h]                                                ; +0x13b, 0x140202fbb\ncall    GJScaleControl__loadValues                                     ; +0x142, 0x140202fc2\nmov     r14, [rsp+28h+arg_18]                                          ; +0x147, 0x140202fc7\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x14c, 0x140202fcc\nadd     rsp, 20h                                                       ; +0x151, 0x140202fd1\npop     rdi                                                            ; +0x155, 0x140202fd5\nretn                                                                   ; +0x156, 0x140202fd6", "xrefs": ["<???> @ 0x1407517f0", "<???> @ 0x1408a3f88", "<???> @ 0x1408a3fe0", "<???> @ 0x14091af78"], "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"}