{"type": "func", "start": 338264, "end": 338392, "name": "sub_52958", "pseudocode": "// \n// sub_52958 from 0x52958 to 0x529d8 (128 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x10c228\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 sub_52958()\n{\n  __int64 v0; // x19\n  __int64 v1; // x0\n  unsigned int v2; // w20\n\n  v1 = sub_53E3C();\n  v2 = ((__int64 (__fastcall *)(__int64))loc_524D8)(v1);\n  if ( !v2 )\n  {\n    sub_CA9C0(v0 + 112);\n    if ( *(_QWORD *)(v0 + 736) )\n    {\n      sub_53DA0();\n      *(_QWORD *)(v0 + 736) = 0;\n    }\n    if ( *(_QWORD *)(v0 + 752) )\n    {\n      sub_53DA0();\n      *(_QWORD *)(v0 + 752) = 0;\n    }\n    if ( *(_QWORD *)(v0 + 760) )\n    {\n      sub_53DA0();\n      *(_QWORD *)(v0 + 760) = 0;\n    }\n    *(_QWORD *)(v0 + 744) = 0;\n    *(_DWORD *)(v0 + 100) = 1232348160;\n    *(_DWORD *)(v0 + 104) = 1120403456;\n  }\n  return v2;\n}", "assembly": "; \n; sub_52958 from 0x52958 to 0x529d8 (128 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x10c228\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             X20, X19, [SP,#var_20]!                                ; +0x0, 0x52958\nSTP             X29, X30, [SP,#0x20+var_10]                            ; +0x4, 0x5295c\nBL              sub_53E3C                                              ; +0x8, 0x52960\nBL              loc_524D8                                              ; +0xc, 0x52964\nMOV             W20, W0                                                ; +0x10, 0x52968\nCBNZ            W0, loc_529C8                                          ; +0x14, 0x5296c\nADD             X0, X19, #0x70 ; 'p'                                   ; +0x18, 0x52970\nBL              sub_CA9C0                                              ; +0x1c, 0x52974\nLDR             X0, [X19,#0x2E0]                                       ; +0x20, 0x52978\nCBZ             X0, loc_52988                                          ; +0x24, 0x5297c\nBL              sub_53DA0                                              ; +0x28, 0x52980\nSTR             XZR, [X19,#0x2E0]                                      ; +0x2c, 0x52984\nLDR             X0, [X19,#0x2F0]                                       ; +0x30, 0x52988\nCBZ             X0, loc_52998                                          ; +0x34, 0x5298c\nBL              sub_53DA0                                              ; +0x38, 0x52990\nSTR             XZR, [X19,#0x2F0]                                      ; +0x3c, 0x52994\nLDR             X0, [X19,#0x2F8]                                       ; +0x40, 0x52998\nCBZ             X0, loc_529A8                                          ; +0x44, 0x5299c\nBL              sub_53DA0                                              ; +0x48, 0x529a0\nSTR             XZR, [X19,#0x2F8]                                      ; +0x4c, 0x529a4\nADRP            X8, #off_10F7C8@PAGE                                   ; +0x50, 0x529a8\nADRP            X9, #off_10F7D0@PAGE                                   ; +0x54, 0x529ac\nLDR             X8, [X8,#off_10F7C8@PAGEOFF]; dword_2EEDC              ; +0x58, 0x529b0\nLDR             X9, [X9,#off_10F7D0@PAGEOFF]; dword_2EED8              ; +0x5c, 0x529b4\nLDR             W8, [X8]                                               ; +0x60, 0x529b8\nLDR             W9, [X9]                                               ; +0x64, 0x529bc\nSTR             XZR, [X19,#0x2E8]                                      ; +0x68, 0x529c0\nSTP             W8, W9, [X19,#0x64]                                    ; +0x6c, 0x529c4\nLDP             X29, X30, [SP,#0x20+var_10]                            ; +0x70, 0x529c8\nMOV             W0, W20                                                ; +0x74, 0x529cc\nLDP             X20, X19, [SP+0x20+var_20],#0x20                       ; +0x78, 0x529d0\nRET                                                                    ; +0x7c, 0x529d4", "xrefs": ["<???> @ 0x10c228"], "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"}