	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_create_nsec               ## -- Begin function ldns_create_nsec
	.p2align	4, 0x90
_ldns_create_nsec:                      ## @ldns_create_nsec
	.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
	movl	$524312, %eax                   ## imm = 0x80018
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_ldns_rr_new
	movq	%rax, %rbx
	movq	_LDNS_RR_TYPE_NSEC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_ldns_rr_set_type
	movq	%r12, %rdi
	callq	_ldns_rdf_clone
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_ldns_rr_set_owner
	movq	%r14, %rdi
	callq	_ldns_rdf_clone
	movq	%rbx, -524344(%rbp)             ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_ldns_rr_push_rdf
	movq	%r13, %rdi
	callq	_ldns_rr_list_rr_count
	testq	%rax, %rax
	jle	LBB0_9
## %bb.1:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_2
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, -524336(%rbp,%r15,8)
	incq	%r15
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movq	%r13, %rdi
	callq	_ldns_rr_list_rr_count
	cmpq	%rax, %rbx
	jge	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_ldns_rr_list_rr
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_ldns_rr_owner
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_ldns_rdf_compare
	testq	%rax, %rax
	jne	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_ldns_rr_get_type
	movq	_LDNS_RR_TYPE_RRSIG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_LDNS_RR_TYPE_NSEC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%r15, %r15
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rax, -524344(%rbp,%r15,8)
	jne	LBB0_7
	jmp	LBB0_8
LBB0_9:
	movq	_LDNS_RR_TYPE_RRSIG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -524336(%rbp,%r15,8)
	movq	_LDNS_RR_TYPE_NSEC@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%rdx, -524328(%rbp,%r15,8)
	addq	$2, %r15
	leaq	-524336(%rbp), %rdi
	movq	%r15, %rsi
	callq	_ldns_dnssec_create_nsec_bitmap
	movq	-524344(%rbp), %rbx             ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_ldns_rr_push_rdf
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movq	%rbx, %rax
	addq	$524312, %rsp                   ## imm = 0x80018
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RR_TYPE_NSEC,8,3          ## @LDNS_RR_TYPE_NSEC
	.comm	_LDNS_RR_TYPE_RRSIG,8,3         ## @LDNS_RR_TYPE_RRSIG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_create_nsec               ; -- Begin function ldns_create_nsec
	.p2align	2
_ldns_create_nsec:                      ; @ldns_create_nsec
	.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	w9, #16
	movk	w9, #8, lsl #16
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #128, lsl #12           ; =524288
	sub	sp, sp, #16
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	bl	_ldns_rr_new
	mov	x19, x0
Lloh5:
	adrp	x24, _LDNS_RR_TYPE_NSEC@GOTPAGE
Lloh6:
	ldr	x24, [x24, _LDNS_RR_TYPE_NSEC@GOTPAGEOFF]
	ldr	x1, [x24]
	bl	_ldns_rr_set_type
	mov	x0, x21
	bl	_ldns_rdf_clone
	mov	x1, x0
	mov	x0, x19
	bl	_ldns_rr_set_owner
	mov	x0, x22
	bl	_ldns_rdf_clone
	mov	x1, x0
	mov	x0, x19
	bl	_ldns_rr_push_rdf
	mov	x0, x20
	bl	_ldns_rr_list_rr_count
Lloh7:
	adrp	x26, _LDNS_RR_TYPE_RRSIG@GOTPAGE
Lloh8:
	ldr	x26, [x26, _LDNS_RR_TYPE_RRSIG@GOTPAGEOFF]
	cmp	x0, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x25, #0
	mov	x22, #0
	add	x27, sp, #8
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	x0, [x27, x25, lsl #3]
	add	x25, x25, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	mov	x0, x20
	bl	_ldns_rr_list_rr_count
	cmp	x22, x0
	b.ge	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_ldns_rr_list_rr
	mov	x23, x0
	bl	_ldns_rr_owner
	mov	x1, x0
	mov	x0, x21
	bl	_ldns_rdf_compare
	cbnz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_ldns_rr_get_type
	ldr	x8, [x26]
	ldr	x9, [x24]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	x25, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x27, x25, lsl #3
	ldur	x8, [x8, #-8]
	cmp	x8, x0
	b.ne	LBB0_2
	b	LBB0_3
LBB0_8:
	mov	x25, #0
LBB0_9:
	ldr	x8, [x26]
	add	x9, sp, #8
	ldr	x2, [x24]
	add	x9, x9, x25, lsl #3
	stp	x8, x2, [x9]
	add	x1, x25, #2
	add	x0, sp, #8
	bl	_ldns_dnssec_create_nsec_bitmap
	mov	x1, x0
	mov	x0, x19
	bl	_ldns_rr_push_rdf
	ldur	x8, [x29, #-88]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x19
	add	sp, sp, #128, lsl #12           ; =524288
	add	sp, sp, #16
	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
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_NSEC,8,3          ; @LDNS_RR_TYPE_NSEC
	.comm	_LDNS_RR_TYPE_RRSIG,8,3         ; @LDNS_RR_TYPE_RRSIG
.subsections_via_symbols
