{"type": "func", "start": 5370820608, "end": 5370820789, "name": "EditorUI::resetObjectEditorValues", "pseudocode": "// \n// EditorUI::resetObjectEditorValues from 0x140203800 to 0x1402038b5 (181 bytes)\n// \n// 5 xrefs:\n// > GJTransformControl::applyFreeRotation @ 0x1401a81d5\n// > EditorUI::updateTransformControl @ 0x1402036ba\n// > <???> @ 0x1408a4114\n// > <???> @ 0x1408a4148\n// > <???> @ 0x14091b0b0\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\nvoid __fastcall EditorUI::resetObjectEditorValues(__int64 a1, cocos2d::CCArray *a2)\n{\n  unsigned int v4; // esi\n  _QWORD *v5; // rbp\n  struct cocos2d::CCObject *v6; // rbx\n  __int64 v7; // rax\n  _BYTE v8[24]; // [rsp+20h] [rbp-18h] BYREF\n  int v9; // [rsp+48h] [rbp+10h] BYREF\n\n  if ( a2 )\n  {\n    if ( cocos2d::CCArray::count(a2) )\n    {\n      v4 = 0;\n      if ( cocos2d::CCArray::count(a2) )\n      {\n        v5 = (_QWORD *)(a1 + 464);\n        do\n        {\n          v6 = cocos2d::CCArray::objectAtIndex(a2, v4);\n          GameObject::updateStartPos(v6);\n          v9 = *((_DWORD *)v6 + 231);\n          v7 = sub_1401A8A10(v5, (__int64)v8, (unsigned __int8 *)&v9);\n          GameObjectEditorState::loadValues((float *)(*(_QWORD *)v7 + 20LL), (float *)v6);\n          ++v4;\n        }\n        while ( v4 < cocos2d::CCArray::count(a2) );\n      }\n    }\n  }\n}", "assembly": "; \n; EditorUI::resetObjectEditorValues from 0x140203800 to 0x1402038b5 (181 bytes)\n; \n; 5 xrefs:\n; > GJTransformControl::applyFreeRotation @ 0x1401a81d5\n; > EditorUI::updateTransformControl @ 0x1402036ba\n; > <???> @ 0x1408a4114\n; > <???> @ 0x1408a4148\n; > <???> @ 0x14091b0b0\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; \ntest    rdx, rdx                                                       ; +0x0, 0x140203800\njz      locret_1402038B4                                               ; +0x3, 0x140203803\nmov     [rsp+arg_18], rbx                                              ; +0x9, 0x140203809\npush    rdi                                                            ; +0xe, 0x14020380e\nsub     rsp, 30h                                                       ; +0xf, 0x14020380f\nmov     rbx, rcx                                                       ; +0x13, 0x140203813\nmov     rdi, rdx                                                       ; +0x16, 0x140203816\nmov     rcx, rdx                                                       ; +0x19, 0x140203819\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1c, 0x14020381c\ntest    eax, eax                                                       ; +0x22, 0x140203822\njz      loc_1402038AA                                                  ; +0x24, 0x140203824\nmov     [rsp+38h+arg_10], rsi                                          ; +0x2a, 0x14020382a\nmov     rcx, rdi                                                       ; +0x2f, 0x14020382f\nxor     esi, esi                                                       ; +0x32, 0x140203832\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x34, 0x140203834\ntest    eax, eax                                                       ; +0x3a, 0x14020383a\njz      short loc_1402038A5                                            ; +0x3c, 0x14020383c\nmov     [rsp+38h+arg_0], rbp                                           ; +0x3e, 0x14020383e\nlea     rbp, [rbx+1D0h]                                                ; +0x43, 0x140203843\nnop     word ptr [rax+rax+00h]                                         ; +0x4a, 0x14020384a\nmov     edx, esi                                                       ; +0x50, 0x140203850\nmov     rcx, rdi                                                       ; +0x52, 0x140203852\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x55, 0x140203855\nmov     rcx, rax                                                       ; +0x5b, 0x14020385b\nmov     rbx, rax                                                       ; +0x5e, 0x14020385e\ncall    GameObject__updateStartPos                                     ; +0x61, 0x140203861\nmov     ecx, [rbx+39Ch]                                                ; +0x66, 0x140203866\nlea     r8, [rsp+38h+arg_8]                                            ; +0x6c, 0x14020386c\nmov     [rsp+38h+arg_8], ecx                                           ; +0x71, 0x140203871\nlea     rdx, [rsp+38h+var_18]                                          ; +0x75, 0x140203875\nmov     rcx, rbp                                                       ; +0x7a, 0x14020387a\ncall    sub_1401A8A10                                                  ; +0x7d, 0x14020387d\nmov     rdx, rbx                                                       ; +0x82, 0x140203882\nmov     rcx, [rax]                                                     ; +0x85, 0x140203885\nadd     rcx, 14h                                                       ; +0x88, 0x140203888\ncall    GameObjectEditorState__loadValues                              ; +0x8c, 0x14020388c\nmov     rcx, rdi                                                       ; +0x91, 0x140203891\ninc     esi                                                            ; +0x94, 0x140203894\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x96, 0x140203896\ncmp     esi, eax                                                       ; +0x9c, 0x14020389c\njb      short loc_140203850                                            ; +0x9e, 0x14020389e\nmov     rbp, [rsp+38h+arg_0]                                           ; +0xa0, 0x1402038a0\nmov     rsi, [rsp+38h+arg_10]                                          ; +0xa5, 0x1402038a5\nmov     rbx, [rsp+38h+arg_18]                                          ; +0xaa, 0x1402038aa\nadd     rsp, 30h                                                       ; +0xaf, 0x1402038af\npop     rdi                                                            ; +0xb3, 0x1402038b3\nretn                                                                   ; +0xb4, 0x1402038b4", "xrefs": ["GJTransformControl::applyFreeRotation @ 0x1401a81d5", "EditorUI::updateTransformControl @ 0x1402036ba", "<???> @ 0x1408a4114", "<???> @ 0x1408a4148", "<???> @ 0x14091b0b0"], "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"}