//
// sub_1004B6D70 from 0x1004b6d70 to 0x1004b6e23 (179 bytes)
//
// 2 xrefs:
// > sub_1004B59F0 @ 0x1004b6345
// > sub_1004B59F0 @ 0x1004b6420
//
// 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:31:01 +0000
//
__int64 __fastcall sub_1004B6D70(__int64 a1, __int64 a2)
{
int v2; // eax
int v3; // ecx
int v4; // eax
__int64 v5; // rcx
unsigned int v6; // r14d
v2 = *(_DWORD *)(a1 + 1048) + 2 * ((*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 1) - 1;
v3 = 0;
if ( v2 > 0 )
v3 = v2;
v4 = 18;
if ( v3 < 18 )
v4 = v3;
*(_DWORD *)(a1 + 1048) = v4;
v5 = *(_QWORD *)(a1 + 680);
if ( v5 )
{
*(_DWORD *)(v5 + 1496) = v4;
}
else if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 688)) )
{
v6 = 0;
do
*(_DWORD *)(sub_1007FEFE0(*(_QWORD *)(a1 + 688), v6++) + 1496) = *(_DWORD *)(a1 + 1048);
while ( v6 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 688)) );
}
SetupCameraRotatePopup::updateEasingLabel(a1);
return sub_1004B6CC0(a1);
}