	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cfq_update_hw_tag
_cfq_update_hw_tag:                     ## @cfq_update_hw_tag
	.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, %rbx
	movq	(%rdi), %rax
	cmpq	8(%rdi), %rax
	jle	LBB0_2
## %bb.1:
	movq	%rax, 8(%rbx)
LBB0_2:
	cmpl	$1, 16(%rbx)
	je	LBB0_11
## %bb.3:
	movq	40(%rbx), %r14
	movq	_CFQ_HW_QUEUE_MIN@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	cmpq	%rcx, 24(%rbx)
	jg	LBB0_5
## %bb.4:
	cmpq	%rcx, %rax
	jle	LBB0_11
LBB0_5:
	testq	%r14, %r14
	je	LBB0_9
## %bb.6:
	movq	%r14, %rdi
	callq	_cfq_cfqq_idle_window
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	8(%r14), %rax
	movq	(%rax), %rcx
	addq	(%r14), %rcx
	addq	8(%rax), %rcx
	movq	(%r15), %rax
	cmpq	%rax, %rcx
	jge	LBB0_9
## %bb.8:
	cmpq	%rax, (%rbx)
	jl	LBB0_11
LBB0_9:
	movl	32(%rbx), %eax
	leal	1(%rax), %ecx
	movl	%ecx, 32(%rbx)
	cmpl	$50, %eax
	jl	LBB0_11
## %bb.10:
	movq	8(%rbx), %rax
	xorl	%ecx, %ecx
	cmpq	(%r15), %rax
	setge	%cl
	movl	%ecx, 16(%rbx)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CFQ_HW_QUEUE_MIN,8,3           ## @CFQ_HW_QUEUE_MIN
	.no_dead_strip	_cfq_update_hw_tag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cfq_update_hw_tag
_cfq_update_hw_tag:                     ; @cfq_update_hw_tag
	.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
	ldp	x8, x9, [x0]
	cmp	x8, x9
	b.le	LBB0_2
; %bb.1:
	str	x8, [x19, #8]
LBB0_2:
	ldr	w9, [x19, #16]
	cmp	w9, #1
	b.eq	LBB0_10
; %bb.3:
	ldr	x9, [x19, #24]
Lloh0:
	adrp	x21, _CFQ_HW_QUEUE_MIN@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CFQ_HW_QUEUE_MIN@GOTPAGEOFF]
	ldr	x10, [x21]
	cmp	x9, x10
	ccmp	x8, x10, #0, le
	b.le	LBB0_10
; %bb.4:
	ldr	x20, [x19, #40]
	cbz	x20, LBB0_8
; %bb.5:
	mov	x0, x20
	bl	_cfq_cfqq_idle_window
	cbz	x0, LBB0_8
; %bb.6:
	ldp	x8, x9, [x20]
	ldp	x10, x9, [x9]
	add	x8, x10, x8
	add	x9, x8, x9
	ldr	x8, [x21]
	cmp	x9, x8
	b.ge	LBB0_8
; %bb.7:
	ldr	x9, [x19]
	cmp	x9, x8
	b.lt	LBB0_10
LBB0_8:
	ldr	w8, [x19, #32]
	add	w9, w8, #1
	str	w9, [x19, #32]
	cmp	w8, #50
	b.lt	LBB0_10
; %bb.9:
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	cmp	x8, x9
	cset	w8, ge
	str	w8, [x19, #16]
LBB0_10:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CFQ_HW_QUEUE_MIN,8,3           ; @CFQ_HW_QUEUE_MIN
	.no_dead_strip	_cfq_update_hw_tag
.subsections_via_symbols
