	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qib_poll_next
_qib_poll_next:                         ## @qib_poll_next
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rax
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	leaq	12(%rdi), %rsi
	movq	%rax, %rdi
	callq	_poll_wait
	movq	%r14, %rdi
	callq	_spin_lock_irq
	movq	%rbx, %rdi
	callq	*16(%r14)
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_QIB_CTXT_WAITING_RCV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %rsi
	callq	_set_bit
	movl	(%rbx), %edx
	movl	4(%rbx), %edi
	movq	_QIB_RCVCTRL_INTRAVAIL_ENB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	*8(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_3
LBB0_2:
	movq	_POLLIN@GOTPCREL(%rip), %rax
	movq	_POLLRDNORM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
LBB0_3:
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QIB_CTXT_WAITING_RCV,4,2       ## @QIB_CTXT_WAITING_RCV
	.comm	_QIB_RCVCTRL_INTRAVAIL_ENB,4,2  ## @QIB_RCVCTRL_INTRAVAIL_ENB
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_POLLRDNORM,4,2                 ## @POLLRDNORM
	.no_dead_strip	_qib_poll_next
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qib_poll_next
_qib_poll_next:                         ; @qib_poll_next
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x8, x1
	mov	x20, x0
	ldr	x19, [x0, #16]
	add	x1, x0, #12
	mov	x0, x8
	bl	_poll_wait
	mov	x0, x19
	bl	_spin_lock_irq
	ldr	x8, [x19, #16]
	mov	x0, x20
	blr	x8
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _QIB_CTXT_WAITING_RCV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QIB_CTXT_WAITING_RCV@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x20, #8
	bl	_set_bit
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _QIB_RCVCTRL_INTRAVAIL_ENB@GOTPAGE
Lloh4:
	ldr	x9, [x9, _QIB_RCVCTRL_INTRAVAIL_ENB@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	ldp	w2, w0, [x20]
	blr	x8
	mov	w20, #0
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _POLLIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _POLLIN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _POLLRDNORM@GOTPAGE
Lloh10:
	ldr	x9, [x9, _POLLRDNORM@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w20, w9, w8
LBB0_3:
	mov	x0, x19
	bl	_spin_unlock_irq
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 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	_QIB_CTXT_WAITING_RCV,4,2       ; @QIB_CTXT_WAITING_RCV
	.comm	_QIB_RCVCTRL_INTRAVAIL_ENB,4,2  ; @QIB_RCVCTRL_INTRAVAIL_ENB
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_POLLRDNORM,4,2                 ; @POLLRDNORM
	.no_dead_strip	_qib_poll_next
.subsections_via_symbols
