	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sha256_finish_ctx
_sha256_finish_ctx:                     ## @sha256_finish_ctx
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movslq	(%rdi), %r12
	movq	8(%rdi), %rax
	movl	(%rax), %ecx
	leal	(%rcx,%r12), %edx
	movl	%edx, (%rax)
	testl	%ecx, %ecx
	jns	LBB0_2
## %bb.1:
	incl	4(%rax)
LBB0_2:
	xorl	%eax, %eax
	cmpl	$56, %r12d
	setge	%al
	shll	$6, %eax
	subl	%r12d, %eax
	addl	$56, %eax
	movslq	%eax, %rbx
	leaq	(,%r12,4), %rdi
	addq	24(%r15), %rdi
	movq	_fillbuf@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_memcpy
	movq	8(%r15), %rax
	movl	(%rax), %edi
	shll	$3, %edi
	callq	_SWAP
	movq	24(%r15), %rcx
	addq	%r12, %rbx
	movl	%eax, 16(%rcx,%rbx,4)
	movq	8(%r15), %rax
	movl	(%rax), %edi
	movl	4(%rax), %eax
	shll	$3, %eax
	sarl	$29, %edi
	orl	%eax, %edi
	callq	_SWAP
	movq	24(%r15), %rdi
	movl	%eax, (%rdi,%rbx,4)
	addl	$8, %ebx
	movl	%ebx, %esi
	movq	%r15, %rdx
	callq	_sha256_process_block
	movq	16(%r15), %rax
	movl	(%rax), %edi
	callq	_SWAP
	movl	%eax, (%r14)
	movq	16(%r15), %rax
	movl	4(%rax), %edi
	callq	_SWAP
	movl	%eax, 4(%r14)
	movq	16(%r15), %rax
	movl	8(%rax), %edi
	callq	_SWAP
	movl	%eax, 8(%r14)
	movq	16(%r15), %rax
	movl	12(%rax), %edi
	callq	_SWAP
	movl	%eax, 12(%r14)
	movq	16(%r15), %rax
	movl	16(%rax), %edi
	callq	_SWAP
	movl	%eax, 16(%r14)
	movq	16(%r15), %rax
	movl	20(%rax), %edi
	callq	_SWAP
	movl	%eax, 20(%r14)
	movq	16(%r15), %rax
	movl	24(%rax), %edi
	callq	_SWAP
	movl	%eax, 24(%r14)
	movq	16(%r15), %rax
	movl	28(%rax), %edi
	callq	_SWAP
	movl	%eax, 28(%r14)
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fillbuf,4,2                    ## @fillbuf
	.no_dead_strip	_sha256_finish_ctx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sha256_finish_ctx
_sha256_finish_ctx:                     ; @sha256_finish_ctx
	.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, x1
	mov	x20, x0
	ldrsw	x22, [x0]
	ldr	x8, [x0, #8]
	ldr	w9, [x8]
	add	w10, w9, w22
	str	w10, [x8]
	tbz	w9, #31, LBB0_2
; %bb.1:
	ldr	w9, [x8, #4]
	add	w9, w9, #1
	str	w9, [x8, #4]
LBB0_2:
	mov	w8, #120
	mov	w9, #56
	cmp	w22, #56
	csel	w8, w9, w8, lt
	sub	w8, w8, w22
	sxtw	x21, w8
	ldr	x8, [x20, #24]
	add	x0, x8, x22, lsl #2
Lloh0:
	adrp	x8, _fillbuf@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fillbuf@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_memcpy
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	lsl	w0, w8, #3
	bl	_SWAP
	ldr	x8, [x20, #24]
	add	x21, x21, x22
	lsl	x22, x21, #2
	add	x8, x22, x8
	str	w0, [x8, #16]
	ldr	x8, [x20, #8]
	ldp	w8, w9, [x8]
	asr	w8, w8, #29
	orr	w0, w8, w9, lsl #3
	bl	_SWAP
	ldr	x8, [x20, #24]
	str	w0, [x8, x22]
	add	w1, w21, #8
	mov	x0, x8
	mov	x2, x20
	bl	_sha256_process_block
	ldr	x8, [x20, #16]
	ldr	w0, [x8]
	bl	_SWAP
	str	w0, [x19]
	ldr	x8, [x20, #16]
	ldr	w0, [x8, #4]
	bl	_SWAP
	str	w0, [x19, #4]
	ldr	x8, [x20, #16]
	ldr	w0, [x8, #8]
	bl	_SWAP
	str	w0, [x19, #8]
	ldr	x8, [x20, #16]
	ldr	w0, [x8, #12]
	bl	_SWAP
	str	w0, [x19, #12]
	ldr	x8, [x20, #16]
	ldr	w0, [x8, #16]
	bl	_SWAP
	str	w0, [x19, #16]
	ldr	x8, [x20, #16]
	ldr	w0, [x8, #20]
	bl	_SWAP
	str	w0, [x19, #20]
	ldr	x8, [x20, #16]
	ldr	w0, [x8, #24]
	bl	_SWAP
	str	w0, [x19, #24]
	ldr	x8, [x20, #16]
	ldr	w0, [x8, #28]
	bl	_SWAP
	str	w0, [x19, #28]
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_fillbuf,4,2                    ; @fillbuf
	.no_dead_strip	_sha256_finish_ctx
.subsections_via_symbols
