//
// PlayLayer::scanActiveSaveObjects from 0x404418 to 0x4044ee (214 bytes)
//
// 1 xrefs:
// > PlayLayer::setupHasCompleted @ 0x409fac
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:47:26 +0000
//
void __fastcall PlayLayer::scanActiveSaveObjects(PlayLayer *this, int a2)
{
int v3; // r3
_DWORD *v4; // r3
int *v5; // r5
char *v6; // r6
int *v7; // r9
unsigned int *v8; // r10
int v9; // r4
int v10; // t1
_DWORD *v11; // r3
unsigned int v12; // r2
_DWORD *v13; // r3
unsigned int v14; // r2
_DWORD v15[2]; // [sp+0h] [bp-8h] BYREF
v15[0] = this;
v15[1] = a2;
v3 = *((_DWORD *)this + 522);
if ( v3 )
{
v4 = *(_DWORD **)(v3 + 52);
if ( *v4 )
{
v5 = (int *)v4[3];
v6 = (char *)this + 11760;
v7 = &v5[*v4 - 1];
v8 = (unsigned int *)((char *)this + 11768);
while ( v5 <= v7 )
{
v10 = *v5++;
v9 = v10;
if ( !v10 )
break;
if ( (*(int (__fastcall **)(int))(*(_DWORD *)v9 + 816))(v9) )
{
if ( !(*(int (__fastcall **)(int, _DWORD))(*(_DWORD *)v9 + 872))(v9, *((unsigned __int8 *)this + 10614)) )
{
v11 = *((_DWORD **)this + 2938);
v12 = *((_DWORD *)this + 2939);
v15[0] = v9;
if ( (unsigned int)v11 >= v12 )
{
std::vector
::__push_back_slow_path((int)this + 11748, v15);
}
else
{
if ( v11 )
*v11 = v9;
*((_DWORD *)this + 2938) += 4;
}
}
}
else if ( *(_DWORD *)(v9 + 1084) == 2 && *(_BYTE *)(v9 + 1304) )
{
v13 = *((_DWORD **)v6 + 1);
v14 = *v8;
v15[0] = v9;
if ( (unsigned int)v13 >= v14 )
{
std::vector::__push_back_slow_path((int)v6, v15);
}
else
{
if ( v13 )
*v13 = v9;
*((_DWORD *)v6 + 1) += 4;
}
}
}
}
}
}