//
// GameManager::resetDPadSettings from 0x717bd4 to 0x717f08 (820 bytes)
//
// 5 xrefs:
// > GameManager::firstLoad @ 0x71f970
// > GameManager::firstLoad @ 0x71f97c
// > UIOptionsLayer::onReset @ 0xa2e79c
// > TouchControlEditLayer::onReset @ 0xd07c34
// > ??> @ 0xce488
//
// 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::resetDPadSettings(GameManager *this, char a2)
{
float v3; // s15
float v4; // s8
cocos2d::CCPoint *v6; // [xsp+B8h] [xbp+B8h]
_BYTE v7[4]; // [xsp+C0h] [xbp+C0h] BYREF
float v8; // [xsp+C4h] [xbp+C4h]
float v9; // [xsp+C8h] [xbp+C8h] BYREF
_BYTE v10[8]; // [xsp+D0h] [xbp+D0h] BYREF
if ( a2 )
{
*((_DWORD *)this + 339) = 280;
*((_DWORD *)this + 340) = 120;
*((_DWORD *)this + 343) = 255;
*((_BYTE *)this + 1380) = 0;
*((_DWORD *)this + 341) = 0;
v6 = (GameManager *)((char *)this + 1464);
*((float *)this + 342) = 1.0;
*((float *)this + 344) = 10.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 95.0, 36.0);
cocos2d::CCPoint::operator=((char *)this + 1384, v10);
*((_BYTE *)this + 1392) = 0;
*((_BYTE *)this + 1393) = 0;
*((_BYTE *)this + 1381) = 0;
*((_BYTE *)this + 1394) = 0;
*((_DWORD *)this + 349) = 280;
*((_DWORD *)this + 350) = 120;
*((_DWORD *)this + 353) = 255;
*((_BYTE *)this + 1420) = 0;
*((_DWORD *)this + 351) = 0;
*((float *)this + 352) = 1.0;
*((float *)this + 354) = 10.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 95.0, 36.0);
cocos2d::CCPoint::operator=((char *)this + 1424, v10);
*((_BYTE *)this + 1432) = 0;
*((_BYTE *)this + 1433) = 0;
*((_BYTE *)this + 1421) = 0;
*((_BYTE *)this + 1434) = 0;
*((_DWORD *)this + 359) = 280;
*((_DWORD *)this + 360) = 120;
*((_DWORD *)this + 363) = 255;
*((_BYTE *)this + 1460) = 0;
*((_DWORD *)this + 361) = 0;
*((float *)this + 362) = 1.0;
*((float *)this + 364) = 10.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 95.0, 36.0);
cocos2d::CCPoint::operator=(v6, v10);
*((_BYTE *)this + 1472) = 0;
*((_BYTE *)this + 1473) = 0;
*((_BYTE *)this + 1461) = 0;
*((_BYTE *)this + 1474) = 0;
*((_DWORD *)this + 359) = 200;
*((_DWORD *)this + 360) = 200;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v9, 95.0, 36.0);
v3 = v9;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, 95.0, 36.0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, v3, (float)(v8 + 60.0) + 100.0);
cocos2d::CCPoint::operator=(v6, v10);
*((_DWORD *)this + 369) = 280;
*((_BYTE *)this + 1472) = 1;
*((_DWORD *)this + 370) = 120;
*((_DWORD *)this + 373) = 255;
*((_BYTE *)this + 1500) = 0;
*((_DWORD *)this + 371) = 0;
*((float *)this + 372) = 1.0;
*((float *)this + 374) = 10.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 95.0, 36.0);
cocos2d::CCPoint::operator=((char *)this + 1504, v10);
*((_BYTE *)this + 1512) = 0;
*((_BYTE *)this + 1513) = 0;
*((_BYTE *)this + 1501) = 0;
*((_BYTE *)this + 1514) = 0;
*((_DWORD *)this + 369) = 200;
*((_DWORD *)this + 370) = 200;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v9, 95.0, 36.0);
v4 = v9;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, 95.0, 36.0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, v4, (float)(v8 + 60.0) + 100.0);
cocos2d::CCPoint::operator=((char *)this + 1504, v10);
*((_BYTE *)this + 1512) = 1;
}
else
{
*((_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 *)v10, 95.0, 36.0);
cocos2d::CCPoint::operator=((char *)this + 1344, v10);
*((_BYTE *)this + 1352) = 0;
*((_BYTE *)this + 1353) = 0;
*((_BYTE *)this + 1341) = 0;
*((_BYTE *)this + 1354) = 0;
}
return _stack_chk_guard;
}