//
// cocos2d::CCSprite::isFrameDisplayed from 0x1002395f8 to 0x10023968c (148 bytes)
//
// 74 xrefs:
// > ??> @ 0x100763740
// > ??> @ 0x100773870
// > ??> @ 0x1007741a8
// > ??> @ 0x100775310
// > ??> @ 0x100777ec0
// > ??> @ 0x10077bc00
// > ??> @ 0x100785eb0
// > ??> @ 0x100790c50
// > ??> @ 0x100799a40
// > ??> @ 0x1007ace98
// > ??> @ 0x1007ad450
// > ??> @ 0x1007b3408
// > ??> @ 0x1007b8ec8
// > ??> @ 0x1007ba018
// > ??> @ 0x1007c4038
// > ??> @ 0x1007c4870
// > ??> @ 0x1007c7778
// > ??> @ 0x1007c8258
// > ??> @ 0x1007c9a78
// > ??> @ 0x1007ca030
// > ??> @ 0x1007cfd08
// > ??> @ 0x1007d04f0
// > ??> @ 0x1007d0d00
// > ??> @ 0x1007e54c8
// > ??> @ 0x1007ea4f0
// > ??> @ 0x1007eaaa8
// > ??> @ 0x1007ec6d8
// > ??> @ 0x1007ecc60
// > ??> @ 0x1007efa88
// > ??> @ 0x1007f5570
// > ??> @ 0x1007f5da8
// > ??> @ 0x1007f65a0
// > ??> @ 0x1007f6d98
// > ??> @ 0x1007f7590
// > ??> @ 0x1007f7d88
// > ??> @ 0x1007f8580
// > ??> @ 0x1007f8d78
// > ??> @ 0x1007f9560
// > ??> @ 0x1007f9d70
// > ??> @ 0x1007fa5d8
// > ??> @ 0x1007fade8
// > ??> @ 0x1007fb5f8
// > ??> @ 0x1007fbe08
// > ??> @ 0x1007fc618
// > ??> @ 0x1007fce28
// > ??> @ 0x1007fd638
// > ??> @ 0x1007fde48
// > ??> @ 0x1007fe658
// > ??> @ 0x1007fee68
// > ??> @ 0x1007ff690
// > ??> @ 0x1007ffee8
// > ??> @ 0x100800710
// > ??> @ 0x100800f38
// > ??> @ 0x100801760
// > ??> @ 0x100801f88
// > ??> @ 0x100802798
// > ??> @ 0x100802fa8
// > ??> @ 0x1008037b8
// > ??> @ 0x100803fc8
// > ??> @ 0x1008047d8
// > ??> @ 0x100804fe8
// > ??> @ 0x1008057f8
// > ??> @ 0x100806008
// > ??> @ 0x100806818
// > ??> @ 0x100807028
// > ??> @ 0x100807838
// > ??> @ 0x100808048
// > ??> @ 0x100808858
// > ??> @ 0x100809068
// > ??> @ 0x100809878
// > ??> @ 0x10080a088
// > ??> @ 0x10080b010
// > ??> @ 0x100811020
// > ??> @ 0x1008163a8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
bool __fastcall cocos2d::CCSprite::isFrameDisplayed(cocos2d::CCSprite *a1, cocos2d::CCSpriteFrame *a2)
{
_BOOL4 v4; // w0
cocos2d::CCTexture2D *Texture; // x0
int v6; // w21
cocos2d::CCPoint *Offset; // x0
_QWORD v9[2]; // [xsp+0h] [xbp-30h] BYREF
sub_100022B98(v9, (__int64)&a2->m_obRect);
v4 = sub_100022BC4((float *)v9, (float *)&a1->m_obRect.origin);
if ( v4 )
{
Texture = cocos2d::CCSpriteFrame::getTexture(a2);
v6 = ((__int64 (__fastcall *)(cocos2d::CCTexture2D *))Texture->getName)(Texture);
if ( v6 == ((unsigned int (__fastcall *)(cocos2d::CCTexture2D *))a1->m_pobTexture->getName)(a1->m_pobTexture) )
{
Offset = (cocos2d::CCPoint *)cocos2d::CCSpriteFrame::getOffset(a2);
LOBYTE(v4) = sub_100022A5C((float *)Offset, (float *)&a1->m_obUnflippedOffsetPositionFromCenter);
}
else
{
LOBYTE(v4) = 0;
}
}
return v4;
}