//
// CreatorLayer::sceneWillResume from 0x1002848c0 to 0x10028499b (219 bytes)
//
// 2 xrefs:
// > sub_1002849A0 @ 0x1002849ac
// > ??> @ 0x100afe718
//
// 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 12:27:44 +0000
//
__int64 __fastcall CreatorLayer::sceneWillResume(_QWORD *a1, __int64 a2, __int64 a3)
{
__int64 v3; // rdx
double v4; // xmm0_8
__int64 v5; // rax
__int64 v6; // rax
__int64 v7; // r14
char canCollectQuests; // al
char v9; // r15
char *v10; // r15
float v12; // [rsp+8h] [rbp-28h] BYREF
_BYTE v13[4]; // [rsp+10h] [rbp-20h] BYREF
float v14; // [rsp+14h] [rbp-1Ch]
*(_QWORD *)&v4 = GameManager::sharedState(a1, a2, a3).u64[0];
if ( *(_QWORD *)(v5 + 1072) )
{
*(_QWORD *)&v4 = GameManager::sharedState(a1, a2, v3).u64[0];
DailyLevelPage::refreshDailyPage(*(_QWORD *)(v6 + 1072), v4);
}
v7 = a1[55];
canCollectQuests = ChallengesPage::canCollectQuests(v4);
if ( v7 )
{
v9 = canCollectQuests;
(*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 576LL))(v7);
if ( v9 )
{
v10 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"exMark_001.png", v4);
(*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)v7 + 464LL))(v7, v10, 10);
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v10 + 160LL))(v10, 0.80000001);
(*(void (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)v7 + 336LL))(v13, v7);
sub_100278250(&v12, 20.0, v14);
v4 = (*(double (__fastcall **)(char *, float *))(*(_QWORD *)v10 + 184LL))(v10, &v12);
}
}
return CreatorLayer::checkTimedStatus(a1, v4);
}