	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cfq_choose_req
_cfq_choose_req:                        ## @cfq_choose_req
	.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, %r14
	testq	%rsi, %rsi
	je	LBB0_31
## %bb.1:
	movq	%rsi, %rbx
	cmpq	%r14, %rsi
	je	LBB0_31
## %bb.2:
	testq	%r14, %r14
	je	LBB0_10
## %bb.3:
	movq	%rcx, %r15
	movq	%rdi, %r12
	movq	%rbx, %rdi
	callq	_rq_is_sync
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_rq_is_sync
	testq	%rax, %rax
	je	LBB0_10
LBB0_5:
	movq	%r14, %rdi
	callq	_rq_is_sync
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_rq_is_sync
	testq	%rax, %rax
	je	LBB0_31
LBB0_7:
	movq	_REQ_META@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%r14), %ecx
	testl	%eax, (%rbx)
	je	LBB0_12
## %bb.8:
	testl	%eax, %ecx
	jne	LBB0_13
	jmp	LBB0_10
LBB0_12:
	testl	%eax, %ecx
	jne	LBB0_31
LBB0_13:
	movq	%rbx, %rdi
	callq	_blk_rq_pos
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_blk_rq_pos
	movslq	(%r12), %rsi
	addq	%rsi, %rsi
	movq	%r13, %rcx
	subq	%r15, %rcx
	jge	LBB0_16
## %bb.14:
	leaq	(%rsi,%r13), %rcx
	xorl	%edx, %edx
	cmpq	%r15, %rcx
	jae	LBB0_17
## %bb.15:
	movl	$1, %edx
	xorl	%ecx, %ecx
	jmp	LBB0_18
LBB0_16:
	xorl	%edx, %edx
	jmp	LBB0_18
LBB0_17:
	movq	%r15, %rcx
	subq	%r13, %rcx
	imulq	8(%r12), %rcx
LBB0_18:
	movq	%rax, %rdi
	subq	%r15, %rdi
	jge	LBB0_22
## %bb.19:
	addq	%rax, %rsi
	cmpq	%r15, %rsi
	jae	LBB0_21
## %bb.20:
	orl	$2, %edx
	xorl	%edi, %edi
	jmp	LBB0_22
LBB0_21:
	subq	%rax, %r15
	imulq	8(%r12), %r15
	movq	%r15, %rdi
LBB0_22:
	cmpl	$2, %edx
	je	LBB0_10
## %bb.23:
	cmpl	$1, %edx
	je	LBB0_31
## %bb.24:
	testl	%edx, %edx
	jne	LBB0_28
## %bb.25:
	cmpq	%rdi, %rcx
	jge	LBB0_29
LBB0_10:
	movq	%rbx, %r14
LBB0_31:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	cmpq	%rax, %r13
	cmovleq	%rbx, %r14
	jmp	LBB0_31
LBB0_29:
	jg	LBB0_31
## %bb.30:
	cmpq	%rax, %r13
	cmovgeq	%rbx, %r14
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.comm	_REQ_META,4,2                   ## @REQ_META
	.no_dead_strip	_cfq_choose_req
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cfq_choose_req
_cfq_choose_req:                        ; @cfq_choose_req
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x2
	cbz	x1, LBB0_23
; %bb.1:
	mov	x20, x1
	cmp	x1, x19
	b.eq	LBB0_23
; %bb.2:
	cbz	x19, LBB0_22
; %bb.3:
	mov	x21, x3
	mov	x22, x0
	mov	x0, x20
	bl	_rq_is_sync
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_rq_is_sync
	cbz	x0, LBB0_22
LBB0_5:
	mov	x0, x19
	bl	_rq_is_sync
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_rq_is_sync
	cbz	x0, LBB0_23
LBB0_7:
	ldr	w9, [x20]
Lloh0:
	adrp	x8, _REQ_META@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REQ_META@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x8]
	ldr	w8, [x19]
	and	w8, w8, w10
	tst	w10, w9
	b.eq	LBB0_9
; %bb.8:
	cbnz	w8, LBB0_10
	b	LBB0_22
LBB0_9:
	cbnz	w8, LBB0_23
LBB0_10:
	mov	x0, x20
	bl	_blk_rq_pos
	mov	x23, x0
	mov	x0, x19
	bl	_blk_rq_pos
	ldrsw	x8, [x22]
	lsl	x10, x8, #1
	subs	x8, x23, x21
	b.ge	LBB0_13
; %bb.11:
	add	x8, x23, x10
	cmp	x8, x21
	b.hs	LBB0_14
; %bb.12:
	mov	x8, #0
	mov	w9, #1
	subs	x11, x0, x21
	b.lt	LBB0_15
	b	LBB0_18
LBB0_13:
	mov	w9, #0
	subs	x11, x0, x21
	b.lt	LBB0_15
	b	LBB0_18
LBB0_14:
	mov	w9, #0
	sub	x8, x21, x23
	ldr	x11, [x22, #8]
	mul	x8, x11, x8
	subs	x11, x0, x21
	b.ge	LBB0_18
LBB0_15:
	add	x10, x0, x10
	cmp	x10, x21
	b.hs	LBB0_17
; %bb.16:
	mov	x11, #0
	orr	w9, w9, #0x2
	b	LBB0_18
LBB0_17:
	sub	x10, x21, x0
	ldr	x11, [x22, #8]
	mul	x11, x11, x10
LBB0_18:
	cmp	w9, #2
	b.eq	LBB0_22
; %bb.19:
	cmp	w9, #1
	b.eq	LBB0_23
; %bb.20:
	cbnz	w9, LBB0_24
; %bb.21:
	cmp	x8, x11
	b.ge	LBB0_25
LBB0_22:
	mov	x19, x20
LBB0_23:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_24:
	cmp	x23, x0
	csel	x19, x19, x20, gt
	b	LBB0_23
LBB0_25:
	cmp	x11, x8
	b.lt	LBB0_23
; %bb.26:
	cmp	x23, x0
	csel	x19, x19, x20, lt
	b	LBB0_23
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_REQ_META,4,2                   ; @REQ_META
	.no_dead_strip	_cfq_choose_req
.subsections_via_symbols
