//
// PlayLayer::scanActiveSaveObjects from 0x6fd474 to 0x6fd5f8 (388 bytes)
//
// 2 xrefs:
// > PlayLayer::setupHasCompleted @ 0x7078dc
// > ??> @ 0x5f860
//
// 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 12:52:00 +0000
//
__int64 __fastcall PlayLayer::scanActiveSaveObjects(PlayLayer *this)
{
__int64 v2; // x0
unsigned int *v3; // x1
__int64 *v4; // x20
__int64 *v5; // x21
__int64 i; // x19
_QWORD *v8; // x0
unsigned __int64 v9; // x1
_QWORD *v10; // x0
unsigned __int64 v11; // x1
__int64 v12; // [xsp+60h] [xbp+60h] BYREF
v2 = *((_QWORD *)this + 410);
if ( v2 )
{
v3 = *(unsigned int **)(v2 + 56);
if ( *v3 )
{
v4 = *((__int64 **)v3 + 2);
v5 = &v4[*v3 - 1];
if ( v4 <= v5 )
{
for ( i = *v4; *v4; i = *v4 )
{
if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)i + 1632LL))(i) )
{
if ( !(*(unsigned __int8 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)i + 1744LL))(
i,
*((unsigned __int8 *)this + 12238)) )
{
v8 = *((_QWORD **)this + 1763);
v9 = *((_QWORD *)this + 1764);
v12 = i;
if ( (unsigned __int64)v8 >= v9 )
{
std::vector
::__push_back_slow_path(
(__int64)this + 14096,
&v12);
}
else
{
if ( v8 )
{
*v8 = i;
v8 = *((_QWORD **)this + 1763);
}
*((_QWORD *)this + 1763) = v8 + 1;
}
}
}
else if ( *(_DWORD *)(i + 1248) == 2 && *(_BYTE *)(i + 1520) )
{
v10 = *((_QWORD **)this + 1766);
v11 = *((_QWORD *)this + 1767);
v12 = i;
if ( (unsigned __int64)v10 >= v11 )
{
std::vector::__push_back_slow_path(
(__int64)this + 14120,
&v12);
}
else
{
if ( v10 )
{
*v10 = i;
v10 = *((_QWORD **)this + 1766);
}
*((_QWORD *)this + 1766) = v10 + 1;
}
}
if ( v5 < ++v4 )
break;
}
}
}
}
return _stack_chk_guard;
}