//
// sub_1005E2AEC from 0x1005e2aec to 0x1005e2bf4 (264 bytes)
//
// 1 xrefs:
// > sub_100563530 @ 0x1005635e8
//
// 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_1005E2AEC(__int64 a1, __int128 *a2, __int64 *a3)
{
int v6; // w1
__int64 v7; // x0
__int64 v8; // x8
__int128 v9; // q0
__int128 v10; // q1
__int128 v11; // q3
__int128 v12; // q0
__int128 v13; // q1
__int128 v14; // q3
__int128 v15; // q0
__int128 v16; // q1
__int128 v17; // q3
__int128 v18; // q0
__int128 v19; // q1
__int128 v20; // q2
if ( *((int *)a2 + 39) <= 1048 )
v6 = 1048;
else
v6 = *((_DWORD *)a2 + 39);
v7 = (__int64)sub_1005D7660(
*((__int64 **)off_1009DA5E8 + 54),
v6,
(char)"/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_pluginfactory.cpp",
1710,
0);
if ( v7 )
{
v7 = sub_1005DC034(v7);
v8 = 0;
v9 = *a2;
v10 = a2[1];
v11 = a2[3];
*(_OWORD *)(v7 + 832) = a2[2];
*(_OWORD *)(v7 + 848) = v11;
*(_OWORD *)(v7 + 800) = v9;
*(_OWORD *)(v7 + 816) = v10;
v12 = a2[4];
v13 = a2[5];
v14 = a2[7];
*(_OWORD *)(v7 + 896) = a2[6];
*(_OWORD *)(v7 + 912) = v14;
*(_OWORD *)(v7 + 864) = v12;
*(_OWORD *)(v7 + 880) = v13;
v15 = a2[8];
v16 = a2[9];
v17 = a2[11];
*(_OWORD *)(v7 + 960) = a2[10];
*(_OWORD *)(v7 + 976) = v17;
*(_OWORD *)(v7 + 928) = v15;
*(_OWORD *)(v7 + 944) = v16;
v18 = a2[12];
v19 = a2[13];
v20 = a2[14];
*(_QWORD *)(v7 + 1040) = *((_QWORD *)a2 + 30);
*(_OWORD *)(v7 + 1008) = v19;
*(_OWORD *)(v7 + 1024) = v20;
*(_OWORD *)(v7 + 992) = v18;
*(_QWORD *)(v7 + 72) = *(_QWORD *)(a1 + 920);
*(_QWORD *)(v7 + 48) = sub_1005DE68C;
*(_QWORD *)(v7 + 56) = sub_1005DE69C;
*(_QWORD *)(v7 + 16) = sub_1005DE67C;
*(_QWORD *)(v7 + 24) = FMOD::SystemI::pluginAlloc;
*(_QWORD *)(v7 + 32) = FMOD::SystemI::pluginFree;
*(_QWORD *)(v7 + 40) = FMOD::SystemI::pluginLog;
}
else
{
v8 = 38;
}
*a3 = v7;
return v8;
}