	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function sha1_final
LCPI0_0:
	.byte	128                             ## 0x80
	.byte	2                               ## 0x2
	.byte	1                               ## 0x1
	.byte	0                               ## 0x0
	.byte	128                             ## 0x80
	.byte	6                               ## 0x6
	.byte	5                               ## 0x5
	.byte	4                               ## 0x4
	.byte	128                             ## 0x80
	.byte	10                              ## 0xa
	.byte	9                               ## 0x9
	.byte	8                               ## 0x8
	.byte	128                             ## 0x80
	.byte	14                              ## 0xe
	.byte	13                              ## 0xd
	.byte	12                              ## 0xc
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_sha1_final
	.p2align	4, 0x90
_sha1_final:                            ## @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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	$128, %esi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	callq	_sha1_add
	cmpl	$56, (%rbx)
	je	LBB0_3
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	jmp	LBB0_2
LBB0_3:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_sha1_add
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_sha1_add
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_sha1_add
	movl	4(%rbx), %esi
	sarl	$29, %esi
	movq	%rbx, %rdi
	callq	_sha1_add
	movl	4(%rbx), %esi
	sarl	$21, %esi
	movq	%rbx, %rdi
	callq	_sha1_add
	movl	4(%rbx), %esi
	sarl	$13, %esi
	movq	%rbx, %rdi
	callq	_sha1_add
	movl	4(%rbx), %esi
	sarl	$5, %esi
	movq	%rbx, %rdi
	callq	_sha1_add
	movl	4(%rbx), %esi
	shll	$3, %esi
	movq	%rbx, %rdi
	callq	_sha1_add
	movq	8(%rbx), %rax
	movdqu	(%rax), %xmm0
	movdqa	%xmm0, %xmm1
	pshufb	LCPI0_0(%rip), %xmm1            ## xmm1 = zero,xmm1[2,1,0],zero,xmm1[6,5,4],zero,xmm1[10,9,8],zero,xmm1[14,13,12]
	psrad	$24, %xmm0
	por	%xmm1, %xmm0
	movdqu	%xmm0, (%rax)
	movl	16(%rax), %ecx
	movl	%ecx, %edx
	andl	$16777215, %edx                 ## imm = 0xFFFFFF
	bswapl	%edx
	sarl	$24, %ecx
	orl	%edx, %ecx
	movl	%ecx, 16(%rax)
	movq	16(%rbx), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sha1_final                     ; -- Begin function sha1_final
	.p2align	2
_sha1_final:                            ; @sha1_final
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w1, #128
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	bl	_sha1_add
	ldr	w8, [x19]
	mov	x0, x19
	cmp	w8, #56
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w1, #0
	b	LBB0_1
LBB0_3:
	mov	w1, #0
	bl	_sha1_add
	mov	x0, x19
	mov	w1, #0
	bl	_sha1_add
	mov	x0, x19
	mov	w1, #0
	bl	_sha1_add
	ldr	w8, [x19, #4]
	asr	w1, w8, #29
	mov	x0, x19
	bl	_sha1_add
	ldr	w8, [x19, #4]
	asr	w1, w8, #21
	mov	x0, x19
	bl	_sha1_add
	ldr	w8, [x19, #4]
	asr	w1, w8, #13
	mov	x0, x19
	bl	_sha1_add
	ldr	w8, [x19, #4]
	asr	w1, w8, #5
	mov	x0, x19
	bl	_sha1_add
	ldr	w8, [x19, #4]
	lsl	w1, w8, #3
	mov	x0, x19
	bl	_sha1_add
	ldp	x8, x0, [x19, #8]
	ldp	w9, w10, [x8]
	and	w11, w9, #0xffffff
	rev	w11, w11
	orr	w9, w11, w9, asr #24
	and	w11, w10, #0xffffff
	rev	w11, w11
	orr	w10, w11, w10, asr #24
	stp	w9, w10, [x8]
	ldp	w9, w10, [x8, #8]
	and	w11, w9, #0xffffff
	rev	w11, w11
	orr	w9, w11, w9, asr #24
	and	w11, w10, #0xffffff
	rev	w11, w11
	orr	w10, w11, w10, asr #24
	stp	w9, w10, [x8, #8]
	ldr	w9, [x8, #16]
	and	w10, w9, #0xffffff
	rev	w10, w10
	orr	w9, w10, w9, asr #24
	str	w9, [x8, #16]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
