//
// sub_1002C1540 from 0x1002c1540 to 0x1002c15a5 (101 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b10130
//
// 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:28:05 +0000
//
__int64 __fastcall sub_1002C1540(__int64 a1)
{
__int64 v2; // rbx
__int64 v3; // rax
__int64 v4; // rdi
__int64 v5; // rdx
__int64 v6; // rdx
unsigned __int64 v7; // xmm0_8
__int64 v8; // rax
__int64 v9; // rax
v2 = a1 - 336;
v3 = *(_QWORD *)(a1 - 336);
v4 = a1 - 336;
(*(void (__fastcall **)(__int64, _QWORD))(v3 + 1072))(v4, 0);
v7 = GameManager::sharedState(v4, 0, v5).u64[0];
*(_BYTE *)(v8 + 1027) = 0;
if ( *(_BYTE *)(a1 + 368) == 1 )
{
v7 = GameManager::sharedState(v4, 0, v6).u64[0];
if ( *(_QWORD *)(v9 + 544) )
AdToolbox::enableBanner();
}
return (*(__int64 (__fastcall **)(__int64, __int64, double))(*(_QWORD *)v2 + 528LL))(v2, 1, *(double *)&v7);
}