//
// GameObject::createSpriteColor from 0x44c95e to 0x44c99c (62 bytes)
//
// 17 xrefs:
// > GameObject::addCustomColorChild @ 0x44ca48
// > GameObject::addColorSprite @ 0x453b8c
// > GameObject::addColorSprite @ 0x4545f6
// > GameObject::addColorSprite @ 0x454660
// > GameObject::addColorSprite @ 0x4546be
// > GameObject::addColorSprite @ 0x454724
// > GameObject::addColorSprite @ 0x454784
// > GameObject::addColorSprite @ 0x4547ea
// > GameObject::addColorSprite @ 0x454850
// > GameObject::addColorSprite @ 0x45488a
// > GameObject::addColorSprite @ 0x4548e8
// > GameObject::addColorSprite @ 0x454950
// > GameObject::addColorSprite @ 0x454990
// > GameObject::addColorSprite @ 0x4549f8
// > GameObject::commonSetup @ 0x45b048
// > AnimatedGameObject::setupChildSprites @ 0x4ebd92
// > AnimatedGameObject::setupChildSprites @ 0x4ebe00
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:48:34 +0000
//
void __fastcall GameObject::createSpriteColor(GameObject *this, int a2)
{
GJSpriteColor *v3; // r5
GJSpriteColor *v4; // r5
if ( a2 == 2 )
{
if ( !*((_DWORD *)this + 241) )
{
v4 = (GJSpriteColor *)operator new(0x28u);
GJSpriteColor::GJSpriteColor(v4);
*((_DWORD *)this + 241) = v4;
*(_DWORD *)v4 = 0;
*((_DWORD *)v4 + 1) = 1;
}
}
else if ( !*((_DWORD *)this + 240) )
{
v3 = (GJSpriteColor *)operator new(0x28u);
GJSpriteColor::GJSpriteColor(v3);
*((_DWORD *)this + 240) = v3;
}
}