//
// sub_100644500 from 0x100644500 to 0x10064457e (126 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_100644500(__int64 a1, const char *a2, const char *a3)
{
_DWORD *v4; // rax
_DWORD *v5; // rbx
size_t v6; // r12
void *v7; // rax
void *v8; // r15
__int64 v9; // rdi
v4 = (_DWORD *)sub_100644280(a1, a2, 3);
if ( !v4 )
return 0;
v5 = v4;
if ( *v4 != 3 )
return 0;
if ( !a3 )
sub_1007CD7A0();
v6 = strlen(a3) + 1;
v7 = (void *)off_10099E670();
if ( !v7 )
return 0;
v8 = v7;
memcpy(v7, a3, v6);
v9 = *((_QWORD *)v5 + 2);
if ( v9 )
off_10099E668(v9);
*((_QWORD *)v5 + 2) = v8;
return 1;
}