//
// GameObject::getGlowFrame from 0x1005a96d0 to 0x1005a97c2 (242 bytes)
//
// 35 xrefs:
// > GameObject::setupCustomSprites @ 0x100445246
// > GameObject::setupCustomSprites @ 0x100447408
// > GameObject::setupCustomSprites @ 0x100448e3c
// > GameObject::setupCustomSprites @ 0x100448ec5
// > GameObject::setupCustomSprites @ 0x100448f4e
// > GameObject::setupCustomSprites @ 0x100449203
// > GameObject::setupCustomSprites @ 0x100449d84
// > GameObject::setupCustomSprites @ 0x100449e0d
// > GameObject::setupCustomSprites @ 0x100449f42
// > GameObject::setupCustomSprites @ 0x10044b814
// > GameObject::setupCustomSprites @ 0x10044b8b0
// > GameObject::setupCustomSprites @ 0x10044bd87
// > GameObject::setupCustomSprites @ 0x10044c37e
// > GameObject::setupCustomSprites @ 0x10044c83e
// > GameObject::setupCustomSprites @ 0x10044cd3f
// > GameObject::setupCustomSprites @ 0x10044db65
// > GameObject::setupCustomSprites @ 0x10044e3d7
// > GameObject::setupCustomSprites @ 0x10044e463
// > GameObject::setupCustomSprites @ 0x10044e4ef
// > GameObject::setupCustomSprites @ 0x100453a8a
// > GameObject::setupCustomSprites @ 0x1004562fb
// > GameObject::setupCustomSprites @ 0x10045647e
// > GameObject::setupCustomSprites @ 0x100458a08
// > GameObject::setupCustomSprites @ 0x100459dc6
// > GameObject::setupCustomSprites @ 0x10045b54b
// > GameObject::setupCustomSprites @ 0x10045bb69
// > GameObject::setupCustomSprites @ 0x10045bc07
// > GameObject::setupCustomSprites @ 0x10045be14
// > GameObject::setupCustomSprites @ 0x10045bf81
// > GameObject::setupCustomSprites @ 0x10045c02d
// > GameObject::setupCustomSprites @ 0x10045c0d9
// > GameObject::setupCustomSprites @ 0x10045c3ec
// > GameObject::setupCustomSprites @ 0x10045cc98
// > GameObject::addNewSlope01Glow @ 0x1005cb92e
// > GameObject::addNewSlope02Glow @ 0x1005cbb5e
//
// 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
//
size_t *__fastcall GameObject::getGlowFrame(size_t *a1, double a2, __int64 a3, __int64 a4)
{
const char *v4; // rdx
const char *data; // r14
size_t v6; // rax
size_t v7; // r15
_BYTE *v8; // r12
size_t v10; // r13
std::string v11[2]; // [rsp+0h] [rbp-40h] BYREF
if ( (*(_BYTE *)a4 & 1) != 0 )
v4 = *(const char **)(a4 + 16);
else
v4 = (const char *)(a4 + 1);
sub_1005A4350(v11, v4, (std::string *)"_001.png", "_glow_001.png", a2);
if ( (*(_BYTE *)&v11[0].__r_.__value_.__s.0 & 1) != 0 )
data = v11[0].__r_.__value_.__l.__data_;
else
data = v11[0].__r_.__value_.__s.__data_;
v6 = strlen(data);
if ( v6 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100006BF0(a2);
v7 = v6;
if ( v6 >= 0x17 )
{
v10 = 26;
if ( (v6 | 7) != 0x17 )
v10 = (v6 | 7) + 1;
v8 = operator new(v10);
a1[2] = (size_t)v8;
*a1 = v10 | 1;
a1[1] = v7;
LABEL_16:
memmove(v8, data, v7);
v8[v7] = 0;
if ( (*(_BYTE *)&v11[0].__r_.__value_.__s.0 & 1) == 0 )
return a1;
goto LABEL_11;
}
*(_BYTE *)a1 = 2 * v6;
v8 = (char *)a1 + 1;
if ( v6 )
goto LABEL_16;
*v8 = 0;
if ( (*(_BYTE *)&v11[0].__r_.__value_.__s.0 & 1) != 0 )
LABEL_11:
operator delete(v11[0].__r_.__value_.__l.__data_);
return a1;
}