//
// sub_1004B24C8 from 0x1004b24c8 to 0x1004b25a8 (224 bytes)
//
// 0 xrefs:
//
// 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_1004B24C8(__int64 a1, void *__s2, size_t __n)
{
int v3; // w20
int *v6; // x23
size_t v7; // x22
void *v8; // x0
v3 = __n;
v6 = *(int **)(a1 + 40);
v7 = (unsigned int)__n;
if ( *(_DWORD *)(a1 + 56) == (_DWORD)__n && !memcmp(*(const void **)(a1 + 40), __s2, (unsigned int)__n) )
goto LABEL_7;
if ( v6 )
{
sub_1004B1970(*((_QWORD *)off_1008524C8 + 54), v6);
*(_QWORD *)(a1 + 40) = 0;
}
v8 = sub_1004B11FC(
*((__int64 **)off_1008524C8 + 54),
v3,
(char)"/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_metadata.cpp",
129,
0,
0);
*(_QWORD *)(a1 + 40) = v8;
if ( v8 )
{
memcpy(v8, __s2, v7);
*(_DWORD *)(a1 + 56) = v3;
LABEL_7:
*(_BYTE *)(a1 + 60) = 1;
return 0;
}
return 38;
}