{"type": "func", "start": 16904628, "end": 16904684, "name": "ERR_peek_last_error", "pseudocode": "// \n// ERR_peek_last_error from 0x101f1b4 to 0x101f1ec (56 bytes)\n// \n// 12 xrefs:\n// > ssl_build_cert_chain @ 0xfb9bd0\n// > ssl_build_cert_chain @ 0xfb9c20\n// > SSL_CTX_use_certificate_chain_file @ 0xfc394c\n// > SSL_use_certificate_chain_file @ 0xfc3b18\n// > CONF_modules_load_file @ 0x1000b28\n// > ec_GFp_simple_set_compressed_coordinates @ 0x1016c94\n// > X509_load_cert_file @ 0x1062de4\n// > X509_load_crl_file @ 0x1062f98\n// > sub_10A2708 @ 0x10a2760\n// > ec_GF2m_simple_set_compressed_coordinates @ 0x10b0ad8\n// > PEM_X509_INFO_read_bio @ 0x10e28a4\n// > <???> @ 0xcfbe0\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 ERR_peek_last_error()\n{\n  __int64 state; // x0\n  int v1; // w1\n\n  state = ERR_get_state();\n  v1 = *(_DWORD *)(state + 576);\n  if ( *(_DWORD *)(state + 580) == v1 )\n    return 0;\n  else\n    return *(_QWORD *)(state + 8LL * v1 + 64);\n}", "assembly": "; \n; ERR_peek_last_error from 0x101f1b4 to 0x101f1ec (56 bytes)\n; \n; 12 xrefs:\n; > ssl_build_cert_chain @ 0xfb9bd0\n; > ssl_build_cert_chain @ 0xfb9c20\n; > SSL_CTX_use_certificate_chain_file @ 0xfc394c\n; > SSL_use_certificate_chain_file @ 0xfc3b18\n; > CONF_modules_load_file @ 0x1000b28\n; > ec_GFp_simple_set_compressed_coordinates @ 0x1016c94\n; > X509_load_cert_file @ 0x1062de4\n; > X509_load_crl_file @ 0x1062f98\n; > sub_10A2708 @ 0x10a2760\n; > ec_GF2m_simple_set_compressed_coordinates @ 0x10b0ad8\n; > PEM_X509_INFO_read_bio @ 0x10e28a4\n; > <???> @ 0xcfbe0\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,#-0x10+var_s0]!                          ; +0x0, 0x101f1b4\nMOV             X29, SP                                                ; +0x4, 0x101f1b8\nBL              ERR_get_state                                          ; +0x8, 0x101f1bc\nLDR             W1, [X0,#0x240]                                        ; +0xc, 0x101f1c0\nLDR             W2, [X0,#0x244]                                        ; +0x10, 0x101f1c4\nCMP             W2, W1                                                 ; +0x14, 0x101f1c8\nB.EQ            loc_101F1E0                                            ; +0x18, 0x101f1cc\nADD             X0, X0, W1,SXTW#3                                      ; +0x1c, 0x101f1d0\nLDP             X29, X30, [SP+var_s0],#0x10                            ; +0x20, 0x101f1d4\nLDR             X0, [X0,#0x40]                                         ; +0x24, 0x101f1d8\nRET                                                                    ; +0x28, 0x101f1dc\nMOV             X0, #0                                                 ; +0x2c, 0x101f1e0\nLDP             X29, X30, [SP+var_s0],#0x10                            ; +0x30, 0x101f1e4\nRET                                                                    ; +0x34, 0x101f1e8", "xrefs": ["ssl_build_cert_chain @ 0xfb9bd0", "ssl_build_cert_chain @ 0xfb9c20", "SSL_CTX_use_certificate_chain_file @ 0xfc394c", "SSL_use_certificate_chain_file @ 0xfc3b18", "CONF_modules_load_file @ 0x1000b28", "ec_GFp_simple_set_compressed_coordinates @ 0x1016c94", "X509_load_cert_file @ 0x1062de4", "X509_load_crl_file @ 0x1062f98", "sub_10A2708 @ 0x10a2760", "ec_GF2m_simple_set_compressed_coordinates @ 0x10b0ad8", "PEM_X509_INFO_read_bio @ 0x10e28a4", "<???> @ 0xcfbe0"], "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"}