	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_dnssec_create_nsec3       ## -- Begin function ldns_dnssec_create_nsec3
	.p2align	4, 0x90
_ldns_dnssec_create_nsec3:              ## @ldns_dnssec_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	$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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movl	%r9d, %r12d
	movl	%ecx, %r14d
	movq	%rdx, %r13
	movq	%rdi, %rbx
	movl	%r8d, -524340(%rbp)             ## 4-byte Spill
	movq	%rsi, -524352(%rbp)             ## 8-byte Spill
	movq	_LDNS_RR_TYPE_NSEC3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ldns_rr_new_frm_type
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_ldns_dnssec_name_name
	movl	%eax, %edi
	movl	%r14d, %esi
	movl	%r12d, %edx
	movl	16(%rbp), %ecx
	movq	24(%rbp), %r8
	callq	_ldns_nsec3_hash_name
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_ldns_rr_set_owner
	movq	%r15, %rdi
	callq	_ldns_rr_owner
	movl	%eax, %edi
	movq	%r13, %rsi
	callq	_ldns_dname_cat
	movq	_LDNS_STATUS_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.2:
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	-524340(%rbp), %edx             ## 4-byte Reload
	movl	%r12d, %ecx
	movl	16(%rbp), %r8d
	movq	24(%rbp), %r9
	callq	_ldns_nsec3_add_param_rdfs
	movq	8(%rbx), %rdi
	movq	_LDNS_RR_TYPE_NS@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	callq	_ldns_dnssec_rrsets_contains_type
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	8(%rbx), %rdi
	movq	_LDNS_RR_TYPE_SOA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_ldns_dnssec_rrsets_contains_type
	testq	%rax, %rax
	sete	%dl
	jmp	LBB0_7
LBB0_4:
	xorl	%r15d, %r15d
	jmp	LBB0_27
LBB0_5:
	movq	%r15, %rdi
	callq	_ldns_rr_free
	xorl	%r15d, %r15d
	jmp	LBB0_27
LBB0_6:
	xorl	%edx, %edx
LBB0_7:
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_23
## %bb.8:
	movq	_LDNS_RR_TYPE_RRSIG@GOTPCREL(%rip), %r8
	movq	(%r8), %rdi
	movq	(%r14), %rbx
	movq	_LDNS_RR_TYPE_DS@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	xorl	%eax, %eax
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_11 Depth=1
	movq	%rcx, -524336(%rbp,%rax,8)
	incq	%rax
LBB0_10:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	8(%rsi), %rsi
	testq	%rsi, %rsi
	je	LBB0_15
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rsi), %rcx
	testb	%dl, %dl
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpq	%rbx, %rcx
	je	LBB0_9
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpq	%r9, %rcx
	jne	LBB0_10
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	cmpq	%rdi, %rcx
	je	LBB0_10
	jmp	LBB0_9
LBB0_15:
	testq	%rax, %rax
	movq	-524352(%rbp), %rdx             ## 8-byte Reload
	je	LBB0_19
## %bb.16:
	cmpq	$1, %rax
	jne	LBB0_18
## %bb.17:
	movq	-524336(%rbp), %rcx
	movl	$1, %ebx
	cmpq	(%r14), %rcx
	je	LBB0_20
LBB0_18:
	movq	(%r8), %rcx
	movq	%rcx, -524336(%rbp,%rax,8)
	incq	%rax
LBB0_19:
	movq	%rax, %rbx
LBB0_20:
	testq	%rdx, %rdx
	jne	LBB0_21
	jmp	LBB0_25
LBB0_23:
	xorl	%ebx, %ebx
	movq	-524352(%rbp), %rdx             ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_25
LBB0_21:
	movq	(%rdx), %rdi
	testq	%rdi, %rdi
	je	LBB0_25
## %bb.22:
	callq	_ldns_rdf_clone
	movq	%rax, %rsi
	jmp	LBB0_26
LBB0_25:
	xorl	%esi, %esi
