{"type": "func", "start": 8368344, "end": 8368380, "name": "ERR_peek_last_error", "pseudocode": "// \n// ERR_peek_last_error from 0x7fb0d8 to 0x7fb0fc (36 bytes)\n// \n// 12 xrefs:\n// > ssl_build_cert_chain @ 0x7926a8\n// > ssl_build_cert_chain @ 0x7926f8\n// > SSL_CTX_use_certificate_chain_file @ 0x79cbbc\n// > SSL_use_certificate_chain_file @ 0x79cd98\n// > CONF_modules_load_file @ 0x7dad24\n// > ec_GFp_simple_set_compressed_coordinates @ 0x7f2608\n// > X509_load_cert_file @ 0x83cbe4\n// > X509_load_crl_file @ 0x83cdb0\n// > sub_879C94 @ 0x879ce4\n// > ec_GF2m_simple_set_compressed_coordinates @ 0x888fc8\n// > PEM_X509_INFO_read_bio @ 0x8ba41c\n// > <???> @ 0x5b4ec\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\nint ERR_peek_last_error()\n{\n  int state; // r0\n  int v1; // r3\n\n  state = ERR_get_state();\n  v1 = *(_DWORD *)(state + 384);\n  if ( *(_DWORD *)(state + 388) == v1 )\n    return 0;\n  else\n    return *(_DWORD *)(state + 4 * (v1 + 16));\n}", "assembly": "; \n; ERR_peek_last_error from 0x7fb0d8 to 0x7fb0fc (36 bytes)\n; \n; 12 xrefs:\n; > ssl_build_cert_chain @ 0x7926a8\n; > ssl_build_cert_chain @ 0x7926f8\n; > SSL_CTX_use_certificate_chain_file @ 0x79cbbc\n; > SSL_use_certificate_chain_file @ 0x79cd98\n; > CONF_modules_load_file @ 0x7dad24\n; > ec_GFp_simple_set_compressed_coordinates @ 0x7f2608\n; > X509_load_cert_file @ 0x83cbe4\n; > X509_load_crl_file @ 0x83cdb0\n; > sub_879C94 @ 0x879ce4\n; > ec_GF2m_simple_set_compressed_coordinates @ 0x888fc8\n; > PEM_X509_INFO_read_bio @ 0x8ba41c\n; > <???> @ 0x5b4ec\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\nPUSH            {R3,LR}                                                ; +0x0, 0x7fb0d8\nBL              ERR_get_state                                          ; +0x4, 0x7fb0dc\nLDR             R3, [R0,#0x180]                                        ; +0x8, 0x7fb0e0\nLDR             R2, [R0,#0x184]                                        ; +0xc, 0x7fb0e4\nCMP             R2, R3                                                 ; +0x10, 0x7fb0e8\nADDNE           R3, R3, #0x10                                          ; +0x14, 0x7fb0ec\nLDRNE           R0, [R0,R3,LSL#2]                                      ; +0x18, 0x7fb0f0\nMOVEQ           R0, #0                                                 ; +0x1c, 0x7fb0f4\nPOP             {R3,PC}                                                ; +0x20, 0x7fb0f8", "xrefs": ["ssl_build_cert_chain @ 0x7926a8", "ssl_build_cert_chain @ 0x7926f8", "SSL_CTX_use_certificate_chain_file @ 0x79cbbc", "SSL_use_certificate_chain_file @ 0x79cd98", "CONF_modules_load_file @ 0x7dad24", "ec_GFp_simple_set_compressed_coordinates @ 0x7f2608", "X509_load_cert_file @ 0x83cbe4", "X509_load_crl_file @ 0x83cdb0", "sub_879C94 @ 0x879ce4", "ec_GF2m_simple_set_compressed_coordinates @ 0x888fc8", "PEM_X509_INFO_read_bio @ 0x8ba41c", "<???> @ 0x5b4ec"], "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"}