//
// GameObject::perspectiveFrame from 0x9847e4 to 0x9849cc (488 bytes)
//
// 19 xrefs:
// > GameObject::perspectiveColorFrame @ 0x9849fc
// > GameObject::setupCustomSprites @ 0x9854c8
// > GameObject::setupCustomSprites @ 0x9908b8
// > GameObject::setupCustomSprites @ 0x990994
// > GameObject::setupCustomSprites @ 0x990a68
// > GameObject::setupCustomSprites @ 0x990b10
// > GameObject::setupCustomSprites @ 0x990b60
// > GameObject::setupCustomSprites @ 0x990cbc
// > GameObject::setupCustomSprites @ 0x990dd4
// > GameObject::setupCustomSprites @ 0x990e10
// > GameObject::setupCustomSprites @ 0x99101c
// > GameObject::setupCustomSprites @ 0x991074
// > GameObject::setupCustomSprites @ 0x991170
// > GameObject::setupCustomSprites @ 0x9911bc
// > GameObject::setupCustomSprites @ 0x996130
// > GameObject::setupCustomSprites @ 0x99c364
// > GameObject::setupCustomSprites @ 0x99c3d0
// > GameObject::setupCustomSprites @ 0x99c40c
// > ??> @ 0x81c18
//
// 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
//
__int64 __usercall GameObject::perspectiveFrame@(
GameObject *this@,
const char *a2@,
unsigned int a3@,
__int64 a4@)
{
size_t v7; // x0
size_t v8; // x21
_BYTE *v9; // x0
size_t v10; // x25
size_t v11; // x24
size_t v12; // x24
size_t v13; // x23
size_t v14; // x23
size_t v16; // [xsp+58h] [xbp+58h] BYREF
unsigned __int64 v17; // [xsp+60h] [xbp+60h]
_BYTE *v18; // [xsp+68h] [xbp+68h]
_BYTE v19[504]; // [xsp+70h] [xbp+70h] BYREF
v16 = 0;
v17 = 500;
v18 = v19;
if ( a2 )
{
v7 = strlen(a2);
v8 = v7;
if ( v7 <= 0x1F4 )
{
v16 = v7;
if ( !v7 )
{
v10 = 0;
v11 = 2;
goto LABEL_8;
}
v9 = v19;
}
else
{
fmt::internal::Array::grow(&v16, v7);
v9 = v18;
v16 = v8;
}
memmove(v9, a2, v8);
v10 = v16;
v11 = v16 + 2;
if ( v16 + 2 > v17 )
fmt::internal::Array::grow(&v16, v16 + 2);
}
else
{
v11 = 2;
v10 = 0;
}
LABEL_8:
v16 = v11;
*(_WORD *)&v18[v10] = 12383;
fmt::BasicWriter::FormatInt,char>>(&v16, a3);
v12 = v16;
v13 = v16 + 8;
if ( v16 + 8 > v17 )
fmt::internal::Array::grow(&v16, v16 + 8);
v16 = v13;
*(_QWORD *)&v18[v12] = *(_QWORD *)"_001.png";
v14 = v16;
if ( v17 < v16 + 1 )
fmt::internal::Array::grow(&v16, v16 + 1);
v18[v14] = 0;
sub_D153B8(a4, v18);
if ( v18 != v19 && v18 )
operator delete[](v18);
return a4;
}