//
// sub_10072E1A8 from 0x10072e1a8 to 0x10072e24c (164 bytes)
//
// 1 xrefs:
// > sub_100725BF8 @ 0x1007266bc
//
// 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:11 +0000
//
__int64 __fastcall sub_10072E1A8(__int64 a1, char *__s, unsigned __int64 a3, int a4)
{
size_t v5; // x22
v5 = a3;
if ( !__s )
return 4294967294LL;
if ( a3 )
{
if ( memchr(__s, 0, a3 - (a3 > 1)) )
return 4294967294LL;
}
else
{
v5 = strlen(__s);
}
if ( v5 >= 2 && !__s[v5 - 1] )
--v5;
return sub_10072DD94(a1, __s, v5, a4, 1, nullptr);
}