//
// LocalLevelManager::encodeDataTo from 0x14046b790 to 0x14046b83e (174 bytes)
//
// 2 xrefs:
// > ??> @ 0x1407b3c08
// > ??> @ 0x1409280a0
//
// 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:32:36 +0000
//
// Hidden C++ exception states: #wind=2
void __fastcall LocalLevelManager::encodeDataTo(__int64 a1, DS_Dictionary *a2)
{
__int64 v4; // rax
void *v5; // [rsp+30h] [rbp+8h]
v4 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v5 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v5);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v4 = qword_14090BFD0;
}
if ( *(_QWORD *)(v4 + 560) )
PlayLayer::writePersistentSave();
DS_Dictionary::setArrayForKey(a2, "LLM_01", *(struct cocos2d::CCArray **)(a1 + 368));
DS_Dictionary::setIntegerForKey(a2, "LLM_02", 51);
DS_Dictionary::setArrayForKey(a2, "LLM_03", *(struct cocos2d::CCArray **)(a1 + 376));
}