	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_dnssec_zone_create_nsecs  ## -- Begin function ldns_dnssec_zone_create_nsecs
	.p2align	4, 0x90
_ldns_dnssec_zone_create_nsecs:         ## @ldns_dnssec_zone_create_nsecs
	.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	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movl	4(%rdi), %edi
	movq	_LDNS_RR_TYPE_SOA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ldns_dnssec_name_find_rrset
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.3:
	movl	$6, %esi
	callq	_ldns_rr_rdf
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	movl	$6, %esi
	callq	_ldns_rr_rdf
	movq	%rax, %rdi
	callq	_ldns_rdf2native_int32
	movl	%eax, %r12d
	jmp	LBB0_6
LBB0_5:
	movq	_LDNS_DEFAULT_TTL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_6:
	movl	(%r15), %edi
	callq	_ldns_rbtree_first
	movl	%eax, %edi
	callq	_ldns_dnssec_name_node_next_nonglue
	testq	%rax, %rax
	je	LBB0_17
## %bb.7:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_ldns_rbtree_next
	movl	%eax, %edi
	callq	_ldns_dnssec_name_node_next_nonglue
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	setne	%cl
	je	LBB0_13
## %bb.8:
	movq	_LDNS_STATUS_OK@GOTPCREL(%rip), %r14
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %r15
	movq	%rax, %r13
	movq	(%rax), %rsi
	movq	_LDNS_RR_TYPE_NSEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_ldns_dnssec_create_nsec
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	%r12d, %esi
	callq	_ldns_rr_set_ttl
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ldns_dnssec_name_add_rr
	cmpq	(%r14), %rax
	jne	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_ldns_rr_list_push_rr
	movq	%r13, %rdi
	callq	_ldns_rbtree_next
	movl	%eax, %edi
	callq	_ldns_dnssec_name_node_next_nonglue
	testq	%rax, %rax
	setne	%cl
	jne	LBB0_9
LBB0_13:
	testb	%cl, %cl
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	je	LBB0_14
LBB0_17:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	_LDNS_STATUS_OK@GOTPCREL(%rip), %rbx
	jmp	LBB0_18
LBB0_14:
	movq	(%r13), %r15
	movq	(%rax), %rsi
	movq	_LDNS_RR_TYPE_NSEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_ldns_dnssec_create_nsec
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	%r12d, %esi
	callq	_ldns_rr_set_ttl
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ldns_dnssec_name_add_rr
	movq	_LDNS_STATUS_OK@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_15
## %bb.16:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_ldns_rr_list_push_rr
	jmp	LBB0_18
LBB0_10:
	movq	%rbx, %rdi
	jmp	LBB0_11
LBB0_15:
	movq	%r14, %rdi
LBB0_11:
	callq	_ldns_rr_free
	movq	_LDNS_STATUS_ERR@GOTPCREL(%rip), %rbx
LBB0_18:
	movq	(%rbx), %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RR_TYPE_SOA,4,2           ## @LDNS_RR_TYPE_SOA
	.comm	_LDNS_DEFAULT_TTL,4,2           ## @LDNS_DEFAULT_TTL
	.comm	_LDNS_RR_TYPE_NSEC,4,2          ## @LDNS_RR_TYPE_NSEC
	.comm	_LDNS_STATUS_OK,8,3             ## @LDNS_STATUS_OK
	.comm	_LDNS_STATUS_ERR,8,3            ## @LDNS_STATUS_ERR
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"error"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_dnssec_zone_create_nsecs  ; -- Begin function ldns_dnssec_zone_create_nsecs
	.p2align	2
_ldns_dnssec_zone_create_nsecs:         ; @ldns_dnssec_zone_create_nsecs
	.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	x19, x1
	mov	x21, x0
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x8, _LDNS_RR_TYPE_SOA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LDNS_RR_TYPE_SOA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_ldns_dnssec_name_find_rrset
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	x0, [x8]
	cbz	x0, LBB0_5
