	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function queue_max_sectors_store
_queue_max_sectors_store:               ## @queue_max_sectors_store
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_queue_max_hw_sectors
	sarl	%eax
	movslq	%eax, %r13
	movq	_PAGE_CACHE_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	-48(%rbp), %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_queue_var_store
	movl	%eax, %ebx
	movq	-48(%rbp), %rax
	cmpq	%r13, %rax
	ja	LBB0_2
## %bb.1:
	addb	$-10, %r15b
	movl	$1, %edx
	movl	%r15d, %ecx
	shll	%cl, %edx
	movslq	%edx, %rcx
	cmpq	%rcx, %rax
	jae	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_4
LBB0_3:
	movl	(%r14), %edi
	callq	_spin_lock_irq
	movq	-48(%rbp), %rax
	addq	%rax, %rax
	movq	%rax, 8(%r14)
	movl	(%r14), %edi
	callq	_spin_unlock_irq
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_CACHE_SHIFT,4,2           ## @PAGE_CACHE_SHIFT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_queue_max_sectors_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function queue_max_sectors_store
_queue_max_sectors_store:               ; @queue_max_sectors_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_queue_max_hw_sectors
	asr	w23, w0, #1
Lloh0:
	adrp	x8, _PAGE_CACHE_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_CACHE_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	add	x0, sp, #8
	mov	x1, x21
	mov	x2, x20
	bl	_queue_var_store
	ldr	x8, [sp, #8]
	cmp	x8, w23, sxtw
	b.hi	LBB0_2
; %bb.1:
	sub	w9, w22, #10
	mov	w10, #1
	lsl	w9, w10, w9
	cmp	x8, w9, sxtw
	b.hs	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_4
LBB0_3:
	mov	x20, x0
	ldr	w0, [x19]
	bl	_spin_lock_irq
	ldr	x8, [sp, #8]
	lsl	x8, x8, #1
	str	x8, [x19, #8]
	ldr	w0, [x19]
	bl	_spin_unlock_irq
LBB0_4:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_CACHE_SHIFT,4,2           ; @PAGE_CACHE_SHIFT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_queue_max_sectors_store
.subsections_via_symbols
