{"type": "func", "start": 5371456720, "end": 5371457306, "name": "GameObject::duplicateValues", "pseudocode": "// \n// GameObject::duplicateValues from 0x14029ecd0 to 0x14029ef1a (586 bytes)\n// \n// 5 xrefs:\n// > EditorUI::onCreateObject @ 0x1401b2cda\n// > LevelEditorLayer::breakApartTextObject @ 0x1403fe18f\n// > <???> @ 0x1408af99c\n// > <???> @ 0x1408af9ac\n// > <???> @ 0x14091d924\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:29:15 +0000\n// \n\n__int64 __fastcall GameObject::duplicateValues(__int64 a1, __int64 a2)\n{\n  double v4; // xmm0_8\n  float v5; // xmm6_4\n  __int64 v6; // rax\n  __int64 v7; // rbx\n  __int64 v8; // rbx\n  __int64 v9; // rbx\n  unsigned __int8 v10; // al\n  __int64 v11; // rbx\n  unsigned __int8 v12; // al\n  bool v13; // zf\n  int v14; // r14d\n  unsigned __int64 v15; // rbx\n  __int64 v16; // rbp\n  __int64 v17; // rax\n  __int64 v18; // rdx\n  float v19; // xmm0_4\n  __int64 v20; // rax\n  float v21; // xmm1_4\n  float v22; // xmm0_4\n  __int64 v23; // rax\n  float v24; // xmm2_4\n  __int64 result; // rax\n\n  v4 = (*(double (__fastcall **)(__int64))(*(_QWORD *)a2 + 392LL))(a2);\n  v5 = *(float *)&v4;\n  *(float *)&v4 = (*(float (__fastcall **)(__int64))(*(_QWORD *)a2 + 376LL))(a2);\n  v6 = *(_QWORD *)a2;\n  v7 = *(_QWORD *)a1;\n  if ( *(float *)&v4 == v5 )\n  {\n    (*(void (__fastcall **)(__int64))(v6 + 360))(a2);\n    (*(void (__fastcall **)(__int64))(v7 + 352))(a1);\n  }\n  else\n  {\n    (*(void (__fastcall **)(__int64))(v6 + 376))(a2);\n    (*(void (__fastcall **)(__int64))(v7 + 368))(a1);\n    v8 = *(_QWORD *)a1;\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)a2 + 392LL))(a2);\n    (*(void (__fastcall **)(__int64))(v8 + 384))(a1);\n  }\n  v9 = *(_QWORD *)a1;\n  v10 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 1272LL))(a2);\n  (*(void (__fastcall **)(__int64, _QWORD))(v9 + 1088))(a1, v10);\n  v11 = *(_QWORD *)a1;\n  v12 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 1280LL))(a2);\n  (*(void (__fastcall **)(__int64, _QWORD))(v11 + 1096))(a1, v12);\n  GameObject::duplicateColorMode(a1, a2);\n  v13 = *(_BYTE *)(a1 + 1128) == 0;\n  *(_DWORD *)(a1 + 1136) = *(_DWORD *)(a2 + 1136);\n  if ( v13 )\n    *(_DWORD *)(a1 + 1132) = *(_DWORD *)(a2 + 1132);\n  *(_BYTE *)(a1 + 1051) = *(_BYTE *)(a2 + 1051);\n  v14 = 0;\n  *(_BYTE *)(a1 + 1050) = *(_BYTE *)(a2 + 1050);\n  *(_BYTE *)(a1 + 1052) = *(_BYTE *)(a2 + 1052);\n  if ( *(__int16 *)(a2 + 1176) > 0 )\n  {\n    v15 = 0;\n    v16 = 0;\n    do\n    {\n      if ( v15 <= 9 && (v17 = *(_QWORD *)(a2 + 1168)) != 0 )\n        v18 = (unsigned int)*(__int16 *)(v17 + v16);\n      else\n        v18 = 0;\n      (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1448LL))(a1, v18);\n      ++v14;\n      ++v15;\n      v16 += 2;\n    }\n    while ( v14 < *(__int16 *)(a2 + 1176) );\n  }\n  v19 = roundf(*(float *)(a2 + 1160) * 1000.0);\n  *(_DWORD *)(a1 + 64) = 0;\n  v20 = *(_QWORD *)a1;\n  v21 = (float)(int)v19 / 1000.0;\n  *(float *)(a1 + 1160) = v21;\n  *(float *)(a1 + 996) = v21;\n  (*(void (__fastcall **)(__int64))(v20 + 1288))(a1);\n  *(_BYTE *)(a1 + 848) = 1;\n  *(_BYTE *)(a1 + 872) = 1;\n  v22 = roundf(*(float *)(a2 + 1164) * 1000.0);\n  *(_DWORD *)(a1 + 68) = 0;\n  v23 = *(_QWORD *)a1;\n  v24 = (float)(int)v22 / 1000.0;\n  *(float *)(a1 + 1164) = v24;\n  *(float *)(a1 + 1000) = v24;\n  result = (*(__int64 (__fastcall **)(__int64))(v23 + 1296))(a1);\n  *(_BYTE *)(a1 + 848) = 1;\n  *(_BYTE *)(a1 + 872) = 1;\n  return result;\n}", "assembly": "; \n; GameObject::duplicateValues from 0x14029ecd0 to 0x14029ef1a (586 bytes)\n; \n; 5 xrefs:\n; > EditorUI::onCreateObject @ 0x1401b2cda\n; > LevelEditorLayer::breakApartTextObject @ 0x1403fe18f\n; > <???> @ 0x1408af99c\n; > <???> @ 0x1408af9ac\n; > <???> @ 0x14091d924\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:29:15 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14029ecd0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x14029ecd5\npush    rdi                                                            ; +0xa, 0x14029ecda\npush    r14                                                            ; +0xb, 0x14029ecdb\npush    r15                                                            ; +0xd, 0x14029ecdd\nsub     rsp, 40h                                                       ; +0xf, 0x14029ecdf\nmov     rax, [rdx]                                                     ; +0x13, 0x14029ece3\nmov     rsi, rcx                                                       ; +0x16, 0x14029ece6\nmovaps  [rsp+58h+var_28], xmm6                                         ; +0x19, 0x14029ece9\nmov     rcx, rdx                                                       ; +0x1e, 0x14029ecee\nmovaps  [rsp+58h+var_38], xmm7                                         ; +0x21, 0x14029ecf1\nmov     rdi, rdx                                                       ; +0x26, 0x14029ecf6\ncall    qword ptr [rax+188h]                                           ; +0x29, 0x14029ecf9\nmov     rax, [rdi]                                                     ; +0x2f, 0x14029ecff\nmov     rcx, rdi                                                       ; +0x32, 0x14029ed02\nmovaps  xmm6, xmm0                                                     ; +0x35, 0x14029ed05\ncall    qword ptr [rax+178h]                                           ; +0x38, 0x14029ed08\nucomiss xmm0, xmm6                                                     ; +0x3e, 0x14029ed0e\nmov     rax, [rdi]                                                     ; +0x41, 0x14029ed11\nmov     rbx, [rsi]                                                     ; +0x44, 0x14029ed14\njp      short loc_14029ED32                                            ; +0x47, 0x14029ed17\njnz     short loc_14029ED32                                            ; +0x49, 0x14029ed19\nmov     rcx, rdi                                                       ; +0x4b, 0x14029ed1b\ncall    qword ptr [rax+168h]                                           ; +0x4e, 0x14029ed1e\nmovaps  xmm1, xmm0                                                     ; +0x54, 0x14029ed24\nmov     rcx, rsi                                                       ; +0x57, 0x14029ed27\ncall    qword ptr [rbx+160h]                                           ; +0x5a, 0x14029ed2a\njmp     short loc_14029ED62                                            ; +0x60, 0x14029ed30\nmov     rcx, rdi                                                       ; +0x62, 0x14029ed32\ncall    qword ptr [rax+178h]                                           ; +0x65, 0x14029ed35\nmovaps  xmm1, xmm0                                                     ; +0x6b, 0x14029ed3b\nmov     rcx, rsi                                                       ; +0x6e, 0x14029ed3e\ncall    qword ptr [rbx+170h]                                           ; +0x71, 0x14029ed41\nmov     rax, [rdi]                                                     ; +0x77, 0x14029ed47\nmov     rcx, rdi                                                       ; +0x7a, 0x14029ed4a\nmov     rbx, [rsi]                                                     ; +0x7d, 0x14029ed4d\ncall    qword ptr [rax+188h]                                           ; +0x80, 0x14029ed50\nmovaps  xmm1, xmm0                                                     ; +0x86, 0x14029ed56\nmov     rcx, rsi                                                       ; +0x89, 0x14029ed59\ncall    qword ptr [rbx+180h]                                           ; +0x8c, 0x14029ed5c\nmov     rax, [rdi]                                                     ; +0x92, 0x14029ed62\nmov     rcx, rdi                                                       ; +0x95, 0x14029ed65\nmov     rbx, [rsi]                                                     ; +0x98, 0x14029ed68\ncall    qword ptr [rax+4F8h]                                           ; +0x9b, 0x14029ed6b\nmovzx   edx, al                                                        ; +0xa1, 0x14029ed71\nmov     rcx, rsi                                                       ; +0xa4, 0x14029ed74\ncall    qword ptr [rbx+440h]                                           ; +0xa7, 0x14029ed77\nmov     rax, [rdi]                                                     ; +0xad, 0x14029ed7d\nmov     rcx, rdi                                                       ; +0xb0, 0x14029ed80\nmov     rbx, [rsi]                                                     ; +0xb3, 0x14029ed83\ncall    qword ptr [rax+500h]                                           ; +0xb6, 0x14029ed86\nmovzx   edx, al                                                        ; +0xbc, 0x14029ed8c\nmov     rcx, rsi                                                       ; +0xbf, 0x14029ed8f\ncall    qword ptr [rbx+448h]                                           ; +0xc2, 0x14029ed92\nmov     rdx, rdi                                                       ; +0xc8, 0x14029ed98\nmov     rcx, rsi                                                       ; +0xcb, 0x14029ed9b\ncall    GameObject__duplicateColorMode                                 ; +0xce, 0x14029ed9e\ncmp     byte ptr [rsi+468h], 0                                         ; +0xd3, 0x14029eda3\nmov     eax, [rdi+470h]                                                ; +0xda, 0x14029edaa\nmov     [rsi+470h], eax                                                ; +0xe0, 0x14029edb0\njnz     short loc_14029EDC4                                            ; +0xe6, 0x14029edb6\nmov     eax, [rdi+46Ch]                                                ; +0xe8, 0x14029edb8\nmov     [rsi+46Ch], eax                                                ; +0xee, 0x14029edbe\nmovzx   eax, byte ptr [rdi+41Bh]                                       ; +0xf4, 0x14029edc4\nxor     r15d, r15d                                                     ; +0xfb, 0x14029edcb\nmov     [rsi+41Bh], al                                                 ; +0xfe, 0x14029edce\nmov     r14d, r15d                                                     ; +0x104, 0x14029edd4\nmovzx   eax, byte ptr [rdi+41Ah]                                       ; +0x107, 0x14029edd7\nmov     [rsi+41Ah], al                                                 ; +0x10e, 0x14029edde\nmovzx   eax, byte ptr [rdi+41Ch]                                       ; +0x114, 0x14029ede4\nmov     [rsi+41Ch], al                                                 ; +0x11b, 0x14029edeb\ncmp     r15w, [rdi+498h]                                               ; +0x121, 0x14029edf1\njge     short loc_14029EE48                                            ; +0x129, 0x14029edf9\nmov     [rsp+58h+arg_0], rbp                                           ; +0x12b, 0x14029edfb\nmov     ebx, r15d                                                      ; +0x130, 0x14029ee00\nmov     ebp, r15d                                                      ; +0x133, 0x14029ee03\ncmp     rbx, 9                                                         ; +0x136, 0x14029ee06\nja      short loc_14029EE1E                                            ; +0x13a, 0x14029ee0a\nmov     rax, [rdi+490h]                                                ; +0x13c, 0x14029ee0c\ntest    rax, rax                                                       ; +0x143, 0x14029ee13\njz      short loc_14029EE1E                                            ; +0x146, 0x14029ee16\nmovsx   edx, word ptr [rax+rbp]                                        ; +0x148, 0x14029ee18\njmp     short loc_14029EE21                                            ; +0x14c, 0x14029ee1c\nmov     edx, r15d                                                      ; +0x14e, 0x14029ee1e\nmov     rax, [rsi]                                                     ; +0x151, 0x14029ee21\nmov     rcx, rsi                                                       ; +0x154, 0x14029ee24\ncall    qword ptr [rax+5A8h]                                           ; +0x157, 0x14029ee27\nmovsx   eax, word ptr [rdi+498h]                                       ; +0x15d, 0x14029ee2d\ninc     r14d                                                           ; +0x164, 0x14029ee34\ninc     rbx                                                            ; +0x167, 0x14029ee37\nadd     rbp, 2                                                         ; +0x16a, 0x14029ee3a\ncmp     r14d, eax                                                      ; +0x16e, 0x14029ee3e\njl      short loc_14029EE06                                            ; +0x171, 0x14029ee41\nmov     rbp, [rsp+58h+arg_0]                                           ; +0x173, 0x14029ee43\nmovss   xmm0, dword ptr [rdi+488h]                                     ; +0x178, 0x14029ee48\nmovss   xmm7, cs:dword_140835AA4                                       ; +0x180, 0x14029ee50\nmulss   xmm0, xmm7; X                                                  ; +0x188, 0x14029ee58\ncall    cs:__imp_roundf                                                ; +0x18c, 0x14029ee5c\nmovss   xmm6, cs:flt_140835080                                         ; +0x192, 0x14029ee62\nmov     rcx, rsi                                                       ; +0x19a, 0x14029ee6a\ncvttss2si eax, xmm0                                                    ; +0x19d, 0x14029ee6d\nmov     [rsi+40h], r15d                                                ; +0x1a1, 0x14029ee71\nmovd    xmm1, eax                                                      ; +0x1a5, 0x14029ee75\nmov     rax, [rsi]                                                     ; +0x1a9, 0x14029ee79\ncvtdq2ps xmm1, xmm1                                                    ; +0x1ac, 0x14029ee7c\ndivss   xmm1, xmm7                                                     ; +0x1af, 0x14029ee7f\nmovss   dword ptr [rsi+488h], xmm1                                     ; +0x1b3, 0x14029ee83\nmovss   dword ptr [rsi+3E4h], xmm1                                     ; +0x1bb, 0x14029ee8b\nmovaps  xmm1, xmm6                                                     ; +0x1c3, 0x14029ee93\ncall    qword ptr [rax+508h]                                           ; +0x1c6, 0x14029ee96\nmov     byte ptr [rsi+350h], 1                                         ; +0x1cc, 0x14029ee9c\nmov     byte ptr [rsi+368h], 1                                         ; +0x1d3, 0x14029eea3\nmovss   xmm0, dword ptr [rdi+48Ch]                                     ; +0x1da, 0x14029eeaa\nmulss   xmm0, xmm7; X                                                  ; +0x1e2, 0x14029eeb2\ncall    cs:__imp_roundf                                                ; +0x1e6, 0x14029eeb6\nmovaps  xmm1, xmm6                                                     ; +0x1ec, 0x14029eebc\nmov     [rsi+44h], r15d                                                ; +0x1ef, 0x14029eebf\ncvttss2si eax, xmm0                                                    ; +0x1f3, 0x14029eec3\nmov     rcx, rsi                                                       ; +0x1f7, 0x14029eec7\nmovd    xmm2, eax                                                      ; +0x1fa, 0x14029eeca\nmov     rax, [rsi]                                                     ; +0x1fe, 0x14029eece\ncvtdq2ps xmm2, xmm2                                                    ; +0x201, 0x14029eed1\ndivss   xmm2, xmm7                                                     ; +0x204, 0x14029eed4\nmovss   dword ptr [rsi+48Ch], xmm2                                     ; +0x208, 0x14029eed8\nmovss   dword ptr [rsi+3E8h], xmm2                                     ; +0x210, 0x14029eee0\ncall    qword ptr [rax+510h]                                           ; +0x218, 0x14029eee8\nmov     rbx, [rsp+58h+arg_8]                                           ; +0x21e, 0x14029eeee\nmovaps  xmm6, [rsp+58h+var_28]                                         ; +0x223, 0x14029eef3\nmovaps  xmm7, [rsp+58h+var_38]                                         ; +0x228, 0x14029eef8\nmov     byte ptr [rsi+350h], 1                                         ; +0x22d, 0x14029eefd\nmov     byte ptr [rsi+368h], 1                                         ; +0x234, 0x14029ef04\nmov     rsi, [rsp+58h+arg_10]                                          ; +0x23b, 0x14029ef0b\nadd     rsp, 40h                                                       ; +0x240, 0x14029ef10\npop     r15                                                            ; +0x244, 0x14029ef14\npop     r14                                                            ; +0x246, 0x14029ef16\npop     rdi                                                            ; +0x248, 0x14029ef18\nretn                                                                   ; +0x249, 0x14029ef19", "xrefs": ["EditorUI::onCreateObject @ 0x1401b2cda", "LevelEditorLayer::breakApartTextObject @ 0x1403fe18f", "<???> @ 0x1408af99c", "<???> @ 0x1408af9ac", "<???> @ 0x14091d924"], "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"}