; %bb.3:
	mov	w1, #6
	bl	_ldns_rr_rdf
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x20]
	ldr	x0, [x8]
	mov	w1, #6
	bl	_ldns_rr_rdf
	bl	_ldns_rdf2native_int32
	mov	x20, x0
	b	LBB0_6
LBB0_5:
Lloh3:
	adrp	x8, _LDNS_DEFAULT_TTL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LDNS_DEFAULT_TTL@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
LBB0_6:
	ldr	w0, [x21]
	bl	_ldns_rbtree_first
	bl	_ldns_dnssec_name_node_next_nonglue
	cbz	x0, LBB0_12
; %bb.7:
	mov	x21, x0
	bl	_ldns_rbtree_next
	bl	_ldns_dnssec_name_node_next_nonglue
	cmp	x0, #0
	cset	w8, ne
	cbz	x0, LBB0_14
; %bb.8:
Lloh6:
	adrp	x25, _LDNS_RR_TYPE_NSEC@GOTPAGE
Lloh7:
	ldr	x25, [x25, _LDNS_RR_TYPE_NSEC@GOTPAGEOFF]
Lloh8:
	adrp	x26, _LDNS_STATUS_OK@GOTPAGE
Lloh9:
	ldr	x26, [x26, _LDNS_STATUS_OK@GOTPAGEOFF]
	mov	x22, x21
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x22]
	mov	x22, x0
	ldr	x1, [x0]
	ldr	w2, [x25]
	mov	x0, x24
	bl	_ldns_dnssec_create_nsec
	mov	x23, x0
	mov	x1, x20
	bl	_ldns_rr_set_ttl
	mov	x0, x24
	mov	x1, x23
	bl	_ldns_dnssec_name_add_rr
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_17
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_ldns_rr_list_push_rr
	mov	x0, x22
	bl	_ldns_rbtree_next
	bl	_ldns_dnssec_name_node_next_nonglue
	cmp	x0, #0
	cset	w8, ne
	cbnz	x0, LBB0_9
; %bb.11:
	tbz	w8, #0, LBB0_15
LBB0_12:
Lloh10:
	adrp	x0, l_str@PAGE
Lloh11:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_13:
Lloh12:
	adrp	x8, _LDNS_STATUS_OK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LDNS_STATUS_OK@GOTPAGEOFF]
	b	LBB0_20
LBB0_14:
	mov	x22, x21
	tbnz	w8, #0, LBB0_12
LBB0_15:
	ldr	x22, [x22]
	ldr	x1, [x21]
Lloh14:
	adrp	x8, _LDNS_RR_TYPE_NSEC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LDNS_RR_TYPE_NSEC@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_ldns_dnssec_create_nsec
	mov	x21, x0
	mov	x1, x20
	bl	_ldns_rr_set_ttl
	mov	x0, x22
	mov	x1, x21
	bl	_ldns_dnssec_name_add_rr
Lloh17:
	adrp	x8, _LDNS_STATUS_OK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LDNS_STATUS_OK@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_18
; %bb.16:
	mov	x0, x19
	mov	x1, x21
	bl	_ldns_rr_list_push_rr
	b	LBB0_13
LBB0_17:
	mov	x0, x23
	b	LBB0_19
LBB0_18:
	mov	x0, x21
LBB0_19:
	bl	_ldns_rr_free
Lloh20:
	adrp	x8, _LDNS_STATUS_ERR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LDNS_STATUS_ERR@GOTPAGEOFF]
LBB0_20:
	ldr	x0, [x8]
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_SOA,4,2           ; @LDNS_RR_TYPE_SOA
	.comm	_LDNS_DEFAULT_TTL,4,2           ; @LDNS_DEFAULT_TTL
	.comm	_LDNS_RR_TYPE_NSEC,4,2          ; @LDNS_RR_TYPE_NSEC
	.comm	_LDNS_STATUS_OK,8,3             ; @LDNS_STATUS_OK
	.comm	_LDNS_STATUS_ERR,8,3            ; @LDNS_STATUS_ERR
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"error"

.subsections_via_symbols
