	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_dnssec_derive_trust_tree_time ## -- Begin function ldns_dnssec_derive_trust_tree_time
	.p2align	4, 0x90
_ldns_dnssec_derive_trust_tree_time:    ## @ldns_dnssec_derive_trust_tree_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_ldns_dnssec_trust_tree_new
	movq	%rax, %r12
	testq	%r14, %r14
	je	LBB0_24
## %bb.1:
	testq	%r12, %r12
	je	LBB0_24
## %bb.2:
	movq	16(%r14), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_24
## %bb.3:
	movq	8(%r14), %r13
	testq	%r15, %r15
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_4
LBB0_6:
	movq	%r15, 8(%r12)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r12)
	testq	%r13, %r13
	je	LBB0_23
## %bb.7:
	movq	%r13, %rdi
	callq	_ldns_rr_list_rr_count
	testq	%rax, %rax
	je	LBB0_22
## %bb.8:
	xorl	%r14d, %r14d
	movl	%ebx, -68(%rbp)                 ## 4-byte Spill
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r12, %rdi
	movq	%r15, %rdx
	movq	%r13, %rcx
	movl	%ebx, %r8d
	callq	_ldns_dnssec_derive_trust_tree_dnskey_rrset_time
	incq	%r14
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_ldns_rr_list_rr_count
	cmpq	%rax, %r14
	jae	LBB0_22
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
	movl	%ebx, %r13d
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_ldns_rr_list_rr
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_ldns_rr_get_type
	movq	_LDNS_RR_TYPE_NSEC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rdi
	callq	_ldns_rr_owner
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_ldns_rr_owner
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_ldns_dname_compare
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_ldns_rr_list_rr_count
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=1
	xorl	%r12d, %r12d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	callq	_ldns_rr_owner
	movl	%eax, %r13d
	movq	%r15, %rdi
	callq	_ldns_rr_owner
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_ldns_dname_compare
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_ldns_rr_list_rr
	movq	%rax, %r15
	incq	%r12
	movq	%rbx, %rdi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	callq	_ldns_rr_list_rr_count
	cmpq	%rax, %r12
	jb	LBB0_16
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	%r13d, %ebx
	jmp	LBB0_19
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movl	%r13d, %ebx
	jmp	LBB0_19
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_18:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rdi
	callq	_ldns_rr_owner
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_ldns_rr_owner
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_ldns_dname_compare
	testq	%rax, %rax
	movl	-68(%rbp), %ebx                 ## 4-byte Reload
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_22
LBB0_19:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	cmpq	$0, (%rsi)
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	movl	%ebx, %ecx
	callq	_ldns_dnssec_derive_trust_tree_normal_rrset_time
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_21
LBB0_22:
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	movl	%ebx, %ecx
	callq	_ldns_dnssec_derive_trust_tree_ds_rrset_time
	jmp	LBB0_24
LBB0_4:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_ldns_rr_list_rr_count
	testq	%rax, %rax
	je	LBB0_24
## %bb.5:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_ldns_rr_list_rr
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_6
	jmp	LBB0_24
LBB0_23:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_ldns_dnssec_derive_trust_tree_no_sig_time
LBB0_24:
	movq	%r12, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RR_TYPE_NSEC,8,3          ## @LDNS_RR_TYPE_NSEC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_dnssec_derive_trust_tree_time ; -- Begin function ldns_dnssec_derive_trust_tree_time
	.p2align	2
_ldns_dnssec_derive_trust_tree_time:    ; @ldns_dnssec_derive_trust_tree_time
	.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	x20, x2
	mov	x23, x1
	mov	x21, x0
	bl	_ldns_dnssec_trust_tree_new
	mov	x19, x0
	cbz	x21, LBB0_21
; %bb.1:
	cbz	x19, LBB0_21
; %bb.2:
	ldr	x22, [x21, #16]
	cbz	x22, LBB0_21
; %bb.3:
	ldr	x24, [x21, #8]
	cbz	x23, LBB0_18
LBB0_4:
	stp	x22, x23, [x19]
	cbz	x24, LBB0_20
; %bb.5:
	mov	x0, x24
	bl	_ldns_rr_list_rr_count
	cbz	x0, LBB0_17
; %bb.6:
	mov	x25, #0
Lloh0:
	adrp	x28, _LDNS_RR_TYPE_NSEC@GOTPAGE
Lloh1:
	ldr	x28, [x28, _LDNS_RR_TYPE_NSEC@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	mov	x3, x26
	mov	x4, x20
	bl	_ldns_dnssec_derive_trust_tree_dnskey_rrset_time
	add	x25, x25, #1
	mov	x0, x24
	bl	_ldns_rr_list_rr_count
	cmp	x25, x0
	b.hs	LBB0_17
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	mov	x0, x24
	mov	x1, x25
	bl	_ldns_rr_list_rr
	mov	x26, x0
	mov	x0, x23
	bl	_ldns_rr_get_type
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x26
	bl	_ldns_rr_owner
	mov	x27, x0
	mov	x0, x23
	bl	_ldns_rr_owner
	mov	x1, x0
	mov	x0, x27
	bl	_ldns_dname_compare
	cbz	x0, LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x22
	bl	_ldns_rr_list_rr_count
	cbz	x0, LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x27, #0
LBB0_12:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x26
	bl	_ldns_rr_owner
	mov	x28, x0
	mov	x0, x23
	bl	_ldns_rr_owner
	mov	x1, x0
	mov	x0, x28
	bl	_ldns_dname_compare
	cbz	x0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	mov	x0, x22
	mov	x1, x27
	bl	_ldns_rr_list_rr
	mov	x23, x0
	add	x27, x27, #1
	mov	x0, x22
	bl	_ldns_rr_list_rr_count
	cmp	x27, x0
	b.lo	LBB0_12
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x26
	bl	_ldns_rr_owner
	mov	x27, x0
	mov	x0, x23
	bl	_ldns_rr_owner
	mov	x1, x0
	mov	x0, x27
	bl	_ldns_dname_compare
Lloh2:
	adrp	x28, _LDNS_RR_TYPE_NSEC@GOTPAGE
Lloh3:
	ldr	x28, [x28, _LDNS_RR_TYPE_NSEC@GOTPAGEOFF]
	cbnz	x0, LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x21]
	cbz	x8, LBB0_7
; %bb.16:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	x2, x26
	mov	x3, x20
	bl	_ldns_dnssec_derive_trust_tree_normal_rrset_time
	b	LBB0_7
LBB0_17:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	mov	x3, x20
	bl	_ldns_dnssec_derive_trust_tree_ds_rrset_time
	b	LBB0_21
LBB0_18:
	mov	x0, x22
	bl	_ldns_rr_list_rr_count
	cbz	x0, LBB0_21
; %bb.19:
	mov	x0, x22
	mov	x1, #0
	bl	_ldns_rr_list_rr
	mov	x23, x0
	cbnz	x0, LBB0_4
	b	LBB0_21
LBB0_20:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_ldns_dnssec_derive_trust_tree_no_sig_time
LBB0_21:
	mov	x0, x19
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_NSEC,8,3          ; @LDNS_RR_TYPE_NSEC
.subsections_via_symbols
