//
// GameObject::getGlowFrame from 0x777ed0 to 0x778008 (312 bytes)
//
// 36 xrefs:
// > GameObject::addNewSlope01Glow @ 0x778070
// > GameObject::addNewSlope02Glow @ 0x7781e0
// > GameObject::setupCustomSprites @ 0xacc5b0
// > GameObject::setupCustomSprites @ 0xacc704
// > GameObject::setupCustomSprites @ 0xacc774
// > GameObject::setupCustomSprites @ 0xacc920
// > GameObject::setupCustomSprites @ 0xacc990
// > GameObject::setupCustomSprites @ 0xacca00
// > GameObject::setupCustomSprites @ 0xaccb38
// > GameObject::setupCustomSprites @ 0xaccf18
// > GameObject::setupCustomSprites @ 0xacd234
// > GameObject::setupCustomSprites @ 0xacd418
// > GameObject::setupCustomSprites @ 0xacd650
// > GameObject::setupCustomSprites @ 0xacd788
// > GameObject::setupCustomSprites @ 0xacfdf8
// > GameObject::setupCustomSprites @ 0xad0fa4
// > GameObject::setupCustomSprites @ 0xad138c
// > GameObject::setupCustomSprites @ 0xad1f04
// > GameObject::setupCustomSprites @ 0xad2160
// > GameObject::setupCustomSprites @ 0xad22f8
// > GameObject::setupCustomSprites @ 0xad25b8
// > GameObject::setupCustomSprites @ 0xad2728
// > GameObject::setupCustomSprites @ 0xad4d14
// > GameObject::setupCustomSprites @ 0xad5348
// > GameObject::setupCustomSprites @ 0xad53cc
// > GameObject::setupCustomSprites @ 0xad5450
// > GameObject::setupCustomSprites @ 0xad5698
// > GameObject::setupCustomSprites @ 0xad5724
// > GameObject::setupCustomSprites @ 0xad5930
// > GameObject::setupCustomSprites @ 0xad59a8
// > GameObject::setupCustomSprites @ 0xad5a20
// > GameObject::setupCustomSprites @ 0xad5b44
// > GameObject::setupCustomSprites @ 0xad9470
// > GameObject::setupCustomSprites @ 0xadbc68
// > GameObject::setupCustomSprites @ 0xadd47c
// > ??> @ 0xfa0f0
//
// This function is hookable on this platform (idp: arm, 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:53:15 +0000
//
unsigned __int64 *__usercall GameObject::getGlowFrame@(__int64 a1@, unsigned __int64 *a2@)
{
char *v3; // x0
const char *v4; // x23
size_t v5; // x0
size_t v6; // x20
unsigned __int64 v7; // x22
void *v8; // x3
__int64 v10[2]; // [xsp+40h] [xbp+40h] BYREF
void *v11; // [xsp+50h] [xbp+50h]
v3 = (char *)(a1 + 1);
if ( (*(_BYTE *)a1 & 1) != 0 )
v3 = *(char **)(a1 + 16);
v4 = (char *)v10 + 1;
sub_775DC0(v3, "_001.png", "_glow_001.png", v10);
if ( (v10[0] & 1) != 0 )
v4 = (const char *)v11;
*a2 = 0;
a2[1] = 0;
a2[2] = 0;
v5 = strlen(v4);
v6 = v5;
if ( v5 > 0xFFFFFFFFFFFFFFEFLL )
sub_62C17C();
if ( v5 > 0x16 )
{
v7 = (v5 + 16) & 0xFFFFFFFFFFFFFFF0LL;
v8 = (void *)operator new(v7);
a2[2] = (unsigned __int64)v8;
a2[1] = v6;
*a2 = v7 | 1;
LABEL_8:
v8 = memcpy(v8, v4, v6);
goto LABEL_9;
}
*(_BYTE *)a2 = 2 * v5;
v8 = (char *)a2 + 1;
if ( v5 )
goto LABEL_8;
LABEL_9:
*((_BYTE *)v8 + v6) = 0;
if ( (v10[0] & 1) != 0 )
operator delete(v11);
return a2;
}