	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _picohash_sha256_do_final
__picohash_sha256_do_final:             ## @_picohash_sha256_do_final
	.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, %rbx
	movslq	4(%rdi), %rax
	leal	(,%rax,8), %ecx
	addl	%ecx, (%rdi)
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	8(%rdi), %rcx
	leal	1(%rax), %edx
	movl	%edx, 4(%rdi)
	movb	$-128, (%rcx,%rax)
	movl	4(%rdi), %eax
	cmpl	$57, %eax
	jl	LBB0_5
## %bb.1:
	cmpl	$63, %eax
	ja	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rcx
	leal	1(%rax), %edx
	movl	%edx, 4(%rbx)
	cltq
	movb	$0, (%rcx,%rax)
	movl	4(%rbx), %eax
	cmpl	$64, %eax
	jl	LBB0_2
LBB0_3:
	movq	8(%rbx), %rsi
	movq	%rbx, %rdi
	callq	__picohash_sha256_compress
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_5:
	cmpl	$56, %eax
	je	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rcx
	leal	1(%rax), %edx
	movl	%edx, 4(%rbx)
	cltq
	movb	$0, (%rcx,%rax)
	movl	4(%rbx), %eax
	cmpl	$56, %eax
	jl	LBB0_4
LBB0_6:
	movb	3(%rbx), %al
	movq	8(%rbx), %rcx
	movb	%al, 60(%rcx)
	movb	2(%rbx), %al
	movq	8(%rbx), %rcx
	movb	%al, 61(%rcx)
	movb	1(%rbx), %al
	movq	8(%rbx), %rcx
	movb	%al, 62(%rcx)
	movb	(%rbx), %al
	movq	8(%rbx), %rcx
	movb	%al, 63(%rcx)
	movq	8(%rbx), %rsi
	movq	%rbx, %rdi
	callq	__picohash_sha256_compress
	cmpq	$4, %r14
	jb	LBB0_9
## %bb.7:
	shrq	$2, %r14
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rcx
	movzbl	3(%rcx,%rax,4), %ecx
	movb	%cl, (%r15,%rax,4)
	movq	16(%rbx), %rcx
	movzbl	2(%rcx,%rax,4), %ecx
	movb	%cl, 1(%r15,%rax,4)
	movq	16(%rbx), %rcx
	movzbl	1(%rcx,%rax,4), %ecx
	movb	%cl, 2(%r15,%rax,4)
	movq	16(%rbx), %rcx
	movzbl	(%rcx,%rax,4), %ecx
	movb	%cl, 3(%r15,%rax,4)
	incq	%rax
	cmpq	%rax, %r14
	jne	LBB0_8
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	__picohash_sha256_do_final
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _picohash_sha256_do_final
__picohash_sha256_do_final:             ; @_picohash_sha256_do_final
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldp	w9, w8, [x0]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	add	w9, w9, w8, lsl #3
	ldr	x10, [x0, #8]
	add	w11, w8, #1
	stp	w9, w11, [x0]
	mov	w9, #128
	strb	w9, [x10, x8]
	ldr	w8, [x0, #4]
	cmp	w8, #57
	b.lt	LBB0_4
; %bb.1:
	cmp	w8, #63
	b.hi	LBB0_3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #8]
	add	w10, w8, #1
	str	w10, [x20, #4]
	strb	wzr, [x9, w8, sxtw]
	ldr	w8, [x20, #4]
	cmp	w8, #64
	b.lt	LBB0_2
LBB0_3:
	ldr	x1, [x20, #8]
	mov	x0, x20
	bl	__picohash_sha256_compress
	mov	w8, #0
	b	LBB0_5
LBB0_4:
	cmp	w8, #56
	b.eq	LBB0_6
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #8]
	add	w10, w8, #1
	str	w10, [x20, #4]
	strb	wzr, [x9, w8, sxtw]
	ldr	w8, [x20, #4]
	cmp	w8, #56
	b.lt	LBB0_5
LBB0_6:
	ldrb	w8, [x20, #3]
	ldr	x9, [x20, #8]
	strb	w8, [x9, #60]
	ldrh	w8, [x20, #2]
	ldr	x9, [x20, #8]
	strb	w8, [x9, #61]
	ldr	w8, [x20]
	lsr	w8, w8, #8
	ldr	x9, [x20, #8]
	strb	w8, [x9, #62]
	ldr	w8, [x20]
	ldr	x9, [x20, #8]
	strb	w8, [x9, #63]
	ldr	x1, [x20, #8]
	mov	x0, x20
	bl	__picohash_sha256_compress
	cmp	x21, #4
	b.lo	LBB0_9
; %bb.7:
	mov	x8, #0
	lsr	x9, x21, #2
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x20, #16]
	lsl	x11, x8, #2
	add	x10, x10, x11
	ldrb	w10, [x10, #3]
	strb	w10, [x19]
	ldr	x10, [x20, #16]
	add	x10, x10, x11
	ldrh	w10, [x10, #2]
	strb	w10, [x19, #1]
	ldr	x10, [x20, #16]
	ldr	w10, [x10, x11]
	lsr	w10, w10, #8
	strb	w10, [x19, #2]
	ldr	x10, [x20, #16]
	ldr	w10, [x10, x11]
	strb	w10, [x19, #3]
	add	x8, x8, #1
	add	x19, x19, #4
	cmp	x9, x8
	b.ne	LBB0_8
LBB0_9:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	__picohash_sha256_do_final
.subsections_via_symbols
