	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_dnssec_trust_tree_contains_keys ## -- Begin function ldns_dnssec_trust_tree_contains_keys
	.p2align	4, 0x90
_ldns_dnssec_trust_tree_contains_keys:  ## @ldns_dnssec_trust_tree_contains_keys
	.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
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.1:
	movq	%rsi, %r14
	testq	%rsi, %rsi
	je	LBB0_18
## %bb.2:
	movq	%rdi, %r12
	movq	_LDNS_STATUS_CRYPTO_NO_DNSKEY@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%r14, %rdi
	callq	_ldns_rr_list_rr_count
	testq	%rax, %rax
	je	LBB0_18
## %bb.3:
	cmpq	$0, 16(%r12)
	je	LBB0_9
## %bb.4:
	movq	%r14, %rdi
	callq	_ldns_rr_list_rr_count
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %r13
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ldns_rr_list_rr
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_ldns_rr_compare_ds
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movq	%r14, %rdi
	callq	_ldns_rr_list_rr_count
	cmpq	%rax, %rbx
	jb	LBB0_7
LBB0_9:
	cmpq	$0, (%r12)
	je	LBB0_20
## %bb.10:
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r13, %r15
LBB0_17:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%rbx
	cmpq	(%r12), %rbx
	jae	LBB0_20
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	%r14, %rsi
	callq	_ldns_dnssec_trust_tree_contains_keys
	movq	%rax, %r13
	movq	_LDNS_STATUS_CRYPTO_NO_DNSKEY@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	je	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%rbx,8), %r15
	movq	_LDNS_STATUS_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	16(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	callq	_ldns_rr_get_type
	movq	_LDNS_RR_TYPE_NSEC@GOTPCREL(%rip), %rcx
	xorq	(%rcx), %rax
	movq	_LDNS_STATUS_OK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorq	%r13, %rcx
	orq	%rax, %rcx
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_LDNS_STATUS_DNSSEC_EXISTENCE_DENIED@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	jmp	LBB0_16
LBB0_18:
	movq	_LDNS_STATUS_ERR@GOTPCREL(%rip), %rax
LBB0_19:
	movq	(%rax), %r15
LBB0_20:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_LDNS_STATUS_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_STATUS_CRYPTO_NO_DNSKEY,8,3 ## @LDNS_STATUS_CRYPTO_NO_DNSKEY
	.comm	_LDNS_STATUS_OK,8,3             ## @LDNS_STATUS_OK
	.comm	_LDNS_RR_TYPE_NSEC,8,3          ## @LDNS_RR_TYPE_NSEC
	.comm	_LDNS_STATUS_DNSSEC_EXISTENCE_DENIED,8,3 ## @LDNS_STATUS_DNSSEC_EXISTENCE_DENIED
	.comm	_LDNS_STATUS_ERR,8,3            ## @LDNS_STATUS_ERR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_dnssec_trust_tree_contains_keys ; -- Begin function ldns_dnssec_trust_tree_contains_keys
	.p2align	2
_ldns_dnssec_trust_tree_contains_keys:  ; @ldns_dnssec_trust_tree_contains_keys
	.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
	cbz	x0, LBB0_16
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_16
; %bb.2:
	mov	x20, x0
Lloh0:
	adrp	x24, _LDNS_STATUS_CRYPTO_NO_DNSKEY@GOTPAGE
Lloh1:
	ldr	x24, [x24, _LDNS_STATUS_CRYPTO_NO_DNSKEY@GOTPAGEOFF]
	ldr	x21, [x24]
	mov	x0, x19
	bl	_ldns_rr_list_rr_count
	cbz	x0, LBB0_16
; %bb.3:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_8
; %bb.4:
	mov	x0, x19
	bl	_ldns_rr_list_rr_count
	cbz	x0, LBB0_8
; %bb.5:
	mov	x22, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x20, #16]
	mov	x0, x19
	mov	x1, x22
	bl	_ldns_rr_list_rr
	mov	x1, x0
	mov	x0, x23
	bl	_ldns_rr_compare_ds
	cbnz	w0, LBB0_19
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x22, x22, #1
	mov	x0, x19
	bl	_ldns_rr_list_rr_count
	cmp	x22, x0
	b.lo	LBB0_6
LBB0_8:
	ldr	x8, [x20]
	cbz	x8, LBB0_18
; %bb.9:
	mov	x23, #0
Lloh2:
	adrp	x25, _LDNS_STATUS_OK@GOTPAGE
Lloh3:
	ldr	x25, [x25, _LDNS_STATUS_OK@GOTPAGEOFF]
Lloh4:
	adrp	x26, _LDNS_RR_TYPE_NSEC@GOTPAGE
Lloh5:
	ldr	x26, [x26, _LDNS_RR_TYPE_NSEC@GOTPAGEOFF]
Lloh6:
	adrp	x27, _LDNS_STATUS_DNSSEC_EXISTENCE_DENIED@GOTPAGE
Lloh7:
	ldr	x27, [x27, _LDNS_STATUS_DNSSEC_EXISTENCE_DENIED@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	bl	_ldns_rr_get_type
	ldr	x8, [x26]
	ldr	x9, [x25]
	cmp	x22, x9
	ccmp	x0, x8, #0, eq
	ldr	x8, [x27]
	csel	x21, x8, x22, eq
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x23, x23, #1
	ldr	x8, [x20]
	cmp	x23, x8
	b.hs	LBB0_18
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	ldr	x0, [x8, x23, lsl #3]
	mov	x1, x19
	bl	_ldns_dnssec_trust_tree_contains_keys
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x20, #8]
	ldr	x21, [x8, x23, lsl #3]
	ldr	x8, [x25]
	cmp	x21, x8
	b.ne	LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x22, x0
	ldr	x0, [x20, #16]
	cbnz	x0, LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x21, x22
	b	LBB0_11
LBB0_16:
Lloh8:
	adrp	x8, _LDNS_STATUS_ERR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LDNS_STATUS_ERR@GOTPAGEOFF]
LBB0_17:
	ldr	x21, [x8]
LBB0_18:
	mov	x0, 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_19:
Lloh10:
	adrp	x8, _LDNS_STATUS_OK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LDNS_STATUS_OK@GOTPAGEOFF]
	b	LBB0_17
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_STATUS_CRYPTO_NO_DNSKEY,8,3 ; @LDNS_STATUS_CRYPTO_NO_DNSKEY
	.comm	_LDNS_STATUS_OK,8,3             ; @LDNS_STATUS_OK
	.comm	_LDNS_RR_TYPE_NSEC,8,3          ; @LDNS_RR_TYPE_NSEC
	.comm	_LDNS_STATUS_DNSSEC_EXISTENCE_DENIED,8,3 ; @LDNS_STATUS_DNSSEC_EXISTENCE_DENIED
	.comm	_LDNS_STATUS_ERR,8,3            ; @LDNS_STATUS_ERR
.subsections_via_symbols
