// // cocos2d::extension::CCControlSlider::initWithSprites from 0xd0ffc4 to 0xd102dc (792 bytes) // // 2 xrefs: // > @ 0x93d60 // > @ 0x150c6f8 // // 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:02 +0000 // __int64 __fastcall cocos2d::extension::CCControlSlider::initWithSprites( cocos2d::extension::CCControlSlider *this, cocos2d::CCSprite *a2, cocos2d::CCSprite *a3, cocos2d::CCSprite *a4) { unsigned __int8 v8; // w0 unsigned int v9; // w22 cocos2d::CCObject *v11; // x0 cocos2d::CCNode *v12; // x25 cocos2d::CCObject *v13; // x0 cocos2d::CCObject *v14; // x0 cocos2d::CCNode *v15; // x24 const cocos2d::CCRect *v16; // x2 void (__fastcall *v17)(cocos2d::extension::CCControlSlider *, __int64 *); // x23 __int64 v18; // x23 void (__fastcall *v19)(__int64, __int64 *); // x24 __int64 v20; // x23 void (__fastcall *v21)(__int64, __int64 *); // x24 __int64 v22; // x0 __int64 v23; // x23 void (__fastcall *v24)(__int64, __int64 *); // x24 __int64 v25; // x23 void (__fastcall *v26)(__int64, __int64 *); // x24 __int64 v27; // x0 __int64 v28; // x23 void (__fastcall *v29)(__int64, __int64 *); // x24 __int64 v30; // x0 __int64 v31; // x1 float v32; // [xsp+50h] [xbp+50h] __int64 v33; // [xsp+68h] [xbp+68h] BYREF float v34; // [xsp+70h] [xbp+70h] float v35; // [xsp+74h] [xbp+74h] __int64 v36[2]; // [xsp+78h] [xbp+78h] BYREF __int64 v37[2]; // [xsp+88h] [xbp+88h] BYREF v8 = cocos2d::extension::CCControl::init(this); v9 = v8; if ( v8 ) { (*(void (__fastcall **)(cocos2d::extension::CCControlSlider *, _QWORD))(*(_QWORD *)this + 440LL))(this, 0); (*(void (__fastcall **)(cocos2d::extension::CCControlSlider *, __int64))(*(_QWORD *)this + 1000LL))(this, 1); v11 = *((cocos2d::CCObject **)this + 64); v12 = v11; if ( v11 != a2 ) { v12 = nullptr; if ( a2 ) { v12 = a2; cocos2d::CCObject::retain(a2); v11 = *((cocos2d::CCObject **)this + 64); } if ( v11 ) cocos2d::CCObject::release(v11); *((_QWORD *)this + 64) = a2; } v13 = *((cocos2d::CCObject **)this + 63); if ( a3 != v13 ) { if ( a3 ) { cocos2d::CCObject::retain(a3); v13 = *((cocos2d::CCObject **)this + 63); } if ( v13 ) cocos2d::CCObject::release(v13); *((_QWORD *)this + 63) = a3; } v14 = *((cocos2d::CCObject **)this + 62); v15 = a4; if ( a4 != v14 ) { v15 = nullptr; if ( a4 ) { v15 = a4; cocos2d::CCObject::retain(a4); v14 = *((cocos2d::CCObject **)this + 62); } if ( v14 ) cocos2d::CCObject::release(v14); *((_QWORD *)this + 62) = a4; } cocos2d::CCNode::boundingBox(v36, v12); cocos2d::CCNode::boundingBox(v37, v15); cocos2d::extension::CCControlUtils::CCRectUnion( &v33, (cocos2d::extension::CCControlUtils *)v36, (const cocos2d::CCRect *)v37, v16); v17 = *(void (__fastcall **)(cocos2d::extension::CCControlSlider *, __int64 *))(*(_QWORD *)this + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v37, v34, v35); v17(this, v37); v18 = *((_QWORD *)this + 64); v19 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v18 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v37, 0.5, 0.5); v19(v18, v37); v20 = *((_QWORD *)this + 64); v21 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v20 + 184LL); v32 = *(float *)(*(__int64 (__fastcall **)(cocos2d::extension::CCControlSlider *))(*(_QWORD *)this + 328LL))(this) * 0.5; v22 = (*(__int64 (__fastcall **)(cocos2d::extension::CCControlSlider *))(*(_QWORD *)this + 328LL))(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v37, v32, *(float *)(v22 + 4) * 0.5); v21(v20, v37); (*(void (__fastcall **)(cocos2d::extension::CCControlSlider *, _QWORD))(*(_QWORD *)this + 456LL))( this, *((_QWORD *)this + 64)); v23 = *((_QWORD *)this + 63); v24 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v23 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v37, 0.0, 0.5); v24(v23, v37); v25 = *((_QWORD *)this + 63); v26 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v25 + 184LL); v27 = (*(__int64 (__fastcall **)(cocos2d::extension::CCControlSlider *))(*(_QWORD *)this + 328LL))(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v37, 0.0, *(float *)(v27 + 4) * 0.5); v26(v25, v37); (*(void (__fastcall **)(cocos2d::extension::CCControlSlider *, _QWORD))(*(_QWORD *)this + 456LL))( this, *((_QWORD *)this + 63)); v28 = *((_QWORD *)this + 62); v29 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v28 + 184LL); v30 = (*(__int64 (__fastcall **)(cocos2d::extension::CCControlSlider *))(*(_QWORD *)this + 328LL))(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v37, 0.0, *(float *)(v30 + 4) * 0.5); v29(v28, v37); (*(void (__fastcall **)(cocos2d::extension::CCControlSlider *, _QWORD))(*(_QWORD *)this + 456LL))( this, *((_QWORD *)this + 62)); v31 = *(_QWORD *)this; *((float *)this + 120) = 1.0; *((_DWORD *)this + 119) = 0; (*(void (__fastcall **)(cocos2d::extension::CCControlSlider *, float))(v31 + 1360))(this, 0.0); } return v9; }
GD Web Decomp Icon

GD Web Decomp

Raw Source