//
// SongInfoObject::encodeWithCoder from 0x56ad38 to 0x56ae3c (260 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:52:32 +0000
//
int __fastcall SongInfoObject::encodeWithCoder(SongInfoObject *this, DS_Dictionary *a2)
{
int v4; // r6
int v5; // r3
int v6; // r3
int v7; // r3
int v8; // r3
v4 = *(unsigned __int8 *)(GameManager::sharedState(this) + 278);
DS_Dictionary::setIntegerForKey(a2, "kCEK", 6);
DS_Dictionary::setIntegerForKey(a2, (const char *)a1i2r3e45s789g, *((_DWORD *)this + 66));
DS_Dictionary::setStringForKey(a2, &a1i2r3e45s789g[2], (char *)this + 268);
DS_Dictionary::setStringForKey(a2, &a1i2r3e45s789g[6], (char *)this + 280);
DS_Dictionary::setIntegerForKey(a2, (const char *)&a1i2r3e45s789g[4], *((_DWORD *)this + 76));
DS_Dictionary::setFloatForKey(a2, (const char *)&a1i2r3e45s789g[7], *((float *)this + 77));
DS_Dictionary::setIntegerForKey(a2, "11", *((_DWORD *)this + 78));
DS_Dictionary::setBoolForKey(a2, "13", *((_BYTE *)this + 344));
DS_Dictionary::setIntegerForKey(a2, "14", *((_DWORD *)this + 87));
if ( !v4 )
{
v5 = *((unsigned __int8 *)this + 388);
if ( (v5 & 1) != 0 )
v6 = *((_DWORD *)this + 98);
else
v6 = v5 >> 1;
if ( v6 )
DS_Dictionary::setStringForKey(a2, "17", (char *)this + 388);
v7 = *((unsigned __int8 *)this + 400);
if ( (v7 & 1) != 0 )
v8 = *((_DWORD *)this + 101);
else
v8 = v7 >> 1;
if ( v8 )
DS_Dictionary::setStringForKey(a2, "18", (char *)this + 400);
DS_Dictionary::setStringForKey(a2, "10", (char *)this + 292);
DS_Dictionary::setStringForKey(a2, "12", (char *)this + 316);
DS_Dictionary::setStringForKey(a2, "15", (char *)this + 356);
}
return DS_Dictionary::setIntegerForKey(a2, (const char *)&a1i2r3e45s789g[11], *((_DWORD *)this + 83));
}