//
// sub_100643F70 from 0x100643f70 to 0x100643fdf (111 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
//
char __fastcall sub_100643F70(__int64 a1, const char *a2)
{
size_t v3; // r12
void *v4; // rax
void *v5; // r14
__int64 v6; // rdi
if ( *(_DWORD *)a1 != 3 )
return 0;
if ( !a2 )
sub_1007CD6E0();
v3 = strlen(a2) + 1;
v4 = (void *)off_10099E670();
if ( !v4 )
return 0;
v5 = v4;
memcpy(v4, a2, v3);
v6 = *(_QWORD *)(a1 + 16);
if ( v6 )
off_10099E668(v6);
*(_QWORD *)(a1 + 16) = v5;
return 1;
}