//
// GameManager::prepareDPadSettings from 0x414d98 to 0x414e2e (150 bytes)
//
// 6 xrefs:
// > UILayer::refreshDpad @ 0x3fd7d8
// > UILayer::init @ 0x3fd90e
// > GameManager::loadDPadLayout @ 0x417834
// > GameManager::dataLoaded @ 0x41ccdc
// > TouchControlEditLayer::onReset @ 0x7a4782
// > TouchControlEditLayer::onPaste @ 0x7a4a8c
//
// 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:39 +0000
//
int __fastcall GameManager::prepareDPadSettings(int this)
{
int v1; // r4
v1 = this;
if ( *(float *)(this + 1020) <= 0.0 )
this = UIButtonConfig::reset((UIButtonConfig *)(this + 1008));
if ( *(float *)(v1 + 1060) <= 0.0 )
this = UIButtonConfig::reset((UIButtonConfig *)(v1 + 1048));
if ( *(float *)(v1 + 1100) <= 0.0 )
this = UIButtonConfig::reset((UIButtonConfig *)(v1 + 1088));
if ( *(float *)(v1 + 1140) <= 0.0 )
this = UIButtonConfig::resetOneBtn((UIButtonConfig *)(v1 + 1128));
if ( *(float *)(v1 + 1180) <= 0.0 )
this = UIButtonConfig::resetOneBtn((UIButtonConfig *)(v1 + 1168));
*(_BYTE *)(v1 + 1164) = 1;
*(_BYTE *)(v1 + 1204) = 1;
*(_BYTE *)(v1 + 1125) = 1;
*(_BYTE *)(v1 + 1205) = 1;
return this;
}