//
// PauseLayer::checkQuestsStatus from 0x7d57f8 to 0x7d58dc (228 bytes)
//
// 2 xrefs:
// > PauseLayer::customSetup @ 0x7d97e8
// > ??> @ 0xe58b8
//
// This function is hookable on this platform (idp: arm, 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 12:54:20 +0000
//
__int64 __fastcall PauseLayer::checkQuestsStatus(PauseLayer *this)
{
__int64 v2; // x0
ChallengesPage *v3; // x0
const char *v4; // x1
__int64 v6; // x21
void (__fastcall *v7)(__int64, _BYTE *); // x20
_BYTE v8[8]; // [xsp+40h] [xbp+40h] BYREF
v2 = *((_QWORD *)this + 83);
if ( v2 )
{
v3 = (ChallengesPage *)(*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 560LL))(v2, 99);
if ( (unsigned __int8)ChallengesPage::canCollectQuests(v3) )
{
v6 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"exMark_001.png", v4);
(*(void (__fastcall **)(_QWORD, __int64, __int64, __int64))(**((_QWORD **)this + 83) + 472LL))(
*((_QWORD *)this + 83),
v6,
10,
99);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v6 + 160LL))(v6, 0.3);
v7 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v6 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, 6.0, 22.0);
v7(v6, v8);
}
}
return _stack_chk_guard;
}