{"type": "func", "start": 4301846064, "end": 4301846299, "name": "GameObject::addColorSpriteToSelf", "pseudocode": "// \n// GameObject::addColorSpriteToSelf from 0x10068f630 to 0x10068f71b (235 bytes)\n// \n// 2 xrefs:\n// > EditorUI::spriteFromObjectString @ 0x100638df4\n// > GameObject::addColorSpriteToParent @ 0x10067b80f\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 12:35:07 +0000\n// \n\n__int64 __fastcall GameObject::addColorSpriteToSelf(_QWORD *a1)\n{\n  __int64 result; // rax\n  __int64 v2; // rdx\n  _QWORD *v3; // rax\n  __int64 v4; // rbx\n  float v5; // [rsp+0h] [rbp-20h] BYREF\n  __int64 v6; // [rsp+8h] [rbp-18h] BYREF\n\n  result = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)a1[111] + 512LL))(a1[111]);\n  if ( (_QWORD *)result != a1 )\n  {\n    *((_BYTE *)a1 + 866) = 1;\n    (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)a1[111] + 528LL))(a1[111], 0);\n    v2 = 4294967196LL;\n    if ( *((_BYTE *)a1 + 1053) )\n      v2 = 100;\n    (*(void (__fastcall **)(_QWORD *, _QWORD, __int64))(*a1 + 464LL))(a1, a1[111], v2);\n    (*(void (__fastcall **)(_QWORD, float))(*(_QWORD *)a1[111] + 160LL))(a1[111], 1.0);\n    (*(void (__fastcall **)(_QWORD, double))(*(_QWORD *)a1[111] + 360LL))(a1[111], 0.0);\n    v3 = (_QWORD *)(*(__int64 (__fastcall **)(_QWORD *))(*a1 + 328LL))(a1);\n    sub_100278630(&v6, v3);\n    v4 = a1[111];\n    sub_100278250(&v5, *(float *)&v6 * 0.5, 0.5 * *((float *)&v6 + 1));\n    return (*(__int64 (__fastcall **)(__int64, float *))(*(_QWORD *)v4 + 184LL))(v4, &v5);\n  }\n  return result;\n}", "assembly": "; \n; GameObject::addColorSpriteToSelf from 0x10068f630 to 0x10068f71b (235 bytes)\n; \n; 2 xrefs:\n; > EditorUI::spriteFromObjectString @ 0x100638df4\n; > GameObject::addColorSpriteToParent @ 0x10067b80f\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 12:35:07 +0000\n; \npush    rbp                                                            ; +0x0, 0x10068f630\nmov     rbp, rsp                                                       ; +0x1, 0x10068f631\npush    r14                                                            ; +0x4, 0x10068f634\npush    rbx                                                            ; +0x6, 0x10068f636\nsub     rsp, 10h                                                       ; +0x7, 0x10068f637\nmov     rbx, rdi                                                       ; +0xb, 0x10068f63b\nmov     rdi, [rdi+378h]                                                ; +0xe, 0x10068f63e\nmov     rax, [rdi]                                                     ; +0x15, 0x10068f645\ncall    qword ptr [rax+200h]                                           ; +0x18, 0x10068f648\ncmp     rax, rbx                                                       ; +0x1e, 0x10068f64e\njz      loc_10068F712                                                  ; +0x21, 0x10068f651\nmov     byte ptr [rbx+362h], 1                                         ; +0x27, 0x10068f657\nmov     rdi, [rbx+378h]                                                ; +0x2e, 0x10068f65e\nmov     rax, [rdi]                                                     ; +0x35, 0x10068f665\nxor     esi, esi                                                       ; +0x38, 0x10068f668\ncall    qword ptr [rax+210h]                                           ; +0x3a, 0x10068f66a\nmov     rsi, [rbx+378h]                                                ; +0x40, 0x10068f670\ncmp     byte ptr [rbx+41Dh], 0                                         ; +0x47, 0x10068f677\nmov     eax, 64h ; 'd'                                                 ; +0x4e, 0x10068f67e\nmov     edx, 0FFFFFF9Ch                                                ; +0x53, 0x10068f683\ncmovnz  edx, eax                                                       ; +0x58, 0x10068f688\nmov     rax, [rbx]                                                     ; +0x5b, 0x10068f68b\nmov     rdi, rbx                                                       ; +0x5e, 0x10068f68e\ncall    qword ptr [rax+1D0h]                                           ; +0x61, 0x10068f691\nmov     rdi, [rbx+378h]                                                ; +0x67, 0x10068f697\nmov     rax, [rdi]                                                     ; +0x6e, 0x10068f69e\nmovss   xmm0, cs:alpha                                                 ; +0x71, 0x10068f6a1\ncall    qword ptr [rax+0A0h]                                           ; +0x79, 0x10068f6a9\nmov     rdi, [rbx+378h]                                                ; +0x7f, 0x10068f6af\nmov     rax, [rdi]                                                     ; +0x86, 0x10068f6b6\nxorps   xmm0, xmm0                                                     ; +0x89, 0x10068f6b9\ncall    qword ptr [rax+168h]                                           ; +0x8c, 0x10068f6bc\nmov     rax, [rbx]                                                     ; +0x92, 0x10068f6c2\nmov     rdi, rbx                                                       ; +0x95, 0x10068f6c5\ncall    qword ptr [rax+148h]                                           ; +0x98, 0x10068f6c8\nlea     rdi, [rbp+var_18]                                              ; +0x9e, 0x10068f6ce\nmov     rsi, rax                                                       ; +0xa2, 0x10068f6d2\ncall    sub_100278630                                                  ; +0xa5, 0x10068f6d5\nmov     rbx, [rbx+378h]                                                ; +0xaa, 0x10068f6da\nmovss   xmm1, cs:dword_100A03578                                       ; +0xb1, 0x10068f6e1\nmovss   xmm0, [rbp+var_18]                                             ; +0xb9, 0x10068f6e9\nmulss   xmm0, xmm1                                                     ; +0xbe, 0x10068f6ee\nmulss   xmm1, [rbp+var_14]                                             ; +0xc2, 0x10068f6f2\nlea     r14, [rbp+var_20]                                              ; +0xc7, 0x10068f6f7\nmov     rdi, r14                                                       ; +0xcb, 0x10068f6fb\ncall    sub_100278250                                                  ; +0xce, 0x10068f6fe\nmov     rax, [rbx]                                                     ; +0xd3, 0x10068f703\nmov     rdi, rbx                                                       ; +0xd6, 0x10068f706\nmov     rsi, r14                                                       ; +0xd9, 0x10068f709\ncall    qword ptr [rax+0B8h]                                           ; +0xdc, 0x10068f70c\nadd     rsp, 10h                                                       ; +0xe2, 0x10068f712\npop     rbx                                                            ; +0xe6, 0x10068f716\npop     r14                                                            ; +0xe7, 0x10068f717\npop     rbp                                                            ; +0xe9, 0x10068f719\nretn                                                                   ; +0xea, 0x10068f71a", "xrefs": ["EditorUI::spriteFromObjectString @ 0x100638df4", "GameObject::addColorSpriteToParent @ 0x10067b80f"], "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"}