	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmz_write_mblock
_dmz_write_mblock:                      ## @dmz_write_mblock
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	(%rdi), %rdi
	movq	8(%r12), %rax
	movl	%edx, %ecx
	movq	8(%rsi), %rbx
	addq	(%rax,%rcx,8), %rbx
	callq	_dmz_bdev_is_dying
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	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, %r14
	movq	_DMZ_META_WRITING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%r15), %rsi
	callq	_set_bit
	movq	%rbx, %rdi
	callq	_dmz_blk2sect
	movl	%eax, 16(%r14)
	movq	(%r12), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_bio_set_dev
	movq	%r15, 8(%r14)
	movq	_dmz_mblock_bio_end_io@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_REQ_OP_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REQ_META@GOTPCREL(%rip), %rax
	movq	_REQ_PRIO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r14, %rdi
	callq	_bio_set_op_attrs
	movl	(%r15), %esi
	movq	_DMZ_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_bio_add_page
	movq	%r14, %rdi
	callq	_submit_bio
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_DMZ_META_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$4, %r15
	movq	%r15, %rsi
	callq	_set_bit
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_GFP_NOIO,4,2                   ## @GFP_NOIO
	.comm	_DMZ_META_ERROR,4,2             ## @DMZ_META_ERROR
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DMZ_META_WRITING,4,2           ## @DMZ_META_WRITING
	.comm	_dmz_mblock_bio_end_io,4,2      ## @dmz_mblock_bio_end_io
	.comm	_REQ_OP_WRITE,4,2               ## @REQ_OP_WRITE
	.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_write_mblock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmz_write_mblock
_dmz_write_mblock:                      ; @dmz_write_mblock
	.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, x1
	mov	x21, x0
	ldp	x0, x8, [x0]
	ldr	x22, [x8, w2, uxtw #3]
	ldr	x23, [x1, #8]
	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
	add	x22, x23, x22
Lloh5:
	adrp	x8, _DMZ_META_WRITING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DMZ_META_WRITING@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	add	x1, x19, #4
	bl	_set_bit
	mov	x0, x22
	bl	_dmz_blk2sect
	str	w0, [x20, #16]
	ldr	x8, [x21]
	ldr	w1, [x8]
	mov	x0, x20
	bl	_bio_set_dev
	str	x19, [x20, #8]
Lloh8:
	adrp	x8, _dmz_mblock_bio_end_io@GOTPAGE
Lloh9:
	ldr	x8, [x8, _dmz_mblock_bio_end_io@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x20]
Lloh11:
	adrp	x8, _REQ_OP_WRITE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _REQ_OP_WRITE@GOTPAGEOFF]
Lloh13:
	adrp	x9, _REQ_META@GOTPAGE
Lloh14:
	ldr	x9, [x9, _REQ_META@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	ldr	w8, [x9]
Lloh17:
	adrp	x9, _REQ_PRIO@GOTPAGE
Lloh18:
	ldr	x9, [x9, _REQ_PRIO@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x20
	bl	_bio_set_op_attrs
	ldr	w1, [x19]
Lloh20:
	adrp	x8, _DMZ_BLOCK_SIZE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DMZ_BLOCK_SIZE@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #0
	bl	_bio_add_page
	mov	x0, x20
	bl	_submit_bio
	mov	w0, #0
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:
Lloh23:
	adrp	x8, _DMZ_META_ERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DMZ_META_ERROR@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	add	x1, x19, #4
	bl	_set_bit
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_GFP_NOIO,4,2                   ; @GFP_NOIO
	.comm	_DMZ_META_ERROR,4,2             ; @DMZ_META_ERROR
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DMZ_META_WRITING,4,2           ; @DMZ_META_WRITING
	.comm	_dmz_mblock_bio_end_io,4,2      ; @dmz_mblock_bio_end_io
	.comm	_REQ_OP_WRITE,4,2               ; @REQ_OP_WRITE
	.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_write_mblock
.subsections_via_symbols
