//
// sub_81C3C from 0x81c3c to 0x81d98 (348 bytes)
//
// 1 xrefs:
// > sub_81840 @ 0x81948
//
// 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:41:17 +0000
//
int __fastcall sub_81C3C(int a1)
{
int v2; // r6
const char *v4; // r2
int v5; // [sp+14h] [bp-224h] BYREF
char v6[512]; // [sp+18h] [bp-220h] BYREF
int v7; // [sp+218h] [bp-20h] BYREF
v2 = sub_BBB84(*(_DWORD *)(a1 + 220), 0);
if ( !v2 )
{
if ( sub_8247E(a1, v6, 512, 0) || sub_BE30E(v6, "[playlist]", 10) )
return 19;
while ( 1 )
{
v2 = 0;
if ( sub_8247E(a1, v6, 512, 0) )
return v2;
if ( !sub_BE30E("File", v6, 4) )
break;
if ( sub_BE30E("Title", v6, 5) )
{
if ( sub_BE30E("Length", v6, 6) )
{
if ( !sub_BE30E("NumberOfEntries", v6, 15) || !sub_BE30E("Version", v6, 7) )
{
v2 = 0;
if ( sub_8247E(a1, v6, 512, 0) )
return v2;
}
}
else
{
v5 = 0;
if ( sub_8247E(a1, v6, 512, &v7) )
return 0;
v6[v7] = 0;
v5 = atoi(v6);
sub_B0B08(a1, 8, "LENGTH", &v5);
}
}
else
{
if ( sub_8247E(a1, v6, 512, &v7) )
return 0;
v4 = "TITLE";
LABEL_18:
sub_B0B08(a1, 8, v4, v6);
}
}
if ( sub_8247E(a1, v6, 512, &v7) )
return 0;
v4 = "FILE";
goto LABEL_18;
}
return v2;
}