//
// PlayLayer::dtLocalCellTriples from 0x72ccdc to 0x72cdc4 (232 bytes)
//
// 2 xrefs:
// > PlayLayer::dtRebuildLiveMarkers @ 0x72ce64
// > PlayLayer::tryShowDeathMarkers @ 0x72d41a
//
// 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
//
void __fastcall PlayLayer::dtLocalCellTriples(int a1, int *a2)
{
int *v2; // r5
int v4; // r2
int v5; // r6
unsigned int v6; // r1
int v7; // r6
unsigned int v8; // r8
int v9; // r2
_DWORD *v10; // r3
int v11; // r2
_DWORD *v12; // r3
_DWORD *v13; // r3
_DWORD v14[5]; // [sp+0h] [bp-18h] BYREF
v2 = (int *)(a1 + 11968);
v4 = *a2;
v5 = a2[2] - *a2;
v6 = 3 * ((unsigned int)((*(_DWORD *)(a1 + 11972) - *(_DWORD *)(a1 + 11968)) >> 2) >> 2);
if ( v6 > v5 >> 2 )
{
std::__split_buffer::__split_buffer(v14, v6, (a2[1] - v4) >> 2, (int)(a2 + 2));
std::vector::__swap_out_circular_buffer((int)a2, v14);
std::__split_buffer::~__split_buffer((int)v14);
}
v7 = 8;
v8 = 0;
while ( 1 )
{
v9 = *v2;
v8 += 4;
if ( v8 > (v2[1] - *v2) >> 2 )
break;
v10 = (_DWORD *)a2[1];
if ( v10 == (_DWORD *)a2[2] )
{
std::vector::__push_back_slow_path((int)a2, (_DWORD *)(v9 + v7 - 8));
}
else
{
v11 = *(_DWORD *)(v9 + v7 - 8);
if ( v10 )
*v10 = v11;
a2[1] += 4;
}
v12 = (_DWORD *)a2[1];
if ( v12 == (_DWORD *)a2[2] )
{
std::vector::__push_back_slow_path((int)a2, (_DWORD *)(*v2 + v7 - 4));
}
else
{
if ( v12 )
*v12 = *(_DWORD *)(*v2 + v7 - 4);
a2[1] += 4;
}
v13 = (_DWORD *)a2[1];
if ( v13 == (_DWORD *)a2[2] )
{
std::vector::__push_back_slow_path((int)a2, (_DWORD *)(*v2 + v7));
}
else
{
if ( v13 )
*v13 = *(_DWORD *)(*v2 + v7);
a2[1] += 4;
}
v7 += 16;
}
}