//
// sub_1003126C0 from 0x1003126c0 to 0x10031286c (428 bytes)
//
// 2 xrefs:
// > SetupMoveCommandPopup::init @ 0x10031247c
// > SetupMoveCommandPopup::valueDidChange @ 0x100312b34
//
// 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:03:13 +0000
//
__int64 __fastcall sub_1003126C0(__int64 a1)
{
_BOOL8 v2; // x20
float v3; // s0
_BOOL8 v4; // x21
__int64 v5; // x22
__int64 result; // x0
_BOOL8 v7; // x20
_BOOL8 v8; // x20
v2 = (*(float (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1464LL))(a1, 100) != 0.0;
v3 = (*(float (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1464LL))(a1, 394);
v4 = v3 != 0.0;
v5 = v3 != 0.0 || v2;
(*(void (__fastcall **)(__int64, __int64, _BOOL8))(*(_QWORD *)a1 + 1352LL))(a1, 9002, v2);
(*(void (__fastcall **)(__int64, __int64, _BOOL8))(*(_QWORD *)a1 + 1352LL))(a1, 9003, v4);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 1352LL))(a1, 9004, v5);
result = (*(__int64 (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 1352LL))(
a1,
9001,
(unsigned int)v5 ^ 1);
if ( (v5 & 1) == 0 )
{
v7 = (*(float (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1464LL))(a1, 58) != 0.0
|| (*(float (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1464LL))(a1, 141) != 0.0;
(*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 1352LL))(a1, 28, (unsigned int)v7 ^ 1);
(*(void (__fastcall **)(__int64, __int64, _BOOL8))(*(_QWORD *)a1 + 1352LL))(a1, 143, v7);
v8 = (*(float (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1464LL))(a1, 59) != 0.0
|| (*(float (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1464LL))(a1, 142) != 0.0;
(*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 1352LL))(a1, 29, (unsigned int)v8 ^ 1);
return (*(__int64 (__fastcall **)(__int64, __int64, _BOOL8))(*(_QWORD *)a1 + 1352LL))(a1, 144, v8);
}
return result;
}