//
// SongInfoObject::encodeWithCoder from 0x1001e2b94 to 0x1001e2d10 (380 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008f00d0
//
// 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 11:00:31 +0000
//
__int64 __fastcall SongInfoObject::encodeWithCoder(__int64 a1, __int64 a2)
{
char v4; // w21
__int64 v5; // x8
__int64 v6; // x8
v4 = *(_BYTE *)(GameManager::sharedState(a1) + 346);
DS_Dictionary::setIntegerForKey_1(a2, "kCEK", 6);
DS_Dictionary::setIntegerForKey_1(a2, "1", *(unsigned int *)(a1 + 316));
sub_1001EB144(a2, "2", a1 + 320);
sub_1001EB144(a2, "4", a1 + 344);
DS_Dictionary::setIntegerForKey_1(a2, "3", *(unsigned int *)(a1 + 392));
DS_Dictionary::setFloatForKey_1(a2, "5", *(float *)(a1 + 396));
DS_Dictionary::setIntegerForKey_1(a2, "11", *(unsigned int *)(a1 + 400));
DS_Dictionary::setBoolForKey_1(a2, "13", *(unsigned __int8 *)(a1 + 448));
DS_Dictionary::setIntegerForKey_1(a2, "14", *(unsigned int *)(a1 + 452));
if ( (v4 & 1) == 0 )
{
v5 = *(char *)(a1 + 551);
if ( v5 < 0 )
v5 = *(_QWORD *)(a1 + 536);
if ( v5 )
sub_1001EB144(a2, "17", a1 + 528);
v6 = *(char *)(a1 + 575);
if ( v6 < 0 )
v6 = *(_QWORD *)(a1 + 560);
if ( v6 )
sub_1001EB144(a2, "18", a1 + 552);
sub_1001EB144(a2, "10", a1 + 368);
sub_1001EB144(a2, "12", a1 + 408);
sub_1001EB144(a2, "15", a1 + 464);
}
return DS_Dictionary::setIntegerForKey_1(a2, "9", *(unsigned int *)(a1 + 436));
}