{"type": "func", "start": 5372944160, "end": 5372944500, "name": "GameObjectCopy::resetObject", "pseudocode": "// \n// GameObjectCopy::resetObject from 0x140409f20 to 0x14040a074 (340 bytes)\n// \n// 3 xrefs:\n// > LevelEditorLayer::handleAction @ 0x1403f2877\n// > LevelEditorLayer::handleAction @ 0x1403f29ae\n// > <???> @ 0x140925cac\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:31:59 +0000\n// \n\n__int64 __fastcall GameObjectCopy::resetObject(__int64 a1)\n{\n  __int64 v2; // rax\n  __int64 *v3; // rbx\n  float v4; // xmm0_4\n  __int64 v5; // rax\n  float v6; // xmm1_4\n  __int64 *v7; // rbx\n  float v8; // xmm0_4\n  __int64 v9; // rax\n  float v10; // xmm2_4\n\n  (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 56) + 184LL))(*(_QWORD *)(a1 + 56), a1 + 64);\n  v2 = **(_QWORD **)(a1 + 56);\n  if ( *(float *)(a1 + 72) == *(float *)(a1 + 76) )\n  {\n    (*(void (**)(void))(v2 + 352))();\n  }\n  else\n  {\n    (*(void (**)(void))(v2 + 368))();\n    (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 56) + 384LL))(*(_QWORD *)(a1 + 56));\n  }\n  (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 56) + 1088LL))(\n    *(_QWORD *)(a1 + 56),\n    *(unsigned __int8 *)(a1 + 80));\n  (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 56) + 1096LL))(\n    *(_QWORD *)(a1 + 56),\n    *(unsigned __int8 *)(a1 + 81));\n  v3 = *(__int64 **)(a1 + 56);\n  v4 = roundf(*(float *)(a1 + 84) * 1000.0);\n  *((_DWORD *)v3 + 16) = 0;\n  v5 = *v3;\n  v6 = (float)(int)v4 / 1000.0;\n  *((float *)v3 + 290) = v6;\n  *((float *)v3 + 249) = v6;\n  (*(void (__fastcall **)(__int64 *))(v5 + 1288))(v3);\n  *((_BYTE *)v3 + 848) = 1;\n  *((_BYTE *)v3 + 872) = 1;\n  v7 = *(__int64 **)(a1 + 56);\n  v8 = roundf(*(float *)(a1 + 88) * 1000.0);\n  *((_DWORD *)v7 + 17) = 0;\n  v9 = *v7;\n  v10 = (float)(int)v8 / 1000.0;\n  *((float *)v7 + 291) = v10;\n  *((float *)v7 + 250) = v10;\n  (*(void (__fastcall **)(__int64 *))(v9 + 1296))(v7);\n  *((_BYTE *)v7 + 848) = 1;\n  *((_BYTE *)v7 + 872) = 1;\n  return (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 56) + 1224LL))(*(_QWORD *)(a1 + 56));\n}", "assembly": "; \n; GameObjectCopy::resetObject from 0x140409f20 to 0x14040a074 (340 bytes)\n; \n; 3 xrefs:\n; > LevelEditorLayer::handleAction @ 0x1403f2877\n; > LevelEditorLayer::handleAction @ 0x1403f29ae\n; > <???> @ 0x140925cac\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:31:59 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140409f20\npush    rdi                                                            ; +0x5, 0x140409f25\nsub     rsp, 30h                                                       ; +0x6, 0x140409f26\nmov     rdi, rcx                                                       ; +0xa, 0x140409f2a\nmovaps  [rsp+38h+var_18], xmm7                                         ; +0xd, 0x140409f2d\nmov     rcx, [rcx+38h]                                                 ; +0x12, 0x140409f32\nlea     rdx, [rdi+40h]                                                 ; +0x16, 0x140409f36\nmov     rax, [rcx]                                                     ; +0x1a, 0x140409f3a\ncall    qword ptr [rax+0B8h]                                           ; +0x1d, 0x140409f3d\nmov     rcx, [rdi+38h]                                                 ; +0x23, 0x140409f43\nmovss   xmm1, dword ptr [rdi+48h]                                      ; +0x27, 0x140409f47\nucomiss xmm1, dword ptr [rdi+4Ch]                                      ; +0x2c, 0x140409f4c\nmov     rax, [rcx]                                                     ; +0x30, 0x140409f50\njp      short loc_140409F5F                                            ; +0x33, 0x140409f53\njnz     short loc_140409F5F                                            ; +0x35, 0x140409f55\ncall    qword ptr [rax+160h]                                           ; +0x37, 0x140409f57\njmp     short loc_140409F77                                            ; +0x3d, 0x140409f5d\ncall    qword ptr [rax+170h]                                           ; +0x3f, 0x140409f5f\nmov     rcx, [rdi+38h]                                                 ; +0x45, 0x140409f65\nmovss   xmm1, dword ptr [rdi+4Ch]                                      ; +0x49, 0x140409f69\nmov     rax, [rcx]                                                     ; +0x4e, 0x140409f6e\ncall    qword ptr [rax+180h]                                           ; +0x51, 0x140409f71\nmov     rcx, [rdi+38h]                                                 ; +0x57, 0x140409f77\nmovzx   edx, byte ptr [rdi+50h]                                        ; +0x5b, 0x140409f7b\nmov     rax, [rcx]                                                     ; +0x5f, 0x140409f7f\ncall    qword ptr [rax+440h]                                           ; +0x62, 0x140409f82\nmov     rcx, [rdi+38h]                                                 ; +0x68, 0x140409f88\nmovzx   edx, byte ptr [rdi+51h]                                        ; +0x6c, 0x140409f8c\nmov     rax, [rcx]                                                     ; +0x70, 0x140409f90\ncall    qword ptr [rax+448h]                                           ; +0x73, 0x140409f93\nmovss   xmm0, dword ptr [rdi+54h]                                      ; +0x79, 0x140409f99\nmovss   xmm7, cs:dword_140835AA4                                       ; +0x7e, 0x140409f9e\nmov     rbx, [rdi+38h]                                                 ; +0x86, 0x140409fa6\nmulss   xmm0, xmm7; X                                                  ; +0x8a, 0x140409faa\ncall    cs:__imp_roundf                                                ; +0x8e, 0x140409fae\nmov     rcx, rbx                                                       ; +0x94, 0x140409fb4\nmov     dword ptr [rbx+40h], 0                                         ; +0x97, 0x140409fb7\ncvttss2si eax, xmm0                                                    ; +0x9e, 0x140409fbe\nmovd    xmm1, eax                                                      ; +0xa2, 0x140409fc2\nmov     rax, [rbx]                                                     ; +0xa6, 0x140409fc6\ncvtdq2ps xmm1, xmm1                                                    ; +0xa9, 0x140409fc9\ndivss   xmm1, xmm7                                                     ; +0xac, 0x140409fcc\nmovss   dword ptr [rbx+488h], xmm1                                     ; +0xb0, 0x140409fd0\nmovss   dword ptr [rbx+3E4h], xmm1                                     ; +0xb8, 0x140409fd8\nmovss   xmm1, cs:flt_140835080                                         ; +0xc0, 0x140409fe0\ncall    qword ptr [rax+508h]                                           ; +0xc8, 0x140409fe8\nmov     byte ptr [rbx+350h], 1                                         ; +0xce, 0x140409fee\nmov     byte ptr [rbx+368h], 1                                         ; +0xd5, 0x140409ff5\nmovss   xmm0, dword ptr [rdi+58h]                                      ; +0xdc, 0x140409ffc\nmov     rbx, [rdi+38h]                                                 ; +0xe1, 0x14040a001\nmulss   xmm0, xmm7; X                                                  ; +0xe5, 0x14040a005\ncall    cs:__imp_roundf                                                ; +0xe9, 0x14040a009\nmovss   xmm1, cs:flt_140835080                                         ; +0xef, 0x14040a00f\nmov     rcx, rbx                                                       ; +0xf7, 0x14040a017\ncvttss2si eax, xmm0                                                    ; +0xfa, 0x14040a01a\nmov     dword ptr [rbx+44h], 0                                         ; +0xfe, 0x14040a01e\nmovd    xmm2, eax                                                      ; +0x105, 0x14040a025\nmov     rax, [rbx]                                                     ; +0x109, 0x14040a029\ncvtdq2ps xmm2, xmm2                                                    ; +0x10c, 0x14040a02c\ndivss   xmm2, xmm7                                                     ; +0x10f, 0x14040a02f\nmovss   dword ptr [rbx+48Ch], xmm2                                     ; +0x113, 0x14040a033\nmovss   dword ptr [rbx+3E8h], xmm2                                     ; +0x11b, 0x14040a03b\ncall    qword ptr [rax+510h]                                           ; +0x123, 0x14040a043\nmov     byte ptr [rbx+350h], 1                                         ; +0x129, 0x14040a049\nmov     byte ptr [rbx+368h], 1                                         ; +0x130, 0x14040a050\nmov     rcx, [rdi+38h]                                                 ; +0x137, 0x14040a057\nmov     rax, [rcx]                                                     ; +0x13b, 0x14040a05b\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x13e, 0x14040a05e\nmovaps  xmm7, [rsp+38h+var_18]                                         ; +0x143, 0x14040a063\nadd     rsp, 30h                                                       ; +0x148, 0x14040a068\npop     rdi                                                            ; +0x14c, 0x14040a06c\njmp     qword ptr [rax+4C8h]                                           ; +0x14d, 0x14040a06d", "xrefs": ["LevelEditorLayer::handleAction @ 0x1403f2877", "LevelEditorLayer::handleAction @ 0x1403f29ae", "<???> @ 0x140925cac"], "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"}