	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nsec3_calc_hash
_nsec3_calc_hash:                       ## @nsec3_calc_hash
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	32(%rdx), %esi
	movl	36(%rdx), %edi
	callq	_nsec3_get_algo
	movl	%eax, %r15d
	movl	32(%r14), %esi
	movl	36(%r14), %edi
	callq	_nsec3_get_iter
	movq	%rax, %r12
	movl	32(%r14), %esi
	movl	36(%r14), %edi
	leaq	-56(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	callq	_nsec3_get_salt
	movl	$-1, %r13d
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	movq	%rbx, %rdi
	callq	_sldns_buffer_clear
	movq	(%r14), %rdx
	movq	24(%r14), %rsi
	movq	%rbx, %rdi
	callq	_sldns_buffer_write
	movq	%rbx, %rdi
	callq	_sldns_buffer_begin
	movq	%rax, %rdi
	callq	_query_dname_tolower
	movq	-56(%rbp), %rsi
	movq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_sldns_buffer_write
	movq	%rbx, %rdi
	callq	_sldns_buffer_flip
	movl	%r15d, %edi
	callq	_nsec3_hash_algo_size_supported
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	callq	_regional_alloc
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rbx, %rdi
	callq	_sldns_buffer_begin
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_sldns_buffer_limit
	movq	16(%r14), %rcx
	movl	%r15d, %edi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_secalgo_nsec3_hash
	movl	$1, %r13d
	testq	%r12, %r12
	je	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_sldns_buffer_clear
	movq	8(%r14), %rdx
	movq	16(%r14), %rsi
	movq	%rbx, %rdi
	callq	_sldns_buffer_write
	movq	-56(%rbp), %rsi
	movq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_sldns_buffer_write
	movq	%rbx, %rdi
	callq	_sldns_buffer_flip
	movq	%rbx, %rdi
	callq	_sldns_buffer_begin
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_sldns_buffer_limit
	movq	16(%r14), %rcx
	movl	%r15d, %edi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_secalgo_nsec3_hash
	decq	%r12
	jne	LBB0_6
## %bb.7:
	movl	$1, %r13d
	jmp	LBB0_8
LBB0_2:
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	callq	_log_err
	jmp	LBB0_8
LBB0_4:
	xorl	%r13d, %r13d
LBB0_8:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nsec3 hash of unknown algo %d"

	.no_dead_strip	_nsec3_calc_hash
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nsec3_calc_hash
_nsec3_calc_hash:                       ; @nsec3_calc_hash
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x2
	mov	x20, x1
	mov	x23, x0
	ldp	w1, w0, [x2, #32]
	bl	_nsec3_get_algo
	mov	x21, x0
	ldp	w1, w0, [x19, #32]
	bl	_nsec3_get_iter
	mov	x22, x0
	ldp	w1, w0, [x19, #32]
	add	x2, sp, #8
	mov	x3, sp
	bl	_nsec3_get_salt
	cbz	w0, LBB0_7
; %bb.1:
	mov	x0, x20
	bl	_sldns_buffer_clear
	ldr	x1, [x19, #24]
	ldr	x2, [x19]
	mov	x0, x20
	bl	_sldns_buffer_write
	mov	x0, x20
	bl	_sldns_buffer_begin
	bl	_query_dname_tolower
	ldp	x2, x1, [sp]
	mov	x0, x20
	bl	_sldns_buffer_write
	mov	x0, x20
	bl	_sldns_buffer_flip
	mov	x0, x21
	bl	_nsec3_hash_algo_size_supported
	str	x0, [x19, #8]
	cbz	x0, LBB0_6
; %bb.2:
	mov	x1, x0
	mov	x0, x23
	bl	_regional_alloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_8
; %bb.3:
	mov	x0, x20
	bl	_sldns_buffer_begin
	mov	x23, x0
	mov	x0, x20
	bl	_sldns_buffer_limit
	mov	x2, x0
	ldr	x3, [x19, #16]
	mov	x0, x21
	mov	x1, x23
	bl	_secalgo_nsec3_hash
	cbz	x22, LBB0_5
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_sldns_buffer_clear
	ldp	x2, x1, [x19, #8]
	mov	x0, x20
	bl	_sldns_buffer_write
	ldp	x2, x1, [sp]
	mov	x0, x20
	bl	_sldns_buffer_write
	mov	x0, x20
	bl	_sldns_buffer_flip
	mov	x0, x20
	bl	_sldns_buffer_begin
	mov	x23, x0
	mov	x0, x20
	bl	_sldns_buffer_limit
	mov	x2, x0
	ldr	x3, [x19, #16]
	mov	x0, x21
	mov	x1, x23
	bl	_secalgo_nsec3_hash
	subs	x22, x22, #1
	b.ne	LBB0_4
LBB0_5:
	mov	w0, #1
	b	LBB0_8
LBB0_6:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_log_err
LBB0_7:
	mov	w0, #-1
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nsec3 hash of unknown algo %d"

	.no_dead_strip	_nsec3_calc_hash
.subsections_via_symbols
