// // cocos2d::extension::CCControlSlider::initWithSprites from 0x7a978c to 0x7a9996 (522 bytes) // // 0 xrefs: // // 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:01 +0000 // int __fastcall cocos2d::extension::CCControlSlider::initWithSprites( cocos2d::extension::CCControlSlider *this, cocos2d::CCSprite *a2, cocos2d::CCSprite *a3, cocos2d::CCSprite *a4) { int v8; // r9 cocos2d::CCObject *v9; // r0 cocos2d::CCObject *v10; // r0 cocos2d::CCObject *v11; // r0 void (__fastcall *v12)(cocos2d::extension::CCControlSlider *, _BYTE *); // r6 int v13; // r6 void (__fastcall *v14)(int, _BYTE *); // r7 int v15; // r6 void (__fastcall *v16)(int, _BYTE *); // r7 float v17; // s17 int v18; // r0 int v19; // r7 void (__fastcall *v20)(int, _BYTE *); // r10 int v21; // r7 void (__fastcall *v22)(int, _BYTE *); // r10 int v23; // r0 int v24; // r7 void (__fastcall *v25)(int, _BYTE *); // r10 int v26; // r0 int v27; // r3 _BYTE v29[8]; // [sp+4h] [bp-34h] BYREF float v30; // [sp+Ch] [bp-2Ch] float v31; // [sp+10h] [bp-28h] _BYTE v32[16]; // [sp+14h] [bp-24h] BYREF _BYTE v33[16]; // [sp+24h] [bp-14h] BYREF v8 = cocos2d::extension::CCControl::init(this); if ( v8 ) { (*(void (__fastcall **)(cocos2d::extension::CCControlSlider *, _DWORD))(*(_DWORD *)this + 220))(this, 0); (*(void (__fastcall **)(cocos2d::extension::CCControlSlider *, int))(*(_DWORD *)this + 500))(this, 1); if ( *((cocos2d::CCSprite **)this + 96) != a2 ) { if ( a2 ) cocos2d::CCObject::retain(a2); v9 = *((cocos2d::CCObject **)this + 96); if ( v9 ) cocos2d::CCObject::release(v9); *((_DWORD *)this + 96) = a2; } if ( *((cocos2d::CCSprite **)this + 95) != a3 ) { if ( a3 ) cocos2d::CCObject::retain(a3); v10 = *((cocos2d::CCObject **)this + 95); if ( v10 ) cocos2d::CCObject::release(v10); *((_DWORD *)this + 95) = a3; } if ( *((cocos2d::CCSprite **)this + 94) != a4 ) { if ( a4 ) cocos2d::CCObject::retain(a4); v11 = *((cocos2d::CCObject **)this + 94); if ( v11 ) cocos2d::CCObject::release(v11); *((_DWORD *)this + 94) = a4; } cocos2d::CCNode::boundingBox((cocos2d::CCNode *)v32); cocos2d::CCNode::boundingBox((cocos2d::CCNode *)v33); cocos2d::extension::CCControlUtils::CCRectUnion( (cocos2d::extension::CCControlUtils *)v29, (const cocos2d::CCRect *)v32, (const cocos2d::CCRect *)v33); v12 = *(void (__fastcall **)(cocos2d::extension::CCControlSlider *, _BYTE *))(*(_DWORD *)this + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v33, v30, v31); v12(this, v33); v13 = *((_DWORD *)this + 96); v14 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v13 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, 0.5, 0.5); v14(v13, v33); v15 = *((_DWORD *)this + 96); v16 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v15 + 92); v17 = *(float *)(*(int (__fastcall **)(cocos2d::extension::CCControlSlider *))(*(_DWORD *)this + 164))(this); v18 = (*(int (__fastcall **)(cocos2d::extension::CCControlSlider *))(*(_DWORD *)this + 164))(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, v17 * 0.5, *(float *)(v18 + 4) * 0.5); v16(v15, v33); (*(void (__fastcall **)(cocos2d::extension::CCControlSlider *, _DWORD))(*(_DWORD *)this + 228))( this, *((_DWORD *)this + 96)); v19 = *((_DWORD *)this + 95); v20 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v19 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, 0.0, 0.5); v20(v19, v33); v21 = *((_DWORD *)this + 95); v22 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v21 + 92); v23 = (*(int (__fastcall **)(cocos2d::extension::CCControlSlider *))(*(_DWORD *)this + 164))(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, 0.0, *(float *)(v23 + 4) * 0.5); v22(v21, v33); (*(void (__fastcall **)(cocos2d::extension::CCControlSlider *, _DWORD))(*(_DWORD *)this + 228))( this, *((_DWORD *)this + 95)); v24 = *((_DWORD *)this + 94); v25 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v24 + 92); v26 = (*(int (__fastcall **)(cocos2d::extension::CCControlSlider *))(*(_DWORD *)this + 164))(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, 0.0, *(float *)(v26 + 4) * 0.5); v25(v24, v33); (*(void (__fastcall **)(cocos2d::extension::CCControlSlider *, _DWORD))(*(_DWORD *)this + 228))( this, *((_DWORD *)this + 94)); *((_DWORD *)this + 91) = 1065353216; v27 = *(_DWORD *)this; *((_DWORD *)this + 90) = 0; (*(void (__fastcall **)(cocos2d::extension::CCControlSlider *, _DWORD))(v27 + 680))(this, 0); } return v8; }
GD Web Decomp Icon

GD Web Decomp

Raw Source