//
// GameObject::addColorSpriteToSelf from 0x10068f630 to 0x10068f71b (235 bytes)
//
// 2 xrefs:
// > EditorUI::spriteFromObjectString @ 0x100638df4
// > GameObject::addColorSpriteToParent @ 0x10067b80f
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:35:07 +0000
//
__int64 __fastcall GameObject::addColorSpriteToSelf(_QWORD *a1)
{
__int64 result; // rax
__int64 v2; // rdx
_QWORD *v3; // rax
__int64 v4; // rbx
float v5; // [rsp+0h] [rbp-20h] BYREF
__int64 v6; // [rsp+8h] [rbp-18h] BYREF
result = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)a1[111] + 512LL))(a1[111]);
if ( (_QWORD *)result != a1 )
{
*((_BYTE *)a1 + 866) = 1;
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)a1[111] + 528LL))(a1[111], 0);
v2 = 4294967196LL;
if ( *((_BYTE *)a1 + 1053) )
v2 = 100;
(*(void (__fastcall **)(_QWORD *, _QWORD, __int64))(*a1 + 464LL))(a1, a1[111], v2);
(*(void (__fastcall **)(_QWORD, float))(*(_QWORD *)a1[111] + 160LL))(a1[111], 1.0);
(*(void (__fastcall **)(_QWORD, double))(*(_QWORD *)a1[111] + 360LL))(a1[111], 0.0);
v3 = (_QWORD *)(*(__int64 (__fastcall **)(_QWORD *))(*a1 + 328LL))(a1);
sub_100278630(&v6, v3);
v4 = a1[111];
sub_100278250(&v5, *(float *)&v6 * 0.5, 0.5 * *((float *)&v6 + 1));
return (*(__int64 (__fastcall **)(__int64, float *))(*(_QWORD *)v4 + 184LL))(v4, &v5);
}
return result;
}