	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_dnssec_derive_trust_tree_normal_rrset_time ## -- Begin function ldns_dnssec_derive_trust_tree_normal_rrset_time
	.p2align	4, 0x90
_ldns_dnssec_derive_trust_tree_normal_rrset_time: ## @ldns_dnssec_derive_trust_tree_normal_rrset_time
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	8(%rsi), %edi
	callq	_ldns_rr_list_clone
	movq	%rax, %r15
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_ldns_rr_rrsig_keytag
	movl	%eax, %edi
	callq	_ldns_rdf2native_int16
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	callq	_ldns_rr_list_rr_count
	testq	%rax, %rax
	je	LBB0_23
## %bb.1:
	xorl	%r12d, %r12d
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rdi
	movq	%r14, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_ldns_dnssec_derive_trust_tree_time
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%r13d, %ecx
	callq	_ldns_dnssec_trust_tree_add_parent
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	callq	_ldns_rr_list_rr_count
	cmpq	%rax, %r12
	jae	LBB0_23
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
                                        ##     Child Loop BB0_20 Depth 2
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	movq	%r12, %rsi
	callq	_ldns_rr_list_rr
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_ldns_rr_get_type
	movq	_LDNS_RR_TYPE_DNSKEY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_ldns_calc_keytag
	cmpq	-80(%rbp), %rax                 ## 8-byte Folded Reload
	jne	LBB0_22
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%r15, %r15
	je	LBB0_22
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_ldns_rr_list_rr_count
	testq	%rax, %rax
	jle	LBB0_22
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ldns_rr_list_rr
	movq	%rax, %rdi
	callq	_ldns_rr_get_type
	movq	_LDNS_RR_TYPE_NSEC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ldns_rr_list_rr
	movq	%rax, %rdi
	callq	_ldns_rr_get_type
	movq	%r15, %rbx
	movq	_LDNS_RR_TYPE_NSEC3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_ldns_rr_list_sort
	movl	$1, %edi
	callq	_assert
	movq	%r15, %rdi
	callq	_ldns_rr_list_pop_rrset
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	callq	_ldns_rr_list_rr_count
	testq	%rax, %rax
	jle	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ldns_rr_list_rr
	movq	%rax, %rdi
	callq	_ldns_rr_owner
	movl	%eax, %r13d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_ldns_rr_owner
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_ldns_dname_compare
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	%rbx, %rdi
	callq	_ldns_rr_list_deep_free
	movq	%r15, %rdi
	callq	_ldns_rr_list_pop_rrset
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_10
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_ldns_verify_rrsig_time
	movl	%eax, %r13d
	testq	%rbx, %rbx
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r15, %rbx
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_ldns_rr_list_deep_free
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	testq	%rax, %rax
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_20:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rcx,%rdx,8), %rsi
	cmpq	(%rsi), %r14
	je	LBB0_23
## %bb.19:                              ##   in Loop: Header=BB0_20 Depth=2
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_20
	jmp	LBB0_21
LBB0_23:
	movq	%r15, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ldns_rr_list_deep_free         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RR_TYPE_DNSKEY,8,3        ## @LDNS_RR_TYPE_DNSKEY
	.comm	_LDNS_RR_TYPE_NSEC,8,3          ## @LDNS_RR_TYPE_NSEC
	.comm	_LDNS_RR_TYPE_NSEC3,8,3         ## @LDNS_RR_TYPE_NSEC3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_dnssec_derive_trust_tree_normal_rrset_time ; -- Begin function ldns_dnssec_derive_trust_tree_normal_rrset_time
	.p2align	2
