//
// cocos2d::CCSprite::isFrameDisplayed from 0x18008f090 to 0x18008f138 (168 bytes)
//
// 9 xrefs:
// > ??> @ 0x1800f1d68
// > ??> @ 0x1800f2250
// > ??> @ 0x1800f2e00
// > ??> @ 0x18010a240
// > ??> @ 0x18010d258
// > ??> @ 0x1801468fc
// > ??> @ 0x18014690c
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bfeb0
//
// 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::isFrameDisplayed(cocos2d::CCSprite *this, struct cocos2d::CCSpriteFrame *a2)
{
struct cocos2d::CCTexture2D *Texture; // rax
__int64 v5; // rdi
int v6; // ebx
cocos2d::CCSize *PositionOffset; // rax
bool result; // al
_BYTE v9[24]; // [rsp+20h] [rbp-18h] BYREF
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v9, (struct cocos2d::CCSpriteFrame *)((char *)a2 + 92));
result = false;
if ( cocos2d::CCRect::equals((cocos2d::CCRect *)v9, (cocos2d::CCSprite *)((char *)this + 424)) )
{
Texture = cocos2d::CCSpriteFrame::getTexture(a2);
v5 = *((_QWORD *)this + 52);
v6 = (*(__int64 (__fastcall **)(struct cocos2d::CCTexture2D *))(*(_QWORD *)Texture + 96LL))(Texture);
if ( v6 == (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v5 + 96LL))(v5) )
{
PositionOffset = cocos2d::CCTMXObjectGroup::getPositionOffset(a2);
if ( cocos2d::CCSize::equals(PositionOffset, (cocos2d::CCSprite *)((char *)this + 452)) )
return true;
}
}
return result;
}