	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipath_poll_next
_ipath_poll_next:                       ## @ipath_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	%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	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	32(%rdi), %r13
	xorl	%eax, %eax
	callq	_rmb
	movq	%rbx, %rdi
	callq	_ipath_poll_hdrqfull
	movl	%eax, %r15d
	movq	_ur_rcvhdrhead@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rdx
	movq	%r13, %rdi
	callq	_ipath_read_ureg32
	movl	%eax, %r14d
	cmpq	$0, 24(%rbx)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_ipath_get_rcvhdrtail
	cmpl	%eax, %r14d
	jne	LBB0_4
LBB0_5:
	movq	_IPATH_PORT_WAITING_RCV@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	16(%rbx), %rsi
	callq	_set_bit
	xorl	%eax, %eax
	callq	_wmb
	movq	16(%r13), %rdi
	addq	8(%rbx), %rdi
	leaq	4(%r13), %rsi
	callq	_set_bit
	movq	8(%r13), %rax
	movl	(%rax), %esi
	movl	4(%r13), %edx
	movq	%r13, %rdi
	callq	_ipath_write_kreg
	movl	(%r13), %edx
	testl	%edx, %edx
	je	LBB0_7
## %bb.6:
	movq	_ur_rcvhdrhead@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	%r14d, %edx
	movq	8(%rbx), %rcx
	movq	%r13, %rdi
	callq	_ipath_write_ureg
LBB0_7:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_poll_wait
	jmp	LBB0_8
LBB0_2:
	movq	_ur_rcvhdrtail@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rdx
	movq	%r13, %rdi
	callq	_ipath_read_ureg32
	cmpl	%eax, %r14d
	je	LBB0_5
LBB0_4:
	movq	_POLLIN@GOTPCREL(%rip), %rax
	movq	_POLLRDNORM@GOTPCREL(%rip), %rcx
	orl	(%rax), %r15d
	orl	(%rcx), %r15d
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ur_rcvhdrhead,4,2              ## @ur_rcvhdrhead
	.comm	_ur_rcvhdrtail,4,2              ## @ur_rcvhdrtail
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_POLLRDNORM,4,2                 ## @POLLRDNORM
	.comm	_IPATH_PORT_WAITING_RCV,8,3     ## @IPATH_PORT_WAITING_RCV
	.no_dead_strip	_ipath_poll_next
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipath_poll_next
_ipath_poll_next:                       ; @ipath_poll_next
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	ldr	x23, [x0, #32]
	bl	_rmb
	mov	x0, x21
	bl	_ipath_poll_hdrqfull
	mov	x19, x0
Lloh0:
	adrp	x25, _ur_rcvhdrhead@GOTPAGE
Lloh1:
	ldr	x25, [x25, _ur_rcvhdrhead@GOTPAGEOFF]
	ldr	w1, [x25]
	ldr	x2, [x21, #8]
	mov	x0, x23
	bl	_ipath_read_ureg32
	mov	x24, x0
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x0, x21
	bl	_ipath_get_rcvhdrtail
	cmp	w24, w0
	b.ne	LBB0_6
LBB0_2:
Lloh2:
	adrp	x8, _IPATH_PORT_WAITING_RCV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IPATH_PORT_WAITING_RCV@GOTPAGEOFF]
Lloh4:
	ldr	x0, [x8]
	add	x1, x21, #16
	bl	_set_bit
	bl	_wmb
	ldr	x8, [x21, #8]
	ldr	x9, [x23, #16]
	add	x0, x9, x8
	add	x1, x23, #4
	bl	_set_bit
	ldr	x8, [x23, #8]
	ldr	w1, [x8]
	ldr	w2, [x23, #4]
	mov	x0, x23
	bl	_ipath_write_kreg
	ldr	w8, [x23]
	cbz	w8, LBB0_4
; %bb.3:
	ldr	w1, [x25]
	orr	w2, w8, w24
	ldr	x3, [x21, #8]
	mov	x0, x23
	bl	_ipath_write_ureg
LBB0_4:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_poll_wait
	b	LBB0_7
LBB0_5:
Lloh5:
	adrp	x8, _ur_rcvhdrtail@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ur_rcvhdrtail@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	x2, [x21, #8]
	mov	x0, x23
	bl	_ipath_read_ureg32
	cmp	w24, w0
	b.eq	LBB0_2
LBB0_6:
Lloh8:
	adrp	x8, _POLLIN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _POLLIN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _POLLRDNORM@GOTPAGE
Lloh12:
	ldr	x9, [x9, _POLLRDNORM@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w19
	orr	w19, w8, w9
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ur_rcvhdrhead,4,2              ; @ur_rcvhdrhead
	.comm	_ur_rcvhdrtail,4,2              ; @ur_rcvhdrtail
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_POLLRDNORM,4,2                 ; @POLLRDNORM
	.comm	_IPATH_PORT_WAITING_RCV,8,3     ; @IPATH_PORT_WAITING_RCV
	.no_dead_strip	_ipath_poll_next
.subsections_via_symbols
