	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_write
_do_write:                              ## @do_write
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_NR_MIRRORS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	_REQ_FUA@GOTPCREL(%rip), %rax
	movq	_REQ_PREFLUSH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	andl	(%r12), %ecx
	movl	%ecx, -120(%rbp)
	movq	$0, -112(%rbp)
	movq	%r12, -104(%rbp)
	movq	_DM_IO_BIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)
	movq	_REQ_OP_WRITE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -88(%rbp)
	movl	16(%r14), %eax
	movl	%eax, -80(%rbp)
	movq	%r12, -72(%rbp)
	movq	_write_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	%r12, %rdi
	callq	_bio_op
	movq	_REQ_OP_DISCARD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%rax, -88(%rbp)
	movq	_DM_IO_KMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)
	movq	$0, -112(%rbp)
LBB0_2:
	cmpl	$0, (%r14)
	je	LBB0_5
## %bb.3:
	movq	8(%r14), %r13
	xorl	%r15d, %r15d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_map_region
	incl	%r15d
	addq	$4, %r13
	addl	$4, %ebx
	cmpl	(%r14), %r15d
	jb	LBB0_4
LBB0_5:
	movq	%r14, %rdi
	callq	_get_default_mirror
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_bio_set_m
	movl	(%r14), %esi
	leaq	-120(%rbp), %rdi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	callq	_dm_io
	movl	%eax, %edi
	callq	_BUG_ON
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_NR_MIRRORS,4,2             ## @MAX_NR_MIRRORS
	.comm	_REQ_FUA,4,2                    ## @REQ_FUA
	.comm	_REQ_PREFLUSH,4,2               ## @REQ_PREFLUSH
	.comm	_DM_IO_BIO,4,2                  ## @DM_IO_BIO
	.comm	_REQ_OP_WRITE,8,3               ## @REQ_OP_WRITE
	.comm	_write_callback,4,2             ## @write_callback
	.comm	_REQ_OP_DISCARD,8,3             ## @REQ_OP_DISCARD
	.comm	_DM_IO_KMEM,4,2                 ## @DM_IO_KMEM
	.no_dead_strip	_do_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_write
_do_write:                              ; @do_write
	.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
	sub	sp, sp, #80
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _MAX_NR_MIRRORS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_NR_MIRRORS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	ldr	w8, [x1]
Lloh8:
	adrp	x9, _REQ_FUA@GOTPAGE
Lloh9:
	ldr	x9, [x9, _REQ_FUA@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _REQ_PREFLUSH@GOTPAGE
Lloh12:
	ldr	x10, [x10, _REQ_PREFLUSH@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	orr	w9, w10, w9
	and	w8, w9, w8
	stur	w8, [x29, #-120]
	stp	xzr, x1, [x29, #-112]
Lloh14:
	adrp	x8, _DM_IO_BIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DM_IO_BIO@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	stur	w8, [x29, #-96]
Lloh17:
	adrp	x8, _REQ_OP_WRITE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _REQ_OP_WRITE@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	w8, [x0, #16]
	stur	w8, [x29, #-80]
	stur	x1, [x29, #-72]
Lloh20:
	adrp	x8, _write_callback@GOTPAGE
Lloh21:
	ldr	x8, [x8, _write_callback@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	stur	w8, [x29, #-64]
	mov	x0, x1
	bl	_bio_op
Lloh23:
	adrp	x8, _REQ_OP_DISCARD@GOTPAGE
Lloh24:
	ldr	x8, [x8, _REQ_OP_DISCARD@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	stur	x0, [x29, #-88]
Lloh26:
	adrp	x8, _DM_IO_KMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _DM_IO_KMEM@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	stur	w8, [x29, #-96]
	stur	xzr, [x29, #-112]
LBB0_2:
	ldr	w8, [x19]
	cbz	w8, LBB0_5
; %bb.3:
	mov	w24, #0
	ldr	x22, [x19, #8]
	mov	x23, x21
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x22
	mov	x2, x20
	bl	_map_region
	add	w24, w24, #1
	add	x22, x22, #4
	ldr	w8, [x19]
	add	w23, w23, #4
	cmp	w24, w8
	b.lo	LBB0_4
LBB0_5:
	mov	x0, x19
	bl	_get_default_mirror
	mov	x1, x0
	mov	x0, x20
	bl	_bio_set_m
	ldr	w1, [x19]
	sub	x0, x29, #120
	mov	x2, x21
	mov	x3, #0
	bl	_dm_io
	bl	_BUG_ON
	ldur	x8, [x29, #-56]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	sub	sp, x29, #48
	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_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_NR_MIRRORS,4,2             ; @MAX_NR_MIRRORS
	.comm	_REQ_FUA,4,2                    ; @REQ_FUA
	.comm	_REQ_PREFLUSH,4,2               ; @REQ_PREFLUSH
	.comm	_DM_IO_BIO,4,2                  ; @DM_IO_BIO
	.comm	_REQ_OP_WRITE,8,3               ; @REQ_OP_WRITE
	.comm	_write_callback,4,2             ; @write_callback
	.comm	_REQ_OP_DISCARD,8,3             ; @REQ_OP_DISCARD
	.comm	_DM_IO_KMEM,4,2                 ; @DM_IO_KMEM
	.no_dead_strip	_do_write
.subsections_via_symbols
