//
// cocos2d::extension::CCControlStepper::setValueWithSendingEvent from 0x7ad26c to 0x7ad342 (214 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:00:04 +0000
//
int __fastcall cocos2d::extension::CCControlStepper::setValueWithSendingEvent(int this, double a2, bool a3)
{
_DWORD **v4; // r4
int v6; // r3
v4 = (_DWORD **)this;
v6 = *(unsigned __int8 *)(this + 386);
if ( a2 >= *(double *)(this + 392) )
{
if ( a2 > *(double *)(this + 400) )
{
if ( *(_BYTE *)(this + 386) )
a2 = *(double *)(this + 392);
else
a2 = *(double *)(this + 400);
}
}
else if ( *(_BYTE *)(this + 386) )
{
a2 = *(double *)(this + 400);
}
else
{
a2 = *(double *)(this + 392);
}
*(double *)(this + 376) = a2;
if ( !v6 )
{
(*(void (__fastcall **)(_DWORD))(**(_DWORD **)(this + 364) + 480))(*(_DWORD *)(this + 364));
this = (*(int (__fastcall **)(_DWORD *))(*v4[92] + 480))(v4[92]);
}
if ( a3 )
return ((int (__fastcall *)(_DWORD **, int))(*v4)[165])(v4, 256);
return this;
}