//
// cocos2d::extension::CCControlStepper::setValueWithSendingEvent from 0x18000b440 to 0x18000b575 (309 bytes)
//
// 5 xrefs:
// > ??> @ 0x180028b10
// > ??> @ 0x1800303e8
// > ??> @ 0x1800303f8
// > ??> @ 0x180032408
// > ??> @ 0x18004bb88
//
// 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:15:37 +0000
//
void __fastcall cocos2d::extension::CCControlStepper::setValueWithSendingEvent(
cocos2d::extension::CCControlStepper *this,
double a2,
char a3)
{
double v3; // xmm0_8
double v6; // xmm6_8
double *v7; // rdi
bool v8; // zf
__int16 *v9; // rdx
__int16 *v10; // rdx
_BYTE v11[3]; // [rsp+40h] [rbp+8h] BYREF
__int16 v12; // [rsp+50h] [rbp+18h] BYREF
char v13; // [rsp+52h] [rbp+1Ah]
v3 = *((double *)this + 65);
v6 = a2;
if ( v3 <= a2 )
{
v7 = (double *)((char *)this + 528);
if ( a2 > *((double *)this + 66) )
{
if ( *((_BYTE *)this + 514) )
v6 = *((double *)this + 65);
else
v6 = *((double *)this + 66);
}
}
else
{
if ( *((_BYTE *)this + 514) )
v6 = *((double *)this + 66);
else
v6 = *((double *)this + 65);
v7 = (double *)((char *)this + 528);
}
v8 = *((_BYTE *)this + 514) == 0;
*((double *)this + 63) = v6;
if ( v8 )
{
if ( v6 == v3 )
{
v12 = -27757;
v9 = &v12;
v13 = -109;
}
else
{
memset(v11, 55, sizeof(v11));
v9 = (__int16 *)v11;
}
(**(void (__fastcall ***)(__int64, __int16 *))(*((_QWORD *)this + 61) + 320LL))(*((_QWORD *)this + 61) + 320LL, v9);
if ( v6 == *v7 )
{
v12 = -27757;
v10 = &v12;
v13 = -109;
}
else
{
memset(v11, 55, sizeof(v11));
v10 = (__int16 *)v11;
}
(**(void (__fastcall ***)(__int64, __int16 *))(*((_QWORD *)this + 62) + 320LL))(*((_QWORD *)this + 62) + 320LL, v10);
}
if ( a3 )
(*(void (__fastcall **)(cocos2d::extension::CCControlStepper *, __int64))(*(_QWORD *)this + 1088LL))(this, 256);
}