//
// ReadArchive::process from 0x717938 to 0x7179b4 (124 bytes)
//
// 5 xrefs:
// > ReadArchive::process @ 0x728082
// > ReadArchive::process @ 0x728092
// > ReadArchive::process @ 0x7280ba
// > ReadArchive::process @ 0x7280c4
// > processFMODAudioState @ 0x72b3a8
//
// 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:57:49 +0000
//
int __fastcall ReadArchive::process(ReadArchive *this, unsigned __int64 *a2, int a3, int a4)
{
int result; // r0
int v7; // r5
int v8; // r4
char v9; // r3
const char *v10; // r4
size_t v11; // r0
ReadArchive *v12; // [sp+0h] [bp-10h] BYREF
unsigned __int64 *v13; // [sp+4h] [bp-Ch]
int v14; // [sp+8h] [bp-8h]
int v15; // [sp+Ch] [bp-4h]
v12 = this;
v13 = a2;
v14 = a3;
v15 = a4;
result = ReadArchive::valid(this);
if ( result )
{
v7 = *((_DWORD *)this + 3);
*((_DWORD *)this + 3) = v7 + 1;
v8 = *(_DWORD *)this + 12 * v7;
v9 = *(_BYTE *)v8;
v12 = nullptr;
v13 = nullptr;
if ( (v9 & 1) != 0 )
v10 = *(const char **)(v8 + 8);
else
v10 = (const char *)(v8 + 1);
v14 = 0;
v11 = strlen(v10);
std::string::__init((int *)&v12, v10, v11);
*a2 = std::stoull(&v12, 0, 10);
return std::string::~string((int)&v12);
}
return result;
}