//
// cocos2d::extension::CCControlStepper::create from 0x18000b2c0 to 0x18000b342 (130 bytes)
//
// 2 xrefs:
// > ??> @ 0x180032408
// > ??> @ 0x18004bb70
//
// 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
//
// Hidden C++ exception states: #wind=1
struct cocos2d::extension::CCControlStepper *__fastcall cocos2d::extension::CCControlStepper::create(
struct cocos2d::CCSprite *a1,
struct cocos2d::CCSprite *a2)
{
cocos2d::extension::CCControlStepper *v4; // rax
cocos2d::CCObject *v5; // rbx
cocos2d::extension::CCControlStepper *v7; // [rsp+40h] [rbp+18h]
v7 = (cocos2d::extension::CCControlStepper *)sub_18001F040(0x230u);
v4 = cocos2d::extension::CCControlStepper::CCControlStepper(v7);
v5 = v4;
if ( v4 )
{
if ( cocos2d::extension::CCControlStepper::initWithMinusSpriteAndPlusSprite(v4, a1, a2) )
{
cocos2d::CCObject::autorelease(v5);
return v5;
}
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v5 + 8LL))(v5, 1);
return nullptr;
}
return v5;
}