//
// sub_1003F44F4 from 0x1003f44f4 to 0x1003f457c (136 bytes)
//
// 2 xrefs:
// > SecretLayer4::init @ 0x1003f3bdc
// > sub_1003F4794 @ 0x1003f50b4
//
// 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:04:32 +0000
//
__int64 __fastcall sub_1003F44F4(__int64 a1)
{
if ( *(_DWORD *)(a1 + 440) )
return sub_1003F5A38(a1);
if ( vcvts_n_f32_s32(rand(), 0x1Fu) > (float)((float)((float)*(int *)(a1 + 448) * -0.05) + 1.0) )
sub_1003F58FC(a1);
if ( *(_DWORD *)(a1 + 440) )
return sub_1003F5A38(a1);
else
return sub_1003F59B8(a1);
}