	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function narrow_write_error
_narrow_write_error:                    ## @narrow_write_error
	.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	40(%rdi), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rax
	movq	(%rax), %rax
	movslq	%esi, %rcx
	movq	(%rax,%rcx,8), %r14
	movl	16(%r14), %ecx
	testl	%ecx, %ecx
	js	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	movl	(%rdi), %r12d
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	4(%rdi), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_R1BIO_BehindIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	32(%r15), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_16
## %bb.3:
	movl	8(%r15), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	24(%r15), %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r13,%rbx,8)
	leaq	1(%rbx), %rbx
	je	LBB0_4
## %bb.5:
	decl	%ebx
	testl	%r12d, %r12d
	je	LBB0_7
LBB0_8:
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	leal	(%rdx,%rcx), %eax
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movl	%ecx, %r14d
	negl	%r14d
	andl	%eax, %r14d
	subl	%edx, %r14d
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	leal	(,%rsi,8), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	cmpl	%r12d, %r14d
	cmovgel	%r12d, %r14d
	movq	_GFP_NOIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
                                        ## kill: def $esi killed $esi killed $rsi
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	callq	_bio_alloc_mddev
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movq	%rax, %r12
	movl	24(%rax), %edi
	movq	%r13, -120(%rbp)                ## 8-byte Spill
	movq	%r13, %rsi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_memcpy
	movl	4(%r15), %eax
	movl	%eax, (%r12)
	movq	_WRITE@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movl	%ecx, 20(%r12)
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, 4(%r12)
	movl	(%r15), %ecx
	shll	$9, %ecx
	movl	%ecx, 8(%r12)
	movl	%ebx, 12(%r12)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, %esi
	subl	%eax, %esi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_md_trim_bio
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	8(%rcx), %eax
	addl	%eax, (%r12)
	movl	(%rcx), %eax
	movl	%eax, 16(%r12)
	movl	(%r13), %edi
	movq	%r12, %rsi
	callq	_submit_bio_wait
	movl	$1, %ecx
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	callq	_rdev_set_badblocks
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
LBB0_10:
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_bio_put
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	subl	%r14d, %r12d
	je	LBB0_15
## %bb.11:
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	addl	-64(%rbp), %r14d                ## 4-byte Folded Reload
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%r15, %rdi
	callq	_bio_put
	addl	%r12d, %r14d
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	subl	%r12d, %eax
	movl	%eax, %r12d
	je	LBB0_15
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	cmpl	%r12d, %eax
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	cmovll	%eax, %r12d
	movq	_GFP_NOIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movl	%r13d, %esi
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	callq	_bio_alloc_mddev
	movq	%rax, %r15
	movl	24(%rax), %edi
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_memcpy
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	movl	4(%rdx), %eax
	movl	%eax, (%r15)
	movq	_WRITE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movl	%ecx, 20(%r15)
	movl	%r13d, 4(%r15)
	movl	(%rdx), %ecx
	shll	$9, %ecx
	movl	%ecx, 8(%r15)
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movl	%ecx, 12(%r15)
	movl	%r14d, %esi
	subl	%eax, %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_md_trim_bio
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movl	8(%r13), %eax
	addl	%eax, (%r15)
	movl	(%r13), %eax
	movl	%eax, 16(%r15)
	movl	(%rbx), %edi
	movq	%r15, %rsi
	callq	_submit_bio_wait
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	callq	_rdev_set_badblocks
	testq	%rax, %rax
	setne	%al
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_14
LBB0_1:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_15
LBB0_16:
	movq	16(%r15), %rax
	movl	(%rax), %ecx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	4(%rax), %ebx
	movq	8(%rax), %r13
	testl	%r12d, %r12d
	jne	LBB0_8
