	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nsec3_prove_closest_encloser
_nsec3_prove_closest_encloser:          ## @nsec3_prove_closest_encloser
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r13
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	%r9, %rdi
	xorl	%esi, %esi
	movl	$20, %edx
	callq	_memset
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rsi
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdx
	movq	%r13, %rcx
	movq	%rbx, %r8
	callq	_nsec3_find_closest_encloser
	movq	_VERB_ALGO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movl	8(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_log_nametypeclass
	movl	8(%rbx), %edi
	movl	4(%r13), %esi
	callq	_query_dname_compare
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movl	12(%rbx), %esi
	movl	16(%rbx), %edi
	movq	_LDNS_RR_TYPE_NS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_nsec3_has_type
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	12(%rbx), %esi
	movl	16(%rbx), %edi
	movq	_LDNS_RR_TYPE_SOA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_nsec3_has_type
	testq	%rax, %rax
	je	LBB0_11
LBB0_4:
	movl	12(%rbx), %esi
	movl	16(%rbx), %edi
	movq	_LDNS_RR_TYPE_DNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_nsec3_has_type
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_15
LBB0_6:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_15
LBB0_7:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_13
## %bb.8:
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_15
LBB0_9:
	movl	(%r13), %esi
	movl	4(%r13), %edi
	movl	8(%rbx), %edx
	leaq	-88(%rbp), %rcx
	leaq	-80(%rbp), %r8
	callq	_next_closer
	movq	-88(%rbp), %rcx
	movq	-80(%rbp), %r8
	movq	%rbx, (%rsp)
	addq	$4, %rbx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	%rbx, %r9
	callq	_find_covering_nsec3
	testl	%eax, %eax
	je	LBB0_14
LBB0_13:
	movq	_sec_status_secure@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_11:
	movl	12(%rbx), %esi
	movl	16(%rbx), %edi
	movq	_LDNS_RR_TYPE_DS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_nsec3_has_type
	movq	_VERB_ALGO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	testq	%rax, %rax
	je	LBB0_17
## %bb.12:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_15
LBB0_14:
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
LBB0_15:
	callq	_verbose
	movq	_sec_status_bogus@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	leaq	L_.str.3(%rip), %rsi
	callq	_verbose
	movq	_sec_status_insecure@GOTPCREL(%rip), %rax
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_VERB_ALGO,4,2                  ## @VERB_ALGO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nsec3 proveClosestEncloser: could not find a candidate for the closest encloser."

	.comm	_sec_status_bogus,4,2           ## @sec_status_bogus
L_.str.1:                               ## @.str.1
	.asciz	"ce candidate"

L_.str.2:                               ## @.str.2
	.asciz	"nsec3 proveClosestEncloser: proved that qname existed, bad"

	.comm	_sec_status_secure,4,2          ## @sec_status_secure
	.comm	_LDNS_RR_TYPE_NS,4,2            ## @LDNS_RR_TYPE_NS
	.comm	_LDNS_RR_TYPE_SOA,4,2           ## @LDNS_RR_TYPE_SOA
	.comm	_LDNS_RR_TYPE_DS,4,2            ## @LDNS_RR_TYPE_DS
L_.str.3:                               ## @.str.3
	.asciz	"nsec3 proveClosestEncloser: closest encloser is insecure delegation"

	.comm	_sec_status_insecure,4,2        ## @sec_status_insecure
L_.str.4:                               ## @.str.4
	.asciz	"nsec3 proveClosestEncloser: closest encloser was a delegation, bad"

	.comm	_LDNS_RR_TYPE_DNAME,4,2         ## @LDNS_RR_TYPE_DNAME
L_.str.5:                               ## @.str.5
	.asciz	"nsec3 proveClosestEncloser: closest encloser was a DNAME, bad"

L_.str.6:                               ## @.str.6
	.asciz	"nsec3: Could not find proof that the candidate encloser was the closest encloser"

	.no_dead_strip	_nsec3_prove_closest_encloser
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nsec3_prove_closest_encloser
_nsec3_prove_closest_encloser:          ; @nsec3_prove_closest_encloser
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x5
	mov	x24, x4
	mov	x23, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	x0, x5
	mov	w1, #0
	mov	w2, #20
	bl	_memset
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x23
	mov	x4, x19
	bl	_nsec3_find_closest_encloser
	mov	x8, x0
Lloh0:
	adrp	x25, _VERB_ALGO@GOTPAGE
Lloh1:
	ldr	x25, [x25, _VERB_ALGO@GOTPAGEOFF]
	ldr	w0, [x25]
	cbz	w8, LBB0_6
; %bb.1:
	ldr	w2, [x19, #8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w3, #0
	mov	w4, #0
	bl	_log_nametypeclass
	ldr	w0, [x19, #8]
	ldr	w1, [x23, #4]
	bl	_query_dname_compare
	cbz	x0, LBB0_7
; %bb.2:
	ldp	w1, w0, [x19, #12]
Lloh4:
	adrp	x8, _LDNS_RR_TYPE_NS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LDNS_RR_TYPE_NS@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	bl	_nsec3_has_type
	cbz	x0, LBB0_4
; %bb.3:
	ldp	w1, w0, [x19, #12]
Lloh7:
	adrp	x8, _LDNS_RR_TYPE_SOA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LDNS_RR_TYPE_SOA@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	bl	_nsec3_has_type
	cbz	x0, LBB0_11
LBB0_4:
	ldp	w1, w0, [x19, #12]
Lloh10:
	adrp	x8, _LDNS_RR_TYPE_DNAME@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LDNS_RR_TYPE_DNAME@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	bl	_nsec3_has_type
	cbz	x0, LBB0_9
; %bb.5:
	ldr	w0, [x25]
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_14
LBB0_6:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_14
LBB0_7:
	cbz	w24, LBB0_10
; %bb.8:
	ldr	w0, [x25]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_9:
	ldp	w1, w0, [x23]
	ldr	w2, [x19, #8]
	add	x3, sp, #8
	mov	x4, sp
	bl	_next_closer
	ldp	x4, x3, [sp]
	add	x5, x19, #4
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x6, x19
	bl	_find_covering_nsec3
	cbz	w0, LBB0_13
LBB0_10:
Lloh19:
	adrp	x8, _sec_status_secure@GOTPAGE
Lloh20:
	ldr	x8, [x8, _sec_status_secure@GOTPAGEOFF]
	b	LBB0_15
LBB0_11:
	ldp	w1, w0, [x19, #12]
Lloh21:
	adrp	x8, _LDNS_RR_TYPE_DS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _LDNS_RR_TYPE_DS@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	bl	_nsec3_has_type
	mov	x8, x0
	ldr	w0, [x25]
	cbz	x8, LBB0_16
; %bb.12:
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_14
LBB0_13:
	ldr	w0, [x25]
Lloh26:
	adrp	x1, l_.str.6@PAGE
Lloh27:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_14:
	bl	_verbose
Lloh28:
	adrp	x8, _sec_status_bogus@GOTPAGE
Lloh29:
	ldr	x8, [x8, _sec_status_bogus@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
	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
	add	sp, sp, #96
	ret
LBB0_16:
Lloh30:
	adrp	x1, l_.str.3@PAGE
Lloh31:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_verbose
Lloh32:
	adrp	x8, _sec_status_insecure@GOTPAGE
Lloh33:
	ldr	x8, [x8, _sec_status_insecure@GOTPAGEOFF]
	b	LBB0_15
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_VERB_ALGO,4,2                  ; @VERB_ALGO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nsec3 proveClosestEncloser: could not find a candidate for the closest encloser."

	.comm	_sec_status_bogus,4,2           ; @sec_status_bogus
l_.str.1:                               ; @.str.1
	.asciz	"ce candidate"

l_.str.2:                               ; @.str.2
	.asciz	"nsec3 proveClosestEncloser: proved that qname existed, bad"

	.comm	_sec_status_secure,4,2          ; @sec_status_secure
	.comm	_LDNS_RR_TYPE_NS,4,2            ; @LDNS_RR_TYPE_NS
	.comm	_LDNS_RR_TYPE_SOA,4,2           ; @LDNS_RR_TYPE_SOA
	.comm	_LDNS_RR_TYPE_DS,4,2            ; @LDNS_RR_TYPE_DS
l_.str.3:                               ; @.str.3
	.asciz	"nsec3 proveClosestEncloser: closest encloser is insecure delegation"

	.comm	_sec_status_insecure,4,2        ; @sec_status_insecure
l_.str.4:                               ; @.str.4
	.asciz	"nsec3 proveClosestEncloser: closest encloser was a delegation, bad"

	.comm	_LDNS_RR_TYPE_DNAME,4,2         ; @LDNS_RR_TYPE_DNAME
l_.str.5:                               ; @.str.5
	.asciz	"nsec3 proveClosestEncloser: closest encloser was a DNAME, bad"

l_.str.6:                               ; @.str.6
	.asciz	"nsec3: Could not find proof that the candidate encloser was the closest encloser"

	.no_dead_strip	_nsec3_prove_closest_encloser
.subsections_via_symbols
