//
// GJBaseGameLayer::applyLevelSettings from 0x10029ed24 to 0x10029ed7c (88 bytes)
//
// 1 xrefs:
// > LevelEditorLayer::addSpecial @ 0x1003f9b5c
//
// 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:02:11 +0000
//
__int64 __fastcall GJBaseGameLayer::applyLevelSettings(__int64 a1, _BYTE *a2)
{
__int64 result; // x0
int v5; // w8
if ( (*(_BYTE *)(a1 + 1980) & 1) != 0 )
result = 1;
else
result = sub_1002FA54C(a2);
a2[868] = result;
v5 = *(unsigned __int8 *)(a1 + 1981);
if ( (unsigned __int8)a2[869] != v5 )
a2[864] = 1;
a2[869] = v5;
return result;
}