{"type": "func", "start": 14290572, "end": 14290652, "name": "ERR_peek_error", "pseudocode": "// \n// ERR_peek_error from 0xda0e8c to 0xda0edc (80 bytes)\n// \n// 8 xrefs:\n// > sub_BB78D0 @ 0xbb7de0\n// > SSL_get_error @ 0xd42604\n// > SSL_CTX_use_certificate_chain_file @ 0xd4556c\n// > SSL_use_certificate_chain_file @ 0xd45738\n// > PEM_bytes_read_bio @ 0xdc89d4\n// > ASN1_d2i_bio @ 0xe0827c\n// > ASN1_item_d2i_bio @ 0xe086e8\n// > <???> @ 0x96300\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\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 0xda0e8c to 0xda0edc (80 bytes)\n; \n; 8 xrefs:\n; > sub_BB78D0 @ 0xbb7de0\n; > SSL_get_error @ 0xd42604\n; > SSL_CTX_use_certificate_chain_file @ 0xd4556c\n; > SSL_use_certificate_chain_file @ 0xd45738\n; > PEM_bytes_read_bio @ 0xdc89d4\n; > ASN1_d2i_bio @ 0xe0827c\n; > ASN1_item_d2i_bio @ 0xe086e8\n; > <???> @ 0x96300\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\nSTP             X29, X30, [SP,#-0x10+var_s0]!                          ; +0x0, 0xda0e8c\nMOV             X29, SP                                                ; +0x4, 0xda0e90\nBL              ERR_get_state                                          ; +0x8, 0xda0e94\nLDR             W1, [X0,#0x244]                                        ; +0xc, 0xda0e98\nLDR             W2, [X0,#0x240]                                        ; +0x10, 0xda0e9c\nCMP             W1, W2                                                 ; +0x14, 0xda0ea0\nB.EQ            loc_DA0ED0                                             ; +0x18, 0xda0ea4\nADD             W1, W1, #1                                             ; +0x1c, 0xda0ea8\nASR             W3, W1, #0x1F                                          ; +0x20, 0xda0eac\nLSR             W3, W3, #0x1C                                          ; +0x24, 0xda0eb0\nADD             W2, W1, W3                                             ; +0x28, 0xda0eb4\nAND             W2, W2, #0xF                                           ; +0x2c, 0xda0eb8\nSUB             W1, W2, W3                                             ; +0x30, 0xda0ebc\nADD             X1, X0, W1,SXTW#3                                      ; +0x34, 0xda0ec0\nLDP             X29, X30, [SP+var_s0],#0x10                            ; +0x38, 0xda0ec4\nLDR             X0, [X1,#0x40]                                         ; +0x3c, 0xda0ec8\nRET                                                                    ; +0x40, 0xda0ecc\nMOV             X0, #0                                                 ; +0x44, 0xda0ed0\nLDP             X29, X30, [SP+var_s0],#0x10                            ; +0x48, 0xda0ed4\nRET                                                                    ; +0x4c, 0xda0ed8", "xrefs": ["sub_BB78D0 @ 0xbb7de0", "SSL_get_error @ 0xd42604", "SSL_CTX_use_certificate_chain_file @ 0xd4556c", "SSL_use_certificate_chain_file @ 0xd45738", "PEM_bytes_read_bio @ 0xdc89d4", "ASN1_d2i_bio @ 0xe0827c", "ASN1_item_d2i_bio @ 0xe086e8", "<???> @ 0x96300"], "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"}