//
// sub_1003A71E0 from 0x1003a71e0 to 0x1003a7268 (136 bytes)
//
// 2 xrefs:
// > SecretLayer2::init @ 0x1003a6944
// > SecretLayer2::onSubmit @ 0x1003a773c
//
// 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:03:49 +0000
//
__int64 __fastcall sub_1003A71E0(__int64 a1)
{
if ( *(_DWORD *)(a1 + 440) )
return sub_1003AA31C(a1);
if ( vcvts_n_f32_s32(rand(), 0x1Fu) > (float)((float)((float)*(int *)(a1 + 448) * -0.05) + 1.0) )
sub_1003A9FD4(a1);
if ( *(_DWORD *)(a1 + 440) )
return sub_1003AA31C(a1);
else
return SecretLayer2::getBasicMessage(a1);
}