	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function as_choose_req
_as_choose_req:                         ## @as_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
	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, %r13
	testq	%rsi, %rsi
	je	LBB0_23
## %bb.1:
	movq	%rsi, %r14
	cmpq	%r13, %rsi
	je	LBB0_23
## %bb.2:
	testq	%r13, %r13
	je	LBB0_6
## %bb.3:
	movq	%rdi, %rbx
	movq	_MAXBACK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_rq_is_sync
	movq	(%rbx), %rcx
	movslq	%eax, %r12
	movq	(%rcx,%r12,8), %rbx
	movq	%r14, %rdi
	callq	_blk_rq_pos
	movq	%rax, %r15
	movq	%r13, %rdi
	callq	_blk_rq_pos
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_rq_is_sync
	xorl	%edi, %edi
	cmpl	%eax, %r12d
	setne	%dil
	callq	_BUG_ON
	movq	%r15, %rax
	subq	%rbx, %rax
	jge	LBB0_7
## %bb.4:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%r15,%rdx), %rax
	cmpq	%rbx, %rax
	jge	LBB0_8
## %bb.5:
	movb	$1, %r8b
	xorl	%eax, %eax
	xorl	%r9d, %r9d
	jmp	LBB0_9
LBB0_7:
	movb	$1, %r9b
	xorl	%r8d, %r8d
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_8:
	movq	%rbx, %rax
	subq	%r15, %rax
	movq	_BACK_PENALTY@GOTPCREL(%rip), %rcx
	imulq	(%rcx), %rax
	movb	$1, %r9b
	xorl	%r8d, %r8d
LBB0_9:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
LBB0_10:
	movq	%rcx, %rsi
	subq	%rbx, %rsi
	jge	LBB0_15
## %bb.11:
	addq	%rcx, %rdx
	cmpq	%rbx, %rdx
	jge	LBB0_14
## %bb.12:
	testb	%r9b, %r9b
	jne	LBB0_6
## %bb.18:
	testb	%r8b, %r8b
	je	LBB0_20
## %bb.19:
	cmpq	%rcx, %r15
	cmovleq	%r14, %r13
	jmp	LBB0_23
LBB0_14:
	subq	%rcx, %rbx
	movq	_BACK_PENALTY@GOTPCREL(%rip), %rdx
	imulq	(%rdx), %rbx
	movq	%rbx, %rsi
LBB0_15:
	testb	%r8b, %r8b
	jne	LBB0_23
## %bb.16:
	cmpq	%rsi, %rax
	jge	LBB0_21
LBB0_6:
	movq	%r14, %r13
LBB0_23:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	xorl	%esi, %esi
	cmpq	%rsi, %rax
	jl	LBB0_6
LBB0_21:
	jg	LBB0_23
## %bb.22:
	cmpq	%rcx, %r15
	cmovgeq	%r14, %r13
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXBACK,8,3                    ## @MAXBACK
	.comm	_BACK_PENALTY,8,3               ## @BACK_PENALTY
	.no_dead_strip	_as_choose_req
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function as_choose_req
_as_choose_req:                         ; @as_choose_req
	.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	x19, x2
	cbz	x1, LBB0_18
; %bb.1:
	mov	x20, x1
	cmp	x1, x19
	b.eq	LBB0_18
; %bb.2:
	cbz	x19, LBB0_17
; %bb.3:
	mov	x21, x0
Lloh0:
	adrp	x8, _MAXBACK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAXBACK@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x8]
	mov	x0, x20
	bl	_rq_is_sync
	mov	x23, x0
	ldr	x8, [x21]
	ldr	x25, [x8, w0, sxtw #3]
	mov	x0, x20
	bl	_blk_rq_pos
	mov	x21, x0
	mov	x0, x19
	bl	_blk_rq_pos
	mov	x22, x0
	mov	x0, x19
	bl	_rq_is_sync
	cmp	w23, w0
	cset	w0, ne
	bl	_BUG_ON
	subs	x8, x21, x25
	b.ge	LBB0_8
; %bb.4:
	add	x8, x21, x24
	cmp	x8, x25
	b.ge	LBB0_9
; %bb.5:
	mov	x8, #0
	mov	w10, #0
	mov	w9, #1
	subs	x11, x22, x25
	b.lt	LBB0_11
LBB0_6:
	tbnz	w9, #0, LBB0_18
; %bb.7:
	cmp	x8, x11
	b.ge	LBB0_20
	b	LBB0_17
LBB0_8:
	mov	w9, #0
	b	LBB0_10
LBB0_9:
	mov	w9, #0
	sub	x8, x25, x21
Lloh3:
	adrp	x10, _BACK_PENALTY@GOTPAGE
Lloh4:
	ldr	x10, [x10, _BACK_PENALTY@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	mul	x8, x10, x8
LBB0_10:
	mov	w10, #1
	subs	x11, x22, x25
	b.ge	LBB0_6
LBB0_11:
	add	x11, x22, x24
	cmp	x11, x25
	b.ge	LBB0_15
; %bb.12:
	tbnz	w10, #0, LBB0_17
; %bb.13:
	cbz	w9, LBB0_19
; %bb.14:
	cmp	x21, x22
	csel	x19, x19, x20, gt
	b	LBB0_18
LBB0_15:
	tbnz	w9, #0, LBB0_18
; %bb.16:
	sub	x9, x25, x22
Lloh6:
	adrp	x10, _BACK_PENALTY@GOTPAGE
Lloh7:
	ldr	x10, [x10, _BACK_PENALTY@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	mul	x11, x10, x9
	cmp	x8, x11
	b.ge	LBB0_20
LBB0_17:
	mov	x19, x20
LBB0_18:
	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
LBB0_19:
	mov	x11, #0
	cmp	x8, x11
	b.lt	LBB0_17
LBB0_20:
	cmp	x11, x8
	b.lt	LBB0_18
; %bb.21:
	cmp	x21, x22
	csel	x19, x19, x20, lt
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXBACK,8,3                    ; @MAXBACK
	.comm	_BACK_PENALTY,8,3               ; @BACK_PENALTY
	.no_dead_strip	_as_choose_req
.subsections_via_symbols
