//
// PlayLayer::dtCellKnown from 0xc364b4 to 0xc36534 (128 bytes)
//
// 2 xrefs:
// > PlayLayer::destroyPlayer @ 0x6ff770
// > ??> @ 0xa0618
//
// 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 13:04:51 +0000
//
__int64 __fastcall PlayLayer::dtCellKnown(PlayLayer *this, int a2, int a3)
{
unsigned __int64 v3; // x5
unsigned __int64 v4; // x3
_DWORD *v5; // x0
if ( a2 > 0xFFFF )
a2 = 0xFFFF;
if ( a2 < 0 )
a2 = 0;
if ( a3 > 0xFFFF )
a3 = 0xFFFF;
v3 = (__int64)(*((_QWORD *)this + 1806) - *((_QWORD *)this + 1805)) >> 2;
v4 = 4;
if ( a3 < 0 )
a3 = 0;
v5 = *((_DWORD **)this + 1805);
if ( v3 < 4 )
return 0;
while ( a2 != *v5 || v5[1] != a3 )
{
v4 += 4LL;
v5 += 4;
if ( v4 > v3 )
return 0;
}
return 1;
}