//
// GameManager::resetDPadSettings from 0x5ee048 to 0x5ee37c (820 bytes)
//
// 4 xrefs:
// > GameManager::firstLoad @ 0x5f0890
// > GameManager::firstLoad @ 0x5f089c
// > UIOptionsLayer::onReset @ 0x8d82bc
// > ??> @ 0x9ca68
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void GameManager::resetDPadSettings(GameManager *a1, bool a2)
{
float v3; // s0
float v4; // s1
float v5; // s0
float v6; // s1
float v7; // s0
float v8; // s1
float x; // s15
float v10; // s0
float v11; // s1
float v12; // s0
float v13; // s1
float v14; // s8
float v15; // s0
float v16; // s1
float v17; // s0
float v18; // s1
cocos2d::CCPoint *p_m_position; // [xsp+B8h] [xbp+B8h]
cocos2d::CCPoint v20; // [xsp+C0h] [xbp+C0h] BYREF
cocos2d::CCPoint v21; // [xsp+C8h] [xbp+C8h] BYREF
cocos2d::CCPoint v22; // [xsp+D0h] [xbp+D0h] BYREF
if ( a2 )
{
a1->m_dpad2.m_width = 280;
a1->m_dpad2.m_height = 120;
a1->m_dpad2.m_opacity = 255;
a1->m_dpad2.m_modeB = 0;
a1->m_dpad2.m_deadzone = 0.0;
p_m_position = &a1->m_dpad4.m_position;
a1->m_dpad2.m_scale = 1.0;
a1->m_dpad2.m_radius = 10.0;
cocos2d::CCPoint::CCPoint(&v22, 95.0, 36.0);
cocos2d::CCPoint::operator=(&a1->m_dpad2.m_position, v3, v4);
a1->m_dpad2.m_oneButton = 0;
a1->m_dpad2.m_player2 = 0;
a1->m_dpad2.m_snap = 0;
a1->m_dpad2.m_split = 0;
a1->m_dpad3.m_width = 280;
a1->m_dpad3.m_height = 120;
a1->m_dpad3.m_opacity = 255;
a1->m_dpad3.m_modeB = 0;
a1->m_dpad3.m_deadzone = 0.0;
a1->m_dpad3.m_scale = 1.0;
a1->m_dpad3.m_radius = 10.0;
cocos2d::CCPoint::CCPoint(&v22, 95.0, 36.0);
cocos2d::CCPoint::operator=(&a1->m_dpad3.m_position, v5, v6);
a1->m_dpad3.m_oneButton = 0;
a1->m_dpad3.m_player2 = 0;
a1->m_dpad3.m_snap = 0;
a1->m_dpad3.m_split = 0;
a1->m_dpad4.m_width = 280;
a1->m_dpad4.m_height = 120;
a1->m_dpad4.m_opacity = 255;
a1->m_dpad4.m_modeB = 0;
a1->m_dpad4.m_deadzone = 0.0;
a1->m_dpad4.m_scale = 1.0;
a1->m_dpad4.m_radius = 10.0;
cocos2d::CCPoint::CCPoint(&v22, 95.0, 36.0);
cocos2d::CCPoint::operator=(p_m_position, v7, v8);
a1->m_dpad4.m_oneButton = 0;
a1->m_dpad4.m_player2 = 0;
a1->m_dpad4.m_snap = 0;
a1->m_dpad4.m_split = 0;
a1->m_dpad4.m_width = 200;
a1->m_dpad4.m_height = 200;
cocos2d::CCPoint::CCPoint(&v21, 95.0, 36.0);
x = v21.x;
cocos2d::CCPoint::CCPoint(&v20, 95.0, 36.0);
cocos2d::CCPoint::CCPoint(&v22, x, (float)(v20.y + 60.0) + 100.0);
cocos2d::CCPoint::operator=(p_m_position, v10, v11);
a1->m_dpad5.m_width = 280;
a1->m_dpad4.m_oneButton = 1;
a1->m_dpad5.m_height = 120;
a1->m_dpad5.m_opacity = 255;
a1->m_dpad5.m_modeB = 0;
a1->m_dpad5.m_deadzone = 0.0;
a1->m_dpad5.m_scale = 1.0;
a1->m_dpad5.m_radius = 10.0;
cocos2d::CCPoint::CCPoint(&v22, 95.0, 36.0);
cocos2d::CCPoint::operator=(&a1->m_dpad5.m_position, v12, v13);
a1->m_dpad5.m_oneButton = 0;
a1->m_dpad5.m_player2 = 0;
a1->m_dpad5.m_snap = 0;
a1->m_dpad5.m_split = 0;
a1->m_dpad5.m_width = 200;
a1->m_dpad5.m_height = 200;
cocos2d::CCPoint::CCPoint(&v21, 95.0, 36.0);
v14 = v21.x;
cocos2d::CCPoint::CCPoint(&v20, 95.0, 36.0);
cocos2d::CCPoint::CCPoint(&v22, v14, (float)(v20.y + 60.0) + 100.0);
cocos2d::CCPoint::operator=(&a1->m_dpad5.m_position, v15, v16);
a1->m_dpad5.m_oneButton = 1;
}
else
{
a1->m_dpad1.m_width = 280;
a1->m_dpad1.m_deadzone = 0.0;
a1->m_dpad1.m_height = 120;
a1->m_dpad1.m_modeB = 0;
a1->m_dpad1.m_opacity = 255;
a1->m_dpad1.m_scale = 1.0;
a1->m_dpad1.m_radius = 10.0;
cocos2d::CCPoint::CCPoint(&v22, 95.0, 36.0);
cocos2d::CCPoint::operator=(&a1->m_dpad1.m_position, v17, v18);
a1->m_dpad1.m_oneButton = 0;
a1->m_dpad1.m_player2 = 0;
a1->m_dpad1.m_snap = 0;
a1->m_dpad1.m_split = 0;
}
}