//
// sub_1403BBB40 from 0x1403bbb40 to 0x1403bbbe0 (160 bytes)
//
// 6 xrefs:
// > PlayLayer::saveDynamicSaveObjects @ 0x1403b874d
// > PlayLayer::saveDynamicSaveObjects @ 0x1403b89d6
// > ??> @ 0x14069a4ec
// > ??> @ 0x14069a4fc
// > ??> @ 0x1406d7208
// > ??> @ 0x1406d7214
//
// 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_1403BBB40(__int64 a1, __int64 *a2)
{
__int64 v3; // r8
__int64 v5; // rbx
_QWORD *v6; // rsi
v3 = *(_QWORD *)(a1 + 8) - *(_QWORD *)a1;
v5 = v3 / 48;
if ( (unsigned __int64)*a2 > 0x555555555555555LL )
sub_140007AB0(0x555555555555555LL, (unsigned __int128)(v3 * (__int128)0x2AAAAAAAAAAAAAABLL) >> 64, v3);
v6 = sub_14003AA10(48 * *a2);
memmove(v6, *(const void **)a1, *(_QWORD *)(a1 + 8) - *(_QWORD *)a1);
return sub_1402F3260(a1, (__int64)v6, v5, *a2);
}