	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_zone_sign                 ## -- Begin function ldns_zone_sign
	.p2align	4, 0x90
_ldns_zone_sign:                        ## @ldns_zone_sign
	.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
	movq	%rsi, %r15
	movq	%rdi, %r13
	xorl	%eax, %eax
	callq	_ldns_zone_new
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_ldns_dnssec_zone_new
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_ldns_zone_soa
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_ldns_dnssec_zone_add_rr
	movq	%r13, %rdi
	callq	_ldns_zone_soa
	movl	%eax, %edi
	callq	_ldns_rr_clone
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_ldns_zone_set_soa
	movq	%r13, %rdi
	callq	_ldns_zone_rrs
	movq	%rax, %rdi
	callq	_ldns_rr_list_rr_count
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_ldns_zone_rrs
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_ldns_rr_list_rr
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_ldns_dnssec_zone_add_rr
	movq	%r13, %rdi
	callq	_ldns_zone_rrs
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_ldns_rr_list_rr
	movl	%eax, %edi
	callq	_ldns_rr_clone
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_ldns_zone_push_rr
	incq	%rbx
	movq	%r13, %rdi
	callq	_ldns_zone_rrs
	movq	%rax, %rdi
	callq	_ldns_rr_list_rr_count
	cmpq	%rax, %rbx
	jb	LBB0_2
LBB0_3:
	xorl	%eax, %eax
	callq	_ldns_rr_list_new
	movq	%rax, %r13
	movq	_ldns_dnssec_default_replace_signatures@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	xorl	%r8d, %r8d
	callq	_ldns_dnssec_zone_sign
	movq	%r13, %rdi
	callq	_ldns_rr_list_rr_count
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_ldns_zone_rrs
	movq	%rax, %r15
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_ldns_rr_list_rr
	movl	%eax, %edi
	callq	_ldns_rr_clone
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_ldns_rr_list_push_rr
	incq	%rbx
	movq	%r13, %rdi
	callq	_ldns_rr_list_rr_count
	cmpq	%rax, %rbx
	jb	LBB0_5
LBB0_6:
	movq	%r13, %rdi
	callq	_ldns_rr_list_deep_free
	movq	%r14, %rdi
	callq	_ldns_dnssec_zone_free
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ldns_dnssec_default_replace_signatures,4,2 ## @ldns_dnssec_default_replace_signatures
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_zone_sign                 ; -- Begin function ldns_zone_sign
	.p2align	2
_ldns_zone_sign:                        ; @ldns_zone_sign
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x22, x0
	bl	_ldns_zone_new
	mov	x19, x0
	bl	_ldns_dnssec_zone_new
	mov	x20, x0
	mov	x0, x22
	bl	_ldns_zone_soa
	mov	x1, x0
	mov	x0, x20
	bl	_ldns_dnssec_zone_add_rr
	mov	x0, x22
	bl	_ldns_zone_soa
	bl	_ldns_rr_clone
	mov	x1, x0
	mov	x0, x19
	bl	_ldns_zone_set_soa
	mov	x0, x22
	bl	_ldns_zone_rrs
	bl	_ldns_rr_list_rr_count
	cbz	x0, LBB0_3
; %bb.1:
	mov	x23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_ldns_zone_rrs
	mov	x1, x23
	bl	_ldns_rr_list_rr
	mov	x1, x0
	mov	x0, x20
	bl	_ldns_dnssec_zone_add_rr
	mov	x0, x22
	bl	_ldns_zone_rrs
	mov	x1, x23
	bl	_ldns_rr_list_rr
	bl	_ldns_rr_clone
	mov	x1, x0
	mov	x0, x19
	bl	_ldns_zone_push_rr
	add	x23, x23, #1
	mov	x0, x22
	bl	_ldns_zone_rrs
	bl	_ldns_rr_list_rr_count
	cmp	x23, x0
	b.lo	LBB0_2
LBB0_3:
	bl	_ldns_rr_list_new
	mov	x22, x0
Lloh0:
	adrp	x8, _ldns_dnssec_default_replace_signatures@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ldns_dnssec_default_replace_signatures@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	mov	x4, #0
	bl	_ldns_dnssec_zone_sign
	mov	x0, x22
	bl	_ldns_rr_list_rr_count
	cbz	x0, LBB0_6
; %bb.4:
	mov	x21, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_ldns_zone_rrs
	mov	x23, x0
	mov	x0, x22
	mov	x1, x21
	bl	_ldns_rr_list_rr
	bl	_ldns_rr_clone
	mov	x1, x0
	mov	x0, x23
	bl	_ldns_rr_list_push_rr
	add	x21, x21, #1
	mov	x0, x22
	bl	_ldns_rr_list_rr_count
	cmp	x21, x0
	b.lo	LBB0_5
LBB0_6:
	mov	x0, x22
	bl	_ldns_rr_list_deep_free
	mov	x0, x20
	bl	_ldns_dnssec_zone_free
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ldns_dnssec_default_replace_signatures,4,2 ; @ldns_dnssec_default_replace_signatures
.subsections_via_symbols
