	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_create_nsec3              ## -- Begin function ldns_create_nsec3
	.p2align	4, 0x90
_ldns_create_nsec3:                     ## @ldns_create_nsec3
	.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	$8232, %eax                     ## imm = 0x2028
	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	%r9, %r15
	movl	%r8d, -8244(%rbp)               ## 4-byte Spill
	movl	%ecx, %r13d
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	24(%rbp), %r8
	movl	16(%rbp), %ecx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdi, -8256(%rbp)               ## 8-byte Spill
	movl	%r13d, %esi
	movq	%r9, %rdx
	callq	_ldns_nsec3_hash_name
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_ldns_dname_cat
	movq	_LDNS_STATUS_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	%rbx, -8264(%rbp)               ## 8-byte Spill
	movq	_LDNS_RR_TYPE_NSEC3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ldns_rr_new_frm_type
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	_LDNS_RR_TYPE_NSEC3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ldns_rr_set_type
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ldns_rr_set_owner
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	-8244(%rbp), %edx               ## 4-byte Reload
	movq	%r15, %rcx
	movl	16(%rbp), %r8d
	movq	24(%rbp), %r9
	callq	_ldns_nsec3_add_param_rdfs
	xorl	%r13d, %r13d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_ldns_rr_set_rdf
	movq	%r12, %rdi
	callq	_ldns_rr_list_rr_count
	testq	%rax, %rax
	movq	%rbx, %r14
	je	LBB0_10
## %bb.4:
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, -8240(%rbp,%r13,8)
	incq	%r13
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r15
	movq	%r12, %rdi
	callq	_ldns_rr_list_rr_count
	cmpq	%rax, %r15
	jae	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_ldns_rr_list_rr
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ldns_rr_owner
	movq	-8256(%rbp), %rdi               ## 8-byte Reload
	movl	%eax, %esi
	callq	_ldns_rdf_compare
	testq	%rax, %rax
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_ldns_rr_get_type
	testq	%r13, %r13
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%rax, -8248(%rbp,%r13,8)
	jne	LBB0_8
	jmp	LBB0_9
LBB0_1:
	movq	%r14, %rdi
	callq	_ldns_rdf_deep_free
	xorl	%r14d, %r14d
	jmp	LBB0_16
LBB0_10:
	cmpl	$0, 32(%rbp)
	movq	-8264(%rbp), %rbx               ## 8-byte Reload
	jne	LBB0_13
## %bb.11:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_rr_list_delegation_only
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movq	_LDNS_RR_TYPE_RRSIG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8240(%rbp,%r13,8)
	incq	%r13
LBB0_13:
	movq	%rbx, %rdi
	movq	-8256(%rbp), %rsi               ## 8-byte Reload
	callq	_ldns_dname_compare
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:
	movq	_LDNS_RR_TYPE_SOA@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8240(%rbp,%r13,8)
	incq	%r13
LBB0_15:
	movq	_LDNS_RR_TYPE_NSEC3@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-8240(%rbp), %rdi
	movq	%r13, %rsi
	callq	_ldns_dnssec_create_nsec_bitmap
	movq	%r14, %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	%r14, %rax
	addq	$8232, %rsp                     ## imm = 0x2028
	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_STATUS_OK,8,3             ## @LDNS_STATUS_OK
	.comm	_LDNS_RR_TYPE_NSEC3,4,2         ## @LDNS_RR_TYPE_NSEC3
	.comm	_LDNS_RR_TYPE_RRSIG,8,3         ## @LDNS_RR_TYPE_RRSIG
	.comm	_LDNS_RR_TYPE_SOA,8,3           ## @LDNS_RR_TYPE_SOA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_create_nsec3              ; -- Begin function ldns_create_nsec3
	.p2align	2
_ldns_create_nsec3:                     ; @ldns_create_nsec3
	.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, #8224
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #2, lsl #12             ; =8192
	sub	sp, sp, #32
	mov	x23, x7
	mov	x24, x6
	mov	x25, x5
	mov	x26, x4
	mov	x27, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	mov	x1, x3
	mov	x2, x5
	mov	x3, x6
	mov	x4, x7
	bl	_ldns_nsec3_hash_name
	mov	x28, x0
	mov	x1, x19
	bl	_ldns_dname_cat
