	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flush
_flush:                                 ## @flush
	.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
	movl	$8200, %eax                     ## imm = 0x2008
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testl	%edx, %edx
	je	LBB0_6
## %bb.1:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	js	LBB0_6
## %bb.2:
	leaq	-8240(%rbp), %rsi
	movl	%r14d, %edx
	callq	_read_in_full
	cmpl	%r14d, %eax
	je	LBB0_4
## %bb.3:
	movl	12(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_die
LBB0_4:
	leaq	-8240(%rbp), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	12(%rbx), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_die
LBB0_6:
	leaq	L_.str.4(%rip), %r13
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	12(%rbx), %esi
	movq	%r13, %rdi
	callq	_die_errno
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	20(%rbx), %edi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_xwrite
	testl	%eax, %eax
	jg	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	12(%rbx), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_die
	jmp	LBB0_13
LBB0_8:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	%eax, %r12d
	movl	8(%rbx), %esi
	addl	%eax, %esi
	movl	%esi, 8(%rbx)
	movl	16(%rbx), %edi
	callq	_display_throughput
	movl	%r12d, %eax
	addq	%rax, %r15
	subl	%r12d, %r14d
	jne	LBB0_7
## %bb.9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.14:
	addq	$8200, %rsp                     ## imm = 0x2008
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"%s: sha1 file truncated"

L_.str.2:                               ## @.str.2
	.asciz	"sha1 file '%s' validation error"

L_.str.3:                               ## @.str.3
	.asciz	"sha1 file '%s' write error. Out of diskspace"

L_.str.4:                               ## @.str.4
	.asciz	"sha1 file '%s' write error"

	.no_dead_strip	_flush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flush
_flush:                                 ; @flush
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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_offset w27, -72
	.cfi_offset w28, -80
	mov	w9, #8208
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #2, lsl #12             ; =8192
	sub	sp, sp, #16
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	cbz	w2, LBB0_6
; %bb.1:
	ldr	x0, [x21]
	tbnz	x0, #63, LBB0_6
; %bb.2:
	add	x1, sp, #8
	mov	x2, x19
	bl	_read_in_full
	cmp	w0, w19
	b.eq	LBB0_4
; %bb.3:
	ldr	w1, [x21, #12]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_die
LBB0_4:
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x19
	bl	_memcmp
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w1, [x21, #12]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_die
LBB0_6:
Lloh9:
	adrp	x22, l_.str.3@PAGE
Lloh10:
	add	x22, x22, l_.str.3@PAGEOFF
Lloh11:
	adrp	x23, l_.str.4@PAGE
Lloh12:
	add	x23, x23, l_.str.4@PAGEOFF
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w1, [x21, #12]
	mov	x0, x23
	bl	_die_errno
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21, #20]
	mov	x1, x20
	mov	x2, x19
	bl	_xwrite
	mov	x24, x0
	cmp	w0, #1
	b.ge	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	cbnz	w24, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w1, [x21, #12]
	mov	x0, x22
	bl	_die
	b	LBB0_7
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x21, #8]
	add	w1, w8, w24
	str	w1, [x21, #8]
	ldr	w0, [x21, #16]
	bl	_display_throughput
	add	x20, x20, w24, uxtw
	subs	w19, w19, w24
	b.ne	LBB0_8
; %bb.12:
	ldur	x8, [x29, #-72]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	add	sp, sp, #2, lsl #12             ; =8192
	add	sp, sp, #16
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"%s: sha1 file truncated"

l_.str.2:                               ; @.str.2
	.asciz	"sha1 file '%s' validation error"

l_.str.3:                               ; @.str.3
	.asciz	"sha1 file '%s' write error. Out of diskspace"

l_.str.4:                               ; @.str.4
	.asciz	"sha1 file '%s' write error"

	.no_dead_strip	_flush
.subsections_via_symbols
