//
// sub_BB54E8 from 0xbb54e8 to 0xbb555c (116 bytes)
//
// 2 xrefs:
// > sub_BB78D0 @ 0xbb7e64
// > sub_BB78D0 @ 0xbb7e6c
//
// 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_BB54E8(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_BABA88(v8);
v10 = v9;
if ( a2 <= v9 )
return 0;
memcpy(a1, a4, v9 + 1);
return v10;
}