//
// sub_C15BC from 0xc15bc to 0xc1724 (360 bytes)
//
// 1 xrefs:
// > sub_C173C @ 0xc177a
//
// 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:49 +0000
//
int __fastcall sub_C15BC(int a1)
{
_DWORD *v1; // r11
int result; // r0
int v4; // r0
int v5; // r10
int v6; // r6
int v7; // r8
int v8; // r4
_DWORD *v9; // r9
int v10; // r3
int v11; // [sp+4h] [bp-24h]
int v12; // [sp+8h] [bp-20h] BYREF
v1 = *(_DWORD **)a1;
*(_DWORD *)(*(_DWORD *)a1 + 8876) = 0;
v12 = 0;
result = sub_BFE7C((int)&v12);
if ( !result )
{
v4 = (*(int (__fastcall **)(int, int, const char *, const char *))(*(_DWORD *)v12 + 452))(
v12,
gFMODClass,
"getAudioDevices",
"(I)[Landroid/media/AudioDeviceInfo;");
if ( v4 )
{
v11 = sub_BF85E(v12, gFMODClass, v4, 1);
v5 = (*(int (__fastcall **)(int, int))(*(_DWORD *)v12 + 684))(v12, v11);
sub_C0E40(a1, 1, v1 + 2286, v1 + 2287);
v1[2221] = 0;
sub_BE220((_BYTE *)v1 + 8888, "(Default Input)", 256);
v1[2288] = -1;
v1[2289] = 0;
qmemcpy(v1 + 2290, v1 + 2221, 0x114u);
sub_BE26E((int)(v1 + 2291), " (Voice)", 256);
v1[2357] = 7;
if ( v5 )
{
v6 = 0;
v7 = 2;
while ( v5 != v6 )
{
v8 = (*(int (__fastcall **)(int, int, int))(*(_DWORD *)v12 + 692))(v12, v11, v6);
v9 = &v1[69 * v7];
if ( !sub_C0B94(8884, v8, (int)(v9 + 2221), v10) )
{
qmemcpy(v9 + 2290, v9 + 2221, 0x114u);
sub_BE26E((int)(v9 + 2291), " (Voice)", 256);
v7 += 2;
v9[2357] = 7;
}
(*(void (__fastcall **)(int, int))(*(_DWORD *)v12 + 92))(v12, v8);
++v6;
}
}
else
{
v7 = 2;
}
v1[2219] = v7;
(*(void (__fastcall **)(int, int))(*(_DWORD *)v12 + 92))(v12, v11);
return 0;
}
else
{
return 28;
}
}
return result;
}