	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_dnssec_create_nsec        ## -- Begin function ldns_dnssec_create_nsec
	.p2align	4, 0x90
_ldns_dnssec_create_nsec:               ## @ldns_dnssec_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	$524296, %eax                   ## imm = 0x80008
	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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%r15d, %r15d
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.1:
	movq	%rsi, %r12
	testq	%rsi, %rsi
	je	LBB0_16
## %bb.2:
	movq	%rdx, %r14
	movq	_LDNS_RR_TYPE_NSEC@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	jne	LBB0_16
## %bb.3:
	movq	%rdi, %r13
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_ldns_rr_new
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_ldns_rr_set_type
	movq	%r13, %rdi
	callq	_ldns_dnssec_name_name
	movl	%eax, %edi
	callq	_ldns_rdf_clone
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_ldns_rr_set_owner
	movq	%r12, %rdi
	callq	_ldns_dnssec_name_name
	movl	%eax, %edi
	callq	_ldns_rdf_clone
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_ldns_rr_push_rdf
	movq	(%r13), %rdi
	movq	_LDNS_RR_TYPE_NS@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	callq	_ldns_dnssec_rrsets_contains_type
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	(%r13), %rdi
	movq	_LDNS_RR_TYPE_SOA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_ldns_dnssec_rrsets_contains_type
	testq	%rax, %rax
	sete	%bl
LBB0_5:
	movq	(%r13), %rdx
	movq	_LDNS_RR_TYPE_RRSIG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_LDNS_RR_TYPE_NSEC@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.7:
	movq	(%r12), %rdi
	movq	_LDNS_RR_TYPE_DS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r9
	xorl	%esi, %esi
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%rcx, -524336(%rbp,%rsi,8)
	incq	%rsi
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%rdx), %rdx
	testq	%rdx, %rdx
	je	LBB0_15
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx), %rcx
	testb	%bl, %bl
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpq	%rdi, %rcx
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpq	%r9, %rcx
	jne	LBB0_14
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpq	%rax, %rcx
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpq	%r8, %rcx
	jne	LBB0_13
	jmp	LBB0_14
LBB0_6:
	xorl	%esi, %esi
LBB0_15:
	movq	%rax, -524336(%rbp,%rsi,8)
	movq	%r8, -524328(%rbp,%rsi,8)
	addq	$2, %rsi
	leaq	-524336(%rbp), %rdi
	movq	%r14, %rdx
	callq	_ldns_dnssec_create_nsec_bitmap
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_ldns_rr_push_rdf
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	movq	%r15, %rax
	addq	$524296, %rsp                   ## imm = 0x80008
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RR_TYPE_NSEC,8,3          ## @LDNS_RR_TYPE_NSEC
	.comm	_LDNS_RR_TYPE_NS,8,3            ## @LDNS_RR_TYPE_NS
	.comm	_LDNS_RR_TYPE_SOA,8,3           ## @LDNS_RR_TYPE_SOA
	.comm	_LDNS_RR_TYPE_DS,8,3            ## @LDNS_RR_TYPE_DS
	.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_dnssec_create_nsec        ; -- Begin function ldns_dnssec_create_nsec
	.p2align	2
_ldns_dnssec_create_nsec:               ; @ldns_dnssec_create_nsec
	.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	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	x19, #0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	cbz	x0, LBB0_14
; %bb.1:
	mov	x22, x1
	cbz	x1, LBB0_14
; %bb.2:
	mov	x20, x2
Lloh5:
	adrp	x23, _LDNS_RR_TYPE_NSEC@GOTPAGE
Lloh6:
	ldr	x23, [x23, _LDNS_RR_TYPE_NSEC@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x8, x2
	b.ne	LBB0_14
; %bb.3:
	mov	x21, x0
	bl	_ldns_rr_new
	mov	x19, x0
	mov	x1, x20
	bl	_ldns_rr_set_type
	mov	x0, x21
	bl	_ldns_dnssec_name_name
	bl	_ldns_rdf_clone
	mov	x1, x0
	mov	x0, x19
	bl	_ldns_rr_set_owner
	mov	x0, x22
	bl	_ldns_dnssec_name_name
	bl	_ldns_rdf_clone
	mov	x1, x0
	mov	x0, x19
	bl	_ldns_rr_push_rdf
	ldr	x0, [x21]
Lloh7:
	adrp	x22, _LDNS_RR_TYPE_NS@GOTPAGE
Lloh8:
	ldr	x22, [x22, _LDNS_RR_TYPE_NS@GOTPAGEOFF]
	ldr	x1, [x22]
	bl	_ldns_dnssec_rrsets_contains_type
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x0, [x21]
Lloh9:
	adrp	x8, _LDNS_RR_TYPE_SOA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LDNS_RR_TYPE_SOA@GOTPAGEOFF]
Lloh11:
	ldr	x1, [x8]
	bl	_ldns_dnssec_rrsets_contains_type
	cmp	x0, #0
	cset	w8, eq
	b	LBB0_6
LBB0_5:
	mov	w8, #0
LBB0_6:
	ldr	x12, [x21]
Lloh12:
	adrp	x9, _LDNS_RR_TYPE_RRSIG@GOTPAGE
Lloh13:
	ldr	x9, [x9, _LDNS_RR_TYPE_RRSIG@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	ldr	x10, [x23]
	mov	x11, #0
	cbz	x12, LBB0_13
; %bb.7:
	ldr	x13, [x22]
Lloh15:
	adrp	x14, _LDNS_RR_TYPE_DS@GOTPAGE
Lloh16:
	ldr	x14, [x14, _LDNS_RR_TYPE_DS@GOTPAGEOFF]
Lloh17:
	ldr	x14, [x14]
	add	x15, sp, #8
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	str	x16, [x15, x11, lsl #3]
	add	x11, x11, #1
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	x12, [x12, #8]
	cbz	x12, LBB0_13
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x16, [x12]
	cbz	w8, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	x16, x13
	ccmp	x16, x14, #4, ne
	b.eq	LBB0_8
	b	LBB0_9
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=1
	cmp	x16, x9
	ccmp	x16, x10, #4, ne
	b.ne	LBB0_8
	b	LBB0_9
LBB0_13:
	add	x8, sp, #8
	add	x8, x8, x11, lsl #3
	stp	x9, x10, [x8]
	add	x1, x11, #2
	add	x0, sp, #8
	mov	x2, x20
	bl	_ldns_dnssec_create_nsec_bitmap
	mov	x1, x0
	mov	x0, x19
	bl	_ldns_rr_push_rdf
LBB0_14:
	ldur	x8, [x29, #-56]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x19
	add	sp, sp, #128, lsl #12           ; =524288
	add	sp, sp, #16
	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
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_NSEC,8,3          ; @LDNS_RR_TYPE_NSEC
	.comm	_LDNS_RR_TYPE_NS,8,3            ; @LDNS_RR_TYPE_NS
	.comm	_LDNS_RR_TYPE_SOA,8,3           ; @LDNS_RR_TYPE_SOA
	.comm	_LDNS_RR_TYPE_DS,8,3            ; @LDNS_RR_TYPE_DS
	.comm	_LDNS_RR_TYPE_RRSIG,8,3         ; @LDNS_RR_TYPE_RRSIG
.subsections_via_symbols
