//
// GameObject::perspectiveFrame from 0x5118c4 to 0x51198a (198 bytes)
//
// 18 xrefs:
// > GameObject::perspectiveColorFrame @ 0x5119ac
// > GameObject::setupCustomSprites @ 0x51a242
// > GameObject::setupCustomSprites @ 0x51a272
// > GameObject::setupCustomSprites @ 0x51a33e
// > GameObject::setupCustomSprites @ 0x51a35c
// > GameObject::setupCustomSprites @ 0x51a380
// > GameObject::setupCustomSprites @ 0x51a3aa
// > GameObject::setupCustomSprites @ 0x51a3c4
// > GameObject::setupCustomSprites @ 0x51a4c6
// > GameObject::setupCustomSprites @ 0x51a566
// > GameObject::setupCustomSprites @ 0x51a590
// > GameObject::setupCustomSprites @ 0x51a63c
// > GameObject::setupCustomSprites @ 0x51a666
// > GameObject::setupCustomSprites @ 0x51a73a
// > GameObject::setupCustomSprites @ 0x51a7ae
// > GameObject::setupCustomSprites @ 0x51a89c
// > GameObject::setupCustomSprites @ 0x51aa60
// > GameObject::setupCustomSprites @ 0x51ab62
//
// 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
//
GameObject *__fastcall GameObject::perspectiveFrame(GameObject *this, const char *a2, char *a3, int a4)
{
unsigned int v6; // r6
const char *v8; // [sp+4h] [bp-14h] BYREF
int v9; // [sp+8h] [bp-10h]
unsigned int v10; // [sp+Ch] [bp-Ch] BYREF
unsigned int v11; // [sp+10h] [bp-8h]
char *v12; // [sp+14h] [bp-4h]
_BYTE v13[500]; // [sp+18h] [bp+0h] BYREF
v11 = 500;
v10 = 0;
v12 = v13;
fmt::BasicWriter::operator<<(&v10, a3, 0);
v9 = 0;
fmt::BasicWriter::operator<<(&v10, "_0", 0);
v8 = (const char *)a4;
fmt::BasicWriter::FormatInt,char>>(&v10, a4, (int)&v8);
v9 = 0;
v8 = "_001.png";
fmt::BasicWriter::operator<<(&v10, "_001.png", 0);
v6 = v10;
if ( v10 + 1 > v11 )
fmt::internal::Array::grow((int)&v10, v10 + 1);
v12[v6] = 0;
sub_776584((int)this, v12);
if ( v12 != v13 && v12 )
operator delete[](v12);
return this;
}