	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function linear_mergeable_bvec
_linear_mergeable_bvec:                 ## @linear_mergeable_bvec
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	8(%rdi), %r13
	movl	(%rsi), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	sarl	$9, %eax
	cltq
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %r14
	movl	16(%rsi), %edi
	callq	_get_start_sect
	movq	%rax, %rbx
	addq	%r14, %rbx
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	(%r15), %r15d
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_which_dev
	movq	%rax, %r13
	movq	(%rax), %r14
	movq	8(%rax), %rax
	subq	%rbx, %r14
	movl	8(%rax), %edi
	callq	_bdev_get_queue
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	movq	8(%r13), %rdx
	movl	8(%rdx), %esi
	movl	%esi, 16(%r12)
	movq	(%rdx), %rdx
	subq	(%r13), %rdx
	addq	%rdx, 8(%r12)
	movq	%rax, %rdi
	movq	%r12, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	*%rcx
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_min
	movl	%eax, %r15d
LBB0_2:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	subq	%r12, %r14
	cmovaeq	%r14, %rbx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	sarl	$9, %eax
	cltq
	cmpq	%rax, %rbx
	ja	LBB0_4
## %bb.3:
	cmpl	$512, -44(%rbp)                 ## 4-byte Folded Reload
                                        ## imm = 0x200
	jb	LBB0_6
LBB0_4:
	movl	%r15d, %eax
	sarl	$9, %eax
	cltq
	cmpq	%rax, %rbx
	ja	LBB0_6
## %bb.5:
	shll	$9, %ebx
	movl	%ebx, %r15d
LBB0_6:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.no_dead_strip	_linear_mergeable_bvec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function linear_mergeable_bvec
_linear_mergeable_bvec:                 ; @linear_mergeable_bvec
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x21, x1
	ldr	x22, [x0, #8]
	ldr	w24, [x1]
	sbfx	x25, x24, #9, #23
	ldr	x19, [x1, #8]
	ldr	w0, [x1, #16]
	bl	_get_start_sect
	add	x23, x0, x19
	ldr	w19, [x20]
	bl	_rcu_read_lock
	mov	x0, x22
	mov	x1, x23
	bl	_which_dev
	mov	x22, x0
	ldp	x8, x9, [x0]
	sub	x23, x8, x23
	ldr	w0, [x9, #8]
	bl	_bdev_get_queue
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	ldp	x10, x9, [x22]
	ldr	w11, [x9, #8]
	str	w11, [x21, #16]
	ldr	x9, [x9]
	ldr	x11, [x21, #8]
	sub	x9, x9, x10
	add	x9, x9, x11
	str	x9, [x21, #8]
	mov	x1, x21
	mov	x2, x20
	blr	x8
	mov	x1, x0
	mov	x0, x19
	bl	_min
	mov	x19, x0
LBB0_2:
	bl	_rcu_read_unlock
	subs	x8, x23, x25
	csel	x8, xzr, x8, lo
Lloh0:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	asr	w9, w9, #9
	cmp	x8, w9, sxtw
	b.hi	LBB0_4
; %bb.3:
	cmp	w24, #512
	b.lo	LBB0_6
LBB0_4:
	asr	w9, w19, #9
	cmp	x8, w9, sxtw
	b.hi	LBB0_6
; %bb.5:
	lsl	w19, w8, #9
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.no_dead_strip	_linear_mergeable_bvec
.subsections_via_symbols
