	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function no_bufs_available
_no_bufs_available:                     ## @no_bufs_available
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %r12
	movl	16(%rdi), %edi
	callq	_to_idev
	movq	%rax, %r15
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_ib_rvt_state_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	movq	_RVT_PROCESS_RECV_OK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rax,%rcx,4)
	je	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	callq	_spin_lock
	movq	%r12, %rdi
	callq	_list_empty
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	incl	8(%r15)
	movq	_RVT_S_WAIT_PIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%rbx)
	movq	%r15, %rsi
	addq	$4, %rsi
	movq	%r12, %rdi
	callq	_list_add_tail
	movq	%r15, %rdi
	callq	_dd_from_dev
	movq	%rax, %rdi
	movl	$1, %esi
	callq	*(%rax)
LBB0_4:
	movq	%r15, %rdi
	callq	_spin_unlock
	movq	_RVT_S_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 12(%rbx)
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
LBB0_5:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ib_rvt_state_ops,8,3           ## @ib_rvt_state_ops
	.comm	_RVT_PROCESS_RECV_OK,4,2        ## @RVT_PROCESS_RECV_OK
	.comm	_RVT_S_WAIT_PIO,4,2             ## @RVT_S_WAIT_PIO
	.comm	_RVT_S_BUSY,4,2                 ## @RVT_S_BUSY
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_no_bufs_available
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function no_bufs_available
_no_bufs_available:                     ; @no_bufs_available
	.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, x0
	ldr	x22, [x0, #24]
	ldr	w0, [x0, #16]
	bl	_to_idev
	mov	x21, x0
	add	x19, x20, #8
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _ib_rvt_state_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ib_rvt_state_ops@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x20]
	ldr	w8, [x8, x9, lsl #2]
Lloh3:
	adrp	x9, _RVT_PROCESS_RECV_OK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RVT_PROCESS_RECV_OK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	mov	x0, x21
	bl	_spin_lock
	mov	x0, x22
	bl	_list_empty
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w8, [x21, #8]
	add	w8, w8, #1
Lloh6:
	adrp	x9, _RVT_S_WAIT_PIO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RVT_S_WAIT_PIO@GOTPAGEOFF]
	str	w8, [x21, #8]
Lloh8:
	ldr	w8, [x9]
	ldr	w9, [x20, #12]
	orr	w8, w9, w8
	str	w8, [x20, #12]
	add	x1, x21, #4
	mov	x0, x22
	bl	_list_add_tail
	mov	x0, x21
	bl	_dd_from_dev
	ldr	x8, [x0]
	mov	w1, #1
	blr	x8
LBB0_3:
	mov	x0, x21
	bl	_spin_unlock
Lloh9:
	adrp	x8, _RVT_S_BUSY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RVT_S_BUSY@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x20, #12]
	bic	w8, w9, w8
	str	w8, [x20, #12]
Lloh12:
	adrp	x8, _EBUSY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_5
LBB0_4:
	mov	w20, #0
LBB0_5:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ib_rvt_state_ops,8,3           ; @ib_rvt_state_ops
	.comm	_RVT_PROCESS_RECV_OK,4,2        ; @RVT_PROCESS_RECV_OK
	.comm	_RVT_S_WAIT_PIO,4,2             ; @RVT_S_WAIT_PIO
	.comm	_RVT_S_BUSY,4,2                 ; @RVT_S_BUSY
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_no_bufs_available
.subsections_via_symbols
