	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_dnssec_zone_sign_nsec3_flg_mkmap ## -- Begin function ldns_dnssec_zone_sign_nsec3_flg_mkmap
	.p2align	4, 0x90
_ldns_dnssec_zone_sign_nsec3_flg_mkmap: ## @ldns_dnssec_zone_sign_nsec3_flg_mkmap
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -56(%rbp)                 ## 4-byte Spill
	movq	%r8, -112(%rbp)                 ## 8-byte Spill
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	56(%rbp), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	48(%rbp), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	40(%rbp), %r15
	movl	32(%rbp), %r14d
	movl	24(%rbp), %r13d
	movl	16(%rbp), %r12d
	callq	_ldns_dnssec_zone_mark_glue
	movq	_LDNS_STATUS_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.1:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	cmpq	$0, 8(%rbx)
	je	LBB0_9
## %bb.2:
	movq	%rbx, %rdi
	movq	%rcx, %r14
	callq	_ldns_dnssec_zone_add_empty_nonterminals
	movq	%r14, %rcx
	cmpq	(%r14), %rax
	jne	LBB0_9
## %bb.3:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_ldns_rr_get_type
	movq	_LDNS_RR_TYPE_NSEC3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
LBB0_5:
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movq	_LDNS_RR_TYPE_NSEC3PARAM@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_ldns_dnssec_zone_find_rrset
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movl	(%r15), %edi
	callq	_ldns_rr_new_frm_type
	movq	%rax, %r15
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_ldns_rdf_clone
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_ldns_rr_set_owner
	movq	%r15, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	movq	-80(%rbp), %r9                  ## 8-byte Reload
	callq	_ldns_nsec3_add_param_rdfs
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_ldns_rr_rdf
	movl	%eax, %edi
	callq	_ldns_rdf_data
	movl	%eax, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ldns_set_bit
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_ldns_dnssec_zone_add_rr
	movq	%r14, %rcx
	cmpq	(%r14), %rax
	jne	LBB0_9
## %bb.7:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_ldns_rr_list_push_rr
LBB0_8:
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	callq	_ldns_dnssec_zone_create_nsec3s_mkmap
	addq	$16, %rsp
	cmpq	(%r14), %rax
	jne	LBB0_9
LBB0_10:
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	-112(%rbp), %r8                 ## 8-byte Reload
	movl	-68(%rbp), %r9d                 ## 4-byte Reload
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ldns_dnssec_zone_create_rrsigs_flg ## TAILCALL
LBB0_9:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_STATUS_OK,8,3             ## @LDNS_STATUS_OK
	.comm	_LDNS_RR_TYPE_NSEC3,8,3         ## @LDNS_RR_TYPE_NSEC3
	.comm	_LDNS_RR_TYPE_NSEC3PARAM,4,2    ## @LDNS_RR_TYPE_NSEC3PARAM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_dnssec_zone_sign_nsec3_flg_mkmap ; -- Begin function ldns_dnssec_zone_sign_nsec3_flg_mkmap
	.p2align	2
