//
// CreatorLayer::checkTimedStatus from 0x100283bf0 to 0x100283e97 (679 bytes)
//
// 4 xrefs:
// > CreatorLayer::init @ 0x1002828d9
// > CreatorLayer::contentStatusFinished @ 0x100284795
// > sub_1002847A0 @ 0x1002847ac
// > CreatorLayer::sceneWillResume @ 0x10028498b
//
// 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::checkTimedStatus(_QWORD *a1, double a2)
{
__int64 v2; // r14
__int64 v3; // rax
char v4; // al
char v5; // r15
char *v6; // r15
__int64 v7; // r14
__int64 v8; // rax
char v9; // al
char v10; // r15
char *v11; // r15
__int64 v12; // r14
__int64 v13; // rax
char v14; // al
char v15; // r15
char *v16; // r15
__int64 v17; // rbx
__int64 v18; // rax
__int64 result; // rax
char v20; // r14
char *v21; // r14
float v22; // [rsp+8h] [rbp-28h] BYREF
_BYTE v23[4]; // [rsp+10h] [rbp-20h] BYREF
float v24; // [rsp+14h] [rbp-1Ch]
v2 = a1[56];
v3 = GameLevelManager::sharedState(a2);
v4 = sub_10055DE30(v3, 0);
if ( v2 )
{
v5 = v4;
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 576LL))(v2);
if ( v5 )
{
v6 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"exMark_001.png", a2);
(*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)v2 + 464LL))(v2, v6, 10);
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v6 + 160LL))(v6, 0.80000001);
(*(void (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)v2 + 336LL))(v23, v2);
sub_100278250(&v22, 20.0, v24);
a2 = (*(double (__fastcall **)(char *, float *))(*(_QWORD *)v6 + 184LL))(v6, &v22);
}
}
v7 = a1[57];
v8 = GameLevelManager::sharedState(a2);
v9 = sub_10055DE30(v8, 1);
if ( v7 )
{
v10 = v9;
(*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 576LL))(v7);
if ( v10 )
{
v11 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"exMark_001.png", a2);
(*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)v7 + 464LL))(v7, v11, 10);
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v11 + 160LL))(v11, 0.80000001);
(*(void (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)v7 + 336LL))(v23, v7);
sub_100278250(&v22, 20.0, v24);
a2 = (*(double (__fastcall **)(char *, float *))(*(_QWORD *)v11 + 184LL))(v11, &v22);
}
}
v12 = a1[58];
v13 = GameLevelManager::sharedState(a2);
v14 = sub_10055DE30(v13, 2);
if ( v12 )
{
v15 = v14;
(*(void (__fastcall **)(__int64))(*(_QWORD *)v12 + 576LL))(v12);
if ( v15 )
{
v16 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"exMark_001.png", a2);
(*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)v12 + 464LL))(v12, v16, 10);
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v16 + 160LL))(v16, 0.80000001);
(*(void (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)v12 + 336LL))(v23, v12);
sub_100278250(&v22, 20.0, v24);
a2 = (*(double (__fastcall **)(char *, float *))(*(_QWORD *)v16 + 184LL))(v16, &v22);
}
}
v17 = a1[59];
v18 = GameLevelManager::sharedState(a2);
result = GameLevelManager::hasNewGauntlets(v18);
if ( v17 )
{
v20 = result;
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v17 + 576LL))(v17);
if ( v20 )
{
v21 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"exMark_001.png", a2);
(*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)v17 + 464LL))(v17, v21, 10);
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v21 + 160LL))(v21, 0.80000001);
(*(void (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)v17 + 336LL))(v23, v17);
sub_100278250(&v22, 20.0, v24);
return (*(__int64 (__fastcall **)(char *, float *))(*(_QWORD *)v21 + 184LL))(v21, &v22);
}
}
return result;
}