//
// sub_71D28 from 0x71d28 to 0x71e46 (286 bytes)
//
// 1 xrefs:
// > sub_71518 @ 0x71518
//
// 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:03 +0000
//
int __fastcall sub_71D28(int *a1, int a2, int a3, int a4)
{
int v4; // r1
_DWORD *v6; // r1
_DWORD *v7; // r1
int i; // r6
int v9; // r0
int v10; // r5
int v12; // r3
int v13; // r3
int v14; // r3
_DWORD *v15; // [sp+4h] [bp-1Ch] BYREF
v4 = a1[57];
if ( v4 )
{
sub_BD7AC(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), v4, "../../src/fmod_codec_fsb5.cpp", 766, 1);
a1[57] = 0;
}
v6 = (_DWORD *)a1[56];
if ( !v6 || !sub_715A8(a1[4], v6, a3, a4) )
return 0;
v7 = (_DWORD *)a1[56];
if ( v7[9] == 15 )
{
for ( i = 0; i < v7[7]; ++i )
{
sub_71CCC((int)a1, i, &v15, nullptr);
v9 = sub_7240C(*v15);
if ( v9 )
return v9;
v7 = (_DWORD *)a1[56];
}
}
v12 = v7[12];
if ( v12 )
{
sub_BD7AC(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), v12, "../../src/fmod_codec_fsb5.cpp", 787, 1);
v7 = (_DWORD *)a1[56];
v7[12] = 0;
}
v13 = v7[13];
if ( v13 )
{
sub_BD7AC(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), v13, "../../src/fmod_codec_fsb5.cpp", 788, 1);
v7 = (_DWORD *)a1[56];
v7[13] = 0;
}
v14 = v7[14];
if ( v14 )
{
sub_BD7AC(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), v14, "../../src/fmod_codec_fsb5.cpp", 789, 1);
v7 = (_DWORD *)a1[56];
v7[14] = 0;
}
v10 = 0;
if ( v7 )
{
sub_BD7AC(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), v7, "../../src/fmod_codec_fsb5.cpp", 790, 1);
a1[56] = 0;
}
return v10;
}