//
// LevelTools::verifyLevelIntegrity from 0x10023e0b8 to 0x10023e1bc (260 bytes)
//
// 1 xrefs:
// > PlayLayer::init @ 0x10013e980
//
// 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 11:01:22 +0000
//
bool __fastcall LevelTools::verifyLevelIntegrity(__int64 a1, int a2)
{
__int64 v2; // x8
int v3; // w9
unsigned __int16 v4; // w9
unsigned __int16 v5; // w9
_BOOL8 result; // x0
v2 = *(char *)(a1 + 23);
if ( v2 < 0 )
v2 = *(_QWORD *)(a1 + 8);
switch ( a2 )
{
case 1:
v3 = 41941;
goto LABEL_26;
case 2:
v3 = 27194;
goto LABEL_26;
case 3:
v3 = 27485;
goto LABEL_26;
case 4:
v3 = 28387;
goto LABEL_26;
case 5:
v3 = 39306;
goto LABEL_26;
case 6:
v3 = 32534;
goto LABEL_26;
case 7:
v3 = 52577;
goto LABEL_26;
case 8:
v5 = 2851;
goto LABEL_25;
case 9:
v5 = 8327;
goto LABEL_25;
case 10:
v3 = 95360;
goto LABEL_26;
case 11:
v5 = 30946;
goto LABEL_25;
case 12:
v5 = 26092;
goto LABEL_25;
case 13:
v5 = -11179;
LABEL_25:
v3 = v5 | 0x10000;
goto LABEL_26;
case 14:
v3 = 162731;
goto LABEL_26;
case 15:
v4 = 10439;
goto LABEL_13;
case 16:
v4 = -23207;
LABEL_13:
v3 = v4 | 0x30000;
goto LABEL_26;
case 17:
v3 = 290335;
goto LABEL_26;
case 18:
v3 = 370132;
goto LABEL_26;
case 19:
v3 = 635171;
goto LABEL_26;
case 20:
v3 = 739125;
LABEL_26:
result = (_DWORD)v2 == v3;
break;
default:
result = 1;
break;
}
return result;
}