	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function new_read
_new_read:                              ## @new_read
	.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
	movq	%rcx, %r14
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	_write_list@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_LIST_HEAD
	movq	%rbx, %rdi
	callq	_dm_bufio_lock
	leaq	-44(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	movq	%r13, %r8
	callq	___bufio_new
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_dm_bufio_unlock
	movq	%r13, %rdi
	callq	___flush_write_list
	testq	%r15, %r15
	je	LBB0_1
## %bb.2:
	cmpl	$0, -44(%rbp)
	je	LBB0_4
## %bb.3:
	movq	_REQ_OP_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_read_endio@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_submit_io
LBB0_4:
	movq	%r15, %rdi
	addq	$24, %rdi
	movq	_B_READING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TASK_UNINTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_wait_on_bit_io
	movq	16(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_blk_status_to_errno
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_dm_bufio_release
	movl	%ebx, %edi
	callq	_ERR_PTR
	jmp	LBB0_7
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_6:
	movq	%r15, (%r14)
	movq	8(%r15), %rax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_write_list,4,2                 ## @write_list
	.comm	_REQ_OP_READ,4,2                ## @REQ_OP_READ
	.comm	_read_endio,4,2                 ## @read_endio
	.comm	_B_READING,4,2                  ## @B_READING
	.comm	_TASK_UNINTERRUPTIBLE,4,2       ## @TASK_UNINTERRUPTIBLE
	.no_dead_strip	_new_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function new_read
_new_read:                              ; @new_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x23, _write_list@GOTPAGE
Lloh1:
	ldr	x23, [x23, _write_list@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_LIST_HEAD
	mov	x0, x22
	bl	_dm_bufio_lock
	add	x3, sp, #12
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x4, x23
	bl	___bufio_new
	mov	x20, x0
	mov	x0, x22
	bl	_dm_bufio_unlock
	mov	x0, x23
	bl	___flush_write_list
	cbz	x20, LBB0_5
; %bb.1:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _REQ_OP_READ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _REQ_OP_READ@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _read_endio@GOTPAGE
Lloh6:
	ldr	x8, [x8, _read_endio@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_submit_io
LBB0_3:
	add	x0, x20, #24
Lloh8:
	adrp	x8, _B_READING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _B_READING@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _TASK_UNINTERRUPTIBLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TASK_UNINTERRUPTIBLE@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	bl	_wait_on_bit_io
	ldr	x0, [x20, #16]
	cbz	x0, LBB0_6
; %bb.4:
	bl	_blk_status_to_errno
	mov	x19, x0
	mov	x0, x20
	bl	_dm_bufio_release
	mov	x0, x19
	bl	_ERR_PTR
	b	LBB0_7
LBB0_5:
	mov	x0, #0
	b	LBB0_7
LBB0_6:
	str	x20, [x19]
	ldr	x0, [x20, #8]
LBB0_7:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_write_list,4,2                 ; @write_list
	.comm	_REQ_OP_READ,4,2                ; @REQ_OP_READ
	.comm	_read_endio,4,2                 ; @read_endio
	.comm	_B_READING,4,2                  ; @B_READING
	.comm	_TASK_UNINTERRUPTIBLE,4,2       ; @TASK_UNINTERRUPTIBLE
	.no_dead_strip	_new_read
.subsections_via_symbols
