	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sha512_update
_sha512_update:                         ## @sha512_update
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, %r14
	callq	_shash_desc_ctx
	movq	%rax, %r15
	movq	(%rax), %rax
	movl	(%rax), %ecx
	movl	%ecx, %ebx
	andl	$127, %ebx
	addl	%r13d, %ecx
	movl	%ecx, (%rax)
	jae	LBB0_2
## %bb.1:
	incl	4(%rax)
LBB0_2:
	movl	$128, %r12d
	subl	%ebx, %r12d
	cmpl	%r13d, %r12d
	jbe	LBB0_3
## %bb.5:
	movl	%ebx, %edi
	xorl	%r12d, %r12d
	jmp	LBB0_8
LBB0_3:
	movq	%rbx, %rdi
	shlq	$2, %rdi
	addq	8(%r15), %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_memcpy
	movl	16(%r15), %edi
	movq	8(%r15), %rsi
	callq	_sha512_transform
	xorl	$255, %ebx
	cmpl	%r13d, %ebx
	jae	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	leal	-127(%rbx), %eax
	movl	16(%r15), %edi
	leaq	(%r14,%rax,4), %rsi
	callq	_sha512_transform
	subl	$-128, %ebx
	cmpl	%r13d, %ebx
	jb	LBB0_6
## %bb.7:
	addl	$-127, %ebx
	xorl	%edi, %edi
	movl	%ebx, %r12d
	jmp	LBB0_8
LBB0_4:
	xorl	%edi, %edi
LBB0_8:
	shlq	$2, %rdi
	addq	8(%r15), %rdi
	movl	%r12d, %eax
	leaq	(%r14,%rax,4), %rsi
	subl	%r12d, %r13d
	movl	%r13d, %edx
	callq	_memcpy
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sha512_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sha512_update
_sha512_update:                         ; @sha512_update
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	bl	_shash_desc_ctx
	mov	x21, x0
	ldr	x8, [x0]
	ldr	w9, [x8]
	and	x23, x9, #0x7f
	adds	w9, w9, w19
	str	w9, [x8]
	b.lo	LBB0_2
; %bb.1:
	ldr	w9, [x8, #4]
	add	w9, w9, #1
	str	w9, [x8, #4]
LBB0_2:
	mov	w8, #128
	sub	w22, w8, w23
	cmp	w22, w19
	b.ls	LBB0_4
; %bb.3:
	mov	w22, #0
	mov	w8, w23
	b	LBB0_9
LBB0_4:
	ldr	x8, [x21, #8]
	add	x0, x8, x23, lsl #2
	mov	x1, x20
	mov	x2, x22
	bl	_memcpy
	ldr	w0, [x21, #16]
	ldr	x1, [x21, #8]
	bl	_sha512_transform
	eor	w8, w23, #0xff
	cmp	w8, w19
	b.hs	LBB0_8
; %bb.5:
	mov	w8, #255
	sub	w22, w8, w23
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w22, #127
	ldr	w0, [x21, #16]
	add	x1, x20, w8, uxtw #2
	bl	_sha512_transform
	add	w22, w22, #128
	cmp	w22, w19
	b.lo	LBB0_6
; %bb.7:
	mov	x8, #0
	sub	w22, w22, #127
	b	LBB0_9
LBB0_8:
	mov	x8, #0
LBB0_9:
	ldr	x9, [x21, #8]
	add	x0, x9, x8, lsl #2
	add	x1, x20, w22, uxtw #2
	sub	w2, w19, w22
	bl	_memcpy
	mov	w0, #0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sha512_update
.subsections_via_symbols
