	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SHA256_Final                   ## -- Begin function SHA256_Final
	.p2align	4, 0x90
_SHA256_Final:                          ## @SHA256_Final
	.cfi_startproc
## %bb.0:
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.1:
	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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.2:
	movl	(%rbx), %edi
	movl	%edi, %eax
	sarl	$3, %eax
	movq	_SHA256_BLOCK_LENGTH@GOTPCREL(%rip), %r13
	cltd
	idivl	(%r13)
	movl	%edx, %r15d
	movl	%edi, %esi
	callq	_REVERSE64
	movq	8(%rbx), %rsi
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.3:
	movl	%r15d, %eax
	incl	%r15d
	movl	$128, (%rsi,%rax,4)
	movq	_SHA256_SHORT_BLOCK_LENGTH@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	subl	%r15d, %edx
	jae	LBB0_4
## %bb.6:
	movl	(%r13), %edx
	subl	%r15d, %edx
	jbe	LBB0_8
## %bb.7:
	movl	%r15d, %eax
	leaq	(%rsi,%rax,4), %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	8(%rbx), %rsi
LBB0_8:
	movq	%rbx, %rdi
	callq	_SHA256_Transform
	movq	8(%rbx), %rdi
	movl	(%r12), %edx
	jmp	LBB0_5
LBB0_12:
	retq
LBB0_9:
	movq	_SHA256_SHORT_BLOCK_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rsi, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	8(%rbx), %rax
	movl	$128, (%rax)
	jmp	LBB0_10
LBB0_4:
	movl	%r15d, %eax
	leaq	(%rsi,%rax,4), %rdi
LBB0_5:
	xorl	%esi, %esi
	callq	_memset
LBB0_10:
	movq	8(%rbx), %rsi
	movq	_SHA256_SHORT_BLOCK_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%rbx), %ecx
	movl	%ecx, (%rsi,%rax,4)
	movq	%rbx, %rdi
	callq	_SHA256_Transform
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	movl	%edi, %esi
	callq	_REVERSE32
	movq	16(%rbx), %rax
	movl	(%rax), %ecx
	movl	%ecx, (%r14)
	movl	4(%rax), %edi
	movl	%edi, %esi
	callq	_REVERSE32
	movq	16(%rbx), %rax
	movl	4(%rax), %ecx
	movl	%ecx, 4(%r14)
	movl	8(%rax), %edi
	movl	%edi, %esi
	callq	_REVERSE32
	movq	16(%rbx), %rax
	movl	8(%rax), %ecx
	movl	%ecx, 8(%r14)
	movl	12(%rax), %edi
	movl	%edi, %esi
	callq	_REVERSE32
	movq	16(%rbx), %rax
	movl	12(%rax), %ecx
	movl	%ecx, 12(%r14)
	movl	16(%rax), %edi
	movl	%edi, %esi
	callq	_REVERSE32
	movq	16(%rbx), %rax
	movl	16(%rax), %ecx
	movl	%ecx, 16(%r14)
	movl	20(%rax), %edi
	movl	%edi, %esi
	callq	_REVERSE32
	movq	16(%rbx), %rax
	movl	20(%rax), %ecx
	movl	%ecx, 20(%r14)
	movl	24(%rax), %edi
	movl	%edi, %esi
	callq	_REVERSE32
	movq	16(%rbx), %rax
	movl	24(%rax), %ecx
	movl	%ecx, 24(%r14)
	movl	28(%rax), %edi
	movl	%edi, %esi
	callq	_REVERSE32
	movq	16(%rbx), %rax
	movl	28(%rax), %eax
	movl	%eax, 28(%r14)
LBB0_11:
	movq	%rbx, %rdi
	movl	$24, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_r_mem_memzero                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SHA256_BLOCK_LENGTH,4,2        ## @SHA256_BLOCK_LENGTH
	.comm	_SHA256_SHORT_BLOCK_LENGTH,4,2  ## @SHA256_SHORT_BLOCK_LENGTH
	.comm	_SHA256_DIGEST_LENGTH,4,2       ## @SHA256_DIGEST_LENGTH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SHA256_Final                   ; -- Begin function SHA256_Final
	.p2align	2
_SHA256_Final:                          ; @SHA256_Final
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_7
; %bb.1:
	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
	.cfi_remember_state
	mov	x19, x1
	mov	x20, x0
	cbz	x0, LBB0_12
