	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ds_digest_match_dnskey         ## -- Begin function ds_digest_match_dnskey
	.p2align	4, 0x90
_ds_digest_match_dnskey:                ## @ds_digest_match_dnskey
	.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	%r8, %r14
	movq	%rcx, %rbx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	%rcx, %rdi
	movq	%r8, %rsi
	callq	_ds_digest_size_algo
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	_fake_sha1@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ds_get_digest_algo
	movq	%rax, %rcx
	movq	_LDNS_SHA1@GOTPCREL(%rip), %rdx
	movl	$1, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_15
LBB0_4:
	leaq	-56(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ds_get_sigdata
	cmpq	$0, -56(%rbp)
	je	LBB0_6
## %bb.5:
	cmpq	%r15, -48(%rbp)
	jne	LBB0_6
## %bb.7:
	movl	(%r13), %edi
	movq	%r15, %rsi
	callq	_regional_alloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %r15
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%rbx, %rcx
	movq	%r14, %r8
	movq	%rax, %r9
	callq	_ds_create_dnskey_digest
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movq	-56(%rbp), %rsi
	movq	-48(%rbp), %rdx
	movq	%r15, %rdi
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movq	_VERB_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_14
LBB0_1:
	movq	_VERB_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_14
LBB0_6:
	movq	_VERB_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_14
LBB0_8:
	movq	_VERB_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_14
LBB0_10:
	movq	_VERB_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
LBB0_14:
	callq	_verbose
	xorl	%eax, %eax
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	$1, %eax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_VERB_QUERY,4,2                 ## @VERB_QUERY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DS fail: not supported, or DS RR format error"

	.comm	_fake_sha1,8,3                  ## @fake_sha1
	.comm	_LDNS_SHA1,8,3                  ## @LDNS_SHA1
L_.str.1:                               ## @.str.1
	.asciz	"DS fail: DS RR algo and digest do not match each other"

L_.str.2:                               ## @.str.2
	.asciz	"DS fail: out of memory"

L_.str.3:                               ## @.str.3
	.asciz	"DS fail: could not calc key digest"

L_.str.4:                               ## @.str.4
	.asciz	"DS fail: digest is different"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ds_digest_match_dnskey         ; -- Begin function ds_digest_match_dnskey
	.p2align	2
_ds_digest_match_dnskey:                ; @ds_digest_match_dnskey
	.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, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	mov	x0, x3
	mov	x1, x4
	bl	_ds_digest_size_algo
	cbz	x0, LBB0_10
; %bb.1:
	mov	x24, x0
Lloh0:
	adrp	x8, _fake_sha1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fake_sha1@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	bl	_ds_get_digest_algo
Lloh3:
	adrp	x8, _LDNS_SHA1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LDNS_SHA1@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
LBB0_3:
	mov	w0, #1
	b	LBB0_15
LBB0_4:
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x20
	mov	x1, x19
	bl	_ds_get_sigdata
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_11
; %bb.5:
	ldr	x8, [sp]
	cmp	x8, x24
	b.ne	LBB0_11
; %bb.6:
	ldr	w0, [x23]
	mov	x1, x24
	bl	_regional_alloc
	cbz	x0, LBB0_12
; %bb.7:
	mov	x24, x0
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	mov	x5, x24
	bl	_ds_create_dnskey_digest
	cbz	w0, LBB0_13
; %bb.8:
	ldp	x2, x1, [sp]
	mov	x0, x24
	bl	_memcmp
	cbz	x0, LBB0_3
; %bb.9:
Lloh6:
	adrp	x8, _VERB_QUERY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VERB_QUERY@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str.4@PAGE
Lloh10:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_14
LBB0_10:
Lloh11:
	adrp	x8, _VERB_QUERY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VERB_QUERY@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_14
LBB0_11:
Lloh16:
	adrp	x8, _VERB_QUERY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _VERB_QUERY@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_12:
Lloh21:
	adrp	x8, _VERB_QUERY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _VERB_QUERY@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh26:
	adrp	x8, _VERB_QUERY@GOTPAGE
Lloh27:
	ldr	x8, [x8, _VERB_QUERY@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x1, l_.str.3@PAGE
Lloh30:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_14:
	bl	_verbose
	mov	w0, #0
LBB0_15:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_VERB_QUERY,4,2                 ; @VERB_QUERY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DS fail: not supported, or DS RR format error"

	.comm	_fake_sha1,8,3                  ; @fake_sha1
	.comm	_LDNS_SHA1,8,3                  ; @LDNS_SHA1
l_.str.1:                               ; @.str.1
	.asciz	"DS fail: DS RR algo and digest do not match each other"

l_.str.2:                               ; @.str.2
	.asciz	"DS fail: out of memory"

l_.str.3:                               ; @.str.3
	.asciz	"DS fail: could not calc key digest"

l_.str.4:                               ; @.str.4
	.asciz	"DS fail: digest is different"

.subsections_via_symbols
