//
// SongInfoObject::encodeWithCoder from 0x95a268 to 0x95a404 (412 bytes)
//
// 2 xrefs:
// > ??> @ 0x62f38
// > ??> @ 0x146ea80
//
// This function is hookable on this platform (idp: arm, 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 12:57:27 +0000
//
__int64 __fastcall SongInfoObject::encodeWithCoder(SongInfoObject *this, DS_Dictionary *a2)
{
int v4; // w21
__int64 v5; // x1
char *v6; // x2
__int64 v7; // x1
v4 = *(unsigned __int8 *)(GameManager::sharedState(this) + 346);
DS_Dictionary::setIntegerForKey(a2, "kCEK", 6);
DS_Dictionary::setIntegerForKey(a2, "1", *((_DWORD *)this + 79));
DS_Dictionary::setStringForKey(a2, &byte_120A098, (char *)this + 320);
DS_Dictionary::setStringForKey(a2, &byte_11BCA00, (char *)this + 344);
DS_Dictionary::setIntegerForKey(a2, "3", *((_DWORD *)this + 98));
DS_Dictionary::setFloatForKey(a2, "5", *((float *)this + 99));
DS_Dictionary::setIntegerForKey(a2, "11", *((_DWORD *)this + 100));
DS_Dictionary::setBoolForKey(a2, "13", *((_BYTE *)this + 448));
DS_Dictionary::setIntegerForKey(a2, (const char *)&word_1217DE8, *((_DWORD *)this + 113));
if ( v4 )
return DS_Dictionary::setIntegerForKey(a2, "9", *((_DWORD *)this + 109));
v5 = *((_BYTE *)this + 528) >> 1;
if ( (*((_BYTE *)this + 528) & 1) != 0 )
v5 = *((_QWORD *)this + 67);
if ( v5 )
{
DS_Dictionary::setStringForKey(a2, "17", (char *)this + 528);
v6 = (char *)this + 552;
v7 = *((_BYTE *)this + 552) >> 1;
if ( (*((_BYTE *)this + 552) & 1) == 0 )
goto LABEL_7;
goto LABEL_6;
}
v6 = (char *)this + 552;
v7 = *((_BYTE *)this + 552) >> 1;
if ( (*((_BYTE *)this + 552) & 1) != 0 )
LABEL_6:
v7 = *((_QWORD *)v6 + 1);
LABEL_7:
if ( v7 )
DS_Dictionary::setStringForKey(a2, "18", v6);
DS_Dictionary::setStringForKey(a2, "10", (char *)this + 368);
DS_Dictionary::setStringForKey(a2, &word_120A570, (char *)this + 408);
DS_Dictionary::setStringForKey(a2, "15", (char *)this + 464);
return DS_Dictionary::setIntegerForKey(a2, "9", *((_DWORD *)this + 109));
}