; %bb.2:
	ldr	w0, [x19]
	asr	w8, w0, #3
Lloh0:
	adrp	x22, _SHA256_BLOCK_LENGTH@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SHA256_BLOCK_LENGTH@GOTPAGEOFF]
	ldr	w9, [x22]
	sdiv	w10, w8, w9
	msub	w23, w10, w9, w8
	mov	x1, x0
	bl	_REVERSE64
	ldr	x1, [x19, #8]
Lloh2:
	adrp	x21, _SHA256_SHORT_BLOCK_LENGTH@GOTPAGE
Lloh3:
	ldr	x21, [x21, _SHA256_SHORT_BLOCK_LENGTH@GOTPAGEOFF]
	cbz	w23, LBB0_8
; %bb.3:
	add	w8, w23, #1
	mov	w9, #128
	str	w9, [x1, w23, uxtw #2]
	ldr	w9, [x21]
	subs	w2, w9, w8
	b.hs	LBB0_9
; %bb.4:
	ldr	w9, [x22]
	subs	w2, w9, w8
	b.ls	LBB0_6
; %bb.5:
	add	x0, x1, w8, uxtw #2
	mov	w1, #0
	bl	_memset
	ldr	x1, [x19, #8]
LBB0_6:
	mov	x0, x19
	bl	_SHA256_Transform
	ldr	x0, [x19, #8]
	ldr	w2, [x21]
	b	LBB0_10
LBB0_7:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	.cfi_same_value w23
	.cfi_same_value w24
	ret
LBB0_8:
	.cfi_restore_state
	ldr	w2, [x21]
	mov	x0, x1
	mov	w1, #0
	bl	_memset
	ldr	x8, [x19, #8]
	mov	w9, #128
	str	w9, [x8]
	b	LBB0_11
LBB0_9:
	add	x0, x1, w8, uxtw #2
LBB0_10:
	mov	w1, #0
	bl	_memset
LBB0_11:
	ldr	x1, [x19, #8]
	ldr	w8, [x21]
	ldr	w9, [x19]
	str	w9, [x1, x8, lsl #2]
	mov	x0, x19
	bl	_SHA256_Transform
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	mov	x1, x0
	bl	_REVERSE32
	ldr	x8, [x19, #16]
	ldr	w9, [x8]
	str	w9, [x20]
	ldr	w0, [x8, #4]
	mov	x1, x0
	bl	_REVERSE32
	ldr	x8, [x19, #16]
	ldr	w9, [x8, #4]
	str	w9, [x20, #4]
	ldr	w0, [x8, #8]
	mov	x1, x0
	bl	_REVERSE32
	ldr	x8, [x19, #16]
	ldr	w9, [x8, #8]
	str	w9, [x20, #8]
	ldr	w0, [x8, #12]
	mov	x1, x0
	bl	_REVERSE32
	ldr	x8, [x19, #16]
	ldr	w9, [x8, #12]
	str	w9, [x20, #12]
	ldr	w0, [x8, #16]
	mov	x1, x0
	bl	_REVERSE32
	ldr	x8, [x19, #16]
	ldr	w9, [x8, #16]
	str	w9, [x20, #16]
	ldr	w0, [x8, #20]
	mov	x1, x0
	bl	_REVERSE32
	ldr	x8, [x19, #16]
	ldr	w9, [x8, #20]
	str	w9, [x20, #20]
	ldr	w0, [x8, #24]
	mov	x1, x0
	bl	_REVERSE32
	ldr	x8, [x19, #16]
	ldr	w9, [x8, #24]
	str	w9, [x20, #24]
	ldr	w0, [x8, #28]
	mov	x1, x0
	bl	_REVERSE32
	ldr	x8, [x19, #16]
	ldr	w8, [x8, #28]
	str	w8, [x20, #28]
LBB0_12:
	mov	x0, x19
	mov	w1, #24
	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
	b	_r_mem_memzero
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SHA256_BLOCK_LENGTH,4,2        ; @SHA256_BLOCK_LENGTH
	.comm	_SHA256_SHORT_BLOCK_LENGTH,4,2  ; @SHA256_SHORT_BLOCK_LENGTH
	.comm	_SHA256_DIGEST_LENGTH,4,2       ; @SHA256_DIGEST_LENGTH
.subsections_via_symbols
