//
// LevelTools::verifyLevelIntegrity from 0x41f3e4 to 0x41f474 (144 bytes)
//
// 1 xrefs:
// > PlayLayer::init @ 0x40b2bc
//
// 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:48:00 +0000
//
bool __fastcall LevelTools::verifyLevelIntegrity(unsigned __int8 *a1, int a2)
{
int v2; // r3
int v3; // r1
int v4; // r3
int v5; // r0
_BOOL4 result; // r0
v2 = *a1;
v3 = a2 - 1;
if ( (v2 & 1) != 0 )
v4 = *((_DWORD *)a1 + 1);
else
v4 = v2 >> 1;
switch ( v3 )
{
case 0:
v5 = 41941;
goto LABEL_25;
case 1:
v5 = 27194;
goto LABEL_25;
case 2:
v5 = 27485;
goto LABEL_25;
case 3:
v5 = 28387;
goto LABEL_25;
case 4:
v5 = 39306;
goto LABEL_25;
case 5:
v5 = 32534;
goto LABEL_25;
case 6:
v5 = 52577;
goto LABEL_25;
case 7:
v5 = 68387;
goto LABEL_25;
case 8:
v5 = 73863;
goto LABEL_25;
case 9:
v5 = 95360;
goto LABEL_25;
case 10:
v5 = 96482;
goto LABEL_25;
case 11:
v5 = 91628;
goto LABEL_25;
case 12:
v5 = 119893;
goto LABEL_25;
case 13:
v5 = 162731;
goto LABEL_25;
case 14:
v5 = 207047;
goto LABEL_25;
case 15:
v5 = 238937;
goto LABEL_25;
case 16:
v5 = 290335;
goto LABEL_25;
case 17:
v5 = 370132;
goto LABEL_25;
case 18:
v5 = 635171;
goto LABEL_25;
case 19:
v5 = 739125;
LABEL_25:
result = v4 == v5;
break;
default:
result = 1;
break;
}
return result;
}