{"type": "func", "start": 8368380, "end": 8368440, "name": "ERR_peek_error", "pseudocode": "// \n// ERR_peek_error from 0x7fb0fc to 0x7fb138 (60 bytes)\n// \n// 8 xrefs:\n// > sub_643938 @ 0x643e1c\n// > SSL_get_error @ 0x799ac4\n// > SSL_CTX_use_certificate_chain_file @ 0x79cb2c\n// > SSL_use_certificate_chain_file @ 0x79cd08\n// > PEM_bytes_read_bio @ 0x823204\n// > ASN1_d2i_bio @ 0x860238\n// > ASN1_item_d2i_bio @ 0x8606dc\n// > <???> @ 0x5521c\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_error()\n{\n  int state; // r0\n  int v1; // r3\n\n  state = ERR_get_state();\n  v1 = *(_DWORD *)(state + 388);\n  if ( v1 == *(_DWORD *)(state + 384) )\n    return 0;\n  else\n    return *(_DWORD *)(state + 4 * ((v1 + 1) % 16 + 16));\n}", "assembly": "; \n; ERR_peek_error from 0x7fb0fc to 0x7fb138 (60 bytes)\n; \n; 8 xrefs:\n; > sub_643938 @ 0x643e1c\n; > SSL_get_error @ 0x799ac4\n; > SSL_CTX_use_certificate_chain_file @ 0x79cb2c\n; > SSL_use_certificate_chain_file @ 0x79cd08\n; > PEM_bytes_read_bio @ 0x823204\n; > ASN1_d2i_bio @ 0x860238\n; > ASN1_item_d2i_bio @ 0x8606dc\n; > <???> @ 0x5521c\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, 0x7fb0fc\nBL              ERR_get_state                                          ; +0x4, 0x7fb100\nLDR             R3, [R0,#0x184]                                        ; +0x8, 0x7fb104\nLDR             R2, [R0,#0x180]                                        ; +0xc, 0x7fb108\nCMP             R3, R2                                                 ; +0x10, 0x7fb10c\nADDNE           R3, R3, #1                                             ; +0x14, 0x7fb110\nMOVNE           R2, R3,ASR#31                                          ; +0x18, 0x7fb114\nMOVNE           R2, R2,LSR#28                                          ; +0x1c, 0x7fb118\nADDNE           R3, R3, R2                                             ; +0x20, 0x7fb11c\nANDNE           R3, R3, #0xF                                           ; +0x24, 0x7fb120\nRSBNE           R3, R2, R3                                             ; +0x28, 0x7fb124\nADDNE           R3, R3, #0x10                                          ; +0x2c, 0x7fb128\nLDRNE           R0, [R0,R3,LSL#2]                                      ; +0x30, 0x7fb12c\nMOVEQ           R0, #0                                                 ; +0x34, 0x7fb130\nPOP             {R3,PC}                                                ; +0x38, 0x7fb134", "xrefs": ["sub_643938 @ 0x643e1c", "SSL_get_error @ 0x799ac4", "SSL_CTX_use_certificate_chain_file @ 0x79cb2c", "SSL_use_certificate_chain_file @ 0x79cd08", "PEM_bytes_read_bio @ 0x823204", "ASN1_d2i_bio @ 0x860238", "ASN1_item_d2i_bio @ 0x8606dc", "<???> @ 0x5521c"], "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"}