//
// SongInfoObject::encodeWithCoder from 0x140495f40 to 0x140496120 (480 bytes)
//
// 2 xrefs:
// > ??> @ 0x1407b8c28
// > ??> @ 0x140928fa0
//
// 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:52 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall SongInfoObject::encodeWithCoder(__int64 a1, DS_Dictionary *a2)
{
__int64 v4; // rbx
char v5; // bl
void *v6; // [rsp+30h] [rbp+8h]
v4 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v6 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v6);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v4 = qword_14090BFD0;
}
v5 = *(_BYTE *)(v4 + 354);
DS_Dictionary::setIntegerForKey(a2, "kCEK", 6);
DS_Dictionary::setIntegerForKey(a2, (const char *)&word_14070D060, *(_DWORD *)(a1 + 320));
DS_Dictionary::setStringForKey(a2, &word_14070D058, a1 + 328);
DS_Dictionary::setStringForKey(a2, &word_14070D04C, a1 + 360);
DS_Dictionary::setIntegerForKey(a2, (const char *)&word_14070D054, *(_DWORD *)(a1 + 424));
DS_Dictionary::setFloatForKey(a2, (const char *)&word_14070D048, *(float *)(a1 + 428));
DS_Dictionary::setIntegerForKey(a2, "11", *(_DWORD *)(a1 + 432));
DS_Dictionary::setBoolForKey(a2, "13", *(_BYTE *)(a1 + 488));
DS_Dictionary::setIntegerForKey(a2, (const char *)&word_140737D98, *(_DWORD *)(a1 + 492));
if ( !v5 )
{
if ( *(_QWORD *)(a1 + 616) )
DS_Dictionary::setStringForKey(a2, &word_140737FF0, a1 + 600);
if ( *(_QWORD *)(a1 + 648) )
DS_Dictionary::setStringForKey(a2, &word_140737FE8, a1 + 632);
DS_Dictionary::setStringForKey(a2, "10", a1 + 392);
DS_Dictionary::setStringForKey(a2, "12", a1 + 440);
DS_Dictionary::setStringForKey(a2, "15", a1 + 504);
}
DS_Dictionary::setIntegerForKey(a2, "9", *(_DWORD *)(a1 + 476));
}