Lloh5:
	adrp	x8, _LDNS_STATUS_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LDNS_STATUS_OK@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.1:
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
Lloh8:
	adrp	x21, _LDNS_RR_TYPE_NSEC3@GOTPAGE
Lloh9:
	ldr	x21, [x21, _LDNS_RR_TYPE_NSEC3@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_ldns_rr_new_frm_type
	mov	x19, x0
	cbz	x0, LBB0_10
; %bb.2:
	ldr	w8, [x29, #16]
	str	w8, [sp, #4]                    ; 4-byte Folded Spill
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ldns_rr_set_type
	mov	x0, x19
	mov	x1, x28
	bl	_ldns_rr_set_owner
	mov	x0, x19
	mov	x1, x27
	mov	x2, x26
	mov	x3, x25
	mov	x4, x24
	mov	x5, x23
	bl	_ldns_nsec3_add_param_rdfs
	mov	x0, x19
	mov	x1, #0
	mov	w2, #4
	bl	_ldns_rr_set_rdf
	mov	x0, x22
	bl	_ldns_rr_list_rr_count
	mov	x23, #0
	cbz	x0, LBB0_11
; %bb.3:
	mov	x24, #0
	add	x26, sp, #16
	ldr	x21, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	x0, [x26, x23, lsl #3]
	add	x23, x23, #1
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x24, x24, #1
	mov	x0, x22
	bl	_ldns_rr_list_rr_count
	cmp	x24, x0
	b.hs	LBB0_12
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x24
	bl	_ldns_rr_list_rr
	mov	x25, x0
	bl	_ldns_rr_owner
	mov	x1, x0
	mov	x0, x20
	bl	_ldns_rdf_compare
	cbnz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x25
	bl	_ldns_rr_get_type
	cbz	x23, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x26, x23, lsl #3
	ldur	x8, [x8, #-8]
	cmp	x8, x0
	b.ne	LBB0_4
	b	LBB0_5
LBB0_9:
	mov	x0, x28
	bl	_ldns_rdf_deep_free
	mov	x19, #0
	b	LBB0_18
LBB0_10:
	mov	x0, x28
	bl	_ldns_rdf_deep_free
	b	LBB0_18
LBB0_11:
	ldr	x21, [sp, #8]                   ; 8-byte Folded Reload
LBB0_12:
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	cbnz	w8, LBB0_15
; %bb.13:
	mov	x0, x21
	mov	x1, x22
	bl	_rr_list_delegation_only
	cbnz	w0, LBB0_15
; %bb.14:
Lloh10:
	adrp	x8, _LDNS_RR_TYPE_RRSIG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LDNS_RR_TYPE_RRSIG@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	add	x9, sp, #16
	str	x8, [x9, x23, lsl #3]
	add	x23, x23, #1
LBB0_15:
	mov	x0, x21
	mov	x1, x20
	bl	_ldns_dname_compare
	cbnz	x0, LBB0_17
; %bb.16:
Lloh13:
	adrp	x8, _LDNS_RR_TYPE_SOA@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LDNS_RR_TYPE_SOA@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	add	x9, sp, #16
	str	x8, [x9, x23, lsl #3]
	add	x23, x23, #1
LBB0_17:
Lloh16:
	adrp	x8, _LDNS_RR_TYPE_NSEC3@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LDNS_RR_TYPE_NSEC3@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	add	x0, sp, #16
	mov	x1, x23
	bl	_ldns_dnssec_create_nsec_bitmap
	mov	x1, x0
	mov	x0, x19
	bl	_ldns_rr_push_rdf
LBB0_18:
	ldur	x8, [x29, #-96]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	mov	x0, x19
	add	sp, sp, #2, lsl #12             ; =8192
	add	sp, sp, #32
	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_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_STATUS_OK,8,3             ; @LDNS_STATUS_OK
	.comm	_LDNS_RR_TYPE_NSEC3,4,2         ; @LDNS_RR_TYPE_NSEC3
	.comm	_LDNS_RR_TYPE_RRSIG,8,3         ; @LDNS_RR_TYPE_RRSIG
	.comm	_LDNS_RR_TYPE_SOA,8,3           ; @LDNS_RR_TYPE_SOA
.subsections_via_symbols
