//
// GameSettingsLayer::init from 0x712eb0 to 0x712f78 (200 bytes)
//
// 1 xrefs:
// > GameSettingsLayer::create @ 0x7131f4
//
// 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:57:45 +0000
//
GameManager *__fastcall GameSettingsLayer::init(GameSettingsLayer *this, GJBaseGameLayer *a2, int a3)
{
GameManager *v6; // r7
int v7; // r0
_BYTE v9[4]; // [sp+10h] [bp-8h] BYREF
v6 = SetupTriggerPopup::init(this, nullptr, nullptr, 400.0, 280.0, &byte_7, 0.0);
if ( v6 )
{
*((_DWORD *)this + 189) = a2;
SetupTriggerPopup::preSetup(this);
qmemcpy(v9, "PWi", 3);
SetupTriggerPopup::setCustomBGColor((int)this, (int)v9);
*((_BYTE *)this + 468) = 1;
TabbedPopupLayer::addCloseButton(this);
GameSettingsLayer::setupTabs((const cocos2d::CCPoint **)this);
GameSettingsLayer::buildTabContent(this);
GameSettingsLayer::addSpecialContent(this);
SetupTriggerPopup::postSetup(this);
if ( dword_D1E28C >= 0 )
{
v7 = *((_DWORD *)this + 178);
if ( dword_D1E28C < -1171354717 * ((*((_DWORD *)this + 179) - v7) >> 2) )
{
a3 = dword_D1E28C;
*(_DWORD *)(v7 + 44 * dword_D1E28C + 28) = dword_D2DC10;
}
}
(*(void (__fastcall **)(GameSettingsLayer *, int))(*(_DWORD *)this + 752))(this, a3);
}
return v6;
}