	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_dnssec_derive_trust_tree_ds_rrset_time ## -- Begin function ldns_dnssec_derive_trust_tree_ds_rrset_time
	.p2align	4, 0x90
_ldns_dnssec_derive_trust_tree_ds_rrset_time: ## @ldns_dnssec_derive_trust_tree_ds_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	$24, %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	%rsi, %r12
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %rbx
	movq	%rdx, %rdi
	callq	_ldns_rr_get_type
	movq	_LDNS_RR_TYPE_DNSKEY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.1:
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.3:
	callq	_ldns_rr_list_rr_count
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:
	xorl	%r13d, %r13d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r13
	movq	(%r12), %rax
	movq	(%rax), %rdi
	callq	_ldns_rr_list_rr_count
	cmpq	%rax, %r13
	jae	LBB0_12
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	(%r12), %rax
	movq	(%rax), %rdi
	movq	%r13, %rsi
	callq	_ldns_rr_list_rr
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_ldns_rr_get_type
	movq	_LDNS_RR_TYPE_DS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_ldns_rr_list_rr_count
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r15d, %r15d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=2
	incq	%r15
	movq	%rbx, %rdi
	callq	_ldns_rr_list_rr_count
	cmpq	%rax, %r15
	jae	LBB0_11
LBB0_8:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_ldns_rr_list_rr
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_ldns_rr_compare_ds
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movq	(%r12), %rdi
	movq	%r14, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_ldns_dnssec_derive_trust_tree_time
	movq	_LDNS_STATUS_OK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_ldns_dnssec_trust_tree_add_parent
	jmp	LBB0_10
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RR_TYPE_DNSKEY,8,3        ## @LDNS_RR_TYPE_DNSKEY
	.comm	_LDNS_RR_TYPE_DS,8,3            ## @LDNS_RR_TYPE_DS
	.comm	_LDNS_STATUS_OK,4,2             ## @LDNS_STATUS_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_dnssec_derive_trust_tree_ds_rrset_time ; -- Begin function ldns_dnssec_derive_trust_tree_ds_rrset_time
	.p2align	2
_ldns_dnssec_derive_trust_tree_ds_rrset_time: ; @ldns_dnssec_derive_trust_tree_ds_rrset_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	x19, x3
	mov	x20, x1
	mov	x21, x0
	ldr	x22, [x1, #8]
	mov	x0, x2
	bl	_ldns_rr_get_type
Lloh0:
	adrp	x8, _LDNS_RR_TYPE_DNSKEY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LDNS_RR_TYPE_DNSKEY@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.1:
	ldr	x8, [x20]
	cbz	x8, LBB0_12
; %bb.2:
	ldr	x0, [x8]
	cbz	x0, LBB0_12
; %bb.3:
	bl	_ldns_rr_list_rr_count
	cbz	x0, LBB0_12
; %bb.4:
	mov	x23, #0
Lloh3:
	adrp	x26, _LDNS_RR_TYPE_DS@GOTPAGE
Lloh4:
	ldr	x26, [x26, _LDNS_RR_TYPE_DS@GOTPAGEOFF]
Lloh5:
	adrp	x27, _LDNS_STATUS_OK@GOTPAGE
Lloh6:
	ldr	x27, [x27, _LDNS_STATUS_OK@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x23, #1
	ldr	x8, [x20]
	ldr	x0, [x8]
	bl	_ldns_rr_list_rr_count
	cmp	x23, x0
	b.hs	LBB0_12
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	x8, [x20]
	ldr	x0, [x8]
	mov	x1, x23
	bl	_ldns_rr_list_rr
	mov	x24, x0
	bl	_ldns_rr_get_type
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	bl	_ldns_rr_list_rr_count
	cbz	x0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x25, #0
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	add	x25, x25, #1
	mov	x0, x22
	bl	_ldns_rr_list_rr_count
	cmp	x25, x0
	b.hs	LBB0_5
LBB0_10:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x22
	mov	x1, x25
	bl	_ldns_rr_list_rr
	mov	x1, x24
	bl	_ldns_rr_compare_ds
	cbz	x0, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x0, [x20]
	mov	x1, x24
	mov	x2, x19
	bl	_ldns_dnssec_derive_trust_tree_time
	mov	x1, x0
	ldr	w3, [x27]
	mov	x0, x21
	mov	x2, #0
	bl	_ldns_dnssec_trust_tree_add_parent
	b	LBB0_9
LBB0_12:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_DNSKEY,8,3        ; @LDNS_RR_TYPE_DNSKEY
	.comm	_LDNS_RR_TYPE_DS,8,3            ; @LDNS_RR_TYPE_DS
	.comm	_LDNS_STATUS_OK,4,2             ; @LDNS_STATUS_OK
.subsections_via_symbols
