// // cocos2d::extension::CCControlSwitch::initWithMaskSprite from 0x7aa608 to 0x7aa730 (296 bytes) // // 3 xrefs: // > cocos2d::extension::CCControlSwitch::initWithMaskSprite @ 0x7aa740 // > cocos2d::extension::CCControlSwitch::create @ 0x7aa774 // > cocos2d::extension::CCControlSwitch::create @ 0x7aa7ce // // 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:02 +0000 // int __fastcall cocos2d::extension::CCControlSwitch::initWithMaskSprite( cocos2d::extension::CCControlSwitch *this, cocos2d::CCSprite *a2, cocos2d::CCSprite *a3, cocos2d::CCSprite *a4, cocos2d::CCSprite *a5, cocos2d::CCLabelTTF *a6, cocos2d::CCLabelTTF *a7) { int v11; // r6 cocos2d::extension::CCControlSwitchSprite *v12; // r5 int v13; // r7 void (__fastcall *v14)(int, _BYTE *); // r8 float v15; // s17 int v16; // r0 void (__fastcall *v17)(cocos2d::extension::CCControlSwitch *, _BYTE *); // r7 void (__fastcall *v18)(cocos2d::extension::CCControlSwitch *, int); // r5 int v19; // r0 _BYTE v21[8]; // [sp+1Ch] [bp-10h] BYREF v11 = cocos2d::extension::CCControl::init(this); if ( v11 ) { (*(void (__fastcall **)(cocos2d::extension::CCControlSwitch *, int))(*(_DWORD *)this + 500))(this, 1); *((_BYTE *)this + 365) = 1; v12 = (cocos2d::extension::CCControlSwitchSprite *)operator new(0x22Cu); cocos2d::extension::CCControlSwitchSprite::CCControlSwitchSprite(v12); *((_DWORD *)this + 89) = v12; cocos2d::extension::CCControlSwitchSprite::initWithMaskSprite(v12, a2, a3, a4, a5, a6, a7); v13 = *((_DWORD *)this + 89); v14 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v13 + 92); v15 = *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v13 + 164))(v13); v16 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 89) + 164))(*((_DWORD *)this + 89)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, v15 * 0.5, *(float *)(v16 + 4) * 0.5); v14(v13, v21); (*(void (__fastcall **)(cocos2d::extension::CCControlSwitch *, _DWORD))(*(_DWORD *)this + 228))( this, *((_DWORD *)this + 89)); (*(void (__fastcall **)(cocos2d::extension::CCControlSwitch *, _DWORD))(*(_DWORD *)this + 220))(this, 0); v17 = *(void (__fastcall **)(cocos2d::extension::CCControlSwitch *, _BYTE *))(*(_DWORD *)this + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, 0.5, 0.5); v17(this, v21); v18 = *(void (__fastcall **)(cocos2d::extension::CCControlSwitch *, int))(*(_DWORD *)this + 160); v19 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 89) + 164))(*((_DWORD *)this + 89)); v18(this, v19); } return v11; }
GD Web Decomp Icon

GD Web Decomp

Raw Source