{"type": "func", "start": 4295231168, "end": 4295231451, "name": "EditorUI::resetObjectEditorValues", "pseudocode": "// \n// EditorUI::resetObjectEditorValues from 0x1000406c0 to 0x1000407db (283 bytes)\n// \n// 1 xrefs:\n// > EditorUI::updateTransformControl @ 0x10004054d\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 __fastcall EditorUI::resetObjectEditorValues(EditorUI *a1, cocos2d::CCArray *a2)\n{\n  cocos2d::CCArray *v2; // rbx\n  std::unordered_map<int, GameObjectEditorState> *p_m_objectEditorStates; // r14\n  unsigned int v4; // r15d\n  __int64 v5; // r13\n  std::unordered_map<int, GameObjectEditorState> *v6; // rbx\n  __int64 v7; // r14\n  __int64 v8; // rsi\n  int *v9; // [rsp-48h] [rbp-48h] BYREF\n  cocos2d::CCArray *v10; // [rsp-40h] [rbp-40h]\n  int v11; // [rsp-38h] [rbp-38h] BYREF\n  char v12; // [rsp-31h] [rbp-31h] BYREF\n\n  if ( a2 )\n  {\n    v2 = a2;\n    if ( (unsigned int)sub_100720070(a2) )\n    {\n      if ( (unsigned int)sub_100720070(a2) )\n      {\n        p_m_objectEditorStates = &a1->m_objectEditorStates;\n        v4 = 0;\n        v10 = a2;\n        do\n        {\n          v5 = sub_1007200C0(v2, v4);\n          GameObject::updateStartPos((GameObject *)v5);\n          v11 = *(_DWORD *)(v5 + 916);\n          v9 = &v11;\n          v6 = p_m_objectEditorStates;\n          v7 = sub_100056050(p_m_objectEditorStates, &v11, &unk_10081561F, &v9, &v12);\n          v8 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 192LL))(v5);\n          sub_10028CC90(v7 + 20, v8);\n          _mm_storel_ps(\n            (double *)(v7 + 28),\n            _mm_div_ps((__m128)*(unsigned __int64 *)(v5 + 1152), (__m128)*(unsigned __int64 *)(v5 + 1312)));\n          *(float *)(v7 + 36) = (*(float (__fastcall **)(__int64))(*(_QWORD *)v5 + 368LL))(v5);\n          *(float *)(v7 + 40) = (*(float (__fastcall **)(__int64))(*(_QWORD *)v5 + 384LL))(v5);\n          p_m_objectEditorStates = v6;\n          v2 = v10;\n          ++v4;\n        }\n        while ( v4 < (unsigned int)sub_100720070(v10) );\n      }\n    }\n  }\n}", "assembly": "; \n; EditorUI::resetObjectEditorValues from 0x1000406c0 to 0x1000407db (283 bytes)\n; \n; 1 xrefs:\n; > EditorUI::updateTransformControl @ 0x10004054d\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\ntest    rsi, rsi                                                       ; +0x0, 0x1000406c0\njz      locret_1000407DA                                               ; +0x3, 0x1000406c3\npush    rbp                                                            ; +0x9, 0x1000406c9\nmov     rbp, rsp                                                       ; +0xa, 0x1000406ca\npush    r15                                                            ; +0xd, 0x1000406cd\npush    r14                                                            ; +0xf, 0x1000406cf\npush    r13                                                            ; +0x11, 0x1000406d1\npush    r12                                                            ; +0x13, 0x1000406d3\npush    rbx                                                            ; +0x15, 0x1000406d5\nsub     rsp, 18h                                                       ; +0x16, 0x1000406d6\nmov     rbx, rsi                                                       ; +0x1a, 0x1000406da\nmov     r14, rdi                                                       ; +0x1d, 0x1000406dd\nmov     rdi, rsi                                                       ; +0x20, 0x1000406e0\ncall    sub_100720070                                                  ; +0x23, 0x1000406e3\ntest    eax, eax                                                       ; +0x28, 0x1000406e8\njz      loc_1000407CC                                                  ; +0x2a, 0x1000406ea\nmov     rdi, rbx                                                       ; +0x30, 0x1000406f0\ncall    sub_100720070                                                  ; +0x33, 0x1000406f3\ntest    eax, eax                                                       ; +0x38, 0x1000406f8\njz      loc_1000407CC                                                  ; +0x3a, 0x1000406fa\nadd     r14, 1D0h                                                      ; +0x40, 0x100040700\nxor     r15d, r15d                                                     ; +0x47, 0x100040707\nmov     [rbp-38h], rbx                                                 ; +0x4a, 0x10004070a\nxchg    ax, ax                                                         ; +0x4e, 0x10004070e\nmov     rdi, rbx                                                       ; +0x50, 0x100040710\nmov     esi, r15d                                                      ; +0x53, 0x100040713\ncall    sub_1007200C0                                                  ; +0x56, 0x100040716\nmov     r13, rax                                                       ; +0x5b, 0x10004071b\nmov     rdi, rax                                                       ; +0x5e, 0x10004071e\ncall    GameObject__updateStartPos                                     ; +0x61, 0x100040721\nmov     eax, [r13+394h]                                                ; +0x66, 0x100040726\nmov     [rbp-30h], eax                                                 ; +0x6d, 0x10004072d\nlea     rsi, [rbp-30h]                                                 ; +0x70, 0x100040730\nmov     [rbp-40h], rsi                                                 ; +0x74, 0x100040734\nmov     rdi, r14                                                       ; +0x78, 0x100040738\nlea     rdx, unk_10081561F                                             ; +0x7b, 0x10004073b\nlea     rcx, [rbp-40h]                                                 ; +0x82, 0x100040742\nlea     r8, [rbp-29h]                                                  ; +0x86, 0x100040746\ncall    sub_100056050                                                  ; +0x8a, 0x10004074a\nmov     rbx, r14                                                       ; +0x8f, 0x10004074f\nmov     r14, rax                                                       ; +0x92, 0x100040752\nlea     r12, [rax+14h]                                                 ; +0x95, 0x100040755\nmov     rax, [r13+0]                                                   ; +0x99, 0x100040759\nmov     rdi, r13                                                       ; +0x9d, 0x10004075d\ncall    qword ptr [rax+0C0h]                                           ; +0xa0, 0x100040760\nmov     rdi, r12                                                       ; +0xa6, 0x100040766\nmov     rsi, rax                                                       ; +0xa9, 0x100040769\ncall    sub_10028CC90                                                  ; +0xac, 0x10004076c\nmovsd   xmm0, qword ptr [r13+480h]                                     ; +0xb1, 0x100040771\nmovsd   xmm1, qword ptr [r13+520h]                                     ; +0xba, 0x10004077a\ndivps   xmm0, xmm1                                                     ; +0xc3, 0x100040783\nmovlps  qword ptr [r14+1Ch], xmm0                                      ; +0xc6, 0x100040786\nmov     rax, [r13+0]                                                   ; +0xcb, 0x10004078b\nmov     rdi, r13                                                       ; +0xcf, 0x10004078f\ncall    qword ptr [rax+170h]                                           ; +0xd2, 0x100040792\nmovss   dword ptr [r14+24h], xmm0                                      ; +0xd8, 0x100040798\nmov     rax, [r13+0]                                                   ; +0xde, 0x10004079e\nmov     rdi, r13                                                       ; +0xe2, 0x1000407a2\ncall    qword ptr [rax+180h]                                           ; +0xe5, 0x1000407a5\nmovss   dword ptr [r14+28h], xmm0                                      ; +0xeb, 0x1000407ab\nmov     r14, rbx                                                       ; +0xf1, 0x1000407b1\nmov     rbx, [rbp-38h]                                                 ; +0xf4, 0x1000407b4\ninc     r15d                                                           ; +0xf8, 0x1000407b8\nmov     rdi, rbx                                                       ; +0xfb, 0x1000407bb\ncall    sub_100720070                                                  ; +0xfe, 0x1000407be\ncmp     r15d, eax                                                      ; +0x103, 0x1000407c3\njb      loc_100040710                                                  ; +0x106, 0x1000407c6\nadd     rsp, 18h                                                       ; +0x10c, 0x1000407cc\npop     rbx                                                            ; +0x110, 0x1000407d0\npop     r12                                                            ; +0x111, 0x1000407d1\npop     r13                                                            ; +0x113, 0x1000407d3\npop     r14                                                            ; +0x115, 0x1000407d5\npop     r15                                                            ; +0x117, 0x1000407d7\npop     rbp                                                            ; +0x119, 0x1000407d9\nretn                                                                   ; +0x11a, 0x1000407da", "xrefs": ["EditorUI::updateTransformControl @ 0x10004054d"], "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"}