//
// sub_100449AA0 from 0x100449aa0 to 0x100449bc8 (296 bytes)
//
// 1 xrefs:
// > sub_100448DC8 @ 0x100448dcc
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_100449AA0(__int64 a1, int a2)
{
int v3; // w8
__int64 result; // x0
if ( a2 != 128 )
{
if ( a2 == 1 )
{
v3 = *(_DWORD *)(a1 + 636);
if ( v3 > *(_DWORD *)(a1 + 632) )
{
*(_DWORD *)(a1 + 632) = v3;
if ( *(float *)(a1 + 576) != *(float *)(a1 + 652)
|| *(float *)(a1 + 580) != *(float *)(a1 + 656)
|| *(float *)(a1 + 584) != *(float *)(a1 + 660)
|| *(float *)(a1 + 588) != *(float *)(a1 + 664)
|| *(_DWORD *)(a1 + 592) != *(_DWORD *)(a1 + 668)
|| *(float *)(a1 + 596) != *(float *)(a1 + 672)
|| *(float *)(a1 + 600) != *(float *)(a1 + 676)
|| *(_DWORD *)(a1 + 604) != *(_DWORD *)(a1 + 680)
|| *(float *)(a1 + 608) != *(float *)(a1 + 684)
|| *(float *)(a1 + 612) != *(float *)(a1 + 688)
|| *(float *)(a1 + 628) != *(float *)(a1 + 704) )
{
sub_100449094(a1);
*(_BYTE *)(a1 + 648) = 1;
return 0;
}
}
}
return 0;
}
if ( !*(_QWORD *)(a1 + 640) )
return 0;
result = sub_1004CF890(*(_QWORD *)(a1 + 168));
if ( !(_DWORD)result )
*(_QWORD *)(a1 + 640) = 0;
return result;
}