//
// sub_140222B40 from 0x140222b40 to 0x140222bdd (157 bytes)
//
// 5 xrefs:
// > sub_140223100 @ 0x1402232b8
// > GameLevelManager::writePlatformerSaveJournal @ 0x1402236e3
// > GameLevelManager::replayPlatformerSaveJournal @ 0x140223bd7
// > GameLevelManager::prunePlatformerJournalKeys @ 0x14022400a
// > ??> @ 0x14091bc74
//
// 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:28:25 +0000
//
// Hidden C++ exception states: #wind=4
_BOOL8 __fastcall sub_140222B40(__int64 a1)
{
__int64 v1; // rax
size_t *v2; // rax
bool v3; // bl
size_t v5[4]; // [rsp+30h] [rbp-78h] BYREF
_BYTE v6[32]; // [rsp+50h] [rbp-58h] BYREF
_BYTE v7[32]; // [rsp+70h] [rbp-38h] BYREF
v1 = DS_Dictionary::saveRootSubDictToString(a1, v6);
cocos2d::ZipUtils::compressString(v5, v1, 0, 1, 11);
sub_14003D310((__int64)v6);
v2 = (size_t *)sub_1402229C0((__int64)v7);
v3 = GDFileWriter::writeAtomic(v2, v5);
sub_14003D310((__int64)v7);
sub_14003D310((__int64)v5);
return v3;
}