{"type": "func", "start": 16897212, "end": 16897352, "name": "ENGINE_set_default_pkey_meths", "pseudocode": "// \n// ENGINE_set_default_pkey_meths from 0x101d4bc to 0x101d548 (140 bytes)\n// \n// 2 xrefs:\n// > ENGINE_set_default @ 0x101b278\n// > <???> @ 0x8e438\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 13:16:09 +0000\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_1566440, sub_101D3E4, a1, v5, (unsigned int)v3);\n  else\n    return 1;\n}", "assembly": "; \n; ENGINE_set_default_pkey_meths from 0x101d4bc to 0x101d548 (140 bytes)\n; \n; 2 xrefs:\n; > ENGINE_set_default @ 0x101b278\n; > <???> @ 0x8e438\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 13:16:09 +0000\n; \nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x101d4bc\nMOV             X29, SP                                                ; +0x4, 0x101d4c0\nLDR             X4, [X0,#0x48]                                         ; +0x8, 0x101d4c4\nSTR             X19, [SP,#0x30+var_20]                                 ; +0xc, 0x101d4c8\nCBZ             X4, loc_101D534                                        ; +0x10, 0x101d4cc\nMOV             X1, #0                                                 ; +0x14, 0x101d4d0\nADD             X2, X29, #0x30+var_8                                   ; +0x18, 0x101d4d4\nMOV             W3, W1                                                 ; +0x1c, 0x101d4d8\nMOV             X19, X0                                                ; +0x20, 0x101d4dc\nBLR             X4                                                     ; +0x24, 0x101d4e0\nCMP             W0, WZR                                                ; +0x28, 0x101d4e4\nMOV             W4, W0                                                 ; +0x2c, 0x101d4e8\nMOV             W5, #1                                                 ; +0x30, 0x101d4ec\nB.GT            loc_101D504                                            ; +0x34, 0x101d4f0\nMOV             W0, W5                                                 ; +0x38, 0x101d4f4\nLDR             X19, [SP,#0x30+var_20]                                 ; +0x3c, 0x101d4f8\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x40, 0x101d4fc\nRET                                                                    ; +0x44, 0x101d500\nLDR             X3, [X29,#0x30+var_8]                                  ; +0x48, 0x101d504\nADRP            X0, #unk_1566440@PAGE                                  ; +0x4c, 0x101d508\nADRP            X1, #sub_101D3E4@PAGE                                  ; +0x50, 0x101d50c\nMOV             X2, X19                                                ; +0x54, 0x101d510\nADD             X1, X1, #sub_101D3E4@PAGEOFF                           ; +0x58, 0x101d514\nADD             X0, X0, #unk_1566440@PAGEOFF                           ; +0x5c, 0x101d518\nBL              engine_table_register                                  ; +0x60, 0x101d51c\nMOV             W5, W0                                                 ; +0x64, 0x101d520\nMOV             W0, W5                                                 ; +0x68, 0x101d524\nLDR             X19, [SP,#0x30+var_20]                                 ; +0x6c, 0x101d528\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x70, 0x101d52c\nRET                                                                    ; +0x74, 0x101d530\nMOV             W5, #1                                                 ; +0x78, 0x101d534\nLDR             X19, [SP,#0x30+var_20]                                 ; +0x7c, 0x101d538\nMOV             W0, W5                                                 ; +0x80, 0x101d53c\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x84, 0x101d540\nRET                                                                    ; +0x88, 0x101d544", "xrefs": ["ENGINE_set_default @ 0x101b278", "<???> @ 0x8e438"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}