	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function poll_next
_poll_next:                             ## @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, %rdx
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	movq	8(%rbx), %r14
	leaq	4(%rbx), %rsi
	callq	_poll_wait
	movq	%r14, %rdi
	callq	_spin_lock_irq
	movq	%rbx, %rdi
	callq	_hdrqempty
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_HFI1_CTXT_WAITING_RCV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_set_bit
	movq	_HFI1_RCVCTRL_INTRAVAIL_ENB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_hfi1_rcvctrl
	xorl	%ebx, %ebx
	jmp	LBB0_3
LBB0_2:
	movq	_EPOLLIN@GOTPCREL(%rip), %rax
	movq	_EPOLLRDNORM@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	_HFI1_CTXT_WAITING_RCV,4,2      ## @HFI1_CTXT_WAITING_RCV
	.comm	_HFI1_RCVCTRL_INTRAVAIL_ENB,4,2 ## @HFI1_RCVCTRL_INTRAVAIL_ENB
	.comm	_EPOLLIN,4,2                    ## @EPOLLIN
	.comm	_EPOLLRDNORM,4,2                ## @EPOLLRDNORM
	.no_dead_strip	_poll_next
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function poll_next
_poll_next:                             ; @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	x2, x1
	ldr	x8, [x0]
	ldr	x20, [x8]
	ldr	x19, [x20, #8]
	add	x1, x20, #4
	bl	_poll_wait
	mov	x0, x19
	bl	_spin_lock_irq
	mov	x0, x20
	bl	_hdrqempty
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _HFI1_CTXT_WAITING_RCV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HFI1_CTXT_WAITING_RCV@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_set_bit
Lloh3:
	adrp	x8, _HFI1_RCVCTRL_INTRAVAIL_ENB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HFI1_RCVCTRL_INTRAVAIL_ENB@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_hfi1_rcvctrl
	mov	w20, #0
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _EPOLLIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EPOLLIN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _EPOLLRDNORM@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EPOLLRDNORM@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	_HFI1_CTXT_WAITING_RCV,4,2      ; @HFI1_CTXT_WAITING_RCV
	.comm	_HFI1_RCVCTRL_INTRAVAIL_ENB,4,2 ; @HFI1_RCVCTRL_INTRAVAIL_ENB
	.comm	_EPOLLIN,4,2                    ; @EPOLLIN
	.comm	_EPOLLRDNORM,4,2                ; @EPOLLRDNORM
	.no_dead_strip	_poll_next
.subsections_via_symbols
