//
// WriteArchive::process from 0xc18768 to 0xc188d8 (368 bytes)
//
// 128 xrefs:
// > sub_C188D8 @ 0xc188ec
// > sub_C188D8 @ 0xc188f8
// > sub_C1C83C @ 0xc1c87c
// > WriteArchive::process @ 0xc1d9a8
// > WriteArchive::process @ 0xc20528
// > WriteArchive::process @ 0xc20548
// > WriteArchive::process @ 0xc20730
// > sub_C2082C @ 0xc2087c
// > sub_C2082C @ 0xc20888
// > sub_C2082C @ 0xc20894
// > sub_C2082C @ 0xc208a0
// > WriteArchive::process @ 0xc21248
// > WriteArchive::process @ 0xc21254
// > WriteArchive::process @ 0xc22644
// > WriteArchive::process @ 0xc22650
// > sub_C2279C @ 0xc227bc
// > sub_C2279C @ 0xc227ec
// > PlayerCheckpoint::processState @ 0xc22c84
// > PlayerCheckpoint::processState @ 0xc22d44
// > PlayerCheckpoint::processState @ 0xc22d50
// > PlayerCheckpoint::processState @ 0xc22da4
// > PlayerCheckpoint::processState @ 0xc22db0
// > PlayerCheckpoint::processState @ 0xc22dec
// > PlayerCheckpoint::processState @ 0xc22df8
// > PlayerCheckpoint::processState @ 0xc22e04
// > PlayerCheckpoint::processState @ 0xc22e24
// > PlayerCheckpoint::processState @ 0xc22e60
// > PlayerCheckpoint::processState @ 0xc22e6c
// > PlayerCheckpoint::processState @ 0xc22f38
// > PlayerCheckpoint::processState @ 0xc22f44
// > PlayerCheckpoint::processState @ 0xc22f50
// > PlayerCheckpoint::processState @ 0xc22f5c
// > PlayerCheckpoint::processState @ 0xc22f74
// > PlayerCheckpoint::processState @ 0xc22f80
// > PlayerCheckpoint::processState @ 0xc22fc8
// > PlayerCheckpoint::processState @ 0xc23028
// > PlayerCheckpoint::processState @ 0xc23034
// > PlayerCheckpoint::processState @ 0xc23040
// > PlayerCheckpoint::processState @ 0xc23058
// > PlayerCheckpoint::processState @ 0xc230a0
// > PlayerCheckpoint::processState @ 0xc230f4
// > PlayerCheckpoint::processState @ 0xc23100
// > PlayerCheckpoint::processState @ 0xc2310c
// > PlayerCheckpoint::processState @ 0xc23118
// > PlayerCheckpoint::processState @ 0xc23154
// > PlayerCheckpoint::processState @ 0xc23160
// > PlayerCheckpoint::processState @ 0xc2316c
// > PlayerCheckpoint::processState @ 0xc23178
// > PlayerCheckpoint::processState @ 0xc231f0
// > PlayerCheckpoint::processState @ 0xc231fc
// > PlayerCheckpoint::processState @ 0xc23220
// > PlayerCheckpoint::processState @ 0xc23268
// > PlayerCheckpoint::processState @ 0xc2328c
// > PlayerCheckpoint::processState @ 0xc232e0
// > PlayerCheckpoint::processState @ 0xc23364
// > PlayerCheckpoint::processState @ 0xc23394
// > PlayerCheckpoint::processState @ 0xc233d0
// > PlayerCheckpoint::processState @ 0xc233e8
// > PlayerCheckpoint::processState @ 0xc2340c
// > PlayerCheckpoint::processState @ 0xc23418
// > PlayerCheckpoint::processState @ 0xc23424
// > PlayerCheckpoint::processState @ 0xc23460
// > PlayerCheckpoint::processState @ 0xc2346c
// > processGJShaderState @ 0xc236b0
// > processGJShaderState @ 0xc236bc
// > processGJShaderState @ 0xc236c8
// > processGJShaderState @ 0xc2380c
// > processGJShaderState @ 0xc23d34
// > processGJShaderState @ 0xc23d40
// > serializeDynamicSaveObjects @ 0xc23f68
// > serializeDynamicSaveObjects @ 0xc23f7c
// > WriteArchive::process @ 0xc243cc
// > WriteArchive::process @ 0xc243d8
// > WriteArchive::process @ 0xc243e4
// > WriteArchive::process @ 0xc24408
// > WriteArchive::process @ 0xc24414
// > WriteArchive::process @ 0xc24420
// > WriteArchive::process @ 0xc2442c
// > WriteArchive::process @ 0xc24438
// > WriteArchive::process @ 0xc24444
// > WriteArchive::process @ 0xc24450
// > WriteArchive::process @ 0xc2445c
// > WriteArchive::process @ 0xc244d4
// > WriteArchive::process @ 0xc244e0
// > WriteArchive::process @ 0xc244ec
// > WriteArchive::process @ 0xc244f8
// > WriteArchive::process @ 0xc24504
// > WriteArchive::process @ 0xc24510
// > WriteArchive::process @ 0xc2451c
// > WriteArchive::process @ 0xc24540
// > WriteArchive::process @ 0xc2454c
// > WriteArchive::process @ 0xc24564
// > WriteArchive::process @ 0xc24570
// > WriteArchive::process @ 0xc2457c
// > WriteArchive::process @ 0xc24588
// > WriteArchive::process @ 0xc24594
// > WriteArchive::process @ 0xc245a0
// > WriteArchive::process @ 0xc245ac
// > WriteArchive::process @ 0xc245b8
// > WriteArchive::process @ 0xc245c4
// > WriteArchive::process @ 0xc245f4
// > WriteArchive::process @ 0xc24600
// > WriteArchive::process @ 0xc2460c
// > WriteArchive::process @ 0xc24618
// > WriteArchive::process @ 0xc24630
// > WriteArchive::process @ 0xc24654
// > WriteArchive::process @ 0xc24660
// > WriteArchive::process @ 0xc2466c
// > WriteArchive::process @ 0xc24678
// > WriteArchive::process @ 0xc24684
// > WriteArchive::process @ 0xc24690
// > WriteArchive::process @ 0xc246b4
// > WriteArchive::process @ 0xc246c0
// > WriteArchive::process @ 0xc247a0
// > WriteArchive::process @ 0xc2480c
// > WriteArchive::process @ 0xc24818
// > WriteArchive::process @ 0xc24854
// > WriteArchive::process @ 0xc24860
// > WriteArchive::process @ 0xc2486c
// > WriteArchive::process @ 0xc24878
// > processGJGameStateFields @ 0xc27884
// > processGJGameStateFields @ 0xc27890
// > processGJGameStateFields @ 0xc2789c
// > processGJGameStateFields @ 0xc27ab8
// > serializeCheckpoint @ 0xc2e200
// > serializeCheckpoint @ 0xc2e218
// > serializeCheckpoint @ 0xc2e248
// > ??> @ 0x83650
//
// 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:04 +0000
//
__int64 __fastcall WriteArchive::process(size_t *this, double *a2)
{
size_t v3; // x0
size_t v4; // x23
size_t v5; // x2
size_t v6; // x20
size_t v7; // x2
char *v8; // x23
unsigned __int64 v9; // x22
__int64 v10; // x0
__int64 v12; // x0
void *v13; // x0
size_t v14; // [xsp+48h] [xbp+48h]
size_t v15; // [xsp+48h] [xbp+48h]
char s[64]; // [xsp+58h] [xbp+58h] BYREF
sprintf(s, "%.17g", *a2);
v3 = strlen(s);
v4 = *this;
v5 = v3;
v6 = v3 + *this;
if ( v6 > *(this + 1) )
{
v15 = v3;
fmt::internal::Array::grow(this, v3 + *this);
v5 = v15;
}
*this = v6;
if ( v5 )
{
memmove((void *)(*(this + 2) + v4), s, v5);
v6 = *this;
}
if ( (*(_BYTE *)(this + 66) & 1) == 0 )
{
v7 = *((_BYTE *)this + 528) >> 1;
v8 = (char *)this + 529;
if ( !(*((_BYTE *)this + 528) >> 1) )
goto LABEL_7;
LABEL_10:
v9 = v7 + v6;
if ( *(this + 1) >= v7 + v6 )
{
v12 = *(this + 2);
*this = v9;
v13 = (void *)(v12 + v6);
LABEL_18:
memmove(v13, v8, v7);
return _stack_chk_guard;
}
goto LABEL_16;
}
v7 = *(this + 67);
v8 = (char *)*(this + 68);
if ( v7 )
goto LABEL_10;
if ( !v8 )
{
if ( v6 <= *(this + 1) )
return _stack_chk_guard;
v9 = v6;
v7 = 0;
goto LABEL_16;
}
LABEL_7:
v7 = strlen(v8);
v9 = v7 + v6;
if ( v7 + v6 > *(this + 1) )
{
LABEL_16:
v14 = v7;
fmt::internal::Array::grow(this, v9);
*this = v9;
v7 = v14;
v10 = *(this + 2);
if ( !v14 )
return _stack_chk_guard;
goto LABEL_17;
}
*this = v9;
v10 = *(this + 2);
if ( v7 )
{
LABEL_17:
v13 = (void *)(v10 + v6);
goto LABEL_18;
}
return _stack_chk_guard;
}