	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cfq_update_idle_window
_cfq_update_idle_window:                ## @cfq_update_idle_window
	.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, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_cfq_cfqq_sync
	testl	%eax, %eax
	je	LBB0_15
## %bb.1:
	movq	%rbx, %rdi
	callq	_cfq_class_idle
	testq	%rax, %rax
	jne	LBB0_15
## %bb.2:
	movq	%rbx, %rdi
	callq	_cfq_cfqq_idle_window
	movl	%eax, %r12d
	movq	(%rbx), %rax
	movl	4(%rax), %ecx
	addl	(%rax), %ecx
	cmpl	$4, %ecx
	jl	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_cfq_mark_cfqq_deep
LBB0_4:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_REQ_NOIDLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%r13d, %r13d
	testl	%ecx, (%rax)
	jne	LBB0_12
LBB0_6:
	movq	16(%r15), %rdi
	callq	_atomic_read
	xorl	%r13d, %r13d
	testl	%eax, %eax
	je	LBB0_12
## %bb.7:
	cmpq	$0, (%r14)
	je	LBB0_12
## %bb.8:
	movq	%rbx, %rdi
	callq	_cfq_cfqq_deep
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	callq	_CFQQ_SEEKY
	testq	%rax, %rax
	jne	LBB0_12
LBB0_10:
	movl	8(%r15), %edi
	callq	_sample_valid
	testq	%rax, %rax
	je	LBB0_15
## %bb.11:
	movq	(%r15), %rax
	xorl	%r13d, %r13d
	cmpq	(%r14), %rax
	setle	%r13b
LBB0_12:
	cmpl	%r13d, %r12d
	jne	LBB0_13
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %ecx
	callq	_cfq_log_cfqq
	movq	%rbx, %rdi
	addq	$8, %rsp
	testl	%r13d, %r13d
	je	LBB0_14
## %bb.16:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cfq_mark_cfqq_idle_window      ## TAILCALL
LBB0_14:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cfq_clear_cfqq_idle_window     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REQ_NOIDLE,4,2                 ## @REQ_NOIDLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"idle=%d"

	.no_dead_strip	_cfq_update_idle_window
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cfq_update_idle_window
_cfq_update_idle_window:                ; @cfq_update_idle_window
	.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	x22, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_cfq_cfqq_sync
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_cfq_class_idle
	cbz	x0, LBB0_3
LBB0_2:
	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_3:
	mov	x0, x19
	bl	_cfq_cfqq_idle_window
	mov	x21, x0
	ldr	x8, [x19]
	ldp	w9, w8, [x8]
	add	w8, w8, w9
	cmp	w8, #4
	b.lt	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_cfq_mark_cfqq_deep
LBB0_5:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _REQ_NOIDLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _REQ_NOIDLE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_13
LBB0_7:
	ldr	x0, [x22, #16]
	bl	_atomic_read
	cbz	w0, LBB0_13
; %bb.8:
	ldr	x8, [x20]
	cbz	x8, LBB0_13
; %bb.9:
	mov	x0, x19
	bl	_cfq_cfqq_deep
	cbz	w0, LBB0_12
LBB0_10:
	ldr	w0, [x22, #8]
	bl	_sample_valid
	cbz	x0, LBB0_2
; %bb.11:
	ldr	x8, [x22]
	ldr	x9, [x20]
	cmp	x8, x9
	cset	w22, le
	cmp	w21, w22
	b.eq	LBB0_2
	b	LBB0_14
LBB0_12:
	mov	x0, x19
	bl	_CFQQ_SEEKY
	cbz	x0, LBB0_10
LBB0_13:
	mov	w22, #0
	cmp	w21, w22
	b.eq	LBB0_2
LBB0_14:
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	mov	x3, x22
	bl	_cfq_log_cfqq
	mov	x0, x19
	cbz	w22, LBB0_16
; %bb.15:
	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_mark_cfqq_idle_window
LBB0_16:
	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_clear_cfqq_idle_window
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_REQ_NOIDLE,4,2                 ; @REQ_NOIDLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"idle=%d"

	.no_dead_strip	_cfq_update_idle_window
.subsections_via_symbols
