//
// sub_10013E430 from 0x10013e430 to 0x10013e4ca (154 bytes)
//
// 0 xrefs:
//
// 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_10013E430(int a1, _DWORD *a2, bool *a3, bool *a4)
{
unsigned int v5; // edi
int v6; // edx
__int64 result; // rax
*a4 = a1 / 1000000 % 10 == 1;
v5 = a1 / 10000000 - 10 * (((unsigned int)(26215 * (a1 / 10000000)) >> 31) + ((26215 * (a1 / 10000000)) >> 18));
*a3 = (_WORD)v5 == 1;
v6 = a1 - 10000000;
if ( (_WORD)v5 != 1 )
v6 = a1;
result = v6 - 1000000 * (unsigned int)*a4 - 100000000;
*a2 = result;
return result;
}