	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fetch_block
_fetch_block:                           ## @fetch_block
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	32(%rdi), %r12
	callq	_need_this_block
	xorl	%ecx, %ecx
	testq	%rax, %rax
	je	LBB0_22
## %bb.1:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movslq	%ebx, %rax
	movq	_R5_Wantcompute@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	(%r12,%rax,4), %r12
	movq	%r12, %rsi
	callq	_test_bit
	movl	%eax, %edi
	callq	_BUG_ON
	movq	_R5_Wantread@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_bit
	movl	%eax, %edi
	callq	_BUG_ON
	movl	(%r15), %edi
	callq	_BUG_ON
	movl	(%r14), %eax
	leal	-1(%r13), %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	cmpl	%ecx, %eax
	movq	%r13, %rsi
	movq	%r14, %rdi
	jne	LBB0_8
## %bb.2:
	cmpq	$0, 8(%r15)
	js	LBB0_4
## %bb.3:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, 16(%r15)
	je	LBB0_7
LBB0_4:
	cmpl	$0, 4(%rdi)
	je	LBB0_8
## %bb.5:
	movq	8(%rdi), %rcx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	cmpl	%edx, (%rcx)
	je	LBB0_7
## %bb.6:
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	cmpl	%edx, 4(%rcx)
	jne	LBB0_8
LBB0_7:
	movl	48(%r15), %esi
	movq	%rbx, %r14
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_pr_debug
	movq	_STRIPE_COMPUTE_RUN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	40(%r15), %rsi
	callq	_set_bit
	movq	_STRIPE_OP_COMPUTE_BLK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	28(%rbx), %rsi
	callq	_set_bit
	movl	(%r14), %edi
	movq	%r12, %rsi
	callq	_set_bit
	movl	%r13d, 20(%r15)
	movl	$-1, 24(%r15)
	movl	$1, 16(%rbx)
	incl	(%rbx)
	jmp	LBB0_21
LBB0_8:
	leal	-2(%rsi), %ecx
	cmpl	%ecx, %eax
	jne	LBB0_16
## %bb.9:
	cmpl	$2, 4(%rdi)
	jl	LBB0_16
## %bb.10:
	movl	$-1, %r13d
	testl	%esi, %esi
	je	LBB0_19
## %bb.11:
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movslq	-48(%rbp), %r14                 ## 4-byte Folded Reload
	leaq	1(%r14), %rax
	movq	%r14, %r12
	subq	-64(%rbp), %r12                 ## 8-byte Folded Reload
	shlq	$2, %r14
	xorl	%ebx, %ebx
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%rbx
	addq	$-4, %r14
	cmpq	%rbx, %rax
	je	LBB0_18
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, %r12
	je	LBB0_12
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	_R5_UPTODATE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	movq	32(%r15), %rsi
	addq	%r14, %rsi
	movq	%r15, %r13
	movq	%rax, %r15
	callq	_test_bit
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	testl	%eax, %eax
	movq	%r15, %rax
	movq	%r13, %r15
	jne	LBB0_12
## %bb.15:
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	subl	%ebx, %r13d
	subl	%ebx, %esi
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movq	_R5_Wantcompute@GOTPCREL(%rip), %rbx
	jmp	LBB0_20
LBB0_16:
	movq	%rdi, %rbx
	movq	_R5_Insync@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_bit
	testl	%eax, %eax
	movl	$0, %ecx
	je	LBB0_22
## %bb.17:
	movq	_R5_LOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_set_bit
	movq	_R5_Wantread@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_set_bit
	incl	24(%rbx)
	movl	20(%rbx), %edx
	leaq	L_.str.2(%rip), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_pr_debug
	xorl	%ecx, %ecx
	jmp	LBB0_22
LBB0_18:
	xorl	%esi, %esi
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movq	_R5_Wantcompute@GOTPCREL(%rip), %rbx
	movl	$-1, %r13d
	jmp	LBB0_20
LBB0_19:
	xorl	%esi, %esi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movq	%rdi, %r12
