//
// sub_4EEE8 from 0x4eee8 to 0x4ef6e (134 bytes)
//
// 2 xrefs:
// > sub_4F0BE @ 0x4f100
// > sub_4F128 @ 0x4f166
//
// 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
//
int __fastcall sub_4EEE8(int a1, void *s2, size_t n)
{
const void *v4; // r6
void *v7; // r0
v4 = *(const void **)(a1 + 24);
if ( *(_DWORD *)(a1 + 32) == n && !memcmp(v4, s2, n) )
goto LABEL_7;
if ( v4 )
{
sub_BD7AC(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), v4, "../../src/fmod_metadata.cpp", 125, 1);
*(_DWORD *)(a1 + 24) = 0;
}
v7 = (void *)sub_BD410(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), n, "../../src/fmod_metadata.cpp", 129);
*(_DWORD *)(a1 + 24) = v7;
if ( v7 )
{
qmemcpy(v7, s2, n);
*(_DWORD *)(a1 + 32) = n;
LABEL_7:
*(_BYTE *)(a1 + 36) = 1;
return 0;
}
return 38;
}