//
// cocos2d::extension::CCControlStepper::initWithMinusSpriteAndPlusSprite from 0x7ad4d8 to 0x7ad7ec (788 bytes)
//
// 1 xrefs:
// > cocos2d::extension::CCControlStepper::create @ 0x7ad826
//
// 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::initWithMinusSpriteAndPlusSprite(
cocos2d::CCObject **this,
cocos2d::CCSprite *a2,
cocos2d::CCSprite *a3)
{
int v6; // r9
cocos2d::CCObject *v7; // r3
cocos2d::CCObject *v8; // r0
int v9; // r10
void (__fastcall *v10)(int, _BYTE *); // r11
float v11; // s17
int v12; // r0
float v13; // r3
cocos2d::CCObject *v14; // r0
cocos2d::CCObject *v15; // r10
cocos2d::CCObject *v16; // r0
int v17; // r0
void (__fastcall *v18)(int, _BYTE *); // r2
int v19; // r10
void (__fastcall *v20)(int, _BYTE *); // r11
float v21; // s17
int v22; // r0
cocos2d::CCObject *v23; // r0
int v24; // r10
void (__fastcall *v25)(int, _BYTE *); // r11
float v26; // s17
float v27; // s15
int v28; // r0
float v29; // r3
cocos2d::CCObject *v30; // r0
cocos2d::CCObject *v31; // r6
cocos2d::CCObject *v32; // r0
int v33; // r0
void (__fastcall *v34)(int, _BYTE *); // r2
int v35; // r6
void (__fastcall *v36)(int, _BYTE *); // r7
float v37; // s17
int v38; // r0
void (__fastcall *v39)(cocos2d::CCObject **, _BYTE *); // r6
float v40; // s16
int v41; // r0
char v43[12]; // [sp+4h] [bp-38h] BYREF
float v44; // [sp+10h] [bp-2Ch]
_BYTE v45[16]; // [sp+14h] [bp-28h] BYREF
_BYTE v46[16]; // [sp+24h] [bp-18h] BYREF
v6 = cocos2d::extension::CCControl::init((cocos2d::extension::CCControl *)this);
if ( v6 )
{
(*((void (__fastcall **)(cocos2d::CCObject **, int))*this + 125))(this, 1);
*((_BYTE *)this + 385) = 1;
*((_BYTE *)this + 384) = 1;
*((_QWORD *)this + 49) = 0;
*((_QWORD *)this + 47) = 0;
*((_QWORD *)this + 51) = 0x3FF0000000000000LL;
v7 = *this;
*((_QWORD *)this + 50) = 0x4059000000000000LL;
*((_BYTE *)this + 386) = 0;
(*((void (__fastcall **)(cocos2d::CCObject **))v7 + 55))(this);
if ( *(this + 89) != a2 )
{
if ( a2 )
cocos2d::CCObject::retain(a2);
v8 = *(this + 89);
if ( v8 )
cocos2d::CCObject::release(v8);
*(this + 89) = a2;
}
v9 = (int)*(this + 89);
v10 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v9 + 92);
v11 = *(float *)(*(int (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)a2 + 164))(a2);
v12 = (*(int (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)a2 + 164))(a2);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v46, v11 * 0.5, *(float *)(v12 + 4) * 0.5);
v10(v9, v46);
(*((void (__fastcall **)(cocos2d::CCObject **, _DWORD))*this + 57))(this, *(this + 89));
v14 = (cocos2d::CCObject *)cocos2d::CCLabelTTF::create(
(cocos2d::CCLabelTTF *)"-",
"CourierNewPSMT",
(const char *)0x42200000,
v13);
v15 = v14;
if ( *(this + 91) != v14 )
{
if ( v14 )
cocos2d::CCObject::retain(v14);
v16 = *(this + 91);
if ( v16 )
cocos2d::CCObject::release(v16);
*(this + 91) = v15;
}
v17 = (int)*(this + 91);
v18 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v17 + 480);
memset(v46, 147, 3);
v18(v17, v46);
v19 = (int)*(this + 91);
v20 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v19 + 92);
v21 = *(float *)(*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 89) + 164))(*(this + 89));
v22 = (*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 89) + 164))(*(this + 89));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v46, v21 * 0.5, *(float *)(v22 + 4) * 0.5);
v20(v19, v46);
(*(void (__fastcall **)(_DWORD, _DWORD))(*(_DWORD *)*(this + 89) + 228))(*(this + 89), *(this + 91));
if ( *(this + 90) != a3 )
{
if ( a3 )
cocos2d::CCObject::retain(a3);
v23 = *(this + 90);
if ( v23 )
cocos2d::CCObject::release(v23);
*(this + 90) = a3;
}
v24 = (int)*(this + 90);
v25 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v24 + 92);
v26 = *(float *)(*(int (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)a2 + 164))(a2);
v27 = *(float *)(*(int (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)a3 + 164))(a3);
v28 = (*(int (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)a2 + 164))(a2);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v46, v26 + (float)(v27 * 0.5), *(float *)(v28 + 4) * 0.5);
v25(v24, v46);
(*((void (__fastcall **)(cocos2d::CCObject **, _DWORD))*this + 57))(this, *(this + 90));
v30 = (cocos2d::CCObject *)cocos2d::CCLabelTTF::create(
(cocos2d::CCLabelTTF *)"+",
"CourierNewPSMT",
(const char *)0x42200000,
v29);
v31 = v30;
if ( *(this + 92) != v30 )
{
if ( v30 )
cocos2d::CCObject::retain(v30);
v32 = *(this + 92);
if ( v32 )
cocos2d::CCObject::release(v32);
*(this + 92) = v31;
}
v33 = (int)*(this + 92);
v34 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v33 + 480);
memset(v46, 55, 3);
v34(v33, v46);
v35 = (int)*(this + 92);
v36 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v35 + 92);
v37 = *(float *)(*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 90) + 164))(*(this + 90));
v38 = (*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 90) + 164))(*(this + 90));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v46, v37 * 0.5, *(float *)(v38 + 4) * 0.5);
v36(v35, v46);
(*(void (__fastcall **)(_DWORD, _DWORD))(*(_DWORD *)*(this + 90) + 228))(*(this + 90), *(this + 92));
cocos2d::CCNode::boundingBox((cocos2d::CCNode *)v45);
cocos2d::CCNode::boundingBox((cocos2d::CCNode *)v46);
cocos2d::extension::CCControlUtils::CCRectUnion(
(cocos2d::extension::CCControlUtils *)v43,
(const cocos2d::CCRect *)v45,
(const cocos2d::CCRect *)v46);
v39 = *((void (__fastcall **)(cocos2d::CCObject **, _BYTE *))*this + 40);
v40 = *(float *)(*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 89) + 164))(*(this + 89));
v41 = (*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 90) + 164))(*(this + 90));
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v46, v40 + *(float *)(v41 + 4), v44);
v39(this, v46);
}
return v6;
}