LBB0_20:
	xorl	%edi, %edi
	testl	%esi, %esi
	setle	%dil
	callq	_BUG_ON
	movl	48(%r15), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %edx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_pr_debug
	movq	_STRIPE_COMPUTE_RUN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	40(%r15), %rsi
	callq	_set_bit
	movq	_STRIPE_OP_COMPUTE_BLK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	28(%r12), %rsi
	callq	_set_bit
	movl	(%rbx), %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	shlq	$2, %rsi
	addq	32(%r15), %rsi
	callq	_set_bit
	movl	(%rbx), %edi
	movslq	%r13d, %rbx
	leaq	(,%rbx,4), %rsi
	addq	32(%r15), %rsi
	callq	_set_bit
	movl	%r14d, 20(%r15)
	movl	%ebx, 24(%r15)
	addl	$2, (%r12)
	movl	$1, 16(%r12)
LBB0_21:
	movl	$1, %ecx
LBB0_22:
	movl	%ecx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R5_Wantcompute,4,2             ## @R5_Wantcompute
	.comm	_R5_Wantread,4,2                ## @R5_Wantread
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Computing stripe %llu block %d\n"

	.comm	_STRIPE_COMPUTE_RUN,4,2         ## @STRIPE_COMPUTE_RUN
	.comm	_STRIPE_OP_COMPUTE_BLK,4,2      ## @STRIPE_OP_COMPUTE_BLK
	.comm	_R5_UPTODATE,4,2                ## @R5_UPTODATE
L_.str.1:                               ## @.str.1
	.asciz	"Computing stripe %llu blocks %d,%d\n"

	.comm	_R5_Insync,4,2                  ## @R5_Insync
	.comm	_R5_LOCKED,4,2                  ## @R5_LOCKED
L_.str.2:                               ## @.str.2
	.asciz	"Reading block %d (sync=%d)\n"

	.no_dead_strip	_fetch_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fetch_block
