//
// GameManager::prepareDPadSettings from 0x717814 to 0x717bc4 (944 bytes)
//
// 7 xrefs:
// > UILayer::refreshDpad @ 0x6f0314
// > UILayer::init @ 0x6f04fc
// > GameManager::loadDPadLayout @ 0x71ed58
// > GameManager::dataLoaded @ 0x727b90
// > TouchControlEditLayer::onReset @ 0xd07c3c
// > TouchControlEditLayer::onPaste @ 0xd081a4
// > ??> @ 0xe07e8
//
// 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:16 +0000
//
__int64 __fastcall GameManager::prepareDPadSettings(GameManager *this)
{
float v3; // s8
float v4; // s0
float v5; // s0
float v6; // s0
float v7; // s8
_BYTE v8[4]; // [xsp+60h] [xbp+60h] BYREF
float v9; // [xsp+64h] [xbp+64h]
float v10; // [xsp+68h] [xbp+68h] BYREF
_BYTE v11[8]; // [xsp+70h] [xbp+70h] BYREF
if ( *((float *)this + 332) <= 0.0 )
{
*((_DWORD *)this + 329) = 280;
*((_DWORD *)this + 331) = 0;
*((_DWORD *)this + 330) = 120;
*((_BYTE *)this + 1340) = 0;
*((_DWORD *)this + 333) = 255;
*((float *)this + 332) = 1.0;
*((float *)this + 334) = 10.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, 95.0, 36.0);
cocos2d::CCPoint::operator=((char *)this + 1344, v11);
*((_BYTE *)this + 1352) = 0;
v4 = *((float *)this + 342);
*((_BYTE *)this + 1353) = 0;
*((_BYTE *)this + 1341) = 0;
*((_BYTE *)this + 1354) = 0;
if ( v4 > 0.0 )
{
LABEL_3:
if ( *((float *)this + 352) > 0.0 )
goto LABEL_4;
LABEL_10:
*((_DWORD *)this + 349) = 280;
*((_DWORD *)this + 351) = 0;
*((_DWORD *)this + 350) = 120;
*((_BYTE *)this + 1420) = 0;
*((_DWORD *)this + 353) = 255;
*((float *)this + 352) = 1.0;
*((float *)this + 354) = 10.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, 95.0, 36.0);
cocos2d::CCPoint::operator=((char *)this + 1424, v11);
*((_BYTE *)this + 1432) = 0;
v6 = *((float *)this + 362);
*((_BYTE *)this + 1433) = 0;
*((_BYTE *)this + 1421) = 0;
*((_BYTE *)this + 1434) = 0;
if ( v6 > 0.0 )
goto LABEL_5;
goto LABEL_11;
}
}
else if ( *((float *)this + 342) > 0.0 )
{
goto LABEL_3;
}
*((_DWORD *)this + 339) = 280;
*((_DWORD *)this + 341) = 0;
*((_DWORD *)this + 340) = 120;
*((_BYTE *)this + 1380) = 0;
*((_DWORD *)this + 343) = 255;
*((float *)this + 342) = 1.0;
*((float *)this + 344) = 10.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, 95.0, 36.0);
cocos2d::CCPoint::operator=((char *)this + 1384, v11);
*((_BYTE *)this + 1392) = 0;
v5 = *((float *)this + 352);
*((_BYTE *)this + 1393) = 0;
*((_BYTE *)this + 1381) = 0;
*((_BYTE *)this + 1394) = 0;
if ( v5 <= 0.0 )
goto LABEL_10;
LABEL_4:
if ( *((float *)this + 362) > 0.0 )
goto LABEL_5;
LABEL_11:
*((_DWORD *)this + 359) = 280;
*((_DWORD *)this + 360) = 120;
*((_DWORD *)this + 361) = 0;
*((_DWORD *)this + 363) = 255;
*((_BYTE *)this + 1460) = 0;
*((float *)this + 362) = 1.0;
*((float *)this + 364) = 10.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, 95.0, 36.0);
cocos2d::CCPoint::operator=((char *)this + 1464, v11);
*((_BYTE *)this + 1472) = 0;
*((_DWORD *)this + 359) = 200;
*((_DWORD *)this + 360) = 200;
*((_BYTE *)this + 1473) = 0;
*((_BYTE *)this + 1461) = 0;
*((_BYTE *)this + 1474) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v10, 95.0, 36.0);
v7 = v10;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, 95.0, 36.0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, v7, (float)(v9 + 60.0) + 100.0);
cocos2d::CCPoint::operator=((char *)this + 1464, v11);
*((_BYTE *)this + 1472) = 1;
LABEL_5:
if ( *((float *)this + 372) <= 0.0 )
{
*((_DWORD *)this + 369) = 280;
*((_DWORD *)this + 370) = 120;
*((_DWORD *)this + 371) = 0;
*((_DWORD *)this + 373) = 255;
*((_BYTE *)this + 1500) = 0;
*((float *)this + 372) = 1.0;
*((float *)this + 374) = 10.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, 95.0, 36.0);
cocos2d::CCPoint::operator=((char *)this + 1504, v11);
*((_BYTE *)this + 1512) = 0;
*((_DWORD *)this + 369) = 200;
*((_DWORD *)this + 370) = 200;
*((_BYTE *)this + 1513) = 0;
*((_BYTE *)this + 1501) = 0;
*((_BYTE *)this + 1514) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v10, 95.0, 36.0);
v3 = v10;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, 95.0, 36.0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, v3, (float)(v9 + 60.0) + 100.0);
cocos2d::CCPoint::operator=((char *)this + 1504, v11);
}
*((_BYTE *)this + 1472) = 1;
*((_BYTE *)this + 1512) = 1;
*((_BYTE *)this + 1433) = 1;
*((_BYTE *)this + 1513) = 1;
return _stack_chk_guard;
}