	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cfq_prio_tree_add
_cfq_prio_tree_add:                     ## @cfq_prio_tree_add
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rsi), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	leaq	16(%rbx), %rdi
	callq	_rb_erase
	movq	$0, 8(%rbx)
LBB0_2:
	movq	%rbx, %rdi
	callq	_cfq_class_idle
	testq	%rax, %rax
	je	LBB0_3
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	20(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_7
## %bb.4:
	movq	(%rbx), %r15
	shlq	$2, %r15
	addq	(%r14), %r15
	movq	%r15, 8(%rbx)
	callq	_blk_rq_pos
	leaq	-32(%rbp), %rcx
	leaq	-40(%rbp), %r8
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_cfq_prio_tree_lookup
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	$0, 8(%rbx)
	jmp	LBB0_7
LBB0_5:
	leaq	16(%rbx), %r14
	movq	-32(%rbp), %rsi
	movq	-40(%rbp), %rdx
	movq	%r14, %rdi
	callq	_rb_link_node
	movq	8(%rbx), %rsi
	movq	%r14, %rdi
	callq	_rb_insert_color
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_cfq_prio_tree_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cfq_prio_tree_add
_cfq_prio_tree_add:                     ; @cfq_prio_tree_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x1, [x1, #8]
	cbz	x1, LBB0_2
; %bb.1:
	add	x0, x19, #16
	bl	_rb_erase
	str	xzr, [x19, #8]
LBB0_2:
	mov	x0, x19
	bl	_cfq_class_idle
	cbz	x0, LBB0_4
LBB0_3:
	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
	add	sp, sp, #64
	ret
LBB0_4:
	ldr	w0, [x19, #20]
	cbz	w0, LBB0_3
; %bb.5:
	ldr	x8, [x20]
	ldr	x9, [x19]
	add	x21, x8, x9, lsl #2
	str	x21, [x19, #8]
	bl	_blk_rq_pos
	mov	x2, x0
	mov	x3, sp
	add	x4, sp, #8
	mov	x0, x20
	mov	x1, x21
	bl	_cfq_prio_tree_lookup
	cbz	x0, LBB0_7
; %bb.6:
	str	xzr, [x19, #8]
	b	LBB0_3
LBB0_7:
	add	x20, x19, #16
	ldp	x1, x2, [sp]
	mov	x0, x20
	bl	_rb_link_node
	ldr	x1, [x19, #8]
	mov	x0, x20
	bl	_rb_insert_color
	b	LBB0_3
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_cfq_prio_tree_add
.subsections_via_symbols
