//
// GameManager::dpadConfigToString from 0x41d98c to 0x41db56 (458 bytes)
//
// 10 xrefs:
// > GameManager::encodeDataTo @ 0x41e110
// > GameManager::encodeDataTo @ 0x41e12e
// > GameManager::encodeDataTo @ 0x41e14c
// > GameManager::encodeDataTo @ 0x41e16a
// > GameManager::encodeDataTo @ 0x41e188
// > GameManager::saveDPadLayout @ 0x41e528
// > GameManager::saveDPadLayout @ 0x41e578
// > GameManager::saveDPadLayout @ 0x41e5b4
// > GameManager::saveDPadLayout @ 0x41e5f0
// > GameManager::saveDPadLayout @ 0x41e62c
//
// 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:47:59 +0000
//
GameManager *__fastcall GameManager::dpadConfigToString(GameManager *this, UIButtonConfig *a2, int a3)
{
int v5; // r1
const char *v6; // r0
const char *v7; // r4
size_t v8; // r0
unsigned int v10[3]; // [sp+Ch] [bp-208h] BYREF
char v11; // [sp+18h] [bp-1FCh] BYREF
v5 = *(_DWORD *)a3;
v10[0] = 0;
v10[1] = 500;
v10[2] = (unsigned int)&v11;
fmt::BasicWriter::operator<<(v10, v5);
fmt::BasicWriter::operator<<(v10, ",", 0);
fmt::BasicWriter::operator<<(v10, *(_DWORD *)(a3 + 4));
fmt::BasicWriter::operator<<(v10, ",", 0);
fmt::BasicWriter::operator<<((int)v10);
fmt::BasicWriter::operator<<(v10, ",", 0);
fmt::BasicWriter::operator<<(v10, *(_DWORD *)(a3 + 16));
fmt::BasicWriter::operator<<(v10, ",", 0);
fmt::BasicWriter::operator<<((int)v10);
fmt::BasicWriter::operator<<(v10, ",", 0);
fmt::BasicWriter::operator<<((int)v10);
if ( !*(_BYTE *)(a3 + 36) )
{
fmt::BasicWriter::operator<<(v10, ",", *(unsigned __int8 *)(a3 + 36));
fmt::BasicWriter::operator<<(v10, *(unsigned __int8 *)(a3 + 24));
fmt::BasicWriter::operator<<(v10, ",", 0);
fmt::BasicWriter::operator<<((int)v10);
fmt::BasicWriter::operator<<(v10, ",", 0);
fmt::BasicWriter::operator<<((int)v10);
fmt::BasicWriter::operator<<(v10, ",", 0);
fmt::BasicWriter::operator<<(v10, *(unsigned __int8 *)(a3 + 25));
fmt::BasicWriter::operator<<(v10, ",", 0);
fmt::BasicWriter::operator<<(v10, *(unsigned __int8 *)(a3 + 38));
}
v6 = (const char *)fmt::BasicWriter::c_str((int *)v10);
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
v7 = v6;
*((_DWORD *)this + 2) = 0;
v8 = strlen(v6);
std::string::__init((int *)this, v7, v8);
fmt::internal::Array::free((int)v10);
return this;
}