{"type": "func", "start": 4298867788, "end": 4298867936, "name": "GameManager::prepareDPadSettings", "pseudocode": "// \n// GameManager::prepareDPadSettings from 0x1003b844c to 0x1003b84e0 (148 bytes)\n// \n// 6 xrefs:\n// > UILayer::init @ 0x100050644\n// > UILayer::refreshDpad @ 0x100051078\n// > sub_1003B7EF4 @ 0x1003b8168\n// > GameManager::dataLoaded @ 0x1003b96bc\n// > sub_10052CE34 @ 0x10052cfa0\n// > sub_10052D394 @ 0x10052d74c\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:03:57 +0000\n// \n\n__int64 __fastcall GameManager::prepareDPadSettings(__int64 result)\n{\n  __int64 v1; // x19\n\n  v1 = result;\n  if ( *(float *)(result + 1328) <= 0.0 )\n    result = sub_1003B84E0(result + 1316);\n  if ( *(float *)(v1 + 1368) <= 0.0 )\n    result = sub_1003B84E0(v1 + 1356);\n  if ( *(float *)(v1 + 1408) <= 0.0 )\n    result = sub_1003B84E0(v1 + 1396);\n  if ( *(float *)(v1 + 1448) <= 0.0 )\n    result = sub_1003B8558(v1 + 1436);\n  if ( *(float *)(v1 + 1488) <= 0.0 )\n    result = sub_1003B8558(v1 + 1476);\n  *(_BYTE *)(v1 + 1472) = 1;\n  *(_WORD *)(v1 + 1512) = 257;\n  *(_BYTE *)(v1 + 1433) = 1;\n  return result;\n}", "assembly": "; \n; GameManager::prepareDPadSettings from 0x1003b844c to 0x1003b84e0 (148 bytes)\n; \n; 6 xrefs:\n; > UILayer::init @ 0x100050644\n; > UILayer::refreshDpad @ 0x100051078\n; > sub_1003B7EF4 @ 0x1003b8168\n; > GameManager::dataLoaded @ 0x1003b96bc\n; > sub_10052CE34 @ 0x10052cfa0\n; > sub_10052D394 @ 0x10052d74c\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:03:57 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1003b844c\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1003b8450\nADD             X29, SP, #0x10                                         ; +0x8, 0x1003b8454\nMOV             X19, X0                                                ; +0xc, 0x1003b8458\nLDR             S0, [X0,#0x530]                                        ; +0x10, 0x1003b845c\nFCMP            S0, #0.0                                               ; +0x14, 0x1003b8460\nB.HI            loc_1003B8470                                          ; +0x18, 0x1003b8464\nADD             X0, X19, #0x524                                        ; +0x1c, 0x1003b8468\nBL              sub_1003B84E0                                          ; +0x20, 0x1003b846c\nLDR             S0, [X19,#0x558]                                       ; +0x24, 0x1003b8470\nFCMP            S0, #0.0                                               ; +0x28, 0x1003b8474\nB.HI            loc_1003B8484                                          ; +0x2c, 0x1003b8478\nADD             X0, X19, #0x54C                                        ; +0x30, 0x1003b847c\nBL              sub_1003B84E0                                          ; +0x34, 0x1003b8480\nLDR             S0, [X19,#0x580]                                       ; +0x38, 0x1003b8484\nFCMP            S0, #0.0                                               ; +0x3c, 0x1003b8488\nB.HI            loc_1003B8498                                          ; +0x40, 0x1003b848c\nADD             X0, X19, #0x574                                        ; +0x44, 0x1003b8490\nBL              sub_1003B84E0                                          ; +0x48, 0x1003b8494\nLDR             S0, [X19,#0x5A8]                                       ; +0x4c, 0x1003b8498\nFCMP            S0, #0.0                                               ; +0x50, 0x1003b849c\nB.HI            loc_1003B84AC                                          ; +0x54, 0x1003b84a0\nADD             X0, X19, #0x59C                                        ; +0x58, 0x1003b84a4\nBL              sub_1003B8558                                          ; +0x5c, 0x1003b84a8\nLDR             S0, [X19,#0x5D0]                                       ; +0x60, 0x1003b84ac\nFCMP            S0, #0.0                                               ; +0x64, 0x1003b84b0\nB.HI            loc_1003B84C0                                          ; +0x68, 0x1003b84b4\nADD             X0, X19, #0x5C4                                        ; +0x6c, 0x1003b84b8\nBL              sub_1003B8558                                          ; +0x70, 0x1003b84bc\nMOV             W8, #1                                                 ; +0x74, 0x1003b84c0\nSTRB            W8, [X19,#0x5C0]                                       ; +0x78, 0x1003b84c4\nMOV             W9, #0x101                                             ; +0x7c, 0x1003b84c8\nSTRH            W9, [X19,#0x5E8]                                       ; +0x80, 0x1003b84cc\nSTRB            W8, [X19,#0x599]                                       ; +0x84, 0x1003b84d0\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x88, 0x1003b84d4\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x8c, 0x1003b84d8\nRET                                                                    ; +0x90, 0x1003b84dc", "xrefs": ["UILayer::init @ 0x100050644", "UILayer::refreshDpad @ 0x100051078", "sub_1003B7EF4 @ 0x1003b8168", "GameManager::dataLoaded @ 0x1003b96bc", "sub_10052CE34 @ 0x10052cfa0", "sub_10052D394 @ 0x10052d74c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}