//
// sub_E2B6A8 from 0xe2b6a8 to 0xe2b71c (116 bytes)
//
// 2 xrefs:
// > sub_E2DA90 @ 0xe2e024
// > sub_E2DA90 @ 0xe2e02c
//
// 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 13:09:51 +0000
//
__int64 __fastcall sub_E2B6A8(void *a1, int a2, int a3, char *a4)
{
int v8; // w0
int v9; // w0
unsigned int v10; // w19
if ( a3 )
return 0;
v8 = strlen(a4);
v9 = sub_E21C40(v8);
v10 = v9;
if ( a2 <= v9 )
return 0;
memcpy(a1, a4, v9 + 1);
return v10;
}