	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_sha1_final                ## -- Begin function ldns_sha1_final
	.p2align	4, 0x90
_ldns_sha1_final:                       ## @ldns_sha1_final
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movl	(%rsi), %eax
	bswapl	%eax
	movl	%eax, -44(%rbp)
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_ldns_sha1_update
	movl	$504, %r12d                     ## imm = 0x1F8
	movl	(%rbx), %eax
	andl	%r12d, %eax
	cmpl	$448, %eax                      ## imm = 0x1C0
	je	LBB0_3
## %bb.1:
	leaq	l_.str.1(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_ldns_sha1_update
	movl	(%rbx), %eax
	andl	%r12d, %eax
	cmpl	$448, %eax                      ## imm = 0x1C0
	jne	LBB0_2
LBB0_3:
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$8, %edx
	callq	_ldns_sha1_update
	testq	%r14, %r14
	je	LBB0_7
## %bb.4:
	movq	_LDNS_SHA1_DIGEST_LENGTH@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_7
## %bb.5:
	xorl	%edx, %edx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rcx
	movl	%esi, %edi
	andl	$-4, %edi
	movl	(%rcx,%rdi), %edi
	movl	%edx, %ecx
	notb	%cl
	andb	$24, %cl
	sarl	%cl, %edi
	movb	%dil, (%r14,%rsi)
	incq	%rsi
	movl	(%rax), %ecx
	addl	$8, %edx
	cmpq	%rcx, %rsi
	jb	LBB0_6
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_SHA1_DIGEST_LENGTH,4,2    ## @LDNS_SHA1_DIGEST_LENGTH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\200"

	.section	__TEXT,__const
l_.str.1:                               ## @.str.1
	.space	2

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_sha1_final                ; -- Begin function ldns_sha1_final
	.p2align	2
_ldns_sha1_final:                       ; @ldns_sha1_final
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	ldr	w8, [x1]
	rev	w8, w8
	str	w8, [sp, #4]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #1
	bl	_ldns_sha1_update
	ldr	w8, [x19]
	and	w8, w8, #0x1f8
	cmp	w8, #448
	b.eq	LBB0_3
; %bb.1:
Lloh5:
	adrp	x21, l_.str.1@PAGE
Lloh6:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	w2, #1
	bl	_ldns_sha1_update
	ldr	w8, [x19]
	and	w8, w8, #0x1f8
	cmp	w8, #448
	b.ne	LBB0_2
LBB0_3:
	mov	x1, sp
	mov	x0, x19
	mov	w2, #8
	bl	_ldns_sha1_update
	cbz	x20, LBB0_7
; %bb.4:
Lloh7:
	adrp	x8, _LDNS_SHA1_DIGEST_LENGTH@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LDNS_SHA1_DIGEST_LENGTH@GOTPAGEOFF]
	ldr	w9, [x8]
	cbz	w9, LBB0_7
; %bb.5:
	mov	w9, #0
	mov	x10, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x19, #8]
	ubfx	x12, x10, #2, #30
	ldr	w11, [x11, x12, lsl #2]
	mvn	w12, w9
	and	w12, w12, #0x18
	asr	w11, w11, w12
	strb	w11, [x20, x10]
	add	x10, x10, #1
	ldr	w11, [x8]
	add	w9, w9, #8
	cmp	x10, x11
	b.lo	LBB0_6
LBB0_7:
	ldr	x8, [sp, #8]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_SHA1_DIGEST_LENGTH,4,2    ; @LDNS_SHA1_DIGEST_LENGTH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\200"

	.section	__TEXT,__const
l_.str.1:                               ; @.str.1
	.space	2

.subsections_via_symbols
