//
// sub_100586ABC from 0x100586abc to 0x100586b2c (112 bytes)
//
// 1 xrefs:
// > sub_1005834D0 @ 0x1005838a8
//
// 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_100586ABC(void *a1, int a2, int a3, char *__s)
{
__int64 v7; // x21
int v8; // w0
__int64 v9; // x0
if ( a3 )
return 0;
v8 = strlen(__s);
v9 = sub_10057BBB0(v8);
v7 = v9;
if ( (int)v9 >= a2 )
return 0;
memcpy(a1, __s, (int)v9 + 1);
return v7;
}