//
// sub_1006349B4 from 0x1006349b4 to 0x100634adc (296 bytes)
//
// 1 xrefs:
// > sub_100634B7C @ 0x100634cc4
//
// 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:10:30 +0000
//
bool __fastcall sub_1006349B4(__int64 a1, int a2)
{
int v5; // w8
unsigned int v6; // w21
unsigned int v7; // w1
int v8; // w22
unsigned int v9; // w1
float v10; // s0
int v11; // [xsp+Ch] [xbp-24h] BYREF
if ( *(float *)(a1 + 696) != 0.0 )
return 1;
v5 = *(_DWORD *)(a1 + 632);
if ( v5 == 2 )
{
v6 = sub_100562C38(*(_DWORD *)(a1 + 708), *(_DWORD *)(a1 + 636));
v7 = *(_DWORD *)(a1 + 636);
v11 = 0;
sub_1005688D0(*(_QWORD *)(a1 + 168), v7, &v11);
if ( v11 >= 1 )
{
v8 = 0;
while ( ((v6 >> v8) & 1) != 0 )
{
++v8;
v9 = *(_DWORD *)(a1 + 636);
v11 = 0;
sub_1005688D0(*(_QWORD *)(a1 + 168), v9, &v11);
if ( v8 >= v11 )
goto LABEL_13;
}
return 1;
}
LABEL_13:
if ( (!a2 || *(_DWORD *)(*(_QWORD *)(a1 + 168) + 70460LL) == a2)
&& *(float *)(a1 + 648) == 360.0
&& *(float *)(a1 + 652) == 0.0 )
{
v10 = *(float *)(a1 + 656);
return v10 != 0.0;
}
return 1;
}
if ( v5 == 1 )
{
if ( a2 == 3 )
{
v10 = *(float *)(a1 + 640);
return v10 != 0.0;
}
return 1;
}
return v5 || a2 != 2;
}