//
// PlayLayer::dtDeathIsBarren from 0x72ca30 to 0x72cae8 (184 bytes)
//
// 1 xrefs:
// > PlayLayer::tryShowDeathMarkers @ 0x72d630
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:58:16 +0000
//
int __fastcall PlayLayer::dtDeathIsBarren(PlayLayer *this, int a2, int a3, int a4, bool a5)
{
int v8; // r6
unsigned int v9; // r11
int v10; // r1
int v11; // r2
int v12; // r0
int v14; // r0
int v15; // r6
int v16; // r3
unsigned int v17; // r10
int *v18; // r5
_BYTE v20[16]; // [sp+Ch] [bp+0h] BYREF
PlayLayer::dtMarkerVisibleRect((PlayLayer *)v20, (float *)this);
if ( a5 )
{
v8 = 0;
v9 = 0;
while ( 1 )
{
v10 = *((_DWORD *)this + 2989);
v9 += 9;
if ( v9 > (*((_DWORD *)this + 2990) - v10) >> 2 )
break;
v11 = v10 + v8;
v12 = *(_DWORD *)(v10 + v8);
v8 += 36;
if ( sub_72C7E4(v12, *(_DWORD *)(v11 + 4), (cocos2d::CCRect *)v20) )
return 0;
}
}
if ( a4 )
{
v15 = 4;
v17 = 0;
v18 = (int *)((char *)this + 11968);
while ( 1 )
{
v16 = *v18;
v17 += 4;
if ( v17 > (v18[1] - *v18) >> 2 )
break;
v14 = *(_DWORD *)(v16 + v15 - 4);
if ( v14 == a2 && *(_DWORD *)(v16 + v15) == a3 )
{
if ( *(int *)(v16 + v15 + 4) > 2 )
return 0;
}
else if ( sub_72C7E4(v14, *(_DWORD *)(v16 + v15), (cocos2d::CCRect *)v20) )
{
return 0;
}
v15 += 16;
}
}
return 1;
}