	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dane_verify
_dane_verify:                           ## @dane_verify
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	40(%rdi), %r14
	movq	48(%rdi), %r12
	movq	%r12, %rdi
	callq	_dane_reset
	movq	40(%r13), %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_dane_match
	testl	%eax, %eax
	je	LBB0_1
## %bb.5:
	movl	%eax, %ebx
	movl	32(%r13), %esi
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	callq	_X509_get_pubkey_parameters
	testl	%ebx, %ebx
	jle	LBB0_11
## %bb.6:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_check_leaf_suiteb
	testl	%eax, %eax
	je	LBB0_12
## %bb.7:
	movq	_DANE_FLAG_NO_DANE_EE_NAMECHECKS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r12)
	jne	LBB0_9
## %bb.8:
	movq	%r13, %rdi
	callq	_check_id
	testl	%eax, %eax
	je	LBB0_12
LBB0_9:
	movq	$0, 24(%r13)
	movq	%r14, 16(%r13)
	movq	(%r13), %rax
	movl	$1, %edi
	movq	%r13, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_1:
	movq	%r12, %rdi
	callq	_DANETLS_HAS_TA
	testl	%eax, %eax
	jne	LBB0_10
## %bb.2:
	cmpq	$0, (%r12)
	js	LBB0_3
LBB0_10:
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_verify_chain                   ## TAILCALL
LBB0_11:
	movq	$0, 24(%r13)
	movq	%r14, 16(%r13)
	movq	_X509_V_ERR_OUT_OF_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
	movl	$-1, %r15d
LBB0_12:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	32(%r13), %esi
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	callq	_X509_get_pubkey_parameters
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_check_leaf_suiteb
	testl	%eax, %eax
	je	LBB0_12
## %bb.4:
	movq	_X509_V_ERR_DANE_NO_MATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_verify_cb_cert                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DANE_FLAG_NO_DANE_EE_NAMECHECKS,4,2 ## @DANE_FLAG_NO_DANE_EE_NAMECHECKS
	.comm	_X509_V_ERR_OUT_OF_MEM,4,2      ## @X509_V_ERR_OUT_OF_MEM
	.comm	_X509_V_ERR_DANE_NO_MATCH,4,2   ## @X509_V_ERR_DANE_NO_MATCH
	.no_dead_strip	_dane_verify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dane_verify
_dane_verify:                           ; @dane_verify
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldp	x20, x21, [x0, #40]
	mov	x0, x21
	bl	_dane_reset
	ldr	x1, [x19, #40]
	mov	x0, x19
	mov	w2, #0
	bl	_dane_match
	cbz	w0, LBB0_6
; %bb.1:
	mov	x22, x0
	ldr	w1, [x19, #32]
	mov	x0, #0
	bl	_X509_get_pubkey_parameters
	cmp	w22, #1
	b.lt	LBB0_9
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	bl	_check_leaf_suiteb
	cbz	w0, LBB0_10
; %bb.3:
	ldr	w8, [x21, #8]
Lloh0:
	adrp	x9, _DANE_FLAG_NO_DANE_EE_NAMECHECKS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DANE_FLAG_NO_DANE_EE_NAMECHECKS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_check_id
	cbz	w0, LBB0_10
LBB0_5:
	stp	x20, xzr, [x19, #16]
	ldr	x2, [x19]
	mov	w0, #1
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	br	x2
LBB0_6:
	mov	x0, x21
	bl	_DANETLS_HAS_TA
	cbnz	w0, LBB0_8
; %bb.7:
	ldr	x8, [x21]
	tbnz	x8, #63, LBB0_11
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_verify_chain
LBB0_9:
	stp	x20, xzr, [x19, #16]
Lloh3:
	adrp	x8, _X509_V_ERR_OUT_OF_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _X509_V_ERR_OUT_OF_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	mov	w0, #-1
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_11:
	ldr	w1, [x19, #32]
	mov	x0, #0
	bl	_X509_get_pubkey_parameters
	mov	x0, x19
	mov	x1, x20
	bl	_check_leaf_suiteb
	cbz	w0, LBB0_10
; %bb.12:
Lloh6:
	adrp	x8, _X509_V_ERR_DANE_NO_MATCH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _X509_V_ERR_DANE_NO_MATCH@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_verify_cb_cert
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DANE_FLAG_NO_DANE_EE_NAMECHECKS,4,2 ; @DANE_FLAG_NO_DANE_EE_NAMECHECKS
	.comm	_X509_V_ERR_OUT_OF_MEM,4,2      ; @X509_V_ERR_OUT_OF_MEM
	.comm	_X509_V_ERR_DANE_NO_MATCH,4,2   ; @X509_V_ERR_DANE_NO_MATCH
	.no_dead_strip	_dane_verify
.subsections_via_symbols
