	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bio_copy_block
_bio_copy_block:                        ## @bio_copy_block
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_bio_data_dir
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %r15d
	leaq	-80(%rbp), %rbx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_bio_page
	movl	%eax, %edi
	callq	_flush_dcache_page
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_memcpy_flushcache
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_bvec_kunmap_irq
	movl	%r12d, %eax
	addq	%rax, %r13
	subl	%r12d, %r15d
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_bio_advance
	movl	%r15d, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r14), %esi
	movq	%r14, %rdi
	callq	_bio_iter_iovec
	movl	%eax, -48(%rbp)
	leaq	-48(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_bvec_kmap_irq
	movq	%rax, %rbx
	movl	-48(%rbp), %r12d
	xorl	%edi, %edi
	cmpl	%r15d, %r12d
	seta	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r15d, %r12d
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movq	_READ@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	callq	_memcpy_mcsafe
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_bio_page
	movl	%eax, %edi
	callq	_flush_dcache_page
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %esi
	leaq	L_.str(%rip), %rdx
	callq	_writecache_error
	movq	_BLK_STS_IOERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	jmp	LBB0_7
LBB0_8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_READ,4,2                       ## @READ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hardware memory error when reading data: %d"

	.comm	_BLK_STS_IOERR,4,2              ## @BLK_STS_IOERR
	.no_dead_strip	_bio_copy_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bio_copy_block
_bio_copy_block:                        ; @bio_copy_block
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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 w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x1
	bl	_bio_data_dir
	mov	x22, x0
	ldr	w23, [x21]
Lloh0:
	adrp	x28, _READ@GOTPAGE
Lloh1:
	ldr	x28, [x28, _READ@GOTPAGEOFF]
Lloh2:
	adrp	x24, l_.str@PAGE
Lloh3:
	add	x24, x24, l_.str@PAGEOFF
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_bio_page
	bl	_flush_dcache_page
	mov	x0, x19
	mov	x1, x25
	mov	x2, x26
	bl	_memcpy_flushcache
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #8
	mov	x0, x25
	bl	_bvec_kunmap_irq
	add	x19, x19, w26, uxtw
	sub	w23, w23, w26
	mov	x0, x20
	mov	x1, x26
	bl	_bio_advance
	mov	x0, x23
	bl	_unlikely
	cbz	x0, LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20, #4]
	mov	x0, x20
	bl	_bio_iter_iovec
	str	w0, [sp]
	mov	x0, sp
	add	x1, sp, #8
	bl	_bvec_kmap_irq
	mov	x25, x0
	ldr	w26, [sp]
	cmp	w26, w23
	cset	w0, hi
	bl	_unlikely
	cmp	x0, #0
	csel	w26, w26, w23, eq
	ldr	w8, [x28]
	cmp	w22, w8
	b.ne	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x25
	mov	x1, x19
	mov	x2, x26
	bl	_memcpy_mcsafe
	mov	x27, x0
	mov	x0, x20
	bl	_bio_page
	bl	_flush_dcache_page
	mov	x0, x27
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x27
	mov	x2, x24
	mov	x3, x27
	bl	_writecache_error
Lloh4:
	adrp	x8, _BLK_STS_IOERR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BLK_STS_IOERR@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x20]
	b	LBB0_2
LBB0_6:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_READ,4,2                       ; @READ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hardware memory error when reading data: %d"

	.comm	_BLK_STS_IOERR,4,2              ; @BLK_STS_IOERR
	.no_dead_strip	_bio_copy_block
.subsections_via_symbols
