//
// sub_1005742CC from 0x1005742cc to 0x1005743f8 (300 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009aaa58
//
// 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_1005742CC(__int64 a1, int32x2_t *a2)
{
__int64 result; // x0
__int64 v5; // x20
int v6; // w9
__int32 v7; // w8
int v8; // w10
__int64 v9; // x9
__int64 v10; // x8
switch ( a2[1].i8[1] )
{
case 0:
result = sub_1005743F8(a1, a2);
if ( !(_DWORD)result )
return 0;
return result;
case 1:
v5 = *(_QWORD *)(a1 + 56);
sub_1005DBDD8(v5);
if ( !*(_DWORD *)(a1 + 116) )
goto LABEL_19;
v6 = *(_DWORD *)(a1 + 88);
if ( !v6 )
goto LABEL_19;
v7 = a2[1].i32[1];
v8 = *(_DWORD *)(*(_QWORD *)(a1 + 80) + 4LL * (v7 & (v6 - 1)));
if ( v8 == -1 )
goto LABEL_19;
v9 = *(_QWORD *)(a1 + 96);
break;
case 2:
result = sub_1005746A4(a1, a2);
if ( !(_DWORD)result )
return 0;
return result;
case 3:
result = sub_100574888(a1, a2);
if ( !(_DWORD)result )
return 0;
return result;
case 4:
result = sub_100574980(a1, a2);
if ( !(_DWORD)result )
return 0;
return result;
default:
return 0;
}
while ( *(_DWORD *)(v9 + 16LL * v8) != v7 )
{
v8 = *(_DWORD *)(v9 + 16LL * v8 + 4);
if ( v8 == -1 )
goto LABEL_19;
}
v10 = *(_QWORD *)(v9 + 16LL * v8 + 8);
if ( v10 )
{
*(int32x2_t *)(v10 + 20) = vrev64_s32(a2[2]);
sub_1005DBF3C(*(_QWORD *)(v10 + 8));
}
LABEL_19:
sub_1005DBE08(v5);
return 0;
}