//
// sub_1004875BC from 0x1004875bc to 0x10048768c (208 bytes)
//
// 3 xrefs:
// > sub_1004868F0 @ 0x100487420
// > SetupRotateCommandPopup::valueDidChange @ 0x100487788
// > SetupRotateCommandPopup::valueDidChange @ 0x1004877b0
//
// This function is hookable on this platform (idp: arm, 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:05:49 +0000
//
__int64 __fastcall sub_1004875BC(__int64 a1)
{
__int64 v2; // x20
v2 = (*(float (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1464LL))(a1, 100) != 0.0
|| (*(float (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1464LL))(a1, 394) != 0.0;
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 1352LL))(a1, 9002, v2);
(*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 1352LL))(a1, 9001, (unsigned int)v2 ^ 1);
if ( (*(float (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1464LL))(a1, 397) == 0.0 )
v2 = 0;
else
v2 = (unsigned int)v2;
(*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 1352LL))(a1, 9003, (unsigned int)v2 ^ 1);
return (*(__int64 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 1352LL))(a1, 9004, v2);
}