	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sha256_process                 ## -- Begin function sha256_process
	.p2align	4, 0x90
_sha256_process:                        ## @sha256_process
	.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	(%rdi), %ecx
	movl	$-1, %eax
	cmpl	$7, %ecx
	ja	LBB0_15
## %bb.1:
	movq	%rdx, %r13
	testq	%rdx, %rdx
	je	LBB0_12
## %bb.2:
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_SHA256_BLOCK_SIZE@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rsi
	testl	%ecx, %ecx
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rsi, %r13
	jb	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_sha256_compress
	testq	%rax, %rax
	js	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %rbx
	leaq	(,%rbx,8), %rax
	addq	%rax, 8(%r12)
	addq	%rbx, %r15
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movslq	%ecx, %rax
	subq	%rax, %rsi
	movq	%r13, %rdi
	callq	_MIN
	movq	%rax, %rbx
	movslq	(%r12), %rdi
	addq	16(%r12), %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_os_memcpy
	movl	(%r12), %eax
	addl	%ebx, %eax
	movl	%eax, (%r12)
	addq	%rbx, %r15
	cltq
	cmpq	%rax, (%r14)
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r12), %rsi
	movq	%r12, %rdi
	callq	_sha256_compress
	testq	%rax, %rax
	js	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %rax
	shlq	$3, %rax
	addq	%rax, 8(%r12)
	movl	$0, (%r12)
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	subq	%rbx, %r13
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r12), %ecx
	jmp	LBB0_3
LBB0_12:
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_14:
	movl	$-1, %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SHA256_BLOCK_SIZE,8,3          ## @SHA256_BLOCK_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sha256_process                 ; -- Begin function sha256_process
	.p2align	2
_sha256_process:                        ; @sha256_process
	.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
	ldr	w8, [x0]
	cmp	w8, #7
	b.ls	LBB0_2
LBB0_1:
	mov	w0, #-1
	b	LBB0_13
LBB0_2:
	mov	x19, x2
	cbz	x2, LBB0_12
; %bb.3:
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x23, _SHA256_BLOCK_SIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SHA256_BLOCK_SIZE@GOTPAGEOFF]
	ldr	x9, [x23]
	cbnz	w8, LBB0_7
LBB0_4:
	cmp	x19, x9
	b.lo	LBB0_7
; %bb.5:
	mov	x0, x21
	mov	x1, x20
	bl	_sha256_compress
	tbnz	x0, #63, LBB0_1
; %bb.6:
	ldr	x22, [x23]
	ldr	x8, [x21, #8]
	add	x8, x8, x22, lsl #3
	str	x8, [x21, #8]
	add	x20, x20, x22
	b	LBB0_10
LBB0_7:
	sub	x1, x9, w8, sxtw
	mov	x0, x19
	bl	_MIN
	mov	x22, x0
	ldr	x8, [x21, #16]
	ldrsw	x9, [x21]
	add	x0, x8, x9
	mov	x1, x20
	mov	x2, x22
	bl	_os_memcpy
	ldr	w8, [x21]
	add	w8, w8, w22
	str	w8, [x21]
	add	x20, x20, x22
	ldr	x9, [x23]
	cmp	x9, w8, sxtw
	b.ne	LBB0_10
; %bb.8:
	ldr	x1, [x21, #16]
	mov	x0, x21
	bl	_sha256_compress
	tbnz	x0, #63, LBB0_1
; %bb.9:
	ldr	x8, [x23]
	ldr	x9, [x21, #8]
	add	x8, x9, x8, lsl #3
	str	x8, [x21, #8]
	str	wzr, [x21]
LBB0_10:
	subs	x19, x19, x22
	b.eq	LBB0_12
; %bb.11:
	ldr	w8, [x21]
	ldr	x9, [x23]
	cbz	w8, LBB0_4
	b	LBB0_7
LBB0_12:
	mov	w0, #0
LBB0_13:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SHA256_BLOCK_SIZE,8,3          ; @SHA256_BLOCK_SIZE
.subsections_via_symbols
