//
// ReadArchive::processGOArr from 0xc13bd8 to 0xc13d5c (388 bytes)
//
// 3 xrefs:
// > deserializeGradientObjects @ 0xc13da8
// > PlayerCheckpoint::processState @ 0xc316d4
// > ??> @ 0xe9e00
//
// 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:04:02 +0000
//
__int64 __fastcall ReadArchive::processGOArr(ReadArchive *this, cocos2d::CCArray **a2)
{
int i; // w19
char *v5; // x19
char *v6; // x0
int v8; // [xsp+4Ch] [xbp+4Ch] BYREF
GameObject *v9; // [xsp+50h] [xbp+50h] BYREF
__int64 v10[2]; // [xsp+58h] [xbp+58h] BYREF
void *v11; // [xsp+68h] [xbp+68h]
void *v12; // [xsp+70h] [xbp+70h] BYREF
char *v13; // [xsp+78h] [xbp+78h]
v10[0] = 0;
v10[1] = 0;
v11 = nullptr;
ReadArchive::processString((__int64 *)this, v10);
ReadArchive::ReadArchive((__int64)&v12, (unsigned __int8 *)v10, "|", *((_QWORD *)this + 4));
v8 = 0;
ReadArchive::process((__int64)&v12, &v8);
cocos2d::CCArray::removeAllObjects(*a2);
for ( i = 0; v8 > i; ++i )
{
v9 = nullptr;
ReadArchive::process((GJBaseGameLayer **)&v12, &v9);
if ( v9 )
cocos2d::CCArray::addObject(*a2, v9);
}
v5 = (char *)v12;
if ( v12 )
{
v6 = v13;
if ( v12 != v13 )
{
do
{
v13 = v6 - 24;
std::string::~string((__int64)(v6 - 24));
v6 = v13;
}
while ( v5 != v13 );
v6 = (char *)v12;
}
operator delete(v6);
}
if ( (v10[0] & 1) != 0 )
operator delete(v11);
return _stack_chk_guard;
}