//
// sub_10044270C from 0x10044270c to 0x100442768 (92 bytes)
//
// 13 xrefs:
// > sub_100448DD0 @ 0x100448dfc
// > sub_10050D610 @ 0x10050d664
// > sub_10050DB44 @ 0x10050dd40
// > sub_10050DB44 @ 0x10050de44
// > sub_10050DB44 @ 0x10050df3c
// > sub_10050DB44 @ 0x10050df84
// > sub_10050DB44 @ 0x10050dfb8
// > sub_10050DB44 @ 0x10050e058
// > sub_10050DB44 @ 0x10050e088
// > sub_10050DB44 @ 0x10050e0c4
// > sub_10050DB44 @ 0x10050e224
// > sub_10050E9E4 @ 0x10050ea00
// > sub_10050EE2C @ 0x10050ef28
//
// 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_10044270C(__int64 a1, int a2, _QWORD *a3)
{
__int64 result; // x0
if ( a2 )
{
if ( *(_BYTE *)(a1 + 8) )
goto LABEL_3;
return 67;
}
a2 = *(_DWORD *)(a1 + 70460);
if ( !*(_BYTE *)(a1 + 8) )
return 67;
LABEL_3:
result = 31;
if ( a3 )
{
if ( (unsigned int)(a2 - 1) <= 7 )
{
result = 0;
*a3 = a1 + 192LL * (unsigned int)(a2 - 1) + 71136;
}
}
return result;
}