//
// sub_14018CFB0 from 0x14018cfb0 to 0x14018d059 (169 bytes)
//
// 53 xrefs:
// > sub_140189D00 @ 0x14018aa2e
// > GJBaseGameLayer::gameEventTriggered @ 0x14033ad1f
// > GJBaseGameLayer::activateEventTrigger @ 0x14033afaa
// > sub_14035B670 @ 0x14035b793
// > sub_14035D9A0 @ 0x14035db61
// > GJEffectManager::handleObjectCollision @ 0x1403668d1
// > GJEffectManager::updateSpawnTriggers @ 0x14036c6b6
// > GJEffectManager::playerButton @ 0x14036ca56
// > GJEffectManager::updateCountForItem @ 0x14036cf61
// > GJEffectManager::updateTimers @ 0x14036ddcf
// > sub_1403712F0 @ 0x140371387
// > sub_1403712F0 @ 0x140371466
// > sub_140371520 @ 0x1403716a8
// > sub_140371520 @ 0x1403717b8
// > sub_140371890 @ 0x140371a19
// > sub_140371890 @ 0x140371b29
// > sub_140375F40 @ 0x140375fb5
// > sub_1403791A0 @ 0x140379288
// > sub_1403792C0 @ 0x140379328
// > sub_140379340 @ 0x14037941f
// > sub_140379610 @ 0x140379a1d
// > sub_140379B20 @ 0x140379ca8
// > sub_140379B20 @ 0x140379db8
// > sub_140379E90 @ 0x140379fef
// > sub_140379E90 @ 0x14037a10f
// > PlayLayer::destroyPlayer @ 0x140512563
// > sub_14051DB30 @ 0x14051dbd3
// > sub_14051DB30 @ 0x14051dc25
// > sub_14051DF30 @ 0x14051e03f
// > sub_14052A7F0 @ 0x14052ab7c
// > EffectGameObject::triggerObject @ 0x140647d0f
// > EffectGameObject::triggerObject @ 0x140648218
// > EffectGameObject::triggerObject @ 0x140648452
// > EffectGameObject::triggerObject @ 0x1406486ef
// > EffectGameObject::triggerObject @ 0x140648a6f
// > EffectGameObject::triggerObject @ 0x140648b43
// > EffectGameObject::triggerObject @ 0x140648c03
// > EffectGameObject::triggerObject @ 0x140648d4f
// > EffectGameObject::triggerObject @ 0x140649014
// > EffectGameObject::triggerObject @ 0x14064981e
// > EffectGameObject::triggerObject @ 0x14064984a
// > EffectGameObject::triggerObject @ 0x140649910
// > RandTriggerGameObject::triggerObject @ 0x1406556e1
// > EventLinkTrigger::triggerObject @ 0x1406599c9
// > CountTriggerGameObject::triggerObject @ 0x14065c416
// > CountTriggerGameObject::triggerObject @ 0x14065c546
// > EndTriggerGameObject::triggerObject @ 0x14065dc4d
// > TimerTriggerGameObject::triggerObject @ 0x14066007d
// > ItemTriggerGameObject::triggerObject @ 0x140660b67
// > ??> @ 0x14089f05c
// > ??> @ 0x14089f06c
// > ??> @ 0x1409190c4
// > ??> @ 0x1409190d0
//
// 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 11:27:41 +0000
//
_QWORD *__fastcall sub_14018CFB0(_QWORD *a1, __int64 a2)
{
unsigned __int64 v4; // rbx
size_t v5; // rbx
_QWORD *v6; // rax
_QWORD *v7; // rdi
signed __int64 v8; // rbx
*a1 = 0;
a1[1] = 0;
a1[2] = 0;
v4 = (__int64)(*(_QWORD *)(a2 + 8) - *(_QWORD *)a2) >> 2;
if ( v4 )
{
if ( v4 > 0x3FFFFFFFFFFFFFFFLL )
sub_14005A170();
v5 = 4 * v4;
v6 = sub_14003D460(v5);
*a1 = v6;
v7 = v6;
a1[1] = v6;
a1[2] = (char *)v6 + v5;
v8 = *(_QWORD *)(a2 + 8) - *(_QWORD *)a2;
memmove(v6, *(const void **)a2, v8);
a1[1] = (char *)v7 + 4 * (v8 >> 2);
}
return a1;
}