//
// sub_1008C97C0 from 0x1008c97c0 to 0x1008c985d (157 bytes)
//
// 4 xrefs:
// > sub_1008C9540 @ 0x1008c9649
// > sub_1008C97C0 @ 0x1008c97f0
// > sub_1008C97C0 @ 0x1008c9820
// > DeathStatsPopup::onClose @ 0x1008c9f4a
//
// 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:37:33 +0000
//
char __fastcall sub_1008C97C0(__int64 a1, float a2)
{
__int64 v2; // rax
char result; // al
__int64 v4; // rdi
*(float *)(a1 + 1056) = a2 + *(float *)(a1 + 1056);
v2 = GameLevelManager::sharedState();
result = sub_100554F20(v2, *(_DWORD *)(a1 + 1048));
if ( result )
{
cocos2d::CCNode::unschedule(a1, (__int64)sub_1008C97C0, 0);
return sub_1008C9860(a1);
}
else if ( *(float *)(a1 + 1056) > 6.0 )
{
result = cocos2d::CCNode::unschedule(a1, (__int64)sub_1008C97C0, 0);
v4 = *(_QWORD *)(a1 + 1040);
if ( v4 )
return (*(__int64 (__fastcall **)(__int64, const char *))(*(_QWORD *)v4 + 928LL))(v4, "Fetch failed.");
}
return result;
}