//
// sub_1000D4874 from 0x1000d4874 to 0x1000d48d0 (92 bytes)
//
// 2 xrefs:
// > PlayLayer::levelComplete @ 0x100142b48
// > EndLevelLayer::customSetup @ 0x100392b1c
//
// 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:58:55 +0000
//
bool __fastcall sub_1000D4874(_DWORD *a1)
{
int v1; // w8
unsigned int v2; // w9
v1 = a1[241];
if ( v1 < 1 )
return 1;
v2 = a1[258] - a1[259] == 1;
if ( a1[255] - a1[256] == 1 )
++v2;
if ( a1[252] - a1[253] == 1 )
++v2;
return v1 <= v2;
}