//
// sub_140496900 from 0x140496900 to 0x1404969ae (174 bytes)
//
// 3 xrefs:
// > SongInfoObject::createWithCoder @ 0x140495d38
// > SongInfoObject::addSongLink @ 0x1404969f0
// > ??> @ 0x140928fdc
//
// 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
//
char __fastcall sub_140496900(_QWORD *a1, const void **a2)
{
unsigned __int64 v3; // rdi
unsigned __int64 v4; // rbp
unsigned __int64 v5; // r14
__int64 v6; // rbx
const void *v7; // r15
const void *v8; // rdx
const void *v9; // rcx
size_t v10; // r8
v3 = 0;
v4 = (a1[1] - *a1) / 72LL;
if ( !v4 )
return 0;
v5 = (unsigned __int64)a2[3];
v6 = *a1 + 40LL;
v7 = a2[2];
while ( 1 )
{
v8 = a2;
if ( v5 > 0xF )
v8 = *a2;
v9 = (const void *)v6;
if ( *(_QWORD *)(v6 + 24) > 0xFu )
v9 = *(const void **)v6;
v10 = *(_QWORD *)(v6 + 16);
if ( (const void *)v10 == v7 && (!v10 || !memcmp(v9, v8, v10)) )
break;
++v3;
v6 += 72;
if ( v3 >= v4 )
return 0;
}
return 1;
}