//
// GameObject::perspectiveFrame from 0x1401aed90 to 0x1401aeec7 (311 bytes)
//
// 19 xrefs:
// > GameObject::perspectiveColorFrame @ 0x1401aeede
// > GameObject::setupCustomSprites @ 0x1401b332d
// > GameObject::setupCustomSprites @ 0x1401b893a
// > GameObject::setupCustomSprites @ 0x1401b899c
// > GameObject::setupCustomSprites @ 0x1401b8afe
// > GameObject::setupCustomSprites @ 0x1401b8b2e
// > GameObject::setupCustomSprites @ 0x1401b8b5f
// > GameObject::setupCustomSprites @ 0x1401b8b9b
// > GameObject::setupCustomSprites @ 0x1401b8bcb
// > GameObject::setupCustomSprites @ 0x1401b8d8f
// > GameObject::setupCustomSprites @ 0x1401b8e7b
// > GameObject::setupCustomSprites @ 0x1401b8ec7
// > GameObject::setupCustomSprites @ 0x1401b901e
// > GameObject::setupCustomSprites @ 0x1401b906e
// > GameObject::setupCustomSprites @ 0x1401b91ca
// > GameObject::setupCustomSprites @ 0x1401b9293
// > GameObject::setupCustomSprites @ 0x1401b93ec
// > GameObject::setupCustomSprites @ 0x1401b9604
// > ??> @ 0x1406cc1ec
//
// 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
//
// Hidden C++ exception states: #wind=1
_QWORD *__fastcall GameObject::perspectiveFrame(__int64 a1, _QWORD *a2, unsigned __int64 a3, unsigned int a4)
{
_BYTE *v7; // rax
size_t v8; // r8
_OWORD v10[2]; // [rsp+20h] [rbp-258h] BYREF
_BYTE v11[528]; // [rsp+40h] [rbp-238h] BYREF
fmt::BasicWriter::BasicWriter(v11);
v10[0] = a3;
fmt::BasicWriter::operator<<(v11, v10);
*(_QWORD *)&v10[0] = "_0";
*((_QWORD *)&v10[0] + 1) = 0;
fmt::BasicWriter::operator<<(v11, v10);
fmt::BasicWriter::operator<<(v11, a4);
*(_QWORD *)&v10[0] = "_001.png";
*((_QWORD *)&v10[0] + 1) = 0;
fmt::BasicWriter::operator<<(v11, v10);
v7 = (_BYTE *)fmt::BasicWriter::c_str(v11);
*(_OWORD *)a2 = 0;
a2[2] = 0;
a2[3] = 0;
v8 = -1;
do
++v8;
while ( v7[v8] );
sub_14003A930(a2, v7, v8);
fmt::BasicWriter::~BasicWriter(v11);
return a2;
}