{"type": "func", "start": 4298224056, "end": 4298224204, "name": "GameManager::prepareDPadSettings", "pseudocode": "// \n// GameManager::prepareDPadSettings from 0x10031b1b8 to 0x10031b24c (148 bytes)\n// \n// 4 xrefs:\n// > UILayer::init @ 0x100049044\n// > UILayer::refreshDpad @ 0x100049890\n// > GameManager::loadDPadLayout @ 0x10031aed4\n// > GameManager::dataLoaded @ 0x10031bfd0\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 __fastcall 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 0x10031b1b8 to 0x10031b24c (148 bytes)\n; \n; 4 xrefs:\n; > UILayer::init @ 0x100049044\n; > UILayer::refreshDpad @ 0x100049890\n; > GameManager::loadDPadLayout @ 0x10031aed4\n; > GameManager::dataLoaded @ 0x10031bfd0\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x10031b1b8\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x10031b1bc\nADD             X29, SP, #0x10                                         ; +0x8, 0x10031b1c0\nMOV             X19, X0                                                ; +0xc, 0x10031b1c4\nLDR             S0, [X0,#0x4C8]                                        ; +0x10, 0x10031b1c8\nFCMP            S0, #0.0                                               ; +0x14, 0x10031b1cc\nB.HI            loc_10031B1DC                                          ; +0x18, 0x10031b1d0\nADD             X0, X19, #0x4BC                                        ; +0x1c, 0x10031b1d4\nBL              UIButtonConfig__reset                                  ; +0x20, 0x10031b1d8\nLDR             S0, [X19,#0x4F0]                                       ; +0x24, 0x10031b1dc\nFCMP            S0, #0.0                                               ; +0x28, 0x10031b1e0\nB.HI            loc_10031B1F0                                          ; +0x2c, 0x10031b1e4\nADD             X0, X19, #0x4E4                                        ; +0x30, 0x10031b1e8\nBL              UIButtonConfig__reset                                  ; +0x34, 0x10031b1ec\nLDR             S0, [X19,#0x518]                                       ; +0x38, 0x10031b1f0\nFCMP            S0, #0.0                                               ; +0x3c, 0x10031b1f4\nB.HI            loc_10031B204                                          ; +0x40, 0x10031b1f8\nADD             X0, X19, #0x50C                                        ; +0x44, 0x10031b1fc\nBL              UIButtonConfig__reset                                  ; +0x48, 0x10031b200\nLDR             S0, [X19,#0x540]                                       ; +0x4c, 0x10031b204\nFCMP            S0, #0.0                                               ; +0x50, 0x10031b208\nB.HI            loc_10031B218                                          ; +0x54, 0x10031b20c\nADD             X0, X19, #0x534                                        ; +0x58, 0x10031b210\nBL              UIButtonConfig__resetOneBtn                            ; +0x5c, 0x10031b214\nLDR             S0, [X19,#0x568]                                       ; +0x60, 0x10031b218\nFCMP            S0, #0.0                                               ; +0x64, 0x10031b21c\nB.HI            loc_10031B22C                                          ; +0x68, 0x10031b220\nADD             X0, X19, #0x55C                                        ; +0x6c, 0x10031b224\nBL              UIButtonConfig__resetOneBtn                            ; +0x70, 0x10031b228\nMOV             W8, #1                                                 ; +0x74, 0x10031b22c\nSTRB            W8, [X19,#0x558]                                       ; +0x78, 0x10031b230\nMOV             W9, #0x101                                             ; +0x7c, 0x10031b234\nSTRH            W9, [X19,#0x580]                                       ; +0x80, 0x10031b238\nSTRB            W8, [X19,#0x531]                                       ; +0x84, 0x10031b23c\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x88, 0x10031b240\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x8c, 0x10031b244\nRET                                                                    ; +0x90, 0x10031b248", "xrefs": ["UILayer::init @ 0x100049044", "UILayer::refreshDpad @ 0x100049890", "GameManager::loadDPadLayout @ 0x10031aed4", "GameManager::dataLoaded @ 0x10031bfd0"], "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"}