{"type": "func", "start": 16835304, "end": 16835444, "name": "EC_KEY_check_key", "pseudocode": "// \n// EC_KEY_check_key from 0x100e2e8 to 0x100e374 (140 bytes)\n// \n// 2 xrefs:\n// > EC_KEY_set_public_key_affine_coordinates @ 0x100e938\n// > <???> @ 0x6ea70\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:01 +0000\n// \n\n__int64 __fastcall EC_KEY_check_key(__int64 a1)\n{\n  __int64 v1; // x2\n  __int64 (*v2)(void); // x19\n\n  if ( a1 && (v1 = *(_QWORD *)(a1 + 24)) != 0 && *(_QWORD *)(a1 + 32) )\n  {\n    v2 = *(__int64 (**)(void))(*(_QWORD *)v1 + 344LL);\n    if ( v2 )\n    {\n      return v2();\n    }\n    else\n    {\n      ERR_put_error(16, 177, 66, \"crypto/ec/ec_key.c\", 263);\n      return 0;\n    }\n  }\n  else\n  {\n    ERR_put_error(16, 177, 67, \"crypto/ec/ec_key.c\", 258);\n    return 0;\n  }\n}", "assembly": "; \n; EC_KEY_check_key from 0x100e2e8 to 0x100e374 (140 bytes)\n; \n; 2 xrefs:\n; > EC_KEY_set_public_key_affine_coordinates @ 0x100e938\n; > <???> @ 0x6ea70\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:01 +0000\n; \nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0x100e2e8\nMOV             X29, SP                                                ; +0x4, 0x100e2ec\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0x100e2f0\nCBZ             X0, loc_100E324                                        ; +0xc, 0x100e2f4\nLDR             X2, [X0,#0x18]                                         ; +0x10, 0x100e2f8\nCBZ             X2, loc_100E324                                        ; +0x14, 0x100e2fc\nLDR             X1, [X0,#0x20]                                         ; +0x18, 0x100e300\nCBZ             X1, loc_100E324                                        ; +0x1c, 0x100e304\nLDR             X1, [X2]                                               ; +0x20, 0x100e308\nLDR             X19, [X1,#0x158]                                       ; +0x24, 0x100e30c\nCBZ             X19, loc_100E350                                       ; +0x28, 0x100e310\nBLR             X19                                                    ; +0x2c, 0x100e314\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x30, 0x100e318\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x34, 0x100e31c\nRET                                                                    ; +0x38, 0x100e320\nADRP            X3, #aCryptoEcEcKeyC@PAGE; \"crypto/ec/ec_key.c\"        ; +0x3c, 0x100e324\nMOV             W0, #0x10                                              ; +0x40, 0x100e328\nMOV             W1, #0xB1                                              ; +0x44, 0x100e32c\nMOV             W2, #0x43 ; 'C'                                        ; +0x48, 0x100e330\nADD             X3, X3, #aCryptoEcEcKeyC@PAGEOFF; \"crypto/ec/ec_key.c\" ; +0x4c, 0x100e334\nMOV             W4, #0x102                                             ; +0x50, 0x100e338\nBL              ERR_put_error                                          ; +0x54, 0x100e33c\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x58, 0x100e340\nMOV             W0, #0                                                 ; +0x5c, 0x100e344\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x60, 0x100e348\nRET                                                                    ; +0x64, 0x100e34c\nADRP            X3, #aCryptoEcEcKeyC@PAGE; \"crypto/ec/ec_key.c\"        ; +0x68, 0x100e350\nMOV             W0, #0x10                                              ; +0x6c, 0x100e354\nMOV             W1, #0xB1                                              ; +0x70, 0x100e358\nMOV             W2, #0x42 ; 'B'                                        ; +0x74, 0x100e35c\nADD             X3, X3, #aCryptoEcEcKeyC@PAGEOFF; \"crypto/ec/ec_key.c\" ; +0x78, 0x100e360\nMOV             W4, #0x107                                             ; +0x7c, 0x100e364\nBL              ERR_put_error                                          ; +0x80, 0x100e368\nMOV             W0, W19                                                ; +0x84, 0x100e36c\nB               loc_100E318                                            ; +0x88, 0x100e370", "xrefs": ["EC_KEY_set_public_key_affine_coordinates @ 0x100e938", "<???> @ 0x6ea70"], "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"}