//
// sub_14044C0D0 from 0x14044c0d0 to 0x14044c280 (432 bytes)
//
// 3 xrefs:
// > LevelControlConfig::decode @ 0x14044afea
// > sub_14044BD90 @ 0x14044be09
// > ??> @ 0x140927494
//
// 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:32:25 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall sub_14044C0D0(__int64 *a1, __int64 a2, __int64 a3)
{
__int64 v6; // r8
__int64 v7; // rsi
__int64 v8; // rdx
unsigned __int64 v9; // rbp
unsigned __int64 v10; // rdx
unsigned __int64 v11; // rcx
unsigned __int64 v12; // rbx
_QWORD *v13; // rdi
__int64 v14; // rsi
__int64 v15; // rdx
__int64 v16; // rcx
v6 = *a1;
v7 = (a2 - *a1) / 60;
v8 = (a1[1] - *a1) / 60;
if ( v8 == 0x444444444444444LL )
sub_14005A170();
v9 = v8 + 1;
v10 = (a1[2] - v6) / 60;
v11 = v10 >> 1;
if ( v10 <= 0x444444444444444LL - (v10 >> 1) )
{
v12 = v9;
if ( v11 + v10 >= v9 )
v12 = v11 + v10;
if ( v12 > 0x444444444444444LL )
sub_140009CF0(v11, v10, v6);
}
else
{
v12 = 0x444444444444444LL;
}
v13 = sub_14003D460(60 * v12);
v14 = (__int64)v13 + 60 * v7;
sub_14044BA50(v14, a3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v14 + 40), (const struct cocos2d::CCPoint *)(a3 + 40));
*(_DWORD *)(v14 + 48) = *(_DWORD *)(a3 + 48);
*(_DWORD *)(v14 + 52) = *(_DWORD *)(a3 + 52);
*(_BYTE *)(v14 + 56) = *(_BYTE *)(a3 + 56);
*(_BYTE *)(v14 + 57) = *(_BYTE *)(a3 + 57);
v15 = a1[1];
v16 = *a1;
if ( a2 == v15 )
{
sub_14044C280(v16, v15, v13);
}
else
{
sub_14044C280(v16, a2, v13);
sub_14044C280(a2, a1[1], v14 + 60);
}
sub_14044C380(a1, v13, v9, v12, a1, v13, v12);
return v14;
}