//
// cocos2d::CCSprite::initWithTexture from 0x18008ee70 to 0x18008eece (94 bytes)
//
// 7 xrefs:
// > ??> @ 0x1800f1cf8
// > ??> @ 0x1800f21e0
// > ??> @ 0x1800f2d90
// > ??> @ 0x18010a1d0
// > ??> @ 0x18010d1e8
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bfe80
//
// This function is hookable on this platform (idp: pc, 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 11:22:07 +0000
//
bool __fastcall cocos2d::CCSprite::initWithTexture(cocos2d::CCSprite *this, struct cocos2d::CCTexture2D *a2)
{
_DWORD *v4; // rax
_BYTE v6[8]; // [rsp+20h] [rbp-18h] BYREF
_DWORD v7[4]; // [rsp+28h] [rbp-10h] BYREF
char v8; // [rsp+40h] [rbp+8h] BYREF
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v6, (const struct cocos2d::CCRect *)&unk_1801B2830);
v4 = (_DWORD *)(*(__int64 (__fastcall **)(struct cocos2d::CCTexture2D *, char *))(*(_QWORD *)a2 + 136LL))(a2, &v8);
cocos2d::CCSize::operator=(v7, v4);
return (*(bool (__fastcall **)(cocos2d::CCSprite *, struct cocos2d::CCTexture2D *, _BYTE *))(*(_QWORD *)this + 896LL))(
this,
a2,
v6);
}