//
// GameObject::perspectiveFrame from 0x1002ae410 to 0x1002ae50c (252 bytes)
//
// 18 xrefs:
// > GameObject::perspectiveColorFrame @ 0x1002ae548
// > GameObject::setupCustomSprites @ 0x1002ae65c
// > GameObject::setupCustomSprites @ 0x1002ae6b0
// > GameObject::setupCustomSprites @ 0x1002aed28
// > GameObject::setupCustomSprites @ 0x1002aee44
// > GameObject::setupCustomSprites @ 0x1002aef04
// > GameObject::setupCustomSprites @ 0x1002af134
// > GameObject::setupCustomSprites @ 0x1002af2dc
// > GameObject::setupCustomSprites @ 0x1002af328
// > GameObject::setupCustomSprites @ 0x1002af45c
// > GameObject::setupCustomSprites @ 0x1002af514
// > GameObject::setupCustomSprites @ 0x1002af560
// > GameObject::setupCustomSprites @ 0x1002b05c4
// > GameObject::setupCustomSprites @ 0x1002b05f8
// > GameObject::setupCustomSprites @ 0x1002b0610
// > GameObject::setupCustomSprites @ 0x1002b0658
// > GameObject::setupCustomSprites @ 0x1002b068c
// > GameObject::setupCustomSprites @ 0x1002bd33c
//
// 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
//
void __usercall GameObject::perspectiveFrame(char *a1@, __int64 a2@, _QWORD *a3@)
{
__int64 v5; // x20
int v6; // [xsp+Ch] [xbp-244h] BYREF
__int128 v7; // [xsp+10h] [xbp-240h] BYREF
void *__p; // [xsp+20h] [xbp-230h]
_BYTE v9[512]; // [xsp+28h] [xbp-228h] BYREF
v7 = xmmword_1006350E0;
__p = v9;
sub_10000CB18((__int64 *)&v7, a1, 0);
sub_10000CB18((__int64 *)&v7, "_0", 0);
v6 = a2;
sub_100009A40((int)&v7, a2, (int)&v6);
sub_10000CB18((__int64 *)&v7, "_001.png", 0);
v5 = v7;
if ( *((_QWORD *)&v7 + 1) < (unsigned __int64)(v7 + 1) )
sub_100009ED4((__int64)&v7, v7 + 1);
*((_BYTE *)__p + v5) = 0;
sub_100009900(a3, (char *)__p);
if ( __p != v9 )
{
if ( __p )
operator delete[](__p);
}
}