	.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	_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
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.1:
	movslq	%ebx, %rcx
	movq	8(%r14), %rsi
	movl	$128, (%rsi,%rcx,4)
	incq	%rcx
	movq	_SHA512_SHORT_BLOCK_LENGTH@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	subq	%rcx, %rax
	jae	LBB0_6
## %bb.2:
	movslq	(%r15), %rax
	cmpq	%rax, %rcx
	jae	LBB0_4
## %bb.3:
	leaq	(%rsi,%rcx,4), %rdi
	subq	%rcx, %rax
	movq	%rax, %rsi
	callq	_MEMSET_BZERO
	movq	8(%r14), %rsi
LBB0_4:
	movq	%r14, %rdi
	callq	_SHA512_Transform
	movq	8(%r14), %rdi
	movslq	(%r15), %rsi
	addq	$-2, %rsi
	callq	_MEMSET_BZERO
	ud2
LBB0_5:
	movq	8(%r14), %rdi
	movq	_SHA512_SHORT_BLOCK_LENGTH@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_MEMSET_BZERO
	ud2
LBB0_6:
	leaq	(%rsi,%rcx,4), %rdi
	movq	%rax, %rsi
	callq	_MEMSET_BZERO
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_SHA512_BLOCK_LENGTH,4,2        ## @SHA512_BLOCK_LENGTH
	.comm	_SHA512_SHORT_BLOCK_LENGTH,8,3  ## @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	x20, _SHA512_BLOCK_LENGTH@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SHA512_BLOCK_LENGTH@GOTPAGEOFF]
	ldr	w9, [x20]
	sdiv	w10, w8, w9
	msub	w21, w10, w9, w8
	mov	x1, x0
	bl	_REVERSE64
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	mov	x1, x0
	bl	_REVERSE64
	cbz	w21, LBB0_5
; %bb.1:
	sxtw	x8, w21
	ldr	x1, [x19, #8]
	add	x9, x8, #1
	mov	w8, #128
	str	w8, [x1, w21, sxtw #2]
Lloh2:
	adrp	x8, _SHA512_SHORT_BLOCK_LENGTH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SHA512_SHORT_BLOCK_LENGTH@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	subs	x8, x8, x9
	b.hs	LBB0_6
; %bb.2:
	ldrsw	x8, [x20]
	cmp	x9, x8
	b.hs	LBB0_4
; %bb.3:
	add	x0, x1, x9, lsl #2
	sub	x1, x8, x9
	bl	_MEMSET_BZERO
	ldr	x1, [x19, #8]
LBB0_4:
	mov	x0, x19
	bl	_SHA512_Transform
	ldr	x0, [x19, #8]
	ldrsw	x8, [x20]
	sub	x1, x8, #2
	bl	_MEMSET_BZERO
	brk	#0x1
LBB0_5:
	ldr	x0, [x19, #8]
Lloh5:
	adrp	x8, _SHA512_SHORT_BLOCK_LENGTH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SHA512_SHORT_BLOCK_LENGTH@GOTPAGEOFF]
Lloh7:
	ldr	x1, [x8]
	bl	_MEMSET_BZERO
	brk	#0x1
LBB0_6:
	add	x0, x1, x9, lsl #2
	mov	x1, x8
	bl	_MEMSET_BZERO
	brk	#0x1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SHA512_BLOCK_LENGTH,4,2        ; @SHA512_BLOCK_LENGTH
	.comm	_SHA512_SHORT_BLOCK_LENGTH,8,3  ; @SHA512_SHORT_BLOCK_LENGTH
	.no_dead_strip	_SHA512_Last
.subsections_via_symbols
