	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_balance
_read_balance:                          ## @read_balance
	.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	%rdx, -112(%rbp)                ## 8-byte Spill
	movq	%rdi, %rbx
	movq	(%rsi), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	callq	_raid10_find_phys
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movq	_IO_BLOCKED@GOTPCREL(%rip), %r13
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_MaxSector@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	16(%rbx), %rax
	xorl	%r14d, %r14d
	movl	$0, %edx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	cmpq	%rcx, (%rax)
	jge	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movslq	-44(%rbp), %rax                 ## 4-byte Folded Reload
	addq	-120(%rbp), %rax                ## 8-byte Folded Reload
	cmpq	(%rbx), %rax
	setge	%dl
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, 8(%rbx)
	jle	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movl	$-1, -52(%rbp)                  ## 4-byte Folded Spill
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	xorl	%edx, %edx
	jmp	LBB0_6
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=2
	xorl	%r12d, %r12d
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	_IO_BLOCKED@GOTPCREL(%rip), %r13
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
LBB0_30:                                ##   in Loop: Header=BB0_6 Depth=2
	incq	%r14
	movslq	8(%rbx), %rax
	addq	$24, %r15
	cmpq	%rax, %r14
	jge	LBB0_31
LBB0_6:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movq	(%rax,%r15), %rcx
	cmpq	(%r13), %rcx
	je	LBB0_30
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movslq	8(%rax,%r15), %r13
	movq	24(%rbx), %rax
	shlq	$4, %r13
	movl	12(%rax,%r13), %edi
	callq	_rcu_dereference
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	%rax, %r12
	movq	_Faulty@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r12), %rbx
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	_Unmerged@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movslq	-44(%rbp), %rcx                 ## 4-byte Folded Reload
	addq	16(%rax,%r15), %rcx
	cmpq	(%r12), %rcx
	jle	LBB0_13
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	movl	8(%rax,%r13), %edi
	callq	_rcu_dereference
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_12
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	_Faulty@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r12), %rbx
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	_Unmerged@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_14
## %bb.16:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	_In_sync@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rcx), %rcx
	movq	16(%rcx,%r15), %rbx
	testq	%rax, %rax
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_6 Depth=2
	movslq	-44(%rbp), %rax                 ## 4-byte Folded Reload
	addq	%rbx, %rax
	cmpq	(%r12), %rax
	jg	LBB0_14
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	leaq	-128(%rbp), %rcx
	leaq	-100(%rbp), %r8
	callq	_is_badblock
	testq	%rax, %rax
	je	LBB0_24
## %bb.19:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	_MaxSector@GOTPCREL(%rip), %rax
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	cmpq	(%rax), %rcx
	movq	_IO_BLOCKED@GOTPCREL(%rip), %r13
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	jge	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_30
LBB0_24:                                ##   in Loop: Header=BB0_6 Depth=2
	cmpb	$0, -88(%rbp)                   ## 1-byte Folded Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	jne	LBB0_32
## %bb.25:                              ##   in Loop: Header=BB0_6 Depth=2
	cmpl	$2, 32(%rbx)
	jl	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_6 Depth=2
	leaq	12(%r12), %rdi
	callq	_atomic_read
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_32
LBB0_27:                                ##   in Loop: Header=BB0_6 Depth=2
	cmpl	$1, 36(%rbx)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movq	16(%rax,%r15), %rax
	jg	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	24(%rbx), %rcx
	subq	(%rcx,%r13), %rax
	movq	%rax, %rcx
	negq	%rcx
	cmovnsq	%rcx, %rax
LBB0_29:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	_IO_BLOCKED@GOTPCREL(%rip), %r13
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, %rax
	cmovlq	%rax, %rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	cmovlq	%r12, %rdx
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	cmovll	%r14d, %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_30
LBB0_21:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	-128(%rbp), %rax
	subq	%rbx, %rax
	jle	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_6 Depth=2
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movslq	%esi, %rcx
	cmpq	%rcx, %rax
	cmovgq	%r12, %rdx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	cmovgl	%r14d, %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	cmovgl	%eax, %esi
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	cmpb	$0, -88(%rbp)                   ## 1-byte Folded Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_30
	jmp	LBB0_31
LBB0_22:                                ##   in Loop: Header=BB0_6 Depth=2
	addl	-100(%rbp), %eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%eax, %ecx
	cmovlel	%ecx, %eax
	cmpb	$0, -88(%rbp)                   ## 1-byte Folded Reload
	cmovel	%ecx, %eax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%eax, %ecx
	cmovgel	%eax, %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
                                        ## kill: def $eax killed $eax killed $rax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_33:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_34
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$-1, %r15d
	xorl	%edx, %edx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_34:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rax
	cmpl	8(%rbx), %r14d
	movq	%rdx, %r12
	cmovlq	%rax, %r12
	cmovll	%r14d, %r15d
	testl	%r15d, %r15d
	js	LBB0_35
