//
// PauseLayer::checkQuestsStatus from 0x48ef00 to 0x48ef74 (116 bytes)
//
// 1 xrefs:
// > PauseLayer::customSetup @ 0x491122
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:49:36 +0000
//
int __fastcall PauseLayer::checkQuestsStatus(PauseLayer *this)
{
int result; // r0
ChallengesPage *v3; // r0
const char *v4; // r1
int v5; // r4
int (__fastcall *v6)(int, _BYTE *); // r7
_BYTE v7[8]; // [sp+4h] [bp-10h] BYREF
result = *((_DWORD *)this + 125);
if ( result )
{
v3 = (ChallengesPage *)(*(int (__fastcall **)(int, int))(*(_DWORD *)result + 280))(result, 99);
result = ChallengesPage::canCollectQuests(v3);
if ( result )
{
v5 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"exMark_001.png", v4);
(*(void (__fastcall **)(_DWORD, int, int, int))(**((_DWORD **)this + 125) + 236))(
*((_DWORD *)this + 125),
v5,
10,
99);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v5 + 80))(v5, 1050253722);
v6 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v5 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, 6.0, 22.0);
return v6(v5, v7);
}
}
return result;
}