//
// deserializeGJShaderState from 0xc1a130 to 0xc1a218 (232 bytes)
//
// 2 xrefs:
// > deserializeCheckpoint @ 0xc356f4
// > ??> @ 0xf1210
//
// 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:05 +0000
//
__int64 __fastcall deserializeGJShaderState(__int64 a1, unsigned __int8 *a2, __int64 a3)
{
void **v4; // x19
void **v5; // x0
void *v7; // [xsp+30h] [xbp+30h] BYREF
void **v8; // [xsp+38h] [xbp+38h]
ReadArchive::ReadArchive((__int64)&v7, a2, &byte_1169BE0, a3);
processGJShaderState((__int64 *)&v7, a1);
v4 = (void **)v7;
if ( v7 )
{
v5 = v8;
if ( v7 != v8 )
{
do
{
v8 = v5 - 3;
if ( (*(_BYTE *)(v5 - 3) & 1) != 0 )
operator delete(*(v5 - 1));
v5 = v8;
}
while ( v4 != v8 );
v5 = (void **)v7;
}
operator delete(v5);
}
return _stack_chk_guard;
}