//
// SongInfoObject::encodeWithCoder from 0x456fe8 to 0x4570f8 (272 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void SongInfoObject::encodeWithCoder(SongInfoObject *a1, DS_Dictionary *a2)
{
_BOOL4 m_quickSave; // r6
m_quickSave = GameManager::sharedState()->m_quickSave;
DS_Dictionary::setIntegerForKey(a2, "kCEK", 6);
DS_Dictionary::setIntegerForKey(a2, (const char *)&aO1i2r3e45s7t89[1], a1->m_songID);
DS_Dictionary::setStringForKey(a2, (const char *)&aO1i2r3e45s7t89[3], &a1->m_songName);
DS_Dictionary::setStringForKey(a2, (const char *)&aO1i2r3e45s7t89[7], &a1->m_artistName);
DS_Dictionary::setIntegerForKey(a2, (const char *)&aO1i2r3e45s7t89[5], a1->m_artistID);
DS_Dictionary::setFloatForKey(a2, (const char *)&aO1i2r3e45s7t89[8], a1->m_fileSize);
DS_Dictionary::setIntegerForKey(a2, "11", a1->m_nongType);
DS_Dictionary::setBoolForKey(a2, "13", a1->m_isNew);
DS_Dictionary::setIntegerForKey(a2, "14", a1->m_libraryOrder);
if ( !m_quickSave )
{
if ( *((_DWORD *)a1->m_youtubeVideo.m_data.m_data - 3) )
DS_Dictionary::setStringForKey(a2, "6", &a1->m_youtubeVideo);
if ( *((_DWORD *)a1->m_youtubeChannel.m_data.m_data - 3) )
DS_Dictionary::setStringForKey(a2, (const char *)&aO1i2r3e45s7t89[10], &a1->m_youtubeChannel);
if ( *((_DWORD *)a1->m_downloadLinkOverride.m_data.m_data - 3) )
DS_Dictionary::setStringForKey(a2, "16", &a1->m_downloadLinkOverride);
DS_Dictionary::setStringForKey(a2, "10", &a1->m_songUrl);
DS_Dictionary::setStringForKey(a2, "12", &a1->m_extraArtists);
DS_Dictionary::setStringForKey(a2, "15", &a1->m_extraArtistNames);
}
DS_Dictionary::setIntegerForKey(a2, (const char *)&aO1i2r3e45s7t89[13], a1->m_priority);
}