	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wolfssl_tls_fail_event
_wolfssl_tls_fail_event:                ## @wolfssl_tls_fail_event
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r12
	cmpq	$0, 8(%r12)
	je	LBB0_4
## %bb.1:
	movl	%ecx, %r13d
	movl	%edx, %ebx
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movl	16(%rbp), %r14d
	movq	%rsi, %rdi
	callq	_get_x509_cert
	movq	%rax, %r15
	leaq	-88(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_os_memset
	movq	_TLS_FAIL_UNSPECIFIED@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_3
## %bb.2:
	movl	%ebx, %edi
	callq	_wolfssl_tls_fail_reason
	movl	%eax, %r14d
LBB0_3:
	movl	%r14d, -88(%rbp)
	movl	%r13d, -84(%rbp)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -80(%rbp)
	movl	%ebx, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_wolfssl_tls_err_string
	movl	%eax, -64(%rbp)
	movq	%r15, -72(%rbp)
	movl	(%r12), %edi
	movq	_TLS_CERT_CHAIN_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-88(%rbp), %rdx
	callq	*8(%r12)
	movq	%r15, %rdi
	callq	_wpabuf_free
LBB0_4:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TLS_FAIL_UNSPECIFIED,4,2       ## @TLS_FAIL_UNSPECIFIED
	.comm	_TLS_CERT_CHAIN_FAILURE,4,2     ## @TLS_CERT_CHAIN_FAILURE
	.no_dead_strip	_wolfssl_tls_fail_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wolfssl_tls_fail_event
_wolfssl_tls_fail_event:                ; @wolfssl_tls_fail_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x25, [x0]
	ldr	x8, [x25, #8]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x24, x6
	mov	x20, x5
	mov	x22, x4
	mov	x23, x3
	mov	x21, x2
	mov	x0, x1
	bl	_get_x509_cert
	mov	x19, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #32
	bl	_os_memset
Lloh0:
	adrp	x8, _TLS_FAIL_UNSPECIFIED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TLS_FAIL_UNSPECIFIED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w24
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_wolfssl_tls_fail_reason
	mov	x24, x0
LBB0_3:
	stp	w24, w23, [sp]
	str	x22, [sp, #8]
	mov	x0, x21
	mov	x1, x20
	bl	_wolfssl_tls_err_string
	str	w0, [sp, #24]
	str	x19, [sp, #16]
	ldr	x8, [x25, #8]
	ldr	w0, [x25]
Lloh3:
	adrp	x9, _TLS_CERT_CHAIN_FAILURE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TLS_CERT_CHAIN_FAILURE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	mov	x2, sp
	blr	x8
	mov	x0, x19
	bl	_wpabuf_free
LBB0_4:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_TLS_FAIL_UNSPECIFIED,4,2       ; @TLS_FAIL_UNSPECIFIED
	.comm	_TLS_CERT_CHAIN_FAILURE,4,2     ; @TLS_CERT_CHAIN_FAILURE
	.no_dead_strip	_wolfssl_tls_fail_event
.subsections_via_symbols
