	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ldns_dnssec_build_data_chain_other
_ldns_dnssec_build_data_chain_other:    ## @ldns_dnssec_build_data_chain_other
	.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	%rcx, %r14
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %r13
	movl	$1, (%rdx)
	movq	_LDNS_RR_TYPE_DS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rcx, %rsi
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, %ecx
	movl	%r12d, %r8d
	callq	_ldns_resolver_query
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	_LDNS_RR_TYPE_DS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_LDNS_SECTION_ANY_NOQUESTION@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ldns_pkt_rr_list_by_name_and_type
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, %r15
	movq	%r13, %rdi
	movl	%r12d, %esi
	movq	%rax, %rdx
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	callq	_ldns_dnssec_build_data_chain
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 16(%rcx)
	movq	_LDNS_RR_TYPE_DS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movq	%r15, %rdi
	callq	_ldns_rr_list_deep_free
LBB0_3:
	movq	%rbx, %rdi
	callq	_ldns_pkt_free
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_4:
	movq	_LDNS_RR_TYPE_DNSKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%r12d, %r8d
	callq	_ldns_resolver_query
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movq	%rax, %rbx
	movq	_LDNS_RR_TYPE_RRSIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_LDNS_SECTION_ANSWER@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ldns_pkt_rr_list_by_name_and_type
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	%rax, %r14
	cmpq	$0, 8(%r15)
	je	LBB0_8
## %bb.7:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	8(%r15), %rdi
	callq	_ldns_rr_list_deep_free
	leaq	L_str.2(%rip), %rdi
	callq	_puts
LBB0_8:
	movq	%r14, 8(%r15)
LBB0_9:
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ldns_pkt_free                  ## TAILCALL
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RR_TYPE_DS,4,2            ## @LDNS_RR_TYPE_DS
	.comm	_LDNS_SECTION_ANY_NOQUESTION,4,2 ## @LDNS_SECTION_ANY_NOQUESTION
	.comm	_LDNS_RR_TYPE_DNSKEY,4,2        ## @LDNS_RR_TYPE_DNSKEY
	.comm	_LDNS_RR_TYPE_RRSIG,4,2         ## @LDNS_RR_TYPE_RRSIG
	.comm	_LDNS_SECTION_ANSWER,4,2        ## @LDNS_SECTION_ANSWER
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"There were already sigs!"

L_str.2:                                ## @str.2
	.asciz	"replacing the old sigs"

	.no_dead_strip	_ldns_dnssec_build_data_chain_other
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ldns_dnssec_build_data_chain_other
_ldns_dnssec_build_data_chain_other:    ; @ldns_dnssec_build_data_chain_other
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x4
	mov	x20, x3
	mov	x19, x2
	mov	x22, x1
	mov	x23, x0
	mov	w8, #1
	str	w8, [x2]
Lloh0:
	adrp	x26, _LDNS_RR_TYPE_DS@GOTPAGE
Lloh1:
	ldr	x26, [x26, _LDNS_RR_TYPE_DS@GOTPAGEOFF]
	ldr	w2, [x26]
	mov	x1, x3
	mov	x3, x4
	mov	x4, x22
	bl	_ldns_resolver_query
	cbz	x0, LBB0_4
; %bb.1:
	mov	x24, x0
	ldr	w2, [x26]
Lloh2:
	adrp	x8, _LDNS_SECTION_ANY_NOQUESTION@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LDNS_SECTION_ANY_NOQUESTION@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x1, x20
	bl	_ldns_pkt_rr_list_by_name_and_type
	cbz	x0, LBB0_3
; %bb.2:
	mov	x25, x0
	mov	x0, x23
	mov	x1, x22
	mov	x2, x25
	mov	x3, x24
	mov	x4, #0
	bl	_ldns_dnssec_build_data_chain
	str	x0, [x19, #16]
	ldr	w8, [x26]
	str	w8, [x0]
	mov	x0, x25
	bl	_ldns_rr_list_deep_free
LBB0_3:
	mov	x0, x24
	bl	_ldns_pkt_free
LBB0_4:
Lloh5:
	adrp	x8, _LDNS_RR_TYPE_DNSKEY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LDNS_RR_TYPE_DNSKEY@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x23
	mov	x1, x20
	mov	x3, x21
	mov	x4, x22
	bl	_ldns_resolver_query
	cbz	x0, LBB0_10
; %bb.5:
	mov	x21, x0
Lloh8:
	adrp	x8, _LDNS_RR_TYPE_RRSIG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LDNS_RR_TYPE_RRSIG@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _LDNS_SECTION_ANSWER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LDNS_SECTION_ANSWER@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x1, x20
	bl	_ldns_pkt_rr_list_by_name_and_type
	cbz	x0, LBB0_9
; %bb.6:
	mov	x20, x0
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_8
; %bb.7:
Lloh14:
	adrp	x0, l_str@PAGE
Lloh15:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	ldr	x0, [x19, #8]
	bl	_ldns_rr_list_deep_free
Lloh16:
	adrp	x0, l_str.2@PAGE
Lloh17:
	add	x0, x0, l_str.2@PAGEOFF
	bl	_puts
LBB0_8:
	str	x20, [x19, #8]
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ldns_pkt_free
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_DS,4,2            ; @LDNS_RR_TYPE_DS
	.comm	_LDNS_SECTION_ANY_NOQUESTION,4,2 ; @LDNS_SECTION_ANY_NOQUESTION
	.comm	_LDNS_RR_TYPE_DNSKEY,4,2        ; @LDNS_RR_TYPE_DNSKEY
	.comm	_LDNS_RR_TYPE_RRSIG,4,2         ; @LDNS_RR_TYPE_RRSIG
	.comm	_LDNS_SECTION_ANSWER,4,2        ; @LDNS_SECTION_ANSWER
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"There were already sigs!"

l_str.2:                                ; @str.2
	.asciz	"replacing the old sigs"

	.no_dead_strip	_ldns_dnssec_build_data_chain_other
.subsections_via_symbols
