// // cocos2d::extension::CCControlStepper::initWithMinusSpriteAndPlusSprite from 0xd15e68 to 0xd16308 (1184 bytes) // // 2 xrefs: // > cocos2d::extension::CCControlStepper::create @ 0xd1634c // > @ 0x7c2d0 // // 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::initWithMinusSpriteAndPlusSprite( cocos2d::CCNode **this, cocos2d::CCSprite *a2, cocos2d::CCSprite *a3) { unsigned __int8 v6; // w0 unsigned int v7; // w24 cocos2d::CCNode *v9; // x2 cocos2d::CCObject *v10; // x25 cocos2d::CCSprite *v11; // x26 void (__fastcall *v12)(cocos2d::CCObject *, __int64 *); // x28 __int64 v13; // x0 const char *v14; // x2 cocos2d::CCObject *v15; // x0 cocos2d::CCObject *v16; // x25 cocos2d::CCObject *v17; // x1 cocos2d::CCObject *v18; // x28 void (__fastcall *v19)(cocos2d::CCObject *, __int64 *); // x3 __int64 v20; // x25 void (__fastcall *v21)(__int64, __int64 *); // x28 __int64 v22; // x0 __int64 v23; // x0 cocos2d::CCSprite *v24; // x25 cocos2d::CCObject *v25; // x0 void (__fastcall *v26)(cocos2d::CCSprite *, __int64 *); // x28 float v27; // s10 __int64 v28; // x0 const char *v29; // x2 cocos2d::CCObject *v30; // x0 cocos2d::CCObject *v31; // x22 cocos2d::CCObject *v32; // x1 cocos2d::CCObject *v33; // x23 void (__fastcall *v34)(cocos2d::CCObject *, __int64 *); // x3 __int64 v35; // x23 void (__fastcall *v36)(__int64, __int64 *); // x25 __int64 v37; // x0 void (__fastcall *v38)(cocos2d::CCNode **, __int64 *); // x22 float v39; // s8 __int64 v40; // x0 float v41; // [xsp+80h] [xbp+80h] float v42; // [xsp+80h] [xbp+80h] float v43; // [xsp+80h] [xbp+80h] float v44; // [xsp+80h] [xbp+80h] _BYTE v45[12]; // [xsp+98h] [xbp+98h] BYREF float v46; // [xsp+A4h] [xbp+A4h] __int64 v47[2]; // [xsp+A8h] [xbp+A8h] BYREF __int64 v48[2]; // [xsp+B8h] [xbp+B8h] BYREF v6 = cocos2d::extension::CCControl::init((cocos2d::extension::CCControl *)this); v7 = v6; if ( v6 ) { (*((void (__fastcall **)(cocos2d::CCNode **, __int64))*this + 125))(this, 1); *((_BYTE *)this + 514) = 0; v9 = *this; *((_BYTE *)this + 513) = 1; *((_BYTE *)this + 512) = 1; *(this + 65) = nullptr; *(this + 63) = nullptr; *(this + 66) = (cocos2d::CCNode *)0x4059000000000000LL; *((double *)this + 67) = 1.0; (*((void (__fastcall **)(cocos2d::CCNode **, _QWORD))v9 + 55))(this, 0); v10 = *(this + 59); v11 = v10; if ( v10 != a2 ) { v11 = nullptr; if ( a2 ) { v11 = a2; cocos2d::CCObject::retain(a2); v10 = *(this + 59); } if ( v10 ) cocos2d::CCObject::release(v10); *(this + 59) = a2; v10 = a2; } v12 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v10 + 184LL); v41 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)a2 + 328LL))(v11) * 0.5; v13 = (*(__int64 (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)a2 + 328LL))(v11); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v48, v41, *(float *)(v13 + 4) * 0.5); v12(v10, v48); (*((void (__fastcall **)(cocos2d::CCNode **, _QWORD))*this + 57))(this, *(this + 59)); v15 = (cocos2d::CCObject *)cocos2d::CCLabelTTF::create( (cocos2d::CCLabelTTF *)&byte_1191DE0, "CourierNewPSMT", v14, 40.0); v16 = v15; v17 = *(this + 61); if ( v15 != v17 ) { v18 = nullptr; if ( v15 ) { cocos2d::CCObject::retain(v15); v18 = v16; v17 = *(this + 61); } if ( v17 ) cocos2d::CCObject::release(v17); *(this + 61) = v16; v15 = v18; } v19 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v16 + 960LL); LOWORD(v48[0]) = -27757; BYTE2(v48[0]) = -109; v19(v15, v48); v20 = (__int64)*(this + 61); v21 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v20 + 184LL); v42 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 59) + 328LL))(*(this + 59)) * 0.5; v22 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 59) + 328LL))(*(this + 59)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v48, v42, *(float *)(v22 + 4) * 0.5); v23 = v20; v24 = a3; v21(v23, v48); (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*(this + 59) + 456LL))(*(this + 59), *(this + 61)); v25 = *(this + 60); if ( a3 != v25 ) { v24 = nullptr; if ( a3 ) { v24 = a3; cocos2d::CCObject::retain(a3); v25 = *(this + 60); } if ( v25 ) cocos2d::CCObject::release(v25); *(this + 60) = a3; } v26 = *(void (__fastcall **)(cocos2d::CCSprite *, __int64 *))(*(_QWORD *)a3 + 184LL); v27 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)a2 + 328LL))(v11); v43 = v27 + (float)(*(float *)(*(__int64 (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)a3 + 328LL))(v24) * 0.5); v28 = (*(__int64 (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)a2 + 328LL))(v11); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v48, v43, *(float *)(v28 + 4) * 0.5); v26(a3, v48); (*((void (__fastcall **)(cocos2d::CCNode **, _QWORD))*this + 57))(this, *(this + 60)); v30 = (cocos2d::CCObject *)cocos2d::CCLabelTTF::create((cocos2d::CCLabelTTF *)"+", "CourierNewPSMT", v29, 40.0); v31 = v30; v32 = *(this + 62); if ( v30 != v32 ) { v33 = nullptr; if ( v30 ) { cocos2d::CCObject::retain(v30); v33 = v31; v32 = *(this + 62); } if ( v32 ) cocos2d::CCObject::release(v32); *(this + 62) = v31; v30 = v33; } v34 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v31 + 960LL); memset(v48, 55, 3); v34(v30, v48); v35 = (__int64)*(this + 62); v36 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v35 + 184LL); v44 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 60) + 328LL))(*(this + 60)) * 0.5; v37 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 60) + 328LL))(*(this + 60)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v48, v44, *(float *)(v37 + 4) * 0.5); v36(v35, v48); (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*(this + 60) + 456LL))(*(this + 60), *(this + 62)); cocos2d::CCNode::boundingBox(v47, *(this + 59)); cocos2d::CCNode::boundingBox(v48, *(this + 60)); cocos2d::extension::CCControlUtils::CCRectUnion( (cocos2d::CCRect *)v45, (cocos2d::extension::CCControlUtils *)v47, (const cocos2d::CCRect *)v48); v38 = *((void (__fastcall **)(cocos2d::CCNode **, __int64 *))*this + 40); v39 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 59) + 328LL))(*(this + 59)); v40 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 60) + 328LL))(*(this + 60)); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v48, v39 + *(float *)(v40 + 4), v46); v38(this, v48); } return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source