{"type": "func", "start": 363836, "end": 363928, "name": "sub_58D3C", "pseudocode": "// \n// sub_58D3C from 0x58d3c to 0x58d98 (92 bytes)\n// \n// 2 xrefs:\n// > sub_58D3C @ 0x58d7c\n// > sub_77D0C @ 0x77d90\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\n__int64 __fastcall sub_58D3C(__int64 a1, unsigned int a2)\n{\n  __int64 result; // x0\n  __int64 v5; // x20\n  char v6; // zf\n\n  result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 120LL))(a1);\n  if ( !(_DWORD)result )\n  {\n    v5 = a1 + 400;\n    while ( 1 )\n    {\n      sub_5937C(result);\n      if ( v6 )\n        break;\n      result = sub_58D3C(*(_QWORD *)(v5 + 16), a2);\n      if ( (_DWORD)result )\n        return result;\n    }\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_58D3C from 0x58d3c to 0x58d98 (92 bytes)\n; \n; 2 xrefs:\n; > sub_58D3C @ 0x58d7c\n; > sub_77D0C @ 0x77d90\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\nSTR             X21, [SP,#-0x10+var_20]!                               ; +0x0, 0x58d3c\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x58d40\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x58d44\nLDR             X8, [X0]                                               ; +0xc, 0x58d48\nADD             X29, SP, #0x20                                         ; +0x10, 0x58d4c\nMOV             X20, X0                                                ; +0x14, 0x58d50\nMOV             W19, W1                                                ; +0x18, 0x58d54\nLDR             X8, [X8,#0x78]                                         ; +0x1c, 0x58d58\nBLR             X8                                                     ; +0x20, 0x58d5c\nCBNZ            W0, loc_58D8C                                          ; +0x24, 0x58d60\nADD             X20, X20, #0x190                                       ; +0x28, 0x58d64\nMOV             X21, X20                                               ; +0x2c, 0x58d68\nBL              sub_5937C                                              ; +0x30, 0x58d6c\nB.EQ            loc_58D88                                              ; +0x34, 0x58d70\nLDR             X0, [X21,#0x10]                                        ; +0x38, 0x58d74\nMOV             W1, W19                                                ; +0x3c, 0x58d78\nBL              sub_58D3C                                              ; +0x40, 0x58d7c\nCBZ             W0, loc_58D6C                                          ; +0x44, 0x58d80\nB               loc_58D8C                                              ; +0x48, 0x58d84\nMOV             W0, WZR                                                ; +0x4c, 0x58d88\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x50, 0x58d8c\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x54, 0x58d90\nB               loc_59350                                              ; +0x58, 0x58d94", "xrefs": ["sub_58D3C @ 0x58d7c", "sub_77D0C @ 0x77d90"], "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"}