//
// sub_10019B500 from 0x10019b500 to 0x10019b563 (99 bytes)
//
// 10 xrefs:
// > EffectGameObject::triggerObject @ 0x100199e7e
// > EffectGameObject::triggerObject @ 0x100199ee0
// > EffectGameObject::triggerObject @ 0x10019a37e
// > EffectGameObject::triggerObject @ 0x10019a4a5
// > EffectGameObject::triggerObject @ 0x10019a5f7
// > EffectGameObject::triggerObject @ 0x10019a74f
// > EffectGameObject::triggerObject @ 0x10019a7e9
// > EffectGameObject::triggerObject @ 0x10019a8aa
// > EffectGameObject::triggerObject @ 0x10019a954
// > EffectGameObject::triggerObject @ 0x10019ab8d
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:25:57 +0000
//
void __fastcall sub_10019B500(__int64 a1, __int64 a2)
{
const void *v2; // r14
signed __int64 v3; // r15
char *v4; // rax
char *v5; // r12
*(_OWORD *)a1 = 0;
*(_QWORD *)(a1 + 16) = 0;
v2 = *(const void **)a2;
v3 = *(_QWORD *)(a2 + 8) - *(_QWORD *)a2;
if ( v3 )
{
if ( v3 < 0 )
sub_100093980();
v4 = (char *)operator new(v3);
*(_QWORD *)a1 = v4;
*(_QWORD *)(a1 + 8) = v4;
v5 = &v4[v3];
*(_QWORD *)(a1 + 16) = &v4[v3];
memcpy(v4, v2, v3);
*(_QWORD *)(a1 + 8) = v5;
}
}