//
// cocos2d::extension::CCControlStepper::setWraps from 0x10038d7b0 to 0x10038d81b (107 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b2f680
//
// 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::setWraps(__int64 a1, int a2)
{
__int64 v2; // rax
__int64 v4; // rdi
__int64 v5; // rdi
_QWORD v7[2]; // [rsp+0h] [rbp-10h] BYREF
v7[0] = v2;
*(_BYTE *)(a1 + 514) = a2;
if ( a2 )
{
v4 = *(_QWORD *)(a1 + 488);
memset(v7, 55, 3);
(*(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v4 + 960LL))(v4, v7);
v5 = *(_QWORD *)(a1 + 496);
memset((char *)v7 + 4, 55, 3);
(*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v5 + 960LL))(v5, (char *)v7 + 4);
}
return (*(__int64 (__fastcall **)(__int64, double))(*(_QWORD *)a1 + 1384LL))(a1, *(double *)(a1 + 504));
}