//
// sub_10056E22C from 0x10056e22c to 0x10056e484 (600 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009d5418
//
// 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:08:17 +0000
//
__int64 __fastcall sub_10056E22C(__int64 *a1)
{
__int64 v2; // x19
__int64 v3; // x20
__int64 v4; // x23
__int64 j; // x21
__int64 v6; // x0
__int64 v7; // x8
__int64 v8; // x22
__int64 v9; // x0
int v11; // w8
__int64 i; // x9
__int64 v13; // x11
int v14; // [xsp+8h] [xbp-38h] BYREF
unsigned int v15; // [xsp+Ch] [xbp-34h] BYREF
v2 = qword_100A10AD0;
sub_1005DBDD8(qword_100A10AD0);
if ( !qword_100A10A90[*((int *)a1 + 12)] )
{
v9 = sub_1005D7660(
*((_QWORD *)off_1009DA5E8 + 54),
3584,
"/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_dsp_transceiver.cpp",
536,
0);
qword_100A10A90[*((int *)a1 + 12)] = v9;
if ( !v9 )
{
v8 = 38;
goto LABEL_16;
}
v15 = 0;
v6 = (*(__int64 (__fastcall **)(__int64 *, unsigned int *))(a1[5] + 32))(a1, &v15);
if ( (_DWORD)v6
|| (v14 = 0, v6 = (*(__int64 (__fastcall **)(__int64 *, int *, _QWORD))(a1[5] + 56))(a1, &v14, 0), (_DWORD)v6) )
{
LABEL_14:
v8 = v6;
goto LABEL_16;
}
v11 = 1;
switch ( v14 )
{
case 2:
break;
case 3:
goto LABEL_20;
case 4:
case 5:
case 6:
v11 = v14;
break;
case 7:
v11 = 8;
break;
case 8:
v11 = 12;
break;
default:
if ( v14 == 1000 )
LABEL_20:
v11 = 2;
else
v11 = 0;
break;
}
for ( i = 0; i != 3584; i += 112 )
{
v13 = qword_100A10A90[*((int *)a1 + 12)] + i;
*(_QWORD *)(v13 + 96) = v15;
*(_WORD *)(v13 + 104) = 0;
*(_OWORD *)v13 = 0u;
*(_OWORD *)(v13 + 16) = 0u;
*(_OWORD *)(v13 + 32) = 0u;
*(_OWORD *)(v13 + 48) = 0u;
*(_OWORD *)(v13 + 64) = 0u;
*(_DWORD *)(v13 + 80) = 0;
*(_DWORD *)(v13 + 108) = 1;
*(_QWORD *)(v13 + 84) = 0x200000001LL;
*(_DWORD *)(v13 + 92) = v11;
}
}
v3 = *a1;
v4 = *(_QWORD *)(v3 + 232);
if ( *(int *)(v4 + 96) >= 1 )
{
for ( j = 0; j < *(int *)(v4 + 96); ++j )
{
v7 = *(_QWORD *)(*(_QWORD *)(v4 + 104) + 8 * j);
if ( *(_DWORD *)v7 == 1 )
{
v6 = sub_1005CDBC8(v3, j, *(unsigned int *)(v7 + 56));
if ( (_DWORD)v6 )
goto LABEL_14;
}
else if ( !*(_DWORD *)v7 )
{
v6 = sub_1005CDB48(v3, j, *(float *)(v7 + 56));
if ( (_DWORD)v6 )
goto LABEL_14;
}
}
}
*(_QWORD *)(v3 + 540) = 0;
*(_QWORD *)(v3 + 740) = 0;
*(_DWORD *)(v3 + 560) = -1;
*(_QWORD *)(v3 + 552) = -1;
*(_DWORD *)(v3 + 548) = 0;
*(_QWORD *)(v3 + 748) = 0xFFFFFFFF00000000LL;
*(_DWORD *)(v3 + 756) = 1065353216;
*(_BYTE *)(v3 + 736) = 1;
sub_1006167F8(v3 + 568, *(_QWORD *)(v3 + 168), 1.0);
v8 = 0;
LABEL_16:
sub_1005DBE08(v2);
return v8;
}