//
// GameManager::loadDpadFromString from 0x71ac0c to 0x71aed4 (712 bytes)
//
// 11 xrefs:
// > GameManager::loadDPadLayout @ 0x71ecd8
// > GameManager::loadDPadLayout @ 0x71ee0c
// > GameManager::loadDPadLayout @ 0x71ee58
// > GameManager::loadDPadLayout @ 0x71eea4
// > GameManager::loadDPadLayout @ 0x71eef0
// > GameManager::dataLoaded @ 0x7286dc
// > GameManager::dataLoaded @ 0x728708
// > GameManager::dataLoaded @ 0x728734
// > GameManager::dataLoaded @ 0x728760
// > GameManager::dataLoaded @ 0x72878c
// > ??> @ 0xb4448
//
// 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 12:52:17 +0000
//
__int64 __fastcall GameManager::loadDpadFromString(int a1, __int64 a2, unsigned __int8 *a3)
{
__int64 v4; // x20
const char *v5; // x0
const char *v6; // x0
const char *v7; // x0
float v8; // s0
__int64 v9; // x1
__int64 v10; // x2
const char *v11; // x0
double v12; // d0
const char *v13; // x0
float v14; // s0
const char *v15; // x0
int v16; // w0
unsigned __int64 v17; // x1
__int64 v18; // x0
const char *v20; // x0
const char *v21; // x0
float v22; // s0
__int64 v23; // x1
__int64 v24; // x2
const char *v25; // x0
double v26; // d0
const char *v27; // x0
const char *v28; // x0
__int64 v29; // [xsp+40h] [xbp+40h] BYREF
__int64 v30; // [xsp+48h] [xbp+48h]
__int64 v31; // [xsp+50h] [xbp+50h]
__int64 v32; // [xsp+58h] [xbp+58h]
__int64 v33; // [xsp+60h] [xbp+60h]
_BYTE *v34; // [xsp+68h] [xbp+68h]
_BYTE v35[504]; // [xsp+70h] [xbp+70h] BYREF
v32 = 0;
v33 = 500;
v34 = v35;
v29 = 0;
v30 = 0;
v31 = 0;
sub_71A920(a3, &byte_1169BE0, &v29);
v4 = v29;
if ( 0xAAAAAAAAAAAAAAABLL * ((v30 - v29) >> 3) <= 5 )
{
if ( !v29 )
goto LABEL_19;
}
else
{
v5 = (const char *)(v29 + 1);
if ( (*(_BYTE *)v29 & 1) != 0 )
v5 = *(const char **)(v29 + 16);
*(_DWORD *)a2 = atoi(v5);
v6 = (const char *)(v4 + 25);
if ( (*(_BYTE *)(v4 + 24) & 1) != 0 )
v6 = *(const char **)(v4 + 40);
*(_DWORD *)(a2 + 4) = atoi(v6);
v7 = (const char *)(v4 + 49);
if ( (*(_BYTE *)(v4 + 48) & 1) != 0 )
v7 = *(const char **)(v4 + 64);
v8 = atof(v7);
v9 = v29;
v10 = v29 + 72;
v11 = (const char *)(v29 + 73);
*(float *)(a2 + 12) = v8;
if ( (*(_BYTE *)(v9 + 72) & 1) != 0 )
v11 = *(const char **)(v10 + 16);
v12 = atof(v11);
v4 = v29;
v13 = (const char *)(v29 + 97);
*(_DWORD *)(a2 + 16) = (int)v12;
if ( (*(_BYTE *)(v4 + 96) & 1) != 0 )
v13 = *(const char **)(v4 + 112);
v14 = (float)atoi(v13);
v15 = (const char *)(v4 + 121);
*(float *)(a2 + 28) = v14;
if ( (*(_BYTE *)(v4 + 120) & 1) != 0 )
v15 = *(const char **)(v4 + 136);
v16 = atoi(v15);
v17 = 0xAAAAAAAAAAAAAAABLL * ((v30 - v4) >> 3);
*(float *)(a2 + 32) = (float)v16;
if ( v17 > 0xA )
{
v20 = (const char *)(v4 + 145);
if ( (*(_BYTE *)(v4 + 144) & 1) != 0 )
v20 = *(const char **)(v4 + 160);
*(_BYTE *)(a2 + 24) = atoi(v20) != 0;
v21 = (const char *)(v4 + 169);
if ( (*(_BYTE *)(v4 + 168) & 1) != 0 )
v21 = *(const char **)(v4 + 184);
v22 = atof(v21);
v23 = v29;
v24 = v29 + 192;
v25 = (const char *)(v29 + 193);
*(float *)(a2 + 8) = v22;
if ( (*(_BYTE *)(v23 + 192) & 1) != 0 )
v25 = *(const char **)(v24 + 16);
v26 = atof(v25);
v4 = v29;
*(float *)&v26 = v26;
v27 = (const char *)(v29 + 217);
*(_DWORD *)(a2 + 20) = LODWORD(v26);
if ( (*(_BYTE *)(v4 + 216) & 1) != 0 )
v27 = *(const char **)(v4 + 232);
*(_BYTE *)(a2 + 25) = atoi(v27) != 0;
v28 = (const char *)(v4 + 241);
if ( (*(_BYTE *)(v4 + 240) & 1) != 0 )
v28 = *(const char **)(v4 + 256);
*(_BYTE *)(a2 + 38) = atoi(v28) != 0;
}
}
v18 = v30;
if ( v30 != v4 )
{
do
{
v30 = v18 - 24;
std::string::~string(v18 - 24);
v18 = v30;
}
while ( v30 != v4 );
v4 = v29;
}
operator delete((void *)v4);
LABEL_19:
if ( v34 != v35 && v34 )
operator delete[](v34);
return _stack_chk_guard;
}