{"type": "func", "start": 364988, "end": 365076, "name": "sub_591BC", "pseudocode": "// \n// sub_591BC from 0x591bc to 0x59214 (88 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x10c508\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_591BC(__int64 a1, int a2, __int64 a3)\n{\n  __int64 result; // x0\n  int v6; // [xsp+Ch] [xbp-14h] BYREF\n\n  v6 = 0;\n  result = sub_56490(a1, a2, a3);\n  if ( !(_DWORD)result )\n  {\n    result = sub_CC51C(a3, &v6);\n    if ( !(_DWORD)result )\n    {\n      if ( v6 == 25 )\n        *(_QWORD *)(a1 + 584) = a3;\n      return 0;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_591BC from 0x591bc to 0x59214 (88 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x10c508\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\nSUB             SP, SP, #0x30                                          ; +0x0, 0x591bc\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x591c0\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x591c4\nADD             X29, SP, #0x20                                         ; +0xc, 0x591c8\nMOV             X19, X2                                                ; +0x10, 0x591cc\nMOV             X20, X0                                                ; +0x14, 0x591d0\nSTR             WZR, [SP,#0x20+var_14]                                 ; +0x18, 0x591d4\nBL              sub_56490                                              ; +0x1c, 0x591d8\nCBNZ            W0, loc_5920C                                          ; +0x20, 0x591dc\nADD             X1, SP, #0x20+var_14                                   ; +0x24, 0x591e0\nMOV             X0, X19                                                ; +0x28, 0x591e4\nBL              sub_CC51C                                              ; +0x2c, 0x591e8\nCBNZ            W0, loc_5920C                                          ; +0x30, 0x591ec\nLDR             W8, [SP,#0x20+var_14]                                  ; +0x34, 0x591f0\nCMP             W8, #0x19                                              ; +0x38, 0x591f4\nB.NE            loc_59208                                              ; +0x3c, 0x591f8\nMOV             W0, WZR                                                ; +0x40, 0x591fc\nSTR             X19, [X20,#0x248]                                      ; +0x44, 0x59200\nB               loc_5920C                                              ; +0x48, 0x59204\nMOV             W0, WZR                                                ; +0x4c, 0x59208\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x50, 0x5920c\nB               loc_593E8                                              ; +0x54, 0x59210", "xrefs": ["<???> @ 0x10c508"], "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"}