	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SHA512_Last
_SHA512_Last:                           ## @SHA512_Last
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movl	(%rax), %edi
	movl	%edi, %eax
	sarl	$3, %eax
	movq	_PG_SHA512_BLOCK_LENGTH@GOTPCREL(%rip), %r15
	cltd
	idivl	(%r15)
	movl	%edx, %ebx
	movl	%edi, %esi
	callq	_REVERSE64
	movq	(%r14), %rax
	movl	4(%rax), %edi
	movl	%edi, %esi
	callq	_REVERSE64
	movq	8(%r14), %rsi
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.1:
	movl	%ebx, %eax
	incl	%ebx
	movl	$128, (%rsi,%rax,4)
	movq	_PG_SHA512_SHORT_BLOCK_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	subl	%ebx, %edx
	jae	LBB0_2
## %bb.4:
	movl	(%r15), %edx
	subl	%ebx, %edx
	jbe	LBB0_6
## %bb.5:
	movl	%ebx, %eax
	leaq	(%rsi,%rax,4), %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	8(%r14), %rsi
LBB0_6:
	movq	%r14, %rdi
	callq	_SHA512_Transform
	movq	8(%r14), %rdi
	movl	(%r15), %edx
	addl	$-2, %edx
	jmp	LBB0_3
LBB0_7:
	movq	_PG_SHA512_SHORT_BLOCK_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rsi, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	8(%r14), %rax
	movl	$128, (%rax)
	jmp	LBB0_8
LBB0_2:
	movl	%ebx, %eax
	leaq	(%rsi,%rax,4), %rdi
LBB0_3:
	xorl	%esi, %esi
	callq	_memset
LBB0_8:
	movq	(%r14), %rax
	movq	8(%r14), %rsi
	movl	4(%rax), %ecx
	movq	_PG_SHA512_SHORT_BLOCK_LENGTH@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	movl	%ecx, (%rsi,%rdi,4)
	movl	(%rax), %eax
	movl	(%rdx), %ecx
	addl	$8, %ecx
	movl	%eax, (%rsi,%rcx,4)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SHA512_Transform               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PG_SHA512_BLOCK_LENGTH,4,2     ## @PG_SHA512_BLOCK_LENGTH
	.comm	_PG_SHA512_SHORT_BLOCK_LENGTH,4,2 ## @PG_SHA512_SHORT_BLOCK_LENGTH
	.no_dead_strip	_SHA512_Last
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SHA512_Last
_SHA512_Last:                           ; @SHA512_Last
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	ldr	x8, [x0]
	ldr	w0, [x8]
	asr	w8, w0, #3
Lloh0:
	adrp	x21, _PG_SHA512_BLOCK_LENGTH@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PG_SHA512_BLOCK_LENGTH@GOTPAGEOFF]
	ldr	w9, [x21]
	sdiv	w10, w8, w9
	msub	w22, w10, w9, w8
	mov	x1, x0
	bl	_REVERSE64
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	mov	x1, x0
	bl	_REVERSE64
	ldr	x1, [x19, #8]
Lloh2:
	adrp	x20, _PG_SHA512_SHORT_BLOCK_LENGTH@GOTPAGE
Lloh3:
	ldr	x20, [x20, _PG_SHA512_SHORT_BLOCK_LENGTH@GOTPAGEOFF]
	cbz	w22, LBB0_5
; %bb.1:
	add	w8, w22, #1
	mov	w9, #128
	str	w9, [x1, w22, uxtw #2]
	ldr	w9, [x20]
	subs	w2, w9, w8
	b.hs	LBB0_6
; %bb.2:
	ldr	w9, [x21]
	subs	w2, w9, w8
	b.ls	LBB0_4
; %bb.3:
	add	x0, x1, w8, uxtw #2
	mov	w1, #0
	bl	_memset
	ldr	x1, [x19, #8]
LBB0_4:
	mov	x0, x19
	bl	_SHA512_Transform
	ldr	x0, [x19, #8]
	ldr	w8, [x21]
	sub	w2, w8, #2
	b	LBB0_7
LBB0_5:
	ldr	w2, [x20]
	mov	x0, x1
	mov	w1, #0
	bl	_memset
	ldr	x8, [x19, #8]
	mov	w9, #128
	str	w9, [x8]
	b	LBB0_8
LBB0_6:
	add	x0, x1, w8, uxtw #2
LBB0_7:
	mov	w1, #0
	bl	_memset
LBB0_8:
	ldp	x8, x1, [x19]
	ldr	w9, [x8, #4]
	ldr	w10, [x20]
	str	w9, [x1, x10, lsl #2]
	ldr	w8, [x8]
	ldr	w9, [x20]
	add	w9, w9, #8
	str	w8, [x1, w9, uxtw #2]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_SHA512_Transform
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PG_SHA512_BLOCK_LENGTH,4,2     ; @PG_SHA512_BLOCK_LENGTH
	.comm	_PG_SHA512_SHORT_BLOCK_LENGTH,4,2 ; @PG_SHA512_SHORT_BLOCK_LENGTH
	.no_dead_strip	_SHA512_Last
.subsections_via_symbols
