	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cfq_select_queue
_cfq_select_queue:                      ## @cfq_select_queue
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	16(%rdi), %r15
	testq	%r15, %r15
	je	LBB0_16
## %bb.1:
	cmpl	$0, 12(%r14)
	je	LBB0_2
## %bb.4:
	movq	%r15, %rdi
	callq	_cfq_cfqq_wait_busy
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	20(%r15), %rdi
	callq	_RB_EMPTY_ROOT
	testq	%rax, %rax
	je	LBB0_15
LBB0_6:
	movq	%r15, %rdi
	callq	_cfq_slice_used
	testq	%rax, %rax
	je	LBB0_17
## %bb.7:
	movq	%r15, %rdi
	callq	_cfq_cfqq_must_dispatch
	testl	%eax, %eax
	je	LBB0_8
LBB0_17:
	leaq	20(%r15), %rdi
	callq	_RB_EMPTY_ROOT
	testq	%rax, %rax
	je	LBB0_3
## %bb.18:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_cfq_close_cooperator
	testq	%rax, %rax
	je	LBB0_23
## %bb.19:
	movq	%rax, %rbx
	cmpl	$0, 16(%r15)
	jne	LBB0_21
## %bb.20:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_cfq_setup_merge
LBB0_21:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_cfq_slice_expired
	jmp	LBB0_22
LBB0_8:
	movq	(%r15), %rax
	cmpl	$1, (%rax)
	jne	LBB0_12
## %bb.9:
	leaq	20(%r15), %rdi
	callq	_RB_EMPTY_ROOT
	testq	%rax, %rax
	jne	LBB0_10
	jmp	LBB0_12
LBB0_23:
	leaq	8(%r14), %rdi
	callq	_timer_pending
	testq	%rax, %rax
	jne	LBB0_2
LBB0_10:
	cmpq	$0, 8(%r15)
	je	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_cfq_should_idle
	testq	%rax, %rax
	jne	LBB0_2
LBB0_12:
	cmpq	$0, (%r14)
	je	LBB0_15
## %bb.13:
	movq	(%r15), %rax
	cmpl	$1, (%rax)
	jne	LBB0_15
## %bb.14:
	cmpq	$0, 8(%rax)
	je	LBB0_15
LBB0_2:
	xorl	%r15d, %r15d
LBB0_3:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_cfq_slice_expired
LBB0_16:
	movq	%r14, %rdi
	callq	_cfq_choose_cfqg
	xorl	%ebx, %ebx
LBB0_22:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cfq_set_active_queue           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_cfq_select_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cfq_select_queue
_cfq_select_queue:                      ; @cfq_select_queue
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x20, [x0, #16]
	cbz	x20, LBB0_22
; %bb.1:
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_19
; %bb.2:
	mov	x0, x20
	bl	_cfq_cfqq_wait_busy
	cbz	x0, LBB0_4
; %bb.3:
	add	x0, x20, #20
	bl	_RB_EMPTY_ROOT
	cbz	x0, LBB0_21
LBB0_4:
	mov	x0, x20
	bl	_cfq_slice_used
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_cfq_cfqq_must_dispatch
	cbz	w0, LBB0_11
LBB0_6:
	add	x0, x20, #20
	bl	_RB_EMPTY_ROOT
	cbz	x0, LBB0_20
; %bb.7:
	mov	x0, x19
	mov	x1, x20
	bl	_cfq_close_cooperator
	cbz	x0, LBB0_13
; %bb.8:
	mov	x21, x0
	ldr	w8, [x20, #16]
	cbnz	w8, LBB0_10
; %bb.9:
	mov	x0, x20
	mov	x1, x21
	bl	_cfq_setup_merge
LBB0_10:
	mov	x0, x19
	mov	w1, #0
	bl	_cfq_slice_expired
	b	LBB0_23
LBB0_11:
	ldr	x8, [x20]
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_16
; %bb.12:
	add	x0, x20, #20
	bl	_RB_EMPTY_ROOT
	cbnz	x0, LBB0_14
	b	LBB0_16
LBB0_13:
	add	x0, x19, #8
	bl	_timer_pending
	cbnz	x0, LBB0_19
LBB0_14:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_16
; %bb.15:
	mov	x0, x19
	mov	x1, x20
	bl	_cfq_should_idle
	cbnz	x0, LBB0_19
LBB0_16:
	ldr	x8, [x19]
	cbz	x8, LBB0_21
; %bb.17:
	ldr	x8, [x20]
	ldr	w9, [x8]
	cmp	w9, #1
	b.ne	LBB0_21
; %bb.18:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_21
LBB0_19:
	mov	x20, #0
LBB0_20:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_21:
	mov	x0, x19
	mov	w1, #0
	bl	_cfq_slice_expired
LBB0_22:
	mov	x0, x19
	bl	_cfq_choose_cfqg
	mov	x21, #0
LBB0_23:
	mov	x0, x19
	mov	x1, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_cfq_set_active_queue
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_cfq_select_queue
.subsections_via_symbols
