	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function as_find_next_rq
_as_find_next_rq:                       ## @as_find_next_rq
	.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	%rsi, %r13
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_rb_next
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_rb_prev
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_RB_EMPTY_NODE
	movl	%eax, %edi
	callq	_BUG_ON
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_rb_entry_rq
	movq	%rax, %r15
	testq	%r12, %r12
	jne	LBB0_6
	jmp	LBB0_4
LBB0_1:
	xorl	%r15d, %r15d
	testq	%r12, %r12
	jne	LBB0_6
LBB0_4:
	movq	%r13, %rdi
	callq	_rq_is_sync
	movslq	%eax, %rdi
	shlq	$2, %rdi
	addq	(%r14), %rdi
	callq	_rb_first
	xorl	%esi, %esi
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%rax, %r12
	cmpq	%r13, %rax
	je	LBB0_7
LBB0_6:
	movq	%r12, %rdi
	callq	_rb_entry_rq
	movq	%rax, %rsi
LBB0_7:
	movq	%r14, %rdi
	movq	%r15, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_as_choose_req                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_as_find_next_rq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function as_find_next_rq
_as_find_next_rq:                       ; @as_find_next_rq
	.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	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_rb_next
	mov	x22, x0
	mov	x0, x20
	bl	_rb_prev
	mov	x21, x0
	mov	x0, x20
	bl	_RB_EMPTY_NODE
	bl	_BUG_ON
	cbz	x21, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_rb_entry_rq
	mov	x21, x0
LBB0_2:
	cbnz	x22, LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_rq_is_sync
	ldr	x8, [x19]
	add	x0, x8, w0, sxtw #2
	bl	_rb_first
	mov	x22, x0
	cmp	x0, #0
	ccmp	x0, x20, #4, ne
	b.ne	LBB0_5
; %bb.4:
	mov	x1, #0
	b	LBB0_6
LBB0_5:
	mov	x0, x22
	bl	_rb_entry_rq
	mov	x1, x0
LBB0_6:
	mov	x0, x19
	mov	x2, 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	_as_choose_req
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_as_find_next_rq
.subsections_via_symbols
