//
// cocos2d::CCSprite::initWithTexture from 0x7f0978 to 0x7f09ce (86 bytes)
//
// 1 xrefs:
// > cocos2d::extension::CCControlSwitchSprite::initWithMaskSprite @ 0x7aa312
//
// 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:01:04 +0000
//
int __fastcall cocos2d::CCSprite::initWithTexture(cocos2d::CCSprite *this, cocos2d::CCTexture2D *a2)
{
float v5[2]; // [sp+4h] [bp-8h] BYREF
_BYTE v6[8]; // [sp+Ch] [bp+0h] BYREF
float v7[2]; // [sp+14h] [bp+8h] BYREF
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v6, (const cocos2d::CCRect *)&unk_D2FA48);
(*(void (__fastcall **)(float *, cocos2d::CCTexture2D *))(*(_DWORD *)a2 + 72))(v5, a2);
cocos2d::CCSize::operator=(v7, v5);
return (*(int (__fastcall **)(cocos2d::CCSprite *, cocos2d::CCTexture2D *, _BYTE *))(*(_DWORD *)this + 508))(
this,
a2,
v6);
}