//
// PlayLayer::updateGameSettings from 0x10013eac4 to 0x10013eba4 (224 bytes)
//
// 2 xrefs:
// > PlayLayer::init @ 0x10013e3e8
// > sub_100166CC4 @ 0x100166ea4
//
// 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 10:59:30 +0000
//
void __fastcall PlayLayer::updateGameSettings(__int64 a1)
{
_BYTE *v2; // x20
__int64 v3; // x0
__int64 v4; // x0
__int64 v5; // x0
__int64 v6; // x0
__int64 v7; // x0
__int64 v8; // x0
__int64 v9; // x0
__int64 v10; // x0
__int64 v11; // x0
__int64 v12; // x0
__int64 v13; // x0
__int64 v14; // x0
int v15; // w8
__int64 v16; // x0
char v17; // w0
v2 = (_BYTE *)(a1 + 12288);
if ( (*(_BYTE *)(*(_QWORD *)(a1 + 1936) + 770LL) & 1) != 0 )
{
v3 = 1;
}
else
{
v4 = GameManager::sharedState(a1);
GameManager::getGameVariable(v4, "0172");
}
v2[361] = v3;
v5 = GameManager::sharedState(v3);
GameManager::getGameVariable(v5, "0095");
v2[2112] = v6;
v7 = GameManager::sharedState(v6);
GameManager::getGameVariable(v7, "0099");
v2[2348] = v8;
v9 = GameManager::sharedState(v8);
GameManager::getGameVariable(v9, "0126");
v2[2056] = v10;
v11 = GameManager::sharedState(v10);
GameManager::getGameVariable(v11, "0176");
v2[1658] = v12;
v13 = GameManager::sharedState(v12);
GameManager::getGameVariable(v13, "0177");
v2[1657] = v14;
v15 = *(_DWORD *)(*(_QWORD *)(a1 + 1936) + 1436LL);
if ( v15 == 1 )
goto LABEL_7;
if ( v15 == 2 )
{
LOBYTE(v15) = 0;
LABEL_7:
v2[1657] = v15;
}
v16 = GameManager::sharedState(v14);
GameManager::getGameVariable(v16, "0072");
v2[2464] = v17;
}