LBB0_26:
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_ldns_rr_set_rdf
	movq	_LDNS_RR_TYPE_NSEC3@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-524336(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_ldns_dnssec_create_nsec_bitmap
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_ldns_rr_push_rdf
LBB0_27:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_29
## %bb.28:
	movq	%r15, %rax
	addq	$524312, %rsp                   ## imm = 0x80018
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RR_TYPE_NSEC3,4,2         ## @LDNS_RR_TYPE_NSEC3
	.comm	_LDNS_STATUS_OK,8,3             ## @LDNS_STATUS_OK
	.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_nsec3       ; -- Begin function ldns_dnssec_create_nsec3
	.p2align	2
_ldns_dnssec_create_nsec3:              ; @ldns_dnssec_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, #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
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	cbz	x0, LBB0_10
; %bb.1:
	mov	x22, x7
	mov	x23, x6
	mov	x24, x5
	mov	x25, x4
	mov	x26, x3
	mov	x27, x2
	mov	x20, x1
	mov	x21, x0
Lloh5:
	adrp	x28, _LDNS_RR_TYPE_NSEC3@GOTPAGE
Lloh6:
	ldr	x28, [x28, _LDNS_RR_TYPE_NSEC3@GOTPAGEOFF]
	ldr	w0, [x28]
	bl	_ldns_rr_new_frm_type
	mov	x19, x0
	mov	x0, x21
	bl	_ldns_dnssec_name_name
	mov	x1, x26
	mov	x2, x24
	mov	x3, x23
	mov	x4, x22
	bl	_ldns_nsec3_hash_name
	mov	x1, x0
	mov	x0, x19
	bl	_ldns_rr_set_owner
	mov	x0, x19
	bl	_ldns_rr_owner
	mov	x1, x27
	bl	_ldns_dname_cat
Lloh7:
	adrp	x8, _LDNS_STATUS_OK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LDNS_STATUS_OK@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.2:
	mov	x0, x19
	mov	x1, x26
	mov	x2, x25
	mov	x3, x24
	mov	x4, x23
	mov	x5, x22
	bl	_ldns_nsec3_add_param_rdfs
	ldr	x0, [x21, #8]
Lloh10:
	adrp	x22, _LDNS_RR_TYPE_NS@GOTPAGE
Lloh11:
	ldr	x22, [x22, _LDNS_RR_TYPE_NS@GOTPAGEOFF]
	ldr	x1, [x22]
	bl	_ldns_dnssec_rrsets_contains_type
	cbz	x0, LBB0_16
; %bb.3:
	ldr	x0, [x21, #8]
Lloh12:
	adrp	x8, _LDNS_RR_TYPE_SOA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LDNS_RR_TYPE_SOA@GOTPAGEOFF]
Lloh14:
	ldr	x1, [x8]
	bl	_ldns_dnssec_rrsets_contains_type
	cmp	x0, #0
	cset	w9, eq
	ldr	x10, [x21, #8]
	cbz	x10, LBB0_17
LBB0_4:
	mov	x21, #0
Lloh15:
	adrp	x8, _LDNS_RR_TYPE_RRSIG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LDNS_RR_TYPE_RRSIG@GOTPAGEOFF]
	ldr	x11, [x8]
	ldr	x12, [x22]
Lloh17:
	adrp	x13, _LDNS_RR_TYPE_DS@GOTPAGE
Lloh18:
	ldr	x13, [x13, _LDNS_RR_TYPE_DS@GOTPAGEOFF]
Lloh19:
	ldr	x13, [x13]
	mov	x14, sp
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	str	x15, [x14, x21, lsl #3]
	add	x21, x21, #1
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x10, [x10, #8]
	cbz	x10, LBB0_12
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x15, [x10]
	cbz	w9, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	x15, x12
	ccmp	x15, x13, #4, ne
	b.eq	LBB0_5
	b	LBB0_6
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	cmp	x15, x11
	b.eq	LBB0_6
	b	LBB0_5
LBB0_10:
	mov	x19, #0
	b	LBB0_24
LBB0_11:
	mov	x0, x19
	bl	_ldns_rr_free
	mov	x19, #0
	b	LBB0_24
LBB0_12:
	cbz	x21, LBB0_18
; %bb.13:
	cmp	x21, #1
	b.ne	LBB0_19
; %bb.14:
	ldr	x9, [sp]
	ldr	x10, [x22]
	cmp	x9, x10
	b.ne	LBB0_19
; %bb.15:
	mov	w21, #1
	cbnz	x20, LBB0_20
	b	LBB0_22
LBB0_16:
	mov	w9, #0
	ldr	x10, [x21, #8]
	cbnz	x10, LBB0_4
LBB0_17:
	mov	x21, #0
LBB0_18:
	cbnz	x20, LBB0_20
	b	LBB0_22
LBB0_19:
	ldr	x8, [x8]
	mov	x9, sp
	str	x8, [x9, x21, lsl #3]
	add	x21, x21, #1
	cbz	x20, LBB0_22
LBB0_20:
	ldr	x0, [x20]
	cbz	x0, LBB0_22
; %bb.21:
	bl	_ldns_rdf_clone
	mov	x1, x0
	b	LBB0_23
LBB0_22:
	mov	x1, #0
LBB0_23:
	mov	x0, x19
	mov	w2, #4
	bl	_ldns_rr_set_rdf
	ldr	w2, [x28]
	mov	x0, sp
	mov	x1, x21
	bl	_ldns_dnssec_create_nsec_bitmap
	mov	x1, x0
	mov	x0, x19
	bl	_ldns_rr_push_rdf
LBB0_24:
	ldur	x8, [x29, #-96]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.25:
	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_26:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_NSEC3,4,2         ; @LDNS_RR_TYPE_NSEC3
	.comm	_LDNS_STATUS_OK,8,3             ; @LDNS_STATUS_OK
	.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
