//
// SetupInstantCountPopup::onTargetCountArrow from 0x1006bcb60 to 0x1006bcc01 (161 bytes)
//
// 2 xrefs:
// > SetupInstantCountPopup::init @ 0x1006bc638
// > SetupInstantCountPopup::init @ 0x1006bc6e8
//
// 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:35:30 +0000
//
__int64 __fastcall SetupInstantCountPopup::onTargetCountArrow(__int64 a1, __int64 a2)
{
int v3; // eax
__int64 v4; // rcx
__int64 v6; // rdi
unsigned int v7; // r14d
v3 = *(_DWORD *)(a1 + 1048) + 2 * ((*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) != 1) - 1;
*(_DWORD *)(a1 + 1048) = v3;
v4 = *(_QWORD *)(a1 + 680);
if ( v4 )
{
*(_DWORD *)(v4 + 1840) = v3;
}
else
{
v6 = *(_QWORD *)(a1 + 688);
if ( v6 && (unsigned int)sub_1007FEF90(v6) )
{
v7 = 0;
do
*(_DWORD *)(sub_1007FEFE0(*(_QWORD *)(a1 + 688), v7++) + 1840) = *(_DWORD *)(a1 + 1048);
while ( v7 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 688)) );
}
}
return SetupInstantCountPopup::updateCountTextInputLabel(a1);
}