{"type": "func", "start": 548104, "end": 548292, "name": "sub_85D08", "pseudocode": "// \n// sub_85D08 from 0x85d08 to 0x85dc4 (188 bytes)\n// \n// 5 xrefs:\n// > sub_529D8 @ 0x52aa4\n// > sub_A701C @ 0xa7050\n// > <???> @ 0x10d680\n// > <???> @ 0x10eec0\n// > <???> @ 0x10ef28\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_85D08(__int64 a1, __int64 a2, __int64 a3)\n{\n  __int64 v3; // x8\n  __int64 (__fastcall *v7)(__int64); // x8\n  __int64 result; // x0\n  int v9; // w8\n\n  v3 = *(_QWORD *)(a1 + 232);\n  if ( !v3 || (v7 = *(__int64 (__fastcall **)(__int64))(v3 + 64)) == nullptr || (result = v7(a1 + 176), !(_DWORD)result) )\n  {\n    *(_QWORD *)(a1 + 544) = a3;\n    *(_QWORD *)(a1 + 552) = a2;\n    if ( !a2 || (result = sub_C7E34(a1, 0, *(unsigned int *)(a2 + 104), 0), !(_DWORD)result) )\n    {\n      (*(void (__fastcall **)(__int64, _QWORD, _QWORD, _QWORD))(*(_QWORD *)a1 + 40LL))(a1, 0, 0, 0);\n      sub_C7D1C(a1, 0, 1);\n      v9 = *(_DWORD *)(*(_QWORD *)(a1 + 552) + 84LL);\n      *(_DWORD *)(a1 + 620) = 0;\n      *(_DWORD *)(a1 + 608) = v9;\n      *(_QWORD *)(a1 + 612) = 4294967294LL;\n      return 0;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_85D08 from 0x85d08 to 0x85dc4 (188 bytes)\n; \n; 5 xrefs:\n; > sub_529D8 @ 0x52aa4\n; > sub_A701C @ 0xa7050\n; > <???> @ 0x10d680\n; > <???> @ 0x10eec0\n; > <???> @ 0x10ef28\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, 0x85d08\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x85d0c\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x85d10\nLDR             X8, [X0,#0xE8]                                         ; +0xc, 0x85d14\nMOV             X21, X2                                                ; +0x10, 0x85d18\nMOV             X19, X0                                                ; +0x14, 0x85d1c\nMOV             X20, X1                                                ; +0x18, 0x85d20\nADD             X29, SP, #0x20                                         ; +0x1c, 0x85d24\nCBZ             X8, loc_85D40                                          ; +0x20, 0x85d28\nLDR             X8, [X8,#0x40]                                         ; +0x24, 0x85d2c\nCBZ             X8, loc_85D40                                          ; +0x28, 0x85d30\nADD             X0, X19, #0xB0                                         ; +0x2c, 0x85d34\nBLR             X8                                                     ; +0x30, 0x85d38\nCBNZ            W0, loc_85DB4                                          ; +0x34, 0x85d3c\nSTR             X21, [X19,#0x220]                                      ; +0x38, 0x85d40\nSTR             X20, [X19,#0x228]                                      ; +0x3c, 0x85d44\nCBZ             X20, loc_85D64                                         ; +0x40, 0x85d48\nLDR             W2, [X20,#0x68]                                        ; +0x44, 0x85d4c\nMOV             X0, X19                                                ; +0x48, 0x85d50\nMOV             W1, WZR                                                ; +0x4c, 0x85d54\nMOV             W3, WZR                                                ; +0x50, 0x85d58\nBL              sub_C7E34                                              ; +0x54, 0x85d5c\nCBNZ            W0, loc_85DB4                                          ; +0x58, 0x85d60\nLDR             X8, [X19]                                              ; +0x5c, 0x85d64\nMOV             X0, X19                                                ; +0x60, 0x85d68\nMOV             W1, WZR                                                ; +0x64, 0x85d6c\nMOV             W2, WZR                                                ; +0x68, 0x85d70\nLDR             X8, [X8,#0x28]                                         ; +0x6c, 0x85d74\nMOV             W3, WZR                                                ; +0x70, 0x85d78\nBLR             X8                                                     ; +0x74, 0x85d7c\nMOV             W2, #1                                                 ; +0x78, 0x85d80\nMOV             X0, X19                                                ; +0x7c, 0x85d84\nMOV             W1, WZR                                                ; +0x80, 0x85d88\nBL              sub_C7D1C                                              ; +0x84, 0x85d8c\nLDR             X8, [X19,#0x228]                                       ; +0x88, 0x85d90\nADRP            X9, #qword_2EB88@PAGE                                  ; +0x8c, 0x85d94\nLDR             D0, [X9,#qword_2EB88@PAGEOFF]                          ; +0x90, 0x85d98\nMOV             W0, WZR                                                ; +0x94, 0x85d9c\nLDR             W8, [X8,#0x54]                                         ; +0x98, 0x85da0\nADD             X9, X19, #0x264                                        ; +0x9c, 0x85da4\nSTR             WZR, [X19,#0x26C]                                      ; +0xa0, 0x85da8\nSTR             W8, [X19,#0x260]                                       ; +0xa4, 0x85dac\nSTR             D0, [X9]                                               ; +0xa8, 0x85db0\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xac, 0x85db4\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xb0, 0x85db8\nLDR             X21, [SP+0x20+var_20],#0x30                            ; +0xb4, 0x85dbc\nRET                                                                    ; +0xb8, 0x85dc0", "xrefs": ["sub_529D8 @ 0x52aa4", "sub_A701C @ 0xa7050", "<???> @ 0x10d680", "<???> @ 0x10eec0", "<???> @ 0x10ef28"], "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"}