LBB0_7:
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_15:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R1BIO_BehindIO,4,2             ## @R1BIO_BehindIO
	.comm	_GFP_NOIO,4,2                   ## @GFP_NOIO
	.comm	_WRITE,4,2                      ## @WRITE
	.no_dead_strip	_narrow_write_error
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function narrow_write_error
_narrow_write_error:                    ; @narrow_write_error
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x8, [x0, #40]
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x21, [x8, w1, sxtw #3]
	ldr	w20, [x21, #16]
	tbnz	w20, #31, LBB0_5
; %bb.1:
	mov	x19, x0
	ldp	w25, w26, [x0]
Lloh0:
	adrp	x8, _R1BIO_BehindIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _R1BIO_BehindIO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #32
	bl	_test_bit
	cbz	x0, LBB0_6
; %bb.2:
	mov	x8, #0
	ldr	w22, [x19, #8]
	ldr	x23, [x19, #24]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x23, x8, lsl #3]
	add	x8, x8, #1
	cbz	x9, LBB0_3
; %bb.4:
	sub	w8, w8, #1
	b	LBB0_7
LBB0_5:
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
	b	LBB0_17
LBB0_6:
	ldr	x8, [x19, #16]
	ldr	x23, [x8, #8]
	ldp	w22, w8, [x8]
LBB0_7:
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
	mov	w8, #1
	cbz	w25, LBB0_10
; %bb.8:
	lsl	w20, w8, w20
	add	w8, w26, w20
	neg	w9, w20
	and	w8, w8, w9
	lsl	w24, w22, #3
	sub	w8, w8, w26
	cmp	w8, w25
	csel	w27, w8, w25, lt
Lloh3:
	adrp	x8, _GFP_NOIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_NOIO@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x22
	ldr	x2, [sp, #24]                   ; 8-byte Folded Reload
	bl	_bio_alloc_mddev
	mov	x28, x0
	ldr	w0, [x0, #24]
	mov	x1, x23
	str	w24, [sp, #16]                  ; 4-byte Folded Spill
	mov	x2, x24
	bl	_memcpy
Lloh6:
	adrp	x24, _WRITE@GOTPAGE
Lloh7:
	ldr	x24, [x24, _WRITE@GOTPAGEOFF]
	ldp	w9, w8, [x19]
	stp	w8, w22, [x28]
	ldr	w10, [x24]
	str	w10, [x28, #20]
	lsl	w10, w9, #9
	ldr	w9, [sp, #20]                   ; 4-byte Folded Reload
	stp	w10, w9, [x28, #8]
	sub	w1, w26, w8
	mov	x0, x28
	mov	x2, x27
	bl	_md_trim_bio
	ldr	w8, [x21, #8]
	ldr	w9, [x28]
	add	w8, w9, w8
	str	w8, [x28]
	ldr	w8, [x21]
	str	w8, [x28, #16]
	ldr	w0, [x24]
	mov	x1, x28
	bl	_submit_bio_wait
	cbz	x0, LBB0_11
; %bb.9:
	mov	w8, #1
	b	LBB0_12
LBB0_10:
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	b	LBB0_17
LBB0_11:
	mov	x0, x21
	mov	x1, x26
	mov	x2, x27
	mov	w3, #0
	bl	_rdev_set_badblocks
	cmp	x0, #0
	cset	w8, ne
LBB0_12:
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	mov	x0, x28
	bl	_bio_put
	subs	w24, w25, w27
	b.eq	LBB0_17
; %bb.13:
	add	w25, w27, w26
Lloh8:
	adrp	x26, _WRITE@GOTPAGE
Lloh9:
	ldr	x26, [x26, _WRITE@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x28
	bl	_bio_put
	add	w25, w27, w25
	subs	w24, w24, w27
	b.eq	LBB0_17
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	cmp	w20, w24
	csel	w27, w20, w24, lt
Lloh10:
	adrp	x8, _GFP_NOIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GFP_NOIO@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, x22
	ldr	x2, [sp, #24]                   ; 8-byte Folded Reload
	bl	_bio_alloc_mddev
	mov	x28, x0
	ldr	w0, [x0, #24]
	mov	x1, x23
	ldr	w2, [sp, #16]                   ; 4-byte Folded Reload
	bl	_memcpy
	ldp	w9, w8, [x19]
	stp	w8, w22, [x28]
	ldr	w10, [x26]
	str	w10, [x28, #20]
	lsl	w10, w9, #9
	ldr	w9, [sp, #20]                   ; 4-byte Folded Reload
	stp	w10, w9, [x28, #8]
	sub	w1, w25, w8
	mov	x0, x28
	mov	x2, x27
	bl	_md_trim_bio
	ldr	w8, [x21, #8]
	ldr	w9, [x28]
	add	w8, w9, w8
	str	w8, [x28]
	ldr	w8, [x21]
	str	w8, [x28, #16]
	ldr	w0, [x26]
	mov	x1, x28
	bl	_submit_bio_wait
	cbnz	x0, LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x21
	mov	x1, x25
	mov	x2, x27
	mov	w3, #0
	bl	_rdev_set_badblocks
	cmp	x0, #0
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	ccmp	w8, #0, #4, ne
	cset	w8, ne
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	b	LBB0_14
LBB0_17:
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_R1BIO_BehindIO,4,2             ; @R1BIO_BehindIO
	.comm	_GFP_NOIO,4,2                   ; @GFP_NOIO
	.comm	_WRITE,4,2                      ; @WRITE
	.no_dead_strip	_narrow_write_error
.subsections_via_symbols
