	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_callback
_write_callback:                        ## @write_callback
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rdi, -48(%rbp)
	movq	%rsi, %rdi
	callq	_bio_get_m
	movq	(%rax), %r15
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_bio_set_m
	xorl	%edi, %edi
	testq	%rbx, %rbx
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	jne	LBB0_11
## %bb.1:
	movq	%r14, %rdi
	callq	_bio_op
	movq	_REQ_OP_DISCARD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.10:
	movq	_BLK_STS_NOTSUPP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_11:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bio_endio                      ## TAILCALL
LBB0_2:
	cmpl	$0, (%r15)
	je	LBB0_7
## %bb.3:
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r12
	movq	_DM_RAID1_WRITE_ERROR@GOTPCREL(%rip), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movl	(%r15), %eax
	cmpq	%rax, %rbx
	jae	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r15), %rdi
	addq	%rbx, %rdi
	movl	(%r13), %esi
	callq	_fail_mirror
	jmp	LBB0_6
LBB0_7:
	leaq	4(%r15), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	leaq	8(%r15), %rdi
	movl	8(%r15), %r12d
	movq	%r14, %rsi
	callq	_bio_list_add
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	testl	%r12d, %r12d
	jne	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	callq	_wakeup_mirrord
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REQ_OP_DISCARD,8,3             ## @REQ_OP_DISCARD
	.comm	_BLK_STS_NOTSUPP,4,2            ## @BLK_STS_NOTSUPP
	.comm	_DM_RAID1_WRITE_ERROR,4,2       ## @DM_RAID1_WRITE_ERROR
	.no_dead_strip	_write_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_callback
_write_callback:                        ; @write_callback
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x21, x0
	str	x0, [sp, #8]
	mov	x0, x1
	bl	_bio_get_m
	ldr	x20, [x0]
	mov	x0, x19
	mov	x1, #0
	bl	_bio_set_m
	cmp	x21, #0
	cset	w0, eq
	bl	_likely
	cbnz	x0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_bio_op
Lloh0:
	adrp	x8, _REQ_OP_DISCARD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REQ_OP_DISCARD@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _BLK_STS_NOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BLK_STS_NOTSUPP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_3:
	mov	x0, x19
	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
	add	sp, sp, #64
	b	_bio_endio
LBB0_4:
	ldr	w8, [x20]
	cbz	w8, LBB0_9
; %bb.5:
	mov	x21, #0
Lloh6:
	adrp	x22, _DM_RAID1_WRITE_ERROR@GOTPAGE
Lloh7:
	ldr	x22, [x22, _DM_RAID1_WRITE_ERROR@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x21, x21, #1
	ldr	w8, [x20]
	cmp	x21, x8
	b.hs	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x21
	bl	_test_bit
	cbz	x0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x20, #16]
	add	x0, x21, x8
	ldr	w1, [x22]
	bl	_fail_mirror
	b	LBB0_6
LBB0_9:
	add	x21, x20, #4
	mov	x0, x21
	bl	_spin_lock_irqsave
	mov	x0, x20
	ldr	w22, [x0, #8]!
	mov	x1, x19
	bl	_bio_list_add
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	cbnz	w22, LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_wakeup_mirrord
LBB0_11:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_REQ_OP_DISCARD,8,3             ; @REQ_OP_DISCARD
	.comm	_BLK_STS_NOTSUPP,4,2            ; @BLK_STS_NOTSUPP
	.comm	_DM_RAID1_WRITE_ERROR,4,2       ; @DM_RAID1_WRITE_ERROR
	.no_dead_strip	_write_callback
.subsections_via_symbols
