//
// cocos2d::extension::CCControlStepper::setValueWithSendingEvent from 0x10038d8d0 to 0x10038d9d4 (260 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b2f6b0
//
// 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:29:12 +0000
//
__int64 __fastcall cocos2d::extension::CCControlStepper::setValueWithSendingEvent(__int64 a1, char a2, double a3)
{
double v4; // xmm2_8
__int64 result; // rax
__int64 v6; // rdi
int v7; // r15d
int v8; // eax
__int64 v9; // rdi
__int16 v10; // [rsp+8h] [rbp-28h] BYREF
char v11; // [rsp+Ah] [rbp-26h]
__int16 v12; // [rsp+Ch] [rbp-24h] BYREF
char v13; // [rsp+Eh] [rbp-22h]
v4 = *(double *)(a1 + 520);
if ( v4 <= a3 )
{
result = *(unsigned __int8 *)(a1 + 514);
if ( a3 > *(double *)(a1 + 528) )
{
a3 = *(double *)(a1 + 520);
if ( (result & 1) == 0 )
a3 = *(double *)(a1 + 528);
}
}
else
{
result = *(unsigned __int8 *)(a1 + 514);
if ( (_BYTE)result == 1 )
a3 = *(double *)(a1 + 528);
else
a3 = *(double *)(a1 + 520);
}
*(double *)(a1 + 504) = a3;
if ( (result & 1) == 0 )
{
v6 = *(_QWORD *)(a1 + 488);
v7 = -7105645;
v8 = -7105645;
if ( a3 != v4 )
v8 = 3618615;
v10 = v8;
v11 = BYTE2(v8);
(*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v6 + 960LL))(v6, &v10);
v9 = *(_QWORD *)(a1 + 496);
if ( a3 != *(double *)(a1 + 528) )
v7 = 3618615;
v12 = v7;
v13 = BYTE2(v7);
result = (*(__int64 (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v9 + 960LL))(v9, &v12);
}
if ( a2 )
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1320LL))(a1, 256);
return result;
}