{"type": "func", "start": 16904684, "end": 16904764, "name": "ERR_peek_error", "pseudocode": "// \n// ERR_peek_error from 0x101f1ec to 0x101f23c (80 bytes)\n// \n// 8 xrefs:\n// > sub_E2DA90 @ 0xe2dfa0\n// > SSL_get_error @ 0xfc0958\n// > SSL_CTX_use_certificate_chain_file @ 0xfc38c0\n// > SSL_use_certificate_chain_file @ 0xfc3a8c\n// > PEM_bytes_read_bio @ 0x1046d34\n// > ASN1_d2i_bio @ 0x108657c\n// > ASN1_item_d2i_bio @ 0x10869e8\n// > <???> @ 0xc6628\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_error()\n{\n  __int64 state; // x0\n  int v1; // w1\n\n  state = ERR_get_state();\n  v1 = *(_DWORD *)(state + 580);\n  if ( v1 == *(_DWORD *)(state + 576) )\n    return 0;\n  else\n    return *(_QWORD *)(state + 8LL * ((v1 + 1) % 16) + 64);\n}", "assembly": "; \n; ERR_peek_error from 0x101f1ec to 0x101f23c (80 bytes)\n; \n; 8 xrefs:\n; > sub_E2DA90 @ 0xe2dfa0\n; > SSL_get_error @ 0xfc0958\n; > SSL_CTX_use_certificate_chain_file @ 0xfc38c0\n; > SSL_use_certificate_chain_file @ 0xfc3a8c\n; > PEM_bytes_read_bio @ 0x1046d34\n; > ASN1_d2i_bio @ 0x108657c\n; > ASN1_item_d2i_bio @ 0x10869e8\n; > <???> @ 0xc6628\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, 0x101f1ec\nMOV             X29, SP                                                ; +0x4, 0x101f1f0\nBL              ERR_get_state                                          ; +0x8, 0x101f1f4\nLDR             W1, [X0,#0x244]                                        ; +0xc, 0x101f1f8\nLDR             W2, [X0,#0x240]                                        ; +0x10, 0x101f1fc\nCMP             W1, W2                                                 ; +0x14, 0x101f200\nB.EQ            loc_101F230                                            ; +0x18, 0x101f204\nADD             W1, W1, #1                                             ; +0x1c, 0x101f208\nASR             W3, W1, #0x1F                                          ; +0x20, 0x101f20c\nLSR             W3, W3, #0x1C                                          ; +0x24, 0x101f210\nADD             W2, W1, W3                                             ; +0x28, 0x101f214\nAND             W2, W2, #0xF                                           ; +0x2c, 0x101f218\nSUB             W1, W2, W3                                             ; +0x30, 0x101f21c\nADD             X1, X0, W1,SXTW#3                                      ; +0x34, 0x101f220\nLDP             X29, X30, [SP+var_s0],#0x10                            ; +0x38, 0x101f224\nLDR             X0, [X1,#0x40]                                         ; +0x3c, 0x101f228\nRET                                                                    ; +0x40, 0x101f22c\nMOV             X0, #0                                                 ; +0x44, 0x101f230\nLDP             X29, X30, [SP+var_s0],#0x10                            ; +0x48, 0x101f234\nRET                                                                    ; +0x4c, 0x101f238", "xrefs": ["sub_E2DA90 @ 0xe2dfa0", "SSL_get_error @ 0xfc0958", "SSL_CTX_use_certificate_chain_file @ 0xfc38c0", "SSL_use_certificate_chain_file @ 0xfc3a8c", "PEM_bytes_read_bio @ 0x1046d34", "ASN1_d2i_bio @ 0x108657c", "ASN1_item_d2i_bio @ 0x10869e8", "<???> @ 0xc6628"], "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"}