//
// sub_1000150C8 from 0x1000150c8 to 0x1000150f4 (44 bytes)
//
// 6 xrefs:
// > PlayLayer::loadFromCheckpoint @ 0x10014a5d8
// > GJBaseGameLayer::spawnGroup @ 0x100287c1c
// > GJBaseGameLayer::toggleGroup @ 0x10028dba0
// > sub_10040248C @ 0x1004024e4
// > sub_100402C60 @ 0x100402ca8
// > sub_100402F68 @ 0x100402f8c
//
// This function is hookable on this platform (idp: arm, 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 10:57:18 +0000
//
__int64 __fastcall sub_1000150C8(__int64 a1, int a2)
{
unsigned __int64 v2; // x8
LODWORD(v2) = a2 & ~(a2 >> 31);
if ( (int)v2 >= 9999 )
v2 = 9999;
else
v2 = (unsigned int)v2;
return (*(_QWORD *)(*(_QWORD *)(a1 + 1008) + ((v2 >> 3) & 0x7F8)) >> v2) & 1LL;
}