{"type": "func", "start": 14283100, "end": 14283240, "name": "ENGINE_set_default_pkey_meths", "pseudocode": "// \n// ENGINE_set_default_pkey_meths from 0xd9f15c to 0xd9f1e8 (140 bytes)\n// \n// 2 xrefs:\n// > ENGINE_set_default @ 0xd9cf18\n// > <???> @ 0x69048\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 ENGINE_set_default_pkey_meths(__int64 a1)\n{\n  __int64 (*v1)(void); // x4\n  int v3; // w0\n  __int64 v5; // [xsp+28h] [xbp+28h]\n\n  v1 = *(__int64 (**)(void))(a1 + 72);\n  if ( !v1 )\n    return 1;\n  v3 = v1();\n  if ( v3 > 0 )\n    return (unsigned int)engine_table_register(&unk_125D640, sub_D9F084, a1, v5, (unsigned int)v3);\n  else\n    return 1;\n}", "assembly": "; \n; ENGINE_set_default_pkey_meths from 0xd9f15c to 0xd9f1e8 (140 bytes)\n; \n; 2 xrefs:\n; > ENGINE_set_default @ 0xd9cf18\n; > <???> @ 0x69048\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,#var_30]!                                ; +0x0, 0xd9f15c\nMOV             X29, SP                                                ; +0x4, 0xd9f160\nLDR             X4, [X0,#0x48]                                         ; +0x8, 0xd9f164\nSTR             X19, [SP,#0x30+var_20]                                 ; +0xc, 0xd9f168\nCBZ             X4, loc_D9F1D4                                         ; +0x10, 0xd9f16c\nMOV             X1, #0                                                 ; +0x14, 0xd9f170\nADD             X2, X29, #0x30+var_8                                   ; +0x18, 0xd9f174\nMOV             W3, W1                                                 ; +0x1c, 0xd9f178\nMOV             X19, X0                                                ; +0x20, 0xd9f17c\nBLR             X4                                                     ; +0x24, 0xd9f180\nCMP             W0, WZR                                                ; +0x28, 0xd9f184\nMOV             W4, W0                                                 ; +0x2c, 0xd9f188\nMOV             W5, #1                                                 ; +0x30, 0xd9f18c\nB.GT            loc_D9F1A4                                             ; +0x34, 0xd9f190\nMOV             W0, W5                                                 ; +0x38, 0xd9f194\nLDR             X19, [SP,#0x30+var_20]                                 ; +0x3c, 0xd9f198\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x40, 0xd9f19c\nRET                                                                    ; +0x44, 0xd9f1a0\nLDR             X3, [X29,#0x30+var_8]                                  ; +0x48, 0xd9f1a4\nADRP            X0, #unk_125D640@PAGE                                  ; +0x4c, 0xd9f1a8\nADRP            X1, #sub_D9F084@PAGE                                   ; +0x50, 0xd9f1ac\nMOV             X2, X19                                                ; +0x54, 0xd9f1b0\nADD             X1, X1, #sub_D9F084@PAGEOFF                            ; +0x58, 0xd9f1b4\nADD             X0, X0, #unk_125D640@PAGEOFF                           ; +0x5c, 0xd9f1b8\nBL              engine_table_register                                  ; +0x60, 0xd9f1bc\nMOV             W5, W0                                                 ; +0x64, 0xd9f1c0\nMOV             W0, W5                                                 ; +0x68, 0xd9f1c4\nLDR             X19, [SP,#0x30+var_20]                                 ; +0x6c, 0xd9f1c8\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x70, 0xd9f1cc\nRET                                                                    ; +0x74, 0xd9f1d0\nMOV             W5, #1                                                 ; +0x78, 0xd9f1d4\nLDR             X19, [SP,#0x30+var_20]                                 ; +0x7c, 0xd9f1d8\nMOV             W0, W5                                                 ; +0x80, 0xd9f1dc\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x84, 0xd9f1e0\nRET                                                                    ; +0x88, 0xd9f1e4", "xrefs": ["ENGINE_set_default @ 0xd9cf18", "<???> @ 0x69048"], "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"}