	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_dane_pkeys
_check_dane_pkeys:                      ## @check_dane_pkeys
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	16(%rdi), %r14
	movl	(%rdi), %ebx
	movl	8(%rdi), %edi
	decl	%ebx
	movl	%ebx, %esi
	callq	_sk_X509_value
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	24(%r14), %edi
	callq	_sk_danetls_record_num
	movq	_X509_TRUST_UNTRUSTED@GOTPCREL(%rip), %r15
	testl	%eax, %eax
	jle	LBB0_11
## %bb.1:
	movl	%eax, %r13d
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	_DANETLS_USAGE_DANE_TA@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	cmpl	%ebx, %r13d
	je	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	24(%r14), %edi
	movl	%ebx, %esi
	callq	_sk_danetls_record_value
	movq	%rax, %r15
	movq	(%rax), %rax
	cmpq	(%r12), %rax
	jne	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %rax
	movq	_DANETLS_SELECTOR_SPKI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r15), %rax
	movq	_DANETLS_MATCHING_FULL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	24(%r15), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_X509_verify
	testq	%rax, %rax
	jle	LBB0_9
## %bb.6:
	movq	16(%r14), %rdi
	callq	_X509_free
	movq	$0, 16(%r14)
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	$1, 4(%r12)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r14)
	movq	%r15, 8(%r14)
	movl	8(%r12), %edi
	callq	_sk_X509_num
	movq	_X509_TRUST_TRUSTED@GOTPCREL(%rip), %r15
	cmpl	(%r12), %eax
	jle	LBB0_11
## %bb.7:
	movl	%eax, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r12), %edi
	callq	_sk_X509_pop
	movq	%rax, %rdi
	callq	_X509_free
	decl	%ebx
	cmpl	(%r12), %ebx
	jg	LBB0_8
	jmp	LBB0_11
LBB0_10:
	movq	_X509_TRUST_UNTRUSTED@GOTPCREL(%rip), %r15
LBB0_11:
	movl	(%r15), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DANETLS_USAGE_DANE_TA,8,3      ## @DANETLS_USAGE_DANE_TA
	.comm	_DANETLS_SELECTOR_SPKI,8,3      ## @DANETLS_SELECTOR_SPKI
	.comm	_DANETLS_MATCHING_FULL,8,3      ## @DANETLS_MATCHING_FULL
	.comm	_X509_TRUST_TRUSTED,4,2         ## @X509_TRUST_TRUSTED
	.comm	_X509_TRUST_UNTRUSTED,4,2       ## @X509_TRUST_UNTRUSTED
	.no_dead_strip	_check_dane_pkeys
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_dane_pkeys
_check_dane_pkeys:                      ; @check_dane_pkeys
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x25, [x0, #16]
	ldr	w8, [x0]
	ldr	w0, [x0, #8]
	sub	w20, w8, #1
	mov	x1, x20
	bl	_sk_X509_value
	mov	x21, x0
	ldr	w0, [x25, #24]
	bl	_sk_danetls_record_num
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x22, x0
	mov	w23, #0
Lloh0:
	adrp	x27, _DANETLS_USAGE_DANE_TA@GOTPAGE
Lloh1:
	ldr	x27, [x27, _DANETLS_USAGE_DANE_TA@GOTPAGEOFF]
Lloh2:
	adrp	x28, _DANETLS_SELECTOR_SPKI@GOTPAGE
Lloh3:
	ldr	x28, [x28, _DANETLS_SELECTOR_SPKI@GOTPAGEOFF]
Lloh4:
	adrp	x26, _DANETLS_MATCHING_FULL@GOTPAGE
Lloh5:
	ldr	x26, [x26, _DANETLS_MATCHING_FULL@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w23, w23, #1
	cmp	w22, w23
	b.eq	LBB0_10
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x25, #24]
	mov	x1, x23
	bl	_sk_danetls_record_value
	ldr	x8, [x0]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, x0
	ldr	x8, [x0, #8]
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x24, #16]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x24, #24]
	mov	x0, x21
	bl	_X509_verify
	cmp	x0, #1
	b.lt	LBB0_2
; %bb.7:
	ldr	x0, [x25, #16]
	bl	_X509_free
	mov	w8, #1
	str	w8, [x19, #4]
	str	w20, [x25]
	stp	x24, xzr, [x25, #8]
	ldr	w0, [x19, #8]
	bl	_sk_X509_num
	ldr	w8, [x19]
	cmp	w0, w8
	b.le	LBB0_12
; %bb.8:
	mov	x20, x0
Lloh6:
	adrp	x21, _X509_TRUST_TRUSTED@GOTPAGE
Lloh7:
	ldr	x21, [x21, _X509_TRUST_TRUSTED@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #8]
	bl	_sk_X509_pop
	bl	_X509_free
	sub	w20, w20, #1
	ldr	w8, [x19]
	cmp	w20, w8
	b.gt	LBB0_9
	b	LBB0_11
LBB0_10:
Lloh8:
	adrp	x21, _X509_TRUST_UNTRUSTED@GOTPAGE
Lloh9:
	ldr	x21, [x21, _X509_TRUST_UNTRUSTED@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x21]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh10:
	adrp	x21, _X509_TRUST_TRUSTED@GOTPAGE
Lloh11:
	ldr	x21, [x21, _X509_TRUST_TRUSTED@GOTPAGEOFF]
	b	LBB0_11
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DANETLS_USAGE_DANE_TA,8,3      ; @DANETLS_USAGE_DANE_TA
	.comm	_DANETLS_SELECTOR_SPKI,8,3      ; @DANETLS_SELECTOR_SPKI
	.comm	_DANETLS_MATCHING_FULL,8,3      ; @DANETLS_MATCHING_FULL
	.comm	_X509_TRUST_TRUSTED,4,2         ; @X509_TRUST_TRUSTED
	.comm	_X509_TRUST_UNTRUSTED,4,2       ; @X509_TRUST_UNTRUSTED
	.no_dead_strip	_check_dane_pkeys
.subsections_via_symbols
