//
// SetupCameraOffsetTrigger::updateMoveCommandPosX from 0x100742ea0 to 0x100742f87 (231 bytes)
//
// 2 xrefs:
// > SetupCameraOffsetTrigger::sliderXChanged @ 0x10074230a
// > SetupCameraOffsetTrigger::textChanged @ 0x10074326c
//
// 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:36:29 +0000
//
_QWORD *__fastcall SetupCameraOffsetTrigger::updateMoveCommandPosX(__int64 a1)
{
__int64 v1; // rsi
_QWORD *v2; // r14
_QWORD *result; // rax
unsigned int v4; // r14d
_QWORD *v5; // r13
__int64 v6; // [rsp+8h] [rbp-38h] BYREF
_QWORD v7[6]; // [rsp+10h] [rbp-30h] BYREF
v1 = *(_QWORD *)(a1 + 680);
if ( v1 )
{
sub_1002782D0(v7, (_QWORD *)(v1 + 1488));
v2 = (_QWORD *)(*(_QWORD *)(a1 + 680) + 1488LL);
sub_100278250((float *)&v6, (float)*(int *)(a1 + 1104), *((float *)v7 + 1));
return sub_100278300(v2, &v6);
}
else
{
result = (_QWORD *)sub_1007FEF90(*(_QWORD *)(a1 + 688));
if ( (_DWORD)result )
{
v4 = 0;
do
{
v5 = (_QWORD *)(sub_1007FEFE0(*(_QWORD *)(a1 + 688), v4) + 1488);
sub_1002782D0(v7, v5);
sub_100278250((float *)&v6, (float)*(int *)(a1 + 1104), *((float *)v7 + 1));
sub_100278300(v5, &v6);
++v4;
result = (_QWORD *)sub_1007FEF90(*(_QWORD *)(a1 + 688));
}
while ( v4 < (unsigned int)result );
}
}
return result;
}