{"type": "func", "start": 342504, "end": 342596, "name": "sub_539E8", "pseudocode": "// \n// sub_539E8 from 0x539e8 to 0x53a44 (92 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x10c290\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_539E8(_QWORD *a1, __int64 a2)\n{\n  _QWORD *v2; // x0\n  __int64 result; // x0\n\n  if ( !a2 )\n    return 31;\n  if ( a1[93] )\n  {\n    v2 = (_QWORD *)a1[93];\n  }\n  else if ( a1[5] && a1[83] )\n  {\n    v2 = a1 + 14;\n  }\n  else\n  {\n    v2 = (_QWORD *)a1[92];\n    if ( !v2 )\n      return 30;\n  }\n  result = sub_C9A64(v2);\n  if ( !(_DWORD)result )\n    return 0;\n  return result;\n}", "assembly": "; \n; sub_539E8 from 0x539e8 to 0x53a44 (92 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x10c290\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\nSTP             X29, X30, [SP,#-0x10+var_s0]!                          ; +0x0, 0x539e8\nMOV             X29, SP                                                ; +0x4, 0x539ec\nCBZ             X1, loc_53A10                                          ; +0x8, 0x539f0\nLDR             X8, [X0,#0x2E8]                                        ; +0xc, 0x539f4\nCBZ             X8, loc_53A1C                                          ; +0x10, 0x539f8\nMOV             X0, X8                                                 ; +0x14, 0x539fc\nBL              sub_C9A64                                              ; +0x18, 0x53a00\nCBNZ            W0, loc_53A14                                          ; +0x1c, 0x53a04\nMOV             W0, WZR                                                ; +0x20, 0x53a08\nB               loc_53A14                                              ; +0x24, 0x53a0c\nMOV             W0, #0x1F                                              ; +0x28, 0x53a10\nLDP             X29, X30, [SP+var_s0],#0x10                            ; +0x2c, 0x53a14\nRET                                                                    ; +0x30, 0x53a18\nLDR             X8, [X0,#0x28]                                         ; +0x34, 0x53a1c\nCBZ             X8, loc_53A34                                          ; +0x38, 0x53a20\nLDR             X8, [X0,#0x298]                                        ; +0x3c, 0x53a24\nCBZ             X8, loc_53A34                                          ; +0x40, 0x53a28\nADD             X0, X0, #0x70 ; 'p'                                    ; +0x44, 0x53a2c\nB               loc_53A00                                              ; +0x48, 0x53a30\nLDR             X0, [X0,#0x2E0]                                        ; +0x4c, 0x53a34\nCBNZ            X0, loc_53A00                                          ; +0x50, 0x53a38\nMOV             W0, #0x1E                                              ; +0x54, 0x53a3c\nB               loc_53A14                                              ; +0x58, 0x53a40", "xrefs": ["<???> @ 0x10c290"], "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"}