//
// CreatorLayer::checkQuestsStatus from 0x6cbe28 to 0x6cbf38 (272 bytes)
//
// 3 xrefs:
// > CreatorLayer::sceneWillResume @ 0x6cbf70
// > CreatorLayer::init @ 0x6cca9c
// > ??> @ 0xa4e50
//
// 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
//
void CreatorLayer::checkQuestsStatus(CreatorLayer *a1)
{
cocos2d::CCSprite *m_questsSprite; // x0
int v3; // w19
GameStatsManager *v4; // x0
GJChallengeItem *Challenge; // x0
cocos2d::CCSprite *v6; // x19
cocos2d::CCSprite *v7; // x0
void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x21
cocos2d::CCPoint v9; // [xsp+48h] [xbp+48h] BYREF
__int64 v10; // [xsp+50h] [xbp+50h] BYREF
m_questsSprite = a1->m_questsSprite;
if ( m_questsSprite )
{
v3 = 1;
m_questsSprite->removeAllChildren(m_questsSprite);
while ( 1 )
{
v4 = GameStatsManager::sharedState();
Challenge = GameStatsManager::getChallenge(v4, v3);
if ( Challenge )
{
if ( Challenge->m_canClaim )
break;
}
if ( ++v3 == 4 )
return;
}
v6 = cocos2d::CCSprite::createWithSpriteFrameName("exMark_001.png");
a1->m_questsSprite->addChild_0(a1->m_questsSprite, v6, 10);
v6->setScale(v6, 0.8);
v7 = a1->m_questsSprite;
setPosition = v6->setPosition;
((void (__fastcall *)(__int64 *__return_ptr, cocos2d::CCSprite *))v7->getScaledContentSize)(&v10, v7);
cocos2d::CCPoint::CCPoint(&v9, 20.0, *((float *)&v10 + 1));
setPosition(v6, &v9);
}
}