//
// GameObject::createSpriteColor from 0x100673990 to 0x100673a43 (179 bytes)
//
// 9 xrefs:
// > AnimatedGameObject::setupChildSprites @ 0x100197152
// > AnimatedGameObject::setupChildSprites @ 0x1001971da
// > GameObject::addColorSprite @ 0x1006763e7
// > GameObject::addColorSprite @ 0x100676474
// > GameObject::addColorSprite @ 0x100676560
// > GameObject::addColorSprite @ 0x1006765ba
// > GameObject::addColorSprite @ 0x10067666a
// > GameObject::addColorSprite @ 0x10067671c
// > GameObject::addColorSprite @ 0x10067682d
//
// 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:02 +0000
//
_QWORD *__fastcall GameObject::createSpriteColor(__int64 a1, int a2)
{
_QWORD *result; // rax
if ( a2 == 2 )
{
if ( !*(_QWORD *)(a1 + 1104) )
{
result = operator new(0x28u);
result[1] = 0x3F8000003F800000LL;
*((_OWORD *)result + 1) = xmmword_100BE5C20;
*((_DWORD *)result + 8) = -65536;
*((_BYTE *)result + 36) = -1;
*(_QWORD *)(a1 + 1104) = result;
*result = &_mh_execute_header;
}
}
else if ( !*(_QWORD *)(a1 + 1096) )
{
result = operator new(0x28u);
*result = 0;
result[1] = 0x3F8000003F800000LL;
*((_OWORD *)result + 1) = xmmword_100BE5C20;
*((_DWORD *)result + 8) = -65536;
*((_BYTE *)result + 36) = -1;
*(_QWORD *)(a1 + 1096) = result;
}
return result;
}