//
// sub_140077700 from 0x140077700 to 0x1400777b9 (185 bytes)
//
// 3 xrefs:
// > GManager::save @ 0x1400776c3
// > StartAddress @ 0x140077ae6
// > ??> @ 0x140911bb8
//
// 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:25:51 +0000
//
// Hidden C++ exception states: #wind=2
void __fastcall sub_140077700(DS_Dictionary **a1, __int64 a2)
{
__int64 v2; // rdi
_BYTE *v4; // rbx
bool v5; // r14
DS_Dictionary *v6; // rbp
v2 = a2;
v4 = (char *)*a1 + 353;
if ( *(_QWORD *)(a2 + 24) > 0xFu )
a2 = *(_QWORD *)a2;
v5 = DS_Dictionary::saveRootSubDictToCompressedFile(a1[1], (const char *)a2, 1);
v6 = a1[1];
if ( v6 )
{
DS_Dictionary::~DS_Dictionary(a1[1]);
j_j_free(v6);
a1[1] = nullptr;
}
(*(void (__fastcall **)(DS_Dictionary *, bool))(*(_QWORD *)*a1 + 912LL))(*a1, v5);
*v4 = 0;
sub_14003D310(v2);
}