//
// GameObject::getColorFrame from 0x100255b48 to 0x100255bc0 (120 bytes)
//
// 55 xrefs:
// > GameObject::addColorSprite @ 0x100255550
// > GameObject::addColorSprite @ 0x100255820
// > GameObject::addColorSprite @ 0x1002558e4
// > GameObject::addColorSprite @ 0x1002559dc
// > GameObject::perspectiveColorFrame @ 0x1002ae558
// > GameObject::setupCustomSprites @ 0x1002ae870
// > GameObject::setupCustomSprites @ 0x1002ae934
// > GameObject::setupCustomSprites @ 0x1002aead0
// > GameObject::setupCustomSprites @ 0x1002aebf8
// > GameObject::setupCustomSprites @ 0x1002af79c
// > GameObject::setupCustomSprites @ 0x1002af9c4
// > GameObject::setupCustomSprites @ 0x1002afaa0
// > GameObject::setupCustomSprites @ 0x1002afc50
// > GameObject::setupCustomSprites @ 0x1002afd44
// > GameObject::setupCustomSprites @ 0x1002b0900
// > GameObject::setupCustomSprites @ 0x1002b0998
// > GameObject::setupCustomSprites @ 0x1002b0d98
// > GameObject::setupCustomSprites @ 0x1002b0f10
// > GameObject::setupCustomSprites @ 0x1002b30a0
// > GameObject::setupCustomSprites @ 0x1002b3270
// > GameObject::setupCustomSprites @ 0x1002b3304
// > GameObject::setupCustomSprites @ 0x1002b34f8
// > GameObject::setupCustomSprites @ 0x1002b3714
// > GameObject::setupCustomSprites @ 0x1002b37ac
// > GameObject::setupCustomSprites @ 0x1002b6380
// > GameObject::setupCustomSprites @ 0x1002b6558
// > GameObject::setupCustomSprites @ 0x1002b668c
// > GameObject::setupCustomSprites @ 0x1002bb4c4
// > GameObject::setupCustomSprites @ 0x1002bb59c
// > GameObject::setupCustomSprites @ 0x1002bb6d8
// > GameObject::setupCustomSprites @ 0x1002bb79c
// > GameObject::setupCustomSprites @ 0x1002bb894
// > GameObject::setupCustomSprites @ 0x1002bb98c
// > GameObject::setupCustomSprites @ 0x1002bc228
// > GameObject::setupCustomSprites @ 0x1002bc2e8
// > GameObject::setupCustomSprites @ 0x1002bc520
// > GameObject::setupCustomSprites @ 0x1002bcdc8
// > GameObject::setupCustomSprites @ 0x1002be080
// > GameObject::setupCustomSprites @ 0x1002bec18
// > GameObject::setupCustomSprites @ 0x1002bf07c
// > GameObject::setupCustomSprites @ 0x1002bf2a8
// > GameObject::setupCustomSprites @ 0x1002c0a20
// > GameObject::setupCustomSprites @ 0x1002c125c
// > GameObject::setupCustomSprites @ 0x1002c2758
// > GameObject::setupCustomSprites @ 0x1002c317c
// > GameObject::setupCustomSprites @ 0x1002c3250
// > GameObject::setupCustomSprites @ 0x1002c3358
// > GameObject::setupCustomSprites @ 0x1002c3460
// > GameObject::setupCustomSprites @ 0x1002c35cc
// > GameObject::setupCustomSprites @ 0x1002c385c
// > GameObject::setupCustomSprites @ 0x1002c3aa0
// > GameObject::setupCustomSprites @ 0x1002c3cb8
// > GameObject::setupCustomSprites @ 0x1002c4114
// > GameObject::setupCustomSprites @ 0x1002c4674
// > GameObject::playDestroyObjectAnim @ 0x10034a0ec
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __usercall GameObject::getColorFrame(char *a1@, _QWORD *a2@)
{
char *v2; // x0
std::string *p_p; // x1
std::string __p; // [xsp+8h] [xbp-28h] BYREF
v2 = a1;
if ( a1[23] < 0 )
v2 = *(char **)a1;
sub_1002550CC(&__p, v2, "_001.png", "_color_001.png");
if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
p_p = &__p;
else
p_p = (std::string *)__p.__r_.__value_.__r.__words[0];
sub_100009900(a2, (char *)p_p);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
}