	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipath_no_bufs_available
_ipath_no_bufs_available:               ## @ipath_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	%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, %r14
	movq	%rdi, %rbx
	leaq	8(%rdi), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_ib_ipath_state_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	movq	_IPATH_PROCESS_SEND_OK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rax,%rcx,4)
	je	LBB0_1
## %bb.2:
	incl	12(%r14)
	movq	_IPATH_S_WAITING@GOTPCREL(%rip), %rax
	movl	16(%rbx), %ecx
	orl	(%rax), %ecx
	movq	_IPATH_S_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%ecx, %eax
	movl	%eax, 16(%rbx)
	leaq	4(%r14), %r12
	movq	%r12, %rdi
	callq	_spin_lock
	leaq	12(%rbx), %r13
	movq	%r13, %rdi
	callq	_list_empty
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	8(%r14), %rsi
	movq	%r13, %rdi
	callq	_list_add_tail
LBB0_4:
	movq	%r12, %rdi
	callq	_spin_unlock
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_want_buffer
	movl	$1, %eax
	jmp	LBB0_5
LBB0_1:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ib_ipath_state_ops,8,3         ## @ib_ipath_state_ops
	.comm	_IPATH_PROCESS_SEND_OK,4,2      ## @IPATH_PROCESS_SEND_OK
	.comm	_IPATH_S_WAITING,4,2            ## @IPATH_S_WAITING
	.comm	_IPATH_S_BUSY,4,2               ## @IPATH_S_BUSY
	.no_dead_strip	_ipath_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 ipath_no_bufs_available
_ipath_no_bufs_available:               ; @ipath_no_bufs_available
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	add	x21, x0, #8
	mov	x0, x21
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _ib_ipath_state_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ib_ipath_state_ops@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x19]
	ldr	w8, [x8, x9, lsl #2]
Lloh3:
	adrp	x9, _IPATH_PROCESS_SEND_OK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IPATH_PROCESS_SEND_OK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	ldr	w8, [x20, #12]
	add	w8, w8, #1
	str	w8, [x20, #12]
Lloh6:
	adrp	x8, _IPATH_S_WAITING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IPATH_S_WAITING@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _IPATH_S_BUSY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IPATH_S_BUSY@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	bic	w8, w8, w9
	str	w8, [x19, #16]
	add	x22, x20, #4
	mov	x0, x22
	bl	_spin_lock
	add	x23, x19, #12
	mov	x0, x23
	bl	_list_empty
	cbz	x0, LBB0_3
; %bb.2:
	add	x1, x20, #8
	mov	x0, x23
	bl	_list_add_tail
LBB0_3:
	mov	x0, x22
	bl	_spin_unlock
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	ldr	w0, [x20]
	mov	x1, x19
	bl	_want_buffer
	mov	w0, #1
	b	LBB0_5
LBB0_4:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	w0, #0
LBB0_5:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ib_ipath_state_ops,8,3         ; @ib_ipath_state_ops
	.comm	_IPATH_PROCESS_SEND_OK,4,2      ; @IPATH_PROCESS_SEND_OK
	.comm	_IPATH_S_WAITING,4,2            ; @IPATH_S_WAITING
	.comm	_IPATH_S_BUSY,4,2               ; @IPATH_S_BUSY
	.no_dead_strip	_ipath_no_bufs_available
.subsections_via_symbols