## %bb.36:                              ##   in Loop: Header=BB0_1 Depth=1
	leaq	12(%r12), %rdi
	callq	_atomic_inc
	movq	_Faulty@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r12), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_38
## %bb.37:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%rbx), %rsi
	movq	%r12, %rdi
	callq	_rdev_dec_pending
	jmp	LBB0_1
LBB0_32:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_IO_BLOCKED@GOTPCREL(%rip), %r13
	jmp	LBB0_33
LBB0_35:
	xorl	%r12d, %r12d
	jmp	LBB0_39
LBB0_38:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	%r15d, 12(%rax)
LBB0_39:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movq	%r12, %rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MaxSector,8,3                  ## @MaxSector
	.comm	_IO_BLOCKED,8,3                 ## @IO_BLOCKED
	.comm	_Faulty,4,2                     ## @Faulty
	.comm	_Unmerged,4,2                   ## @Unmerged
	.comm	_In_sync,4,2                    ## @In_sync
	.no_dead_strip	_read_balance
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_balance
_read_balance:                          ; @read_balance
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x20, x1
	mov	x21, x0
	ldr	x8, [x1]
	stp	x2, x8, [sp]                    ; 16-byte Folded Spill
	bl	_raid10_find_phys
	bl	_rcu_read_lock
	mov	x22, #0
Lloh0:
	adrp	x27, _IO_BLOCKED@GOTPAGE
Lloh1:
	ldr	x27, [x27, _IO_BLOCKED@GOTPAGEOFF]
Lloh2:
	adrp	x28, _Faulty@GOTPAGE
