//
// PlayLayer::dtFlushCells from 0x14051e9b0 to 0x14051eb7c (460 bytes)
//
// 5 xrefs:
// > PlayLayer::levelComplete @ 0x140506e9b
// > PlayLayer::pauseGame @ 0x14051a3eb
// > PlayLayer::onQuit @ 0x14051b11c
// > PlayLayer::onExit @ 0x14051b559
// > ??> @ 0x14092b358
//
// This function is hookable on this platform (idp: pc, 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 11:33:36 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall PlayLayer::dtFlushCells(__int64 a1)
{
__int64 v2; // r15
__int64 v3; // r14
__int64 v4; // rdx
unsigned int v5; // esi
unsigned int v6; // edi
unsigned int v7; // ebx
__int64 v8; // rax
__int64 v9; // rax
__int64 v10; // rax
__int64 v11; // rax
__int64 v12; // rax
__int64 v13; // rax
_BYTE *v14; // rax
size_t v15; // r8
_QWORD v16[2]; // [rsp+20h] [rbp-288h] BYREF
_QWORD v17[2]; // [rsp+30h] [rbp-278h] BYREF
_QWORD v18[2]; // [rsp+40h] [rbp-268h] BYREF
_QWORD v19[2]; // [rsp+50h] [rbp-258h] BYREF
_BYTE v20[528]; // [rsp+60h] [rbp-248h] BYREF
if ( *(_BYTE *)(a1 + 15120) )
{
v2 = *(_QWORD *)(a1 + 2168);
if ( v2 )
{
fmt::BasicWriter::BasicWriter(v20);
v3 = 0;
if ( (unsigned __int64)((__int64)(*(_QWORD *)(a1 + 15104) - *(_QWORD *)(a1 + 15096)) >> 2) >= 4 )
{
do
{
if ( v3 )
{
v16[0] = byte_14070ECF8;
v16[1] = 0;
fmt::BasicWriter::operator<<(v20, v16);
}
v19[0] = byte_14070ECF8;
v19[1] = 0;
v18[0] = byte_14070ECF8;
v18[1] = 0;
v17[0] = byte_14070ECF8;
v17[1] = 0;
v4 = *(_QWORD *)(a1 + 15096);
v5 = *(_DWORD *)(v4 + 4 * v3 + 12);
v6 = *(_DWORD *)(v4 + 4 * v3 + 8);
v7 = *(_DWORD *)(v4 + 4 * v3 + 4);
fmt::BasicWriter::operator<<(v20, *(unsigned int *)(v4 + 4 * v3));
fmt::BasicWriter::operator<<(v8, v17);
fmt::BasicWriter::operator<<(v9, v7);
fmt::BasicWriter::operator<<(v10, v18);
fmt::BasicWriter::operator<<(v11, v6);
fmt::BasicWriter::operator<<(v12, v19);
fmt::BasicWriter::operator<<(v13, v5);
v3 += 4;
}
while ( v3 + 4 <= (unsigned __int64)((__int64)(*(_QWORD *)(a1 + 15104) - *(_QWORD *)(a1 + 15096)) >> 2) );
}
v14 = (_BYTE *)fmt::BasicWriter::c_str(v20);
v15 = -1;
do
++v15;
while ( v14[v15] );
sub_1400405A0((void **)(v2 + 1944), v14, v15);
fmt::BasicWriter::~BasicWriter(v20);
*(_BYTE *)(a1 + 15120) = 0;
}
}
}