//
// GameManager::saveDPadLayout from 0x41e4f4 to 0x41e6d0 (476 bytes)
//
// 2 xrefs:
// > UISaveLoadLayer::onSave @ 0x5dd9ec
// > ControlSlotsPopup::onSave @ 0x7a4faa
//
// 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
//
void __fastcall GameManager::saveDPadLayout(GameManager *this, int a2, int a3)
{
int GameVariable; // r0
int *v6; // r5
char *v7; // r0
const char *v8; // [sp+0h] [bp-24Ch] BYREF
size_t v9; // [sp+4h] [bp-248h]
unsigned __int8 v10[12]; // [sp+8h] [bp-244h] BYREF
unsigned __int8 v11[12]; // [sp+14h] [bp-238h] BYREF
unsigned __int8 v12[12]; // [sp+20h] [bp-22Ch] BYREF
unsigned __int8 v13[12]; // [sp+2Ch] [bp-220h] BYREF
unsigned __int8 v14[12]; // [sp+38h] [bp-214h] BYREF
unsigned int v15[3]; // [sp+44h] [bp-208h] BYREF
char v16; // [sp+50h] [bp-1FCh] BYREF
v15[0] = 0;
v15[1] = 500;
v15[2] = (unsigned int)&v16;
if ( !a3 )
{
GameManager::dpadConfigToString((GameManager *)v10, this, (int)this + 1008);
fmt::BasicStringRef::BasicStringRef((unsigned __int8 **)&v8, v10);
fmt::BasicWriter::operator<<(v15, v8, v9);
std::string::~string((int)v10);
v8 = ";";
v9 = 0;
fmt::BasicWriter::operator<<(v15, ";", 0);
GameVariable = GameManager::getGameVariable(this, "0113");
fmt::BasicWriter::operator<<(v15, GameVariable);
switch ( a2 )
{
case 2:
v6 = (int *)((char *)this + 1220);
break;
case 3:
v6 = (int *)((char *)this + 1232);
break;
case 1:
v6 = (int *)((char *)this + 1208);
break;
default:
goto LABEL_10;
}
goto LABEL_9;
}
GameManager::dpadConfigToString((GameManager *)v11, this, (int)this + 1048);
fmt::BasicStringRef::BasicStringRef((unsigned __int8 **)&v8, v11);
fmt::BasicWriter::operator<<(v15, v8, v9);
std::string::~string((int)v11);
v8 = ";";
v9 = 0;
fmt::BasicWriter::operator<<(v15, ";", 0);
GameManager::dpadConfigToString((GameManager *)v12, this, (int)this + 1088);
fmt::BasicStringRef::BasicStringRef((unsigned __int8 **)&v8, v12);
fmt::BasicWriter::operator<<(v15, v8, v9);
std::string::~string((int)v12);
v8 = ";";
v9 = 0;
fmt::BasicWriter::operator<<(v15, ";", 0);
GameManager::dpadConfigToString((GameManager *)v13, this, (int)this + 1128);
fmt::BasicStringRef::BasicStringRef((unsigned __int8 **)&v8, v13);
fmt::BasicWriter::operator<<(v15, v8, v9);
std::string::~string((int)v13);
v8 = ";";
v9 = 0;
fmt::BasicWriter::operator<<(v15, ";", 0);
GameManager::dpadConfigToString((GameManager *)v14, this, (int)this + 1168);
fmt::BasicStringRef::BasicStringRef((unsigned __int8 **)&v8, v14);
fmt::BasicWriter::operator<<(v15, v8, v9);
std::string::~string((int)v14);
switch ( a2 )
{
case 2:
v6 = (int *)((char *)this + 1256);
goto LABEL_9;
case 3:
v6 = (int *)((char *)this + 1268);
goto LABEL_9;
case 1:
v6 = (int *)((char *)this + 1244);
LABEL_9:
v7 = (char *)fmt::BasicWriter::c_str((int *)v15);
std::string::assign(v6, v7);
break;
}
LABEL_10:
fmt::internal::Array::free((int)v15);
}