{"type": "func", "start": 5370309104, "end": 5370309260, "name": "GameManager::prepareDPadSettings", "pseudocode": "// \n// GameManager::prepareDPadSettings from 0x1401869f0 to 0x140186a8c (156 bytes)\n// \n// 5 xrefs:\n// > GameManager::loadDPadLayout @ 0x140186354\n// > GameManager::dataLoaded @ 0x1401879e6\n// > UILayer::init @ 0x1404ccbfa\n// > <???> @ 0x1406cb658\n// > <???> @ 0x1406cb664\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid GameManager::prepareDPadSettings(GameManager *a1)\n{\n  if ( a1->m_dpad1.m_scale <= 0.0 )\n    UIButtonConfig::reset(&a1->m_dpad1);\n  if ( a1->m_dpad2.m_scale <= 0.0 )\n    UIButtonConfig::reset(&a1->m_dpad2);\n  if ( a1->m_dpad3.m_scale <= 0.0 )\n    UIButtonConfig::reset(&a1->m_dpad3);\n  if ( a1->m_dpad4.m_scale <= 0.0 )\n    UIButtonConfig::resetOneBtn(&a1->m_dpad4);\n  if ( a1->m_dpad5.m_scale <= 0.0 )\n    UIButtonConfig::resetOneBtn(&a1->m_dpad5);\n  a1->m_dpad4.m_oneButton = 1;\n  *(_WORD *)&a1->m_dpad5.m_oneButton = 257;\n  a1->m_dpad3.m_player2 = 1;\n}", "assembly": "; \n; GameManager::prepareDPadSettings from 0x1401869f0 to 0x140186a8c (156 bytes)\n; \n; 5 xrefs:\n; > GameManager::loadDPadLayout @ 0x140186354\n; > GameManager::dataLoaded @ 0x1401879e6\n; > UILayer::init @ 0x1404ccbfa\n; > <???> @ 0x1406cb658\n; > <???> @ 0x1406cb664\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbx                                                            ; +0x0, 0x1401869f0\nsub     rsp, 30h                                                       ; +0x2, 0x1401869f2\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0x6, 0x1401869f6\nmov     rbx, rcx                                                       ; +0xb, 0x1401869fb\nxorps   xmm6, xmm6                                                     ; +0xe, 0x1401869fe\ncomiss  xmm6, dword ptr [rcx+4C8h]                                     ; +0x11, 0x140186a01\njb      short loc_140186A16                                            ; +0x18, 0x140186a08\nadd     rcx, 4BCh                                                      ; +0x1a, 0x140186a0a\ncall    UIButtonConfig__reset                                          ; +0x21, 0x140186a11\ncomiss  xmm6, dword ptr [rbx+4F0h]                                     ; +0x26, 0x140186a16\njb      short loc_140186A2B                                            ; +0x2d, 0x140186a1d\nlea     rcx, [rbx+4E4h]                                                ; +0x2f, 0x140186a1f\ncall    UIButtonConfig__reset                                          ; +0x36, 0x140186a26\ncomiss  xmm6, dword ptr [rbx+518h]                                     ; +0x3b, 0x140186a2b\njb      short loc_140186A40                                            ; +0x42, 0x140186a32\nlea     rcx, [rbx+50Ch]                                                ; +0x44, 0x140186a34\ncall    UIButtonConfig__reset                                          ; +0x4b, 0x140186a3b\ncomiss  xmm6, dword ptr [rbx+540h]                                     ; +0x50, 0x140186a40\njb      short loc_140186A55                                            ; +0x57, 0x140186a47\nlea     rcx, [rbx+534h]                                                ; +0x59, 0x140186a49\ncall    UIButtonConfig__resetOneBtn                                    ; +0x60, 0x140186a50\ncomiss  xmm6, dword ptr [rbx+568h]                                     ; +0x65, 0x140186a55\njb      short loc_140186A6A                                            ; +0x6c, 0x140186a5c\nlea     rcx, [rbx+55Ch]                                                ; +0x6e, 0x140186a5e\ncall    UIButtonConfig__resetOneBtn                                    ; +0x75, 0x140186a65\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x7a, 0x140186a6a\nmov     byte ptr [rbx+558h], 1                                         ; +0x7f, 0x140186a6f\nmov     word ptr [rbx+580h], 101h                                      ; +0x86, 0x140186a76\nmov     byte ptr [rbx+531h], 1                                         ; +0x8f, 0x140186a7f\nadd     rsp, 30h                                                       ; +0x96, 0x140186a86\npop     rbx                                                            ; +0x9a, 0x140186a8a\nretn                                                                   ; +0x9b, 0x140186a8b", "xrefs": ["GameManager::loadDPadLayout @ 0x140186354", "GameManager::dataLoaded @ 0x1401879e6", "UILayer::init @ 0x1404ccbfa", "<???> @ 0x1406cb658", "<???> @ 0x1406cb664"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}