_ldns_dnssec_derive_trust_tree_normal_rrset_time: ; @ldns_dnssec_derive_trust_tree_normal_rrset_time
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	w3, [sp, #12]                   ; 4-byte Folded Spill
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	w0, [x1, #8]
	bl	_ldns_rr_list_clone
	mov	x23, x0
	mov	x0, x20
	bl	_ldns_rr_rrsig_keytag
	bl	_ldns_rdf2native_int16
	mov	x24, x0
	ldr	x8, [x21]
	ldr	x0, [x8]
	bl	_ldns_rr_list_rr_count
	cbz	x0, LBB0_21
; %bb.1:
	mov	x25, #0
Lloh0:
	adrp	x19, _LDNS_RR_TYPE_DNSKEY@GOTPAGE
Lloh1:
	ldr	x19, [x19, _LDNS_RR_TYPE_DNSKEY@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x21]
	mov	x1, x26
	ldr	w2, [sp, #12]                   ; 4-byte Folded Reload
	bl	_ldns_dnssec_derive_trust_tree_time
	mov	x1, x0
	mov	x0, x22
	mov	x2, x20
	mov	x3, x28
	bl	_ldns_dnssec_trust_tree_add_parent
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	ldr	x8, [x21]
	ldr	x0, [x8]
	bl	_ldns_rr_list_rr_count
	cmp	x25, x0
	b.hs	LBB0_21
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
                                        ;     Child Loop BB0_19 Depth 2
	ldr	x8, [x21]
	ldr	x0, [x8]
	mov	x1, x25
	bl	_ldns_rr_list_rr
	mov	x26, x0
	bl	_ldns_rr_get_type
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x26
	bl	_ldns_calc_keytag
	cmp	x0, x24
	ccmp	x23, #0, #4, eq
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_ldns_rr_list_rr_count
	cmp	x0, #1
	b.lt	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	mov	x1, #0
	bl	_ldns_rr_list_rr
	bl	_ldns_rr_get_type
Lloh2:
	adrp	x8, _LDNS_RR_TYPE_NSEC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LDNS_RR_TYPE_NSEC@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	mov	x1, #0
	bl	_ldns_rr_list_rr
	bl	_ldns_rr_get_type
Lloh5:
	adrp	x8, _LDNS_RR_TYPE_NSEC3@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LDNS_RR_TYPE_NSEC3@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	mov	x27, x23
	cmp	x0, x8
	b.ne	LBB0_14
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_ldns_rr_list_sort
	mov	w0, #1
	bl	_assert
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x23
	bl	_ldns_rr_list_pop_rrset
	mov	x27, x0
	cbz	x0, LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x0, x23
	bl	_ldns_rr_list_rr_count
	cmp	x0, #1
	b.lt	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x0, x27
	mov	x1, #0
	bl	_ldns_rr_list_rr
	bl	_ldns_rr_owner
	mov	x28, x0
	mov	x0, x20
	bl	_ldns_rr_owner
	mov	x1, x0
	mov	x0, x28
	bl	_ldns_dname_compare
	cbz	x0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x0, x27
	bl	_ldns_rr_list_deep_free
	b	LBB0_10
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x27
	mov	x1, x20
	mov	x2, x26
	ldr	w3, [sp, #12]                   ; 4-byte Folded Reload
	bl	_ldns_verify_rrsig_time
	mov	x28, x0
	cbz	x27, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	x27, x23
	b.eq	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x27
	bl	_ldns_rr_list_deep_free
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22]
	cbz	x8, LBB0_2
; %bb.18:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x22, #8]
LBB0_19:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x10, [x9]
	ldr	x10, [x10]
	cmp	x26, x10
	b.eq	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=2
	add	x9, x9, #8
	subs	x8, x8, #1
	b.ne	LBB0_19
	b	LBB0_2
LBB0_21:
	mov	x0, x23
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_ldns_rr_list_deep_free
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_DNSKEY,8,3        ; @LDNS_RR_TYPE_DNSKEY
	.comm	_LDNS_RR_TYPE_NSEC,8,3          ; @LDNS_RR_TYPE_NSEC
	.comm	_LDNS_RR_TYPE_NSEC3,8,3         ; @LDNS_RR_TYPE_NSEC3
.subsections_via_symbols
