	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmz_rdwr_block
_dmz_rdwr_block:                        ## @dmz_rdwr_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
	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, %r13d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	callq	_dmz_bdev_is_dying
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_3:
	movq	_GFP_NOIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_bio_alloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	movl	%r13d, %edi
	callq	_dmz_blk2sect
	movl	%eax, (%r12)
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_bio_set_dev
	movq	_REQ_SYNC@GOTPCREL(%rip), %rax
	movq	_REQ_META@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_REQ_PRIO@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_bio_set_op_attrs
	movq	_DMZ_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_bio_add_page
	movq	%r12, %rdi
	callq	_submit_bio_wait
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_bio_put
	movl	%ebx, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_GFP_NOIO,4,2                   ## @GFP_NOIO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_REQ_SYNC,4,2                   ## @REQ_SYNC
	.comm	_REQ_META,4,2                   ## @REQ_META
	.comm	_REQ_PRIO,4,2                   ## @REQ_PRIO
	.comm	_DMZ_BLOCK_SIZE,4,2             ## @DMZ_BLOCK_SIZE
	.no_dead_strip	_dmz_rdwr_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmz_rdwr_block
_dmz_rdwr_block:                        ; @dmz_rdwr_block
	.cfi_startproc
; %bb.0:
	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
	mov	x19, x3
	mov	x23, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x0, [x0]
	bl	_dmz_bdev_is_dying
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_3:
Lloh2:
	adrp	x8, _GFP_NOIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_NOIO@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_bio_alloc
	cbz	x0, LBB0_6
; %bb.4:
	mov	x20, x0
	mov	x0, x23
	bl	_dmz_blk2sect
	str	w0, [x20]
	ldr	x8, [x22]
	ldr	w1, [x8]
	mov	x0, x20
	bl	_bio_set_dev
Lloh5:
	adrp	x8, _REQ_SYNC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REQ_SYNC@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _REQ_META@GOTPAGE
Lloh9:
	ldr	x9, [x9, _REQ_META@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _REQ_PRIO@GOTPAGE
Lloh12:
	ldr	x9, [x9, _REQ_PRIO@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x20
	mov	x1, x21
	bl	_bio_set_op_attrs
Lloh14:
	adrp	x8, _DMZ_BLOCK_SIZE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DMZ_BLOCK_SIZE@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	bl	_bio_add_page
	mov	x0, x20
	bl	_submit_bio_wait
	mov	x19, x0
	mov	x0, x20
	bl	_bio_put
	mov	x0, x19
LBB0_5:
	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
	ret
LBB0_6:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_GFP_NOIO,4,2                   ; @GFP_NOIO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_REQ_SYNC,4,2                   ; @REQ_SYNC
	.comm	_REQ_META,4,2                   ; @REQ_META
	.comm	_REQ_PRIO,4,2                   ; @REQ_PRIO
	.comm	_DMZ_BLOCK_SIZE,4,2             ; @DMZ_BLOCK_SIZE
	.no_dead_strip	_dmz_rdwr_block
.subsections_via_symbols
