{"type": "func", "start": 359880, "end": 359984, "name": "sub_57DC8", "pseudocode": "// \n// sub_57DC8 from 0x57dc8 to 0x57e30 (104 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x10c5f0\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_57DC8(__int64 a1, _DWORD *a2)\n{\n  __int64 result; // x0\n  __int64 v4; // [xsp+8h] [xbp-8h] BYREF\n\n  result = (*(__int64 (__fastcall **)(__int64, __int64, __int64 *))(*(_QWORD *)a1 + 288LL))(a1, 4294967294LL, &v4);\n  if ( !(_DWORD)result )\n  {\n    result = sub_C7E90(v4, 0, a2, 0);\n    if ( !(_DWORD)result )\n    {\n      result = 0;\n      if ( !*a2 )\n        *a2 = 1;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_57DC8 from 0x57dc8 to 0x57e30 (104 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x10c5f0\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             X19, [SP,#-0x10+var_10]!                               ; +0x0, 0x57dc8\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x57dcc\nLDR             X8, [X0]                                               ; +0x8, 0x57dd0\nMOV             X19, X1                                                ; +0xc, 0x57dd4\nADD             X2, SP, #0x10+var_8                                    ; +0x10, 0x57dd8\nMOV             W1, #0xFFFFFFFE                                        ; +0x14, 0x57ddc\nLDR             X8, [X8,#0x120]                                        ; +0x18, 0x57de0\nADD             X29, SP, #0x10                                         ; +0x1c, 0x57de4\nBLR             X8                                                     ; +0x20, 0x57de8\nCBNZ            W0, loc_57E24                                          ; +0x24, 0x57dec\nLDR             X0, [SP,#0x10+var_8]                                   ; +0x28, 0x57df0\nMOV             X1, XZR                                                ; +0x2c, 0x57df4\nMOV             X2, X19                                                ; +0x30, 0x57df8\nMOV             X3, XZR                                                ; +0x34, 0x57dfc\nBL              sub_C7E90                                              ; +0x38, 0x57e00\nCBNZ            W0, loc_57E24                                          ; +0x3c, 0x57e04\nLDR             W8, [X19]                                              ; +0x40, 0x57e08\nCBZ             W8, loc_57E18                                          ; +0x44, 0x57e0c\nMOV             W0, WZR                                                ; +0x48, 0x57e10\nB               loc_57E24                                              ; +0x4c, 0x57e14\nMOV             W0, WZR                                                ; +0x50, 0x57e18\nMOV             W8, #1                                                 ; +0x54, 0x57e1c\nSTR             W8, [X19]                                              ; +0x58, 0x57e20\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x5c, 0x57e24\nLDR             X19, [SP+0x10+var_10],#0x20                            ; +0x60, 0x57e28\nRET                                                                    ; +0x64, 0x57e2c", "xrefs": ["<???> @ 0x10c5f0"], "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"}