_ldns_dnssec_zone_sign_nsec3_flg_mkmap: ; @ldns_dnssec_zone_sign_nsec3_flg_mkmap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	stp	w6, w7, [sp, #72]               ; 8-byte Folded Spill
	mov	x20, x5
	mov	x22, x4
	mov	x28, x3
	mov	x25, x2
	mov	x26, x1
	mov	x19, x0
	ldr	x21, [x29, #40]
	ldr	w23, [x29, #32]
	ldr	x24, [x29, #24]
	ldr	w27, [x29, #16]
	bl	_ldns_dnssec_zone_mark_glue
Lloh0:
	adrp	x9, _LDNS_STATUS_OK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LDNS_STATUS_OK@GOTPAGEOFF]
	ldr	x8, [x9]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.1:
	str	w27, [sp, #44]                  ; 4-byte Folded Spill
	str	x24, [sp, #48]                  ; 8-byte Folded Spill
	str	x21, [sp]                       ; 8-byte Folded Spill
	str	w20, [sp, #60]                  ; 4-byte Folded Spill
	str	x26, [sp, #64]                  ; 8-byte Folded Spill
	str	w23, [sp, #12]                  ; 4-byte Folded Spill
	stp	x25, x28, [sp, #16]             ; 16-byte Folded Spill
	str	x22, [sp, #32]                  ; 8-byte Folded Spill
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_10
; %bb.2:
	mov	x0, x19
	mov	x20, x9
	bl	_ldns_dnssec_zone_add_empty_nonterminals
	mov	x8, x20
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x0, [x8]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_ldns_rr_get_type
Lloh2:
	adrp	x8, _LDNS_RR_TYPE_NSEC3@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LDNS_RR_TYPE_NSEC3@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_9
LBB0_5:
	ldr	x8, [x19]
	ldr	w1, [x8]
Lloh5:
	adrp	x21, _LDNS_RR_TYPE_NSEC3PARAM@GOTPAGE
Lloh6:
	ldr	x21, [x21, _LDNS_RR_TYPE_NSEC3PARAM@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_ldns_dnssec_zone_find_rrset
	cbnz	w0, LBB0_8
; %bb.6:
	ldr	w0, [x21]
	bl	_ldns_rr_new_frm_type
	mov	x21, x0
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_ldns_rdf_clone
	mov	x1, x0
	mov	x0, x21
	bl	_ldns_rr_set_owner
	mov	x0, x21
	ldr	w1, [sp, #60]                   ; 4-byte Folded Reload
	ldp	w2, w3, [sp, #72]               ; 8-byte Folded Reload
	ldr	w4, [sp, #44]                   ; 4-byte Folded Reload
	ldr	x5, [sp, #48]                   ; 8-byte Folded Reload
	bl	_ldns_nsec3_add_param_rdfs
	mov	x0, x21
	mov	w1, #1
	bl	_ldns_rr_rdf
	bl	_ldns_rdf_data
	mov	w1, #0
	mov	w2, #0
	bl	_ldns_set_bit
	mov	x0, x19
	mov	x1, x21
	bl	_ldns_dnssec_zone_add_rr
	mov	x8, x20
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.7:
	ldr	x0, [sp, #64]                   ; 8-byte Folded Reload
	mov	x1, x21
	bl	_ldns_rr_list_push_rr
LBB0_8:
	mov	x0, x19
	ldr	x1, [sp, #64]                   ; 8-byte Folded Reload
	ldr	w2, [sp, #60]                   ; 4-byte Folded Reload
	ldp	w3, w4, [sp, #72]               ; 8-byte Folded Reload
	ldr	w5, [sp, #44]                   ; 4-byte Folded Reload
	ldr	x6, [sp, #48]                   ; 8-byte Folded Reload
	ldr	x7, [sp]                        ; 8-byte Folded Reload
	bl	_ldns_dnssec_zone_create_nsec3s_mkmap
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_10
LBB0_9:
	mov	x0, x19
	ldr	x1, [sp, #64]                   ; 8-byte Folded Reload
	ldp	x2, x3, [sp, #16]               ; 16-byte Folded Reload
	ldr	x4, [sp, #32]                   ; 8-byte Folded Reload
	ldr	w5, [sp, #12]                   ; 4-byte Folded Reload
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	b	_ldns_dnssec_zone_create_rrsigs_flg
LBB0_10:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_STATUS_OK,8,3             ; @LDNS_STATUS_OK
	.comm	_LDNS_RR_TYPE_NSEC3,8,3         ; @LDNS_RR_TYPE_NSEC3
	.comm	_LDNS_RR_TYPE_NSEC3PARAM,4,2    ; @LDNS_RR_TYPE_NSEC3PARAM
.subsections_via_symbols
