//
// sub_1005745EC from 0x1005745ec to 0x1005746a4 (184 bytes)
//
// 0 xrefs:
//
// 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:20 +0000
//
__int64 __fastcall sub_1005745EC(__int64 a1, int32x2_t *a2)
{
__int64 v4; // x19
int v5; // w9
__int32 v6; // w8
int v7; // w10
__int64 v8; // x9
__int64 v9; // x8
v4 = *(_QWORD *)(a1 + 56);
sub_1005DBDD8(v4);
if ( *(_DWORD *)(a1 + 116) )
{
v5 = *(_DWORD *)(a1 + 88);
if ( v5 )
{
v6 = a2[1].i32[1];
v7 = *(_DWORD *)(*(_QWORD *)(a1 + 80) + 4LL * (v6 & (v5 - 1)));
if ( v7 != -1 )
{
v8 = *(_QWORD *)(a1 + 96);
while ( *(_DWORD *)(v8 + 16LL * v7) != v6 )
{
v7 = *(_DWORD *)(v8 + 16LL * v7 + 4);
if ( v7 == -1 )
goto LABEL_10;
}
v9 = *(_QWORD *)(v8 + 16LL * v7 + 8);
if ( v9 )
{
*(int32x2_t *)(v9 + 20) = vrev64_s32(a2[2]);
sub_1005DBF3C(*(_QWORD *)(v9 + 8));
}
}
}
}
LABEL_10:
sub_1005DBE08(v4);
return 0;
}