_fetch_block:                           ; @fetch_block
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x23, [x0, #32]
	bl	_need_this_block
	cbz	x0, LBB0_21
; %bb.1:
	sxtw	x25, w20
Lloh0:
	adrp	x24, _R5_Wantcompute@GOTPAGE
Lloh1:
	ldr	x24, [x24, _R5_Wantcompute@GOTPAGEOFF]
	ldr	w0, [x24]
	add	x23, x23, x25, lsl #2
	mov	x1, x23
	bl	_test_bit
	bl	_BUG_ON
Lloh2:
	adrp	x26, _R5_Wantread@GOTPAGE
Lloh3:
	ldr	x26, [x26, _R5_Wantread@GOTPAGEOFF]
	ldr	w0, [x26]
	mov	x1, x23
	bl	_test_bit
	bl	_BUG_ON
	ldr	w0, [x21]
	bl	_BUG_ON
	ldr	w9, [x19]
	sub	w8, w22, #1
	cmp	w9, w8
	b.ne	LBB0_8
; %bb.2:
	ldr	x10, [x21, #8]
	tbnz	x10, #63, LBB0_4
; %bb.3:
	ldr	w10, [x21, #16]
	cmp	w10, w20
	b.eq	LBB0_7
LBB0_4:
	ldr	w10, [x19, #4]
	cbz	w10, LBB0_8
; %bb.5:
	ldr	x10, [x19, #8]
	ldr	w11, [x10]
	cmp	w11, w20
	b.eq	LBB0_7
; %bb.6:
	ldr	w10, [x10, #4]
	cmp	w10, w20
	b.ne	LBB0_8
LBB0_7:
	ldr	w1, [x21, #48]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	bl	_pr_debug
Lloh6:
	adrp	x8, _STRIPE_COMPUTE_RUN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _STRIPE_COMPUTE_RUN@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	add	x1, x21, #40
	bl	_set_bit
Lloh9:
	adrp	x8, _STRIPE_OP_COMPUTE_BLK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _STRIPE_OP_COMPUTE_BLK@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	add	x1, x19, #28
	bl	_set_bit
	ldr	w0, [x24]
	mov	x1, x23
	bl	_set_bit
	mov	w8, #-1
	stp	w20, w8, [x21, #20]
	mov	w0, #1
	str	w0, [x19, #16]
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	b	LBB0_21
LBB0_8:
	sub	w10, w22, #2
	cmp	w9, w10
	b.ne	LBB0_16
; %bb.9:
	ldr	w9, [x19, #4]
	cmp	w9, #2
	b.lt	LBB0_16
; %bb.10:
	cbz	w22, LBB0_19
; %bb.11:
	sxtw	x9, w8
	neg	x23, x9
	neg	x26, x25
	sbfiz	x27, x8, #2, #32
Lloh12:
	adrp	x28, _R5_UPTODATE@GOTPAGE
Lloh13:
	ldr	x28, [x28, _R5_UPTODATE@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	sub	w22, w22, #1
	add	x23, x23, #1
	sub	x27, x27, #4
	cmp	x23, #1
	b.eq	LBB0_18
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	cmp	x26, x23
	b.eq	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w0, [x28]
	ldr	x8, [x21, #32]
	add	x1, x8, x27
	bl	_test_bit
	cbnz	w0, LBB0_12
; %bb.15:
	sub	w23, w22, #1
	b	LBB0_20
LBB0_16:
Lloh14:
	adrp	x8, _R5_Insync@GOTPAGE
Lloh15:
	ldr	x8, [x8, _R5_Insync@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_test_bit
	cbz	w0, LBB0_21
; %bb.17:
Lloh17:
	adrp	x8, _R5_LOCKED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _R5_LOCKED@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_set_bit
	ldr	w0, [x26]
	mov	x1, x23
	bl	_set_bit
	ldp	w2, w8, [x19, #20]
	add	w8, w8, #1
	str	w8, [x19, #24]
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_pr_debug
	mov	w0, #0
	b	LBB0_21
LBB0_18:
	mov	w22, #0
LBB0_19:
	mov	w23, #-1
LBB0_20:
	cmp	w22, #1
	cset	w0, lt
	bl	_BUG_ON
	ldr	w1, [x21, #48]
	str	x23, [sp]
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_pr_debug
Lloh24:
	adrp	x8, _STRIPE_COMPUTE_RUN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _STRIPE_COMPUTE_RUN@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	add	x1, x21, #40
	bl	_set_bit
Lloh27:
	adrp	x8, _STRIPE_OP_COMPUTE_BLK@GOTPAGE
Lloh28:
	ldr	x8, [x8, _STRIPE_OP_COMPUTE_BLK@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	add	x1, x19, #28
	bl	_set_bit
	ldr	w0, [x24]
	ldr	x8, [x21, #32]
	add	x1, x8, x25, lsl #2
	bl	_set_bit
	ldr	w0, [x24]
	ldr	x8, [x21, #32]
	add	x1, x8, w23, sxtw #2
	bl	_set_bit
	stp	w20, w23, [x21, #20]
	ldr	w8, [x19]
	add	w8, w8, #2
	str	w8, [x19]
	mov	w0, #1
	str	w0, [x19, #16]
LBB0_21:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_R5_Wantcompute,4,2             ; @R5_Wantcompute
	.comm	_R5_Wantread,4,2                ; @R5_Wantread
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Computing stripe %llu block %d\n"

	.comm	_STRIPE_COMPUTE_RUN,4,2         ; @STRIPE_COMPUTE_RUN
	.comm	_STRIPE_OP_COMPUTE_BLK,4,2      ; @STRIPE_OP_COMPUTE_BLK
	.comm	_R5_UPTODATE,4,2                ; @R5_UPTODATE
l_.str.1:                               ; @.str.1
	.asciz	"Computing stripe %llu blocks %d,%d\n"

	.comm	_R5_Insync,4,2                  ; @R5_Insync
	.comm	_R5_LOCKED,4,2                  ; @R5_LOCKED
l_.str.2:                               ; @.str.2
	.asciz	"Reading block %d (sync=%d)\n"

	.no_dead_strip	_fetch_block
.subsections_via_symbols
