//
// GameManager::prepareDPadSettings from 0x1003b844c to 0x1003b84e0 (148 bytes)
//
// 6 xrefs:
// > UILayer::init @ 0x100050644
// > UILayer::refreshDpad @ 0x100051078
// > sub_1003B7EF4 @ 0x1003b8168
// > GameManager::dataLoaded @ 0x1003b96bc
// > sub_10052CE34 @ 0x10052cfa0
// > sub_10052D394 @ 0x10052d74c
//
// 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 11:03:57 +0000
//
__int64 __fastcall GameManager::prepareDPadSettings(__int64 result)
{
__int64 v1; // x19
v1 = result;
if ( *(float *)(result + 1328) <= 0.0 )
result = sub_1003B84E0(result + 1316);
if ( *(float *)(v1 + 1368) <= 0.0 )
result = sub_1003B84E0(v1 + 1356);
if ( *(float *)(v1 + 1408) <= 0.0 )
result = sub_1003B84E0(v1 + 1396);
if ( *(float *)(v1 + 1448) <= 0.0 )
result = sub_1003B8558(v1 + 1436);
if ( *(float *)(v1 + 1488) <= 0.0 )
result = sub_1003B8558(v1 + 1476);
*(_BYTE *)(v1 + 1472) = 1;
*(_WORD *)(v1 + 1512) = 257;
*(_BYTE *)(v1 + 1433) = 1;
return result;
}