//
// cocos2d::extension::CCControlStepper::setWraps from 0xd159c4 to 0xd15a80 (188 bytes)
//
// 2 xrefs:
// > ??> @ 0x5f518
// > ??> @ 0x150e820
//
// This function is hookable on this platform (idp: arm, 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 13:07:05 +0000
//
__int64 __fastcall cocos2d::extension::CCControlStepper::setWraps(cocos2d::extension::CCControlStepper *this, char a2)
{
__int64 v3; // x0
void (__fastcall *v4)(__int64, _BYTE *); // x2
__int64 v5; // x0
void (__fastcall *v6)(__int64, _BYTE *); // x2
_BYTE v8[8]; // [xsp+30h] [xbp+30h] BYREF
*((_BYTE *)this + 514) = a2;
if ( a2 )
{
v3 = *((_QWORD *)this + 61);
v4 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v3 + 960LL);
memset(v8, 55, 3);
v4(v3, v8);
v5 = *((_QWORD *)this + 62);
v6 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v5 + 960LL);
memset(v8, 55, 3);
v6(v5, v8);
}
(*(void (__fastcall **)(cocos2d::extension::CCControlStepper *, double))(*(_QWORD *)this + 1384LL))(
this,
*((double *)this + 63));
return _stack_chk_guard;
}