{"type": "func", "start": 346708, "end": 346840, "name": "sub_54A54", "pseudocode": "// \n// sub_54A54 from 0x54a54 to 0x54ad8 (132 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x10c3e0\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_54A54(__int64 a1, _DWORD *a2, char a3)\n{\n  __int64 result; // x0\n  int v6; // w8\n  int v7; // [xsp+8h] [xbp-8h] BYREF\n\n  if ( !a2 || !*(_QWORD *)(a1 + 40) )\n    return 31;\n  if ( (a3 & 2) != 0 )\n  {\n    v6 = *(_DWORD *)(a1 + 76);\n    result = 0;\nLABEL_8:\n    *a2 = v6;\n    return result;\n  }\n  if ( (a3 & 0x10) == 0 )\n    return sub_67040();\n  result = *(_QWORD *)(a1 + 192);\n  if ( !result )\n  {\n    v6 = *(_DWORD *)(a1 + 72);\n    goto LABEL_8;\n  }\n  result = (*(__int64 (__fastcall **)(__int64, int *))(*(_QWORD *)result + 136LL))(result, &v7);\n  if ( !(_DWORD)result )\n  {\n    v6 = v7;\n    goto LABEL_8;\n  }\n  return result;\n}", "assembly": "; \n; sub_54A54 from 0x54a54 to 0x54ad8 (132 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x10c3e0\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, 0x54a54\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x54a58\nADD             X29, SP, #0x10                                         ; +0x8, 0x54a5c\nCBZ             X1, loc_54A8C                                          ; +0xc, 0x54a60\nMOV             X8, X0                                                 ; +0x10, 0x54a64\nLDR             X0, [X0,#0x28]                                         ; +0x14, 0x54a68\nCBZ             X0, loc_54A8C                                          ; +0x18, 0x54a6c\nMOV             X19, X1                                                ; +0x1c, 0x54a70\nTBNZ            W2, #1, loc_54A94                                      ; +0x20, 0x54a74\nTBNZ            W2, #4, loc_54AAC                                      ; +0x24, 0x54a78\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x28, 0x54a7c\nMOV             X1, X19                                                ; +0x2c, 0x54a80\nLDR             X19, [SP+0x10+var_10],#0x20                            ; +0x30, 0x54a84\nB               sub_67040                                              ; +0x34, 0x54a88\nMOV             W0, #0x1F                                              ; +0x38, 0x54a8c\nB               loc_54AA0                                              ; +0x3c, 0x54a90\nLDR             W8, [X8,#0x4C]                                         ; +0x40, 0x54a94\nMOV             W0, WZR                                                ; +0x44, 0x54a98\nSTR             W8, [X19]                                              ; +0x48, 0x54a9c\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4c, 0x54aa0\nLDR             X19, [SP+0x10+var_10],#0x20                            ; +0x50, 0x54aa4\nRET                                                                    ; +0x54, 0x54aa8\nLDR             X0, [X8,#0xC0]                                         ; +0x58, 0x54aac\nCBZ             X0, loc_54AD0                                          ; +0x5c, 0x54ab0\nLDR             X8, [X0]                                               ; +0x60, 0x54ab4\nADD             X1, SP, #0x10+var_8                                    ; +0x64, 0x54ab8\nLDR             X8, [X8,#0x88]                                         ; +0x68, 0x54abc\nBLR             X8                                                     ; +0x6c, 0x54ac0\nCBNZ            W0, loc_54AA0                                          ; +0x70, 0x54ac4\nLDR             W8, [SP,#0x10+var_8]                                   ; +0x74, 0x54ac8\nB               loc_54A9C                                              ; +0x78, 0x54acc\nLDR             W8, [X8,#0x48]                                         ; +0x7c, 0x54ad0\nB               loc_54A9C                                              ; +0x80, 0x54ad4", "xrefs": ["<???> @ 0x10c3e0"], "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"}