{"type": "func", "start": 342804, "end": 342916, "name": "sub_53B14", "pseudocode": "// \n// sub_53B14 from 0x53b14 to 0x53b84 (112 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x10c2a8\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_53B14(_QWORD *a1, _DWORD *a2)\n{\n  _QWORD *v2; // x8\n  __int64 v3; // x9\n  __int64 result; // x0\n\n  if ( !a2 )\n    return 31;\n  v2 = (_QWORD *)a1[93];\n  if ( v2 || (v2 = (_QWORD *)a1[92]) != nullptr )\n  {\nLABEL_4:\n    v3 = 612;\n    if ( *((_DWORD *)v2 + 154) <= *((_DWORD *)v2 + 155) )\n      v3 = 608;\n    *a2 = *(_DWORD *)((char *)v2 + v3);\n    return 0;\n  }\n  if ( a1[83] )\n  {\n    v2 = a1 + 14;\n    goto LABEL_4;\n  }\n  result = ((__int64 (*)(void))loc_5262C)();\n  if ( !(_DWORD)result )\n    return 0;\n  return result;\n}", "assembly": "; \n; sub_53B14 from 0x53b14 to 0x53b84 (112 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x10c2a8\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, 0x53b14\nMOV             X29, SP                                                ; +0x4, 0x53b18\nCBZ             X1, loc_53B5C                                          ; +0x8, 0x53b1c\nLDR             X8, [X0,#0x2E8]                                        ; +0xc, 0x53b20\nCBNZ            X8, loc_53B30                                          ; +0x10, 0x53b24\nLDR             X8, [X0,#0x2E0]                                        ; +0x14, 0x53b28\nCBZ             X8, loc_53B64                                          ; +0x18, 0x53b2c\nCBZ             X8, loc_53B74                                          ; +0x1c, 0x53b30\nLDR             W9, [X8,#0x268]                                        ; +0x20, 0x53b34\nLDR             W10, [X8,#0x26C]                                       ; +0x24, 0x53b38\nMOV             W11, #0x260                                            ; +0x28, 0x53b3c\nCMP             W9, W10                                                ; +0x2c, 0x53b40\nMOV             W9, #0x264                                             ; +0x30, 0x53b44\nCSEL            X9, X9, X11, HI                                        ; +0x34, 0x53b48\nLDR             W8, [X8,X9]                                            ; +0x38, 0x53b4c\nSTR             W8, [X1]                                               ; +0x3c, 0x53b50\nMOV             W0, WZR                                                ; +0x40, 0x53b54\nB               loc_53B7C                                              ; +0x44, 0x53b58\nMOV             W0, #0x1F                                              ; +0x48, 0x53b5c\nB               loc_53B7C                                              ; +0x4c, 0x53b60\nLDR             X8, [X0,#0x298]                                        ; +0x50, 0x53b64\nCBZ             X8, loc_53B74                                          ; +0x54, 0x53b68\nADD             X8, X0, #0x70 ; 'p'                                    ; +0x58, 0x53b6c\nB               loc_53B34                                              ; +0x5c, 0x53b70\nBL              loc_5262C                                              ; +0x60, 0x53b74\nCBZ             W0, loc_53B54                                          ; +0x64, 0x53b78\nLDP             X29, X30, [SP+var_s0],#0x10                            ; +0x68, 0x53b7c\nRET                                                                    ; +0x6c, 0x53b80", "xrefs": ["<???> @ 0x10c2a8"], "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"}