Lloh3:
	ldr	x28, [x28, _Faulty@GOTPAGEOFF]
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	w11, [x20, #8]
Lloh4:
	adrp	x8, _MaxSector@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MaxSector@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x8]
	ldr	x8, [x21, #16]
	ldr	x8, [x8]
	str	x9, [sp, #24]                   ; 8-byte Folded Spill
	cmp	x8, x9
	b.ge	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	sxtw	x8, w11
	ldr	x9, [x21]
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	add	x8, x10, x8
	cmp	x8, x9
	cset	w8, ge
	str	w8, [sp, #16]                   ; 4-byte Folded Spill
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	str	wzr, [sp, #16]                  ; 4-byte Folded Spill
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x21, #8]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	str	x11, [sp, #40]                  ; 8-byte Folded Spill
	mov	x19, #0
	mov	x25, #0
	str	wzr, [sp, #20]                  ; 4-byte Folded Spill
	mov	x23, #0
	mov	w8, #-1
	str	w8, [sp, #36]                   ; 4-byte Folded Spill
	b	LBB0_10
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	w25, #0
	mov	x23, #0
	str	xzr, [sp, #40]                  ; 8-byte Folded Spill
	mov	w9, #-1
	b	LBB0_32
LBB0_7:                                 ;   in Loop: Header=BB0_10 Depth=2
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	cmp	x8, x9
	csel	x9, x8, x9, lt
	str	x9, [sp, #24]                   ; 8-byte Folded Spill
	csel	x23, x22, x23, lt
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	csel	w8, w25, w8, lt
	str	w8, [sp, #36]                   ; 4-byte Folded Spill
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
                                        ; kill: def $w8 killed $w8 killed $x8
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=2
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	add	x25, x25, #1
	ldrsw	x8, [x21, #8]
	add	x19, x19, #24
	cmp	x25, x8
	b.ge	LBB0_30
LBB0_10:                                ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x20, #16]
	ldr	x9, [x8, x19]
	ldr	x10, [x27]
	cmp	x9, x10
	b.eq	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	add	x8, x8, x19
	ldrsw	x26, [x8, #8]
	ldr	x8, [x21, #24]
	add	x8, x8, x26, lsl #4
	ldr	w0, [x8, #12]
	bl	_rcu_dereference
	cbz	x0, LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x22, x0
	ldr	w0, [x28]
	add	x24, x22, #8
	mov	x1, x24
	bl	_test_bit
	cbnz	x0, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=2
Lloh7:
	adrp	x8, _Unmerged@GOTPAGE
Lloh8:
	ldr	x8, [x8, _Unmerged@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	x1, x24
	bl	_test_bit
	cbnz	x0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x8, [x20, #16]
	add	x8, x8, x19
	ldr	x8, [x8, #16]
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	add	x8, x8, w9, sxtw
	ldr	x9, [x22]
	cmp	x8, x9
	b.le	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_10 Depth=2
	ldr	x8, [x21, #24]
	add	x8, x8, x26, lsl #4
	ldr	w0, [x8, #8]
	bl	_rcu_dereference
	mov	x22, x0
	cbz	x0, LBB0_9
LBB0_16:                                ;   in Loop: Header=BB0_10 Depth=2
	ldr	w0, [x28]
	add	x24, x22, #8
	mov	x1, x24
	bl	_test_bit
	cbnz	x0, LBB0_9
; %bb.17:                               ;   in Loop: Header=BB0_10 Depth=2
Lloh10:
	adrp	x8, _Unmerged@GOTPAGE
Lloh11:
	ldr	x8, [x8, _Unmerged@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, x24
	bl	_test_bit
	cbnz	x0, LBB0_9
; %bb.18:                               ;   in Loop: Header=BB0_10 Depth=2
Lloh13:
	adrp	x8, _In_sync@GOTPAGE
Lloh14:
	ldr	x8, [x8, _In_sync@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	mov	x1, x24
	bl	_test_bit
	ldr	x8, [x20, #16]
	add	x8, x8, x19
	ldr	x24, [x8, #16]
	cbnz	x0, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	add	x8, x24, w8, sxtw
	ldr	x9, [x22]
	cmp	x8, x9
	b.gt	LBB0_9
LBB0_20:                                ;   in Loop: Header=BB0_10 Depth=2
	add	x3, sp, #56
	add	x4, sp, #52
	mov	x0, x22
	mov	x1, x24
	ldr	x2, [sp, #40]                   ; 8-byte Folded Reload
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_is_badblock
	cbz	x0, LBB0_24
; %bb.21:                               ;   in Loop: Header=BB0_10 Depth=2
Lloh16:
	adrp	x8, _MaxSector@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MaxSector@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	cmp	x9, x8
	b.lt	LBB0_9
; %bb.22:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x8, [sp, #56]
	subs	x8, x8, x24
	b.le	LBB0_29
; %bb.23:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	w10, [sp, #20]                  ; 4-byte Folded Reload
	cmp	x8, w10, sxtw
	csel	x23, x22, x23, gt
	ldr	w9, [sp, #36]                   ; 4-byte Folded Reload
	csel	w9, w25, w9, gt
	str	w9, [sp, #36]                   ; 4-byte Folded Spill
	csel	w10, w8, w10, gt
	str	w10, [sp, #20]                  ; 4-byte Folded Spill
	ldr	w8, [sp, #16]                   ; 4-byte Folded Reload
	tbz	w8, #0, LBB0_9
	b	LBB0_30
LBB0_24:                                ;   in Loop: Header=BB0_10 Depth=2
	ldr	w8, [sp, #16]                   ; 4-byte Folded Reload
	tbnz	w8, #0, LBB0_31
; %bb.25:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	w8, [x21, #32]
	cmp	w8, #2
	b.lt	LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_10 Depth=2
	add	x0, x22, #12
	bl	_atomic_read
	cbz	w0, LBB0_31
LBB0_27:                                ;   in Loop: Header=BB0_10 Depth=2
	ldr	w9, [x21, #36]
	ldr	x8, [x20, #16]
	add	x8, x8, x19
	ldr	x8, [x8, #16]
	cmp	w9, #1
	b.gt	LBB0_7
; %bb.28:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x9, [x21, #24]
	lsl	x10, x26, #4
	ldr	x9, [x9, x10]
	subs	x8, x8, x9
	cneg	x8, x8, mi
	b	LBB0_7
LBB0_29:                                ;   in Loop: Header=BB0_10 Depth=2
	ldr	w9, [sp, #52]
	add	w8, w9, w8
	ldr	x10, [sp, #40]                  ; 8-byte Folded Reload
	cmp	w10, w8
	cset	w9, gt
	ldr	w11, [sp, #16]                  ; 4-byte Folded Reload
	tst	w11, w9
	csel	w10, w8, w10, ne
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	cmp	w8, w10
	str	x10, [sp, #40]                  ; 8-byte Folded Spill
	csel	w8, w8, w10, lt
	b	LBB0_8
LBB0_30:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
LBB0_31:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w9, [sp, #36]                   ; 4-byte Folded Reload
LBB0_32:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x21, #8]
	cmp	w25, w8
	csel	w19, w25, w9, lt
	csel	x22, x22, x23, lt
	tbnz	w19, #31, LBB0_35
; %bb.33:                               ;   in Loop: Header=BB0_1 Depth=1
	add	x0, x22, #12
	bl	_atomic_inc
	ldr	w0, [x28]
	add	x1, x22, #8
	bl	_test_bit
	cbz	x0, LBB0_36
; %bb.34:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	x1, [x21, #16]
	mov	x0, x22
	bl	_rdev_dec_pending
	b	LBB0_1
LBB0_35:
	mov	x22, #0
	b	LBB0_37
LBB0_36:
	str	w19, [x20, #12]
LBB0_37:
	ldr	x19, [sp]                       ; 8-byte Folded Reload
	bl	_rcu_read_unlock
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	str	w8, [x19]
	mov	x0, x22
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MaxSector,8,3                  ; @MaxSector
	.comm	_IO_BLOCKED,8,3                 ; @IO_BLOCKED
	.comm	_Faulty,4,2                     ; @Faulty
	.comm	_Unmerged,4,2                   ; @Unmerged
	.comm	_In_sync,4,2                    ; @In_sync
	.no_dead_strip	_read_balance
.subsections_via_symbols
