//
// sub_100754934 from 0x100754934 to 0x100754abc (392 bytes)
//
// 3 xrefs:
// > sub_1001FA29C @ 0x1001fa2e0
// > sub_1001FA29C @ 0x1001fa350
// > -[CCDirectorCaller startMainLoop] @ 0x1002af700
//
// 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:13:32 +0000
//
__int64 __fastcall sub_100754934(int a1, int a2, int a3, int a4)
{
int v5; // w19
int v6; // w21
int v7; // w20
int v8; // w22
bool v9; // cc
int v10; // w19
int v11; // w21
int v12; // w20
_DWORD v13[2]; // [xsp+0h] [xbp-40h] BYREF
if ( qword_100A0F7F8 == -1 )
{
if ( qword_100A0F800 )
{
LABEL_3:
v13[0] = a1;
v13[1] = (a2 << 16) | ((unsigned __int8)a3 << 8) | (unsigned __int8)a4;
return _availability_version_check(1, v13);
}
}
else
{
v5 = a4;
v6 = a3;
v7 = a2;
v8 = a1;
sub_100755C98();
a1 = v8;
a2 = v7;
a3 = v6;
a4 = v5;
if ( qword_100A0F800 )
goto LABEL_3;
}
if ( qword_100A0F7F0 != -1 )
{
v10 = a4;
v11 = a3;
v12 = a2;
sub_100755CAC();
a3 = v11;
a4 = v10;
v9 = dword_100A0F7E0 < v12;
if ( dword_100A0F7E0 > v12 )
return 1;
LABEL_7:
if ( !v9 )
{
if ( dword_100A0F7E4 > a3 )
return 1;
if ( dword_100A0F7E4 >= a3 )
return dword_100A0F7E8 >= a4;
}
return 0;
}
v9 = dword_100A0F7E0 < a2;
if ( dword_100A0F7E0 <= a2 )
goto LABEL_7;
return 1;
}