//
// GameManager::didEncodeForSave from 0x1402868a0 to 0x14028693e (158 bytes)
//
// 2 xrefs:
// > ??> @ 0x14075e160
// > ??> @ 0x14091d0f0
//
// This function is hookable on this platform (idp: pc, 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 11:29:02 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall GameManager::didEncodeForSave(__int64 a1)
{
__int64 *v2; // rbx
__int64 *v3; // rdi
__int64 v4[5]; // [rsp+20h] [rbp-28h] BYREF
void *v5; // [rsp+50h] [rbp+8h]
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v5 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v5);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
}
v2 = GameLevelManager::collectPlatformerJournalKeys(a1, v4, 0);
v3 = (__int64 *)(a1 + 360);
if ( v3 != v2 )
{
sub_140274BC0(v3);
*v3 = *v2;
v3[1] = v2[1];
v3[2] = v2[2];
*v2 = 0;
v2[1] = 0;
v2[2] = 0;
}
sub_140274BC0(v4);
}