	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_stripe_bio
_add_stripe_bio:                        ## @add_stripe_bio
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movl	%edx, %ebx
	movq	%rdi, %r12
	movq	32(%rdi), %rdx
	movq	40(%rdi), %r15
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %rsi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	%r12, %rdi
	callq	_spin_lock
	leaq	4(%r12), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irq
	movq	8(%r12), %rax
	movslq	%ebx, %r14
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	testl	%r13d, %r13d
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	movq	%r14, %rcx
	je	LBB0_2
## %bb.1:
	shlq	$5, %rcx
	leaq	(%rax,%rcx), %r15
	addq	$16, %r15
	movq	16(%rax,%rcx), %rcx
	testq	%rcx, %rcx
	sete	%r8b
	jmp	LBB0_3
LBB0_2:
	shlq	$5, %rcx
	leaq	(%rax,%rcx), %r15
	addq	$24, %r15
	movq	24(%rax,%rcx), %rcx
	xorl	%r8d, %r8d
LBB0_3:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	xorl	%edi, %edi
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.5:
	movq	(%r13), %rdx
	movq	(%rcx), %rsi
	cmpq	%rdx, %rsi
	jge	LBB0_11
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %r15
	movl	8(%rcx), %ecx
	sarl	$9, %ecx
	movslq	%ecx, %rcx
	addq	%rsi, %rcx
	cmpq	%rdx, %rcx
	jg	LBB0_27
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rcx), %rsi
	cmpq	%rdx, %rsi
	jl	LBB0_7
## %bb.10:
	addq	$16, %r15
LBB0_11:
	movl	8(%r13), %ebx
	sarl	$9, %ebx
	movslq	%ebx, %rbx
	addq	%rbx, %rdx
	cmpq	%rdx, %rsi
	jge	LBB0_12
LBB0_27:
	movq	_R5_Overlap@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	shlq	$5, %r14
	leaq	(%rax,%r14), %rsi
	addq	$8, %rsi
	callq	_set_bit
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irq
	movq	%r12, %rdi
	callq	_spin_unlock
	xorl	%r14d, %r14d
	jmp	LBB0_28
LBB0_4:
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_14
LBB0_12:
	movq	16(%r13), %rax
	testq	%rax, %rax
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	je	LBB0_14
## %bb.13:
	xorl	%edi, %edi
	cmpq	%rax, %rcx
	setne	%dil
	jmp	LBB0_14
LBB0_9:
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	addq	$16, %r15
LBB0_14:
	callq	_BUG_ON
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	%rax, 16(%r13)
LBB0_16:
	movq	%r13, (%r15)
	movq	%r13, %rdi
	callq	_raid5_inc_bi_active_stripes
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_25
## %bb.17:
	movq	8(%r12), %rcx
	shlq	$5, %r14
	movq	_STRIPE_SECTORS@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	setg	%dl
	jle	LBB0_23
## %bb.18:
	movq	16(%rcx,%r14), %rax
	testq	%rax, %rax
	je	LBB0_23
## %bb.19:
	movq	(%rcx,%r14), %rsi
	movq	%rsi, %rbx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rcx
	cmpq	%rbx, %rcx
	jg	LBB0_25
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	8(%rax), %edx
	sarl	$9, %edx
	movslq	%edx, %rdx
	addq	%rdx, %rcx
	cmpq	%rbx, %rcx
	cmovgq	%rcx, %rbx
	movq	%rax, %rdi
	callq	_r5_next_bio
	movq	8(%r12), %rcx
	movq	(%rcx,%r14), %rsi
	movq	(%r13), %rdx
	addq	%rsi, %rdx
	cmpq	%rdx, %rbx
	setl	%dl
	jge	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=1
	testq	%rax, %rax
	jne	LBB0_20
LBB0_23:
	testb	%dl, %dl
	jne	LBB0_25
## %bb.24:
	movq	_R5_OVERWRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	(%rcx,%r14), %rsi
	addq	$8, %rsi
	callq	_set_bit
LBB0_25:
	movq	(%r15), %rax
	movq	(%rax), %rsi
	movq	32(%r12), %rdx
	leaq	L_.str.1(%rip), %rdi
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_pr_debug
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irq
	movq	%r12, %rdi
	callq	_spin_unlock
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	sete	%al
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	xorb	$1, %cl
	movl	$1, %r14d
	orb	%al, %cl
	jne	LBB0_28
## %bb.26:
	movq	32(%r12), %rsi
	movq	_STRIPE_SECTORS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	xorl	%ecx, %ecx
	callq	_bitmap_startwrite
	movq	(%rbx), %rax
	incq	%rax
	movq	%rax, 24(%r12)
	movq	_STRIPE_BIT_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$16, %r12
	movq	%r12, %rsi
	callq	_set_bit
LBB0_28:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"adding bi b#%llu to stripe s#%llu\n"

	.comm	_STRIPE_SECTORS,8,3             ## @STRIPE_SECTORS
	.comm	_R5_OVERWRITE,4,2               ## @R5_OVERWRITE
L_.str.1:                               ## @.str.1
	.asciz	"added bi b#%llu to stripe s#%llu, disk %d.\n"

	.comm	_STRIPE_BIT_DELAY,4,2           ## @STRIPE_BIT_DELAY
	.comm	_R5_Overlap,4,2                 ## @R5_Overlap
	.no_dead_strip	_add_stripe_bio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_stripe_bio
_add_stripe_bio:                        ; @add_stripe_bio
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x22, x3
	mov	x21, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x1, [x1]
	ldp	x2, x24, [x0, #32]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	mov	x0, x19
	bl	_spin_lock
	add	x20, x19, #4
	mov	x0, x20
	bl	_spin_lock_irq
	ldr	x8, [x19, #8]
	mov	x9, x21
	sxtw	x26, w9
	cbz	w22, LBB0_9
; %bb.1:
	add	x27, x8, x26, lsl #5
	ldr	x9, [x27, #16]!
	cmp	x9, #0
	cset	w25, eq
	cbz	x9, LBB0_10
LBB0_2:
	ldr	x10, [x23]
	ldr	x11, [x9]
	cmp	x11, x10
	b.ge	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x12, x9
	ldr	w9, [x9, #8]
	asr	w9, w9, #9
	add	x9, x11, w9, sxtw
	cmp	x9, x10
	b.gt	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x12, #16]
	cbz	x9, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x11, [x9]
	cmp	x11, x10
	b.lt	LBB0_3
; %bb.6:
	add	x27, x12, #16
LBB0_7:
	ldr	w12, [x23, #8]
	asr	w12, w12, #9
	add	x10, x10, w12, sxtw
	cmp	x11, x10
	b.ge	LBB0_11
LBB0_8:
Lloh2:
	adrp	x9, _R5_Overlap@GOTPAGE
Lloh3:
	ldr	x9, [x9, _R5_Overlap@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x9]
	add	x8, x8, x26, lsl #5
	add	x1, x8, #8
	bl	_set_bit
	mov	x0, x20
	bl	_spin_unlock_irq
	mov	x0, x19
	bl	_spin_unlock
	mov	w0, #0
	b	LBB0_25
LBB0_9:
	mov	w25, #0
	add	x27, x8, x26, lsl #5
	ldr	x9, [x27, #24]!
	cbnz	x9, LBB0_2
LBB0_10:
	mov	w0, #0
	b	LBB0_13
LBB0_11:
	ldr	x8, [x23, #16]
	cmp	x9, x8
	cset	w9, ne
	cmp	x8, #0
	csel	w0, wzr, w9, eq
	b	LBB0_13
LBB0_12:
	mov	w0, #0
	add	x27, x12, #16
LBB0_13:
	bl	_BUG_ON
	ldr	x8, [x27]
	cbz	x8, LBB0_15
; %bb.14:
	str	x8, [x23, #16]
LBB0_15:
	str	x23, [x27]
	mov	x0, x23
	bl	_raid5_inc_bi_active_stripes
Lloh5:
	adrp	x23, _STRIPE_SECTORS@GOTPAGE
Lloh6:
	ldr	x23, [x23, _STRIPE_SECTORS@GOTPAGEOFF]
	cbz	w22, LBB0_22
; %bb.16:
	ldr	x8, [x19, #8]
	add	x9, x8, x26, lsl #5
	ldr	x0, [x9, #16]
	ldr	x10, [x23]
	cmp	x10, #0
	cset	w9, gt
	cmp	x10, #1
	ccmp	x0, #0, #4, ge
	b.eq	LBB0_20
; %bb.17:
	lsl	x22, x26, #5
	ldr	x1, [x8, x22]
	mov	x28, x1
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x0]
	cmp	x8, x28
	b.gt	LBB0_22
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	w9, [x0, #8]
	asr	w9, w9, #9
	add	x8, x8, w9, sxtw
	cmp	x8, x28
	csel	x28, x8, x28, gt
	bl	_r5_next_bio
	ldr	x8, [x19, #8]
	ldr	x1, [x8, x22]
	ldr	x9, [x23]
	add	x9, x9, x1
	cmp	x28, x9
	cset	w9, lt
	ccmp	x0, #0, #4, lt
	b.ne	LBB0_18
LBB0_20:
	tbnz	w9, #0, LBB0_22
; %bb.21:
Lloh7:
	adrp	x9, _R5_OVERWRITE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _R5_OVERWRITE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x9]
	add	x8, x8, x26, lsl #5
	add	x1, x8, #8
	bl	_set_bit
LBB0_22:
	ldr	x8, [x27]
	ldr	x1, [x8]
	ldr	x2, [x19, #32]
	str	x21, [sp]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	mov	x0, x20
	bl	_spin_unlock_irq
	mov	x0, x19
	bl	_spin_unlock
	ldr	x8, [x24, #8]
	ldr	x0, [x8]
	cmp	x0, #0
	cset	w8, eq
	eor	w9, w25, #0x1
	orr	w8, w9, w8
	tbnz	w8, #0, LBB0_24
; %bb.23:
	ldr	x1, [x19, #32]
	ldr	x2, [x23]
	mov	w3, #0
	bl	_bitmap_startwrite
	ldr	x8, [x24]
	add	x8, x8, #1
	str	x8, [x19, #24]
Lloh12:
	adrp	x8, _STRIPE_BIT_DELAY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _STRIPE_BIT_DELAY@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	add	x1, x19, #16
	bl	_set_bit
LBB0_24:
	mov	w0, #1
LBB0_25:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"adding bi b#%llu to stripe s#%llu\n"

	.comm	_STRIPE_SECTORS,8,3             ; @STRIPE_SECTORS
	.comm	_R5_OVERWRITE,4,2               ; @R5_OVERWRITE
l_.str.1:                               ; @.str.1
	.asciz	"added bi b#%llu to stripe s#%llu, disk %d.\n"

	.comm	_STRIPE_BIT_DELAY,4,2           ; @STRIPE_BIT_DELAY
	.comm	_R5_Overlap,4,2                 ; @R5_Overlap
	.no_dead_strip	_add_stripe_bio
.subsections_via_symbols
