//
// sub_1403BC350 from 0x1403bc350 to 0x1403bc3ec (156 bytes)
//
// 4 xrefs:
// > PlayLayer::createCheckpoint @ 0x1403b529c
// > ??> @ 0x14069a5ac
// > ??> @ 0x14069a5bc
// > ??> @ 0x1406d72bc
//
// 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_1403BC350(__int64 a1, __int64 *a2)
{
__int64 v3; // r8
__int64 v5; // rdi
_QWORD *v6; // rsi
v3 = *(_QWORD *)(a1 + 8) - *(_QWORD *)a1;
v5 = v3 / 68;
if ( (unsigned __int64)*a2 > 0x3C3C3C3C3C3C3C3LL )
sub_140007AB0(0x3C3C3C3C3C3C3C3LL, (unsigned __int128)(v3 * (__int128)0x7878787878787879LL) >> 64, v3);
v6 = sub_14003AA10(68 * *a2);
memmove(v6, *(const void **)a1, *(_QWORD *)(a1 + 8) - *(_QWORD *)a1);
return sub_14026DA00(a1, (__int64)v6, v5, *a2);
}