//
// sub_623FC from 0x623fc to 0x62484 (136 bytes)
//
// 2 xrefs:
// > sub_6202C @ 0x622c8
// > sub_6202C @ 0x62334
//
// 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_623FC(__int64 a1, _DWORD *a2)
{
_DWORD *v2; // x19
__int64 v3; // x23
__int64 v4; // x0
long double v5; // q0
__int64 v6; // x0
__int64 v7; // d1
__int128 v8; // q0
__int64 v9; // x0
__int64 **v10; // x1
__int64 v11; // x2
unsigned int v12; // w3
__int64 result; // x0
if ( !a2 )
return 31;
if ( *a2 != 1 )
return 56;
v4 = sub_63448();
if ( !sub_6348C(v4) )
return 38;
v5 = sub_633FC();
v6 = sub_63504(v5, COERCE_DOUBLE(0x17800000000LL));
*(_QWORD *)(v6 + 128) = v7;
*(_OWORD *)(v6 + 112) = v8;
v9 = sub_63598();
sub_59C90(v9, v10, v11, v12);
result = 0;
if ( v2 )
*v2 = *(_DWORD *)(v3 + 144);
return result;
}