//
// GameObject::perspectiveFrame from 0xac7a18 to 0xac7c10 (504 bytes)
//
// 19 xrefs:
// > GameObject::perspectiveColorFrame @ 0xac7c40
// > GameObject::setupCustomSprites @ 0xac8694
// > GameObject::setupCustomSprites @ 0xad5e70
// > GameObject::setupCustomSprites @ 0xad5eb8
// > GameObject::setupCustomSprites @ 0xad5f78
// > GameObject::setupCustomSprites @ 0xad9a44
// > GameObject::setupCustomSprites @ 0xad9a8c
// > GameObject::setupCustomSprites @ 0xad9d50
// > GameObject::setupCustomSprites @ 0xad9d90
// > GameObject::setupCustomSprites @ 0xad9ecc
// > GameObject::setupCustomSprites @ 0xad9f08
// > GameObject::setupCustomSprites @ 0xada004
// > GameObject::setupCustomSprites @ 0xada128
// > GameObject::setupCustomSprites @ 0xada16c
// > GameObject::setupCustomSprites @ 0xada528
// > GameObject::setupCustomSprites @ 0xae20dc
// > GameObject::setupCustomSprites @ 0xae25c0
// > GameObject::setupCustomSprites @ 0xae2608
// > ??> @ 0xac8b8
//
// 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 13:01:08 +0000
//
__int64 *__usercall GameObject::perspectiveFrame@(const char *a1@, unsigned int a2@, __int64 *a3@)
{
size_t v7; // x0
size_t v8; // x22
_BYTE *v9; // x0
size_t v10; // x24
size_t v11; // x22
size_t v12; // x23
size_t v13; // x22
size_t v14; // x22
const char *v15; // x1
size_t v16; // x0
char *v18; // [xsp+58h] [xbp+58h]
size_t v19; // [xsp+68h] [xbp+68h] BYREF
unsigned __int64 v20; // [xsp+70h] [xbp+70h]
_BYTE *v21; // [xsp+78h] [xbp+78h]
_BYTE v22[504]; // [xsp+80h] [xbp+80h] BYREF
v19 = 0;
v20 = 500;
v21 = v22;
if ( !a1 )
goto LABEL_7;
v7 = strlen(a1);
v8 = v7;
if ( v7 > 0x1F4 )
{
fmt::internal::Array::grow(&v19, v7);
v9 = v21;
v19 = v8;
goto LABEL_4;
}
v19 = v7;
if ( !v7 )
{
LABEL_7:
v10 = 0;
v11 = 2;
goto LABEL_8;
}
v9 = v22;
LABEL_4:
memmove(v9, a1, v8);
v10 = v19;
v11 = v19 + 2;
if ( v20 < v19 + 2 )
fmt::internal::Array::grow(&v19, v19 + 2);
LABEL_8:
v19 = v11;
*(_WORD *)&v21[v10] = 12383;
fmt::BasicWriter::FormatInt,char>>(&v19, a2);
v12 = v19;
v13 = v19 + 8;
if ( v19 + 8 > v20 )
fmt::internal::Array::grow(&v19, v19 + 8);
v19 = v13;
*(_QWORD *)&v21[v12] = *(_QWORD *)"_001.png";
v14 = v19;
if ( v20 < v19 + 1 )
fmt::internal::Array::grow(&v19, v19 + 1);
v21[v14] = 0;
*a3 = 0;
v15 = v21;
a3[1] = 0;
a3[2] = 0;
v18 = (char *)v15;
v16 = strlen(v15);
std::string::__init(a3, v18, v16);
if ( v21 != v22 && v21 )
operator delete[](v21);
return a3;
}