//
// sub_1005E26D8 from 0x1005e26d8 to 0x1005e27cc (244 bytes)
//
// 2 xrefs:
// > sub_100565158 @ 0x100565244
// > sub_100565158 @ 0x1005654b8
//
// 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:09:41 +0000
//
__int64 __fastcall sub_1005E26D8(__int64 a1, __int64 a2, _QWORD *a3)
{
__int64 v3; // x8
int v7; // w1
_DWORD *v8; // x0
__int128 v9; // q1
__int128 v10; // q0
__int128 v11; // q1
__int128 v12; // q3
__int128 v13; // q0
__int128 v14; // q1
__int128 v15; // q3
__int128 v16; // q0
__int128 v17; // q1
__int128 v18; // q3
v3 = 31;
if ( a2 && a3 )
{
if ( *(int *)(a2 + 100) <= 376 )
v7 = 376;
else
v7 = *(_DWORD *)(a2 + 100);
v8 = sub_1005D7660(
*((__int64 **)off_1009DA5E8 + 54),
v7,
(char)"/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_pluginfactory.cpp",
1514,
0);
if ( v8 )
{
v8[10] = 0;
*((_QWORD *)v8 + 41) = 0;
*((_QWORD *)v8 + 45) = 0;
*((_OWORD *)v8 + 18) = 0u;
*((_OWORD *)v8 + 19) = 0u;
v9 = *(_OWORD *)(a2 + 16);
*((_OWORD *)v8 + 3) = *(_OWORD *)a2;
*((_OWORD *)v8 + 4) = v9;
v10 = *(_OWORD *)(a2 + 32);
v11 = *(_OWORD *)(a2 + 48);
v12 = *(_OWORD *)(a2 + 80);
*((_OWORD *)v8 + 7) = *(_OWORD *)(a2 + 64);
*((_OWORD *)v8 + 8) = v12;
*((_OWORD *)v8 + 5) = v10;
*((_OWORD *)v8 + 6) = v11;
v13 = *(_OWORD *)(a2 + 96);
v14 = *(_OWORD *)(a2 + 112);
v15 = *(_OWORD *)(a2 + 144);
*((_OWORD *)v8 + 11) = *(_OWORD *)(a2 + 128);
*((_OWORD *)v8 + 12) = v15;
*((_OWORD *)v8 + 9) = v13;
*((_OWORD *)v8 + 10) = v14;
v16 = *(_OWORD *)(a2 + 160);
v17 = *(_OWORD *)(a2 + 176);
v18 = *(_OWORD *)(a2 + 208);
*((_OWORD *)v8 + 15) = *(_OWORD *)(a2 + 192);
*((_OWORD *)v8 + 16) = v18;
*((_OWORD *)v8 + 13) = v16;
*((_OWORD *)v8 + 14) = v17;
*a3 = v8;
if ( !*((_QWORD *)v8 + 17) )
*((_QWORD *)v8 + 17) = FMOD::Codec::defaultGetWaveFormat;
v3 = 0;
*((_QWORD *)v8 + 2) = *(_QWORD *)(a1 + 920) + 70376LL;
}
else
{
return 38;
}
}
return v3;
}