//
// GJBaseGameLayer::shouldExitHackedLevel from 0x856b08 to 0x856bc4 (188 bytes)
//
// 2 xrefs:
// > PlayLayer::setupHasCompleted @ 0x5dcc34
// > ??> @ 0x44580
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
bool GJBaseGameLayer::shouldExitHackedLevel(GJBaseGameLayer *a1)
{
std::vector **m_start; // x9
__int64 v2; // x8
__int64 v3; // x7
int v4; // w4
int v5; // w3
int v6; // w2
std::vector *v7; // x5
int *v8; // x6
int v9; // w5
__int64 v10; // x1
int v11; // w0
float v12; // s0
float v13; // s1
int v14; // w0
m_start = a1->m_sectionSizes.m_start;
v2 = a1->m_sectionSizes.m_finish - m_start;
if ( (int)v2 <= 0 )
{
v13 = 0.0;
v6 = 0;
v12 = 0.0;
}
else
{
v3 = 0;
v4 = 0;
v5 = 0;
v6 = 0;
do
{
v7 = m_start[v3];
if ( v7 )
{
v8 = v7->m_start;
v9 = v7->m_finish - v7->m_start - 1;
if ( v9 >= 0 )
{
v10 = 0;
do
{
v11 = v8[v10++];
if ( v6 < v11 )
v6 = v11;
if ( v11 > 0 )
++v4;
else
++v5;
}
while ( v9 >= (int)v10 );
}
}
++v3;
}
while ( (int)v2 > (int)v3 );
v12 = (float)v5;
v13 = (float)v4;
}
if ( (float)(v12 / v13) <= 0.9 )
v14 = 8000;
else
v14 = 4000;
return v6 > v14;
}