	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi1_rcvctrl                   ## -- Begin function hfi1_rcvctrl
	.p2align	4, 0x90
_hfi1_rcvctrl:                          ## @hfi1_rcvctrl
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdx, %rdx
	je	LBB0_34
## %bb.1:
	movq	%rdx, %r12
	movl	%esi, %r13d
	movq	%rdi, %r15
	movq	(%rdx), %r14
	movq	_RCVCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	movl	%r13d, %ecx
	callq	_hfi1_cdbg
	movq	_RCV_CTXT_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_read_kctxt_csr
	movl	%eax, %ebx
	movq	_HFI1_RCVCTRL_CTXT_ENB@GOTPCREL(%rip), %rax
	movb	$1, %cl
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	testl	%r13d, (%rax)
	je	LBB0_7
## %bb.2:
	movq	_RCV_CTXT_CTRL_ENABLE_SMASK@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_7
## %bb.3:
	movq	_RCV_HDR_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	8(%r12), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_write_kctxt_csr
	cmpq	$0, 40(%r12)
	je	LBB0_5
## %bb.4:
	movq	_RCV_HDR_TAIL_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	12(%r12), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_write_kctxt_csr
LBB0_5:
	movl	$1, 16(%r12)
	movq	$0, 64(%r12)
	movl	56(%r12), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_rcvhdrq_size
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_memset
	movq	8(%r15), %rax
	movq	%rax, 32(%r12)
	movq	_RCV_CTXT_CTRL_ENABLE_SMASK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_RCV_CTXT_CTRL_EGR_BUF_SIZE_SMASK@GOTPCREL(%rip), %rax
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	(%rax), %r14d
	notl	%r14d
	andl	%ebx, %r14d
	movl	52(%r12), %edi
	callq	_encoded_size
	movq	%rax, %rbx
	movq	_RCV_CTXT_CTRL_EGR_BUF_SIZE_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	_RCV_CTXT_CTRL_EGR_BUF_SIZE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	orl	%r14d, %ebx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	_RCV_HDR_HEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_write_uctxt_csr
	movq	_RCV_EGR_INDEX_HEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_write_uctxt_csr
	movl	48(%r12), %esi
	movq	_RCV_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %dl
	movl	%edx, %ecx
	sarl	%cl, %esi
	movq	_RCV_EGR_CTRL_EGR_CNT_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %esi
	movq	_RCV_EGR_CTRL_EGR_CNT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %esi
	movl	20(%r12), %eax
	movl	%edx, %ecx
	sarl	%cl, %eax
	movq	_RCV_EGR_CTRL_EGR_BASE_INDEX_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_RCV_EGR_CTRL_EGR_BASE_INDEX_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%esi, %eax
	movq	_RCV_EGR_CTRL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%eax, %ecx
	callq	_write_kctxt_csr
	movq	_RCV_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %dl
	movl	24(%r12), %esi
	movl	%edx, %ecx
	sarl	%cl, %esi
	movq	_RCV_TID_CTRL_TID_PAIR_CNT_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %esi
	movq	_RCV_TID_CTRL_TID_PAIR_CNT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %esi
	movl	28(%r12), %eax
	movl	%edx, %ecx
	sarl	%cl, %eax
	movq	_RCV_TID_CTRL_TID_BASE_INDEX_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_RCV_TID_CTRL_TID_BASE_INDEX_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%esi, %eax
	movq	_RCV_TID_CTRL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%eax, %ecx
	callq	_write_kctxt_csr
	movq	_HFI1_CTRL_CTXT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_7
## %bb.6:
	movq	_RCV_VL15@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_write_csr
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_7:
	movq	_HFI1_RCVCTRL_CTXT_DIS@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_11
## %bb.8:
	movq	_RCV_VL15@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_write_csr
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	je	LBB0_10
## %bb.9:
	movq	_RCV_HDR_TAIL_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_write_kctxt_csr
	movq	_RCV_CTXT_CTRL_TAIL_UPD_SMASK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_10:
	movq	_RCV_CTXT_CTRL_ENABLE_SMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%ebx, %eax
	movl	%eax, %ebx
LBB0_11:
	movq	_HFI1_RCVCTRL_INTRAVAIL_ENB@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_13
## %bb.12:
	movq	_IS_RCVAVAIL_START@GOTPCREL(%rip), %rax
	movq	(%r12), %rdx
	addq	(%rax), %rdx
	movq	%r15, %rdi
	movq	%rdx, %rsi
	movl	$1, %ecx
	callq	_set_intr_bits
	movq	_RCV_CTXT_CTRL_INTR_AVAIL_SMASK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_13:
	movq	_HFI1_RCVCTRL_INTRAVAIL_DIS@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_15
## %bb.14:
	movq	_IS_RCVAVAIL_START@GOTPCREL(%rip), %rax
	movq	(%r12), %rdx
	addq	(%rax), %rdx
	movq	%r15, %rdi
	movq	%rdx, %rsi
	xorl	%ecx, %ecx
	callq	_set_intr_bits
	movq	_RCV_CTXT_CTRL_INTR_AVAIL_SMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ebx
LBB0_15:
	movq	_HFI1_RCVCTRL_TAILUPD_ENB@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_18
## %bb.16:
	cmpq	$0, 40(%r12)
	je	LBB0_18
## %bb.17:
	movq	_RCV_CTXT_CTRL_TAIL_UPD_SMASK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_18:
	movq	_HFI1_RCVCTRL_TAILUPD_DIS@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_21
## %bb.19:
	movq	_HFI1_RCVCTRL_CTXT_DIS@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	jne	LBB0_21
## %bb.20:
	movq	_RCV_CTXT_CTRL_TAIL_UPD_SMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ebx
LBB0_21:
	movq	_HFI1_RCVCTRL_TIDFLOW_ENB@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	andl	%r13d, %ecx
	movq	_RCV_CTXT_CTRL_TID_FLOW_ENABLE_SMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmovnel	%eax, %ecx
	orl	%ebx, %ecx
	movq	_HFI1_RCVCTRL_TIDFLOW_DIS@GOTPCREL(%rip), %rdx
	notl	%eax
	andl	%ebx, %eax
	testl	%r13d, (%rdx)
	cmovel	%ecx, %eax
	movq	_HFI1_RCVCTRL_ONE_PKT_EGR_ENB@GOTPCREL(%rip), %rcx
	testl	%r13d, (%rcx)
	je	LBB0_22
## %bb.23:
	movq	_RCV_CTXT_CTRL_EGR_BUF_SIZE_SMASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movq	_RCV_CTXT_CTRL_ONE_PACKET_PER_EGR_BUFFER_SMASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, %eax
	jmp	LBB0_24
LBB0_22:
	movq	_RCV_CTXT_CTRL_ONE_PACKET_PER_EGR_BUFFER_SMASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_24:
	movq	_HFI1_RCVCTRL_ONE_PKT_EGR_DIS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%r13d, %edx
	notl	%ecx
	xorl	%esi, %esi
	cmpl	$1, %edx
	sbbl	%esi, %esi
	orl	%ecx, %esi
	andl	%eax, %esi
	movq	_HFI1_RCVCTRL_NO_RHQ_DROP_ENB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r13d, %eax
	movq	_RCV_CTXT_CTRL_DONT_DROP_RHQ_FULL_SMASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmovnel	%ecx, %eax
	orl	%esi, %eax
	movq	_HFI1_RCVCTRL_NO_RHQ_DROP_DIS@GOTPCREL(%rip), %rdx
	notl	%ecx
	andl	%esi, %ecx
	testl	%r13d, (%rdx)
	cmovel	%eax, %ecx
	movq	_HFI1_RCVCTRL_NO_EGR_DROP_ENB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r13d, %eax
	movq	_RCV_CTXT_CTRL_DONT_DROP_EGR_FULL_SMASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	cmovnel	%ebx, %eax
	orl	%ecx, %eax
	movq	_HFI1_RCVCTRL_NO_EGR_DROP_DIS@GOTPCREL(%rip), %rdx
	notl	%ebx
	andl	%ecx, %ebx
	testl	%r13d, (%rdx)
	cmovel	%eax, %ebx
	movq	_HFI1_RCVCTRL_URGENT_ENB@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_26
## %bb.25:
	movq	_IS_RCVURGENT_START@GOTPCREL(%rip), %rax
	movq	(%r12), %rdx
	addq	(%rax), %rdx
	movq	%r15, %rdi
	movq	%rdx, %rsi
	movl	$1, %ecx
	callq	_set_intr_bits
LBB0_26:
	movq	_HFI1_RCVCTRL_URGENT_DIS@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_28
## %bb.27:
	movq	_IS_RCVURGENT_START@GOTPCREL(%rip), %rax
	movq	(%r12), %rdx
	addq	(%rax), %rdx
	movq	%r15, %rdi
	movq	%rdx, %rsi
	xorl	%ecx, %ecx
	callq	_set_intr_bits
LBB0_28:
	movq	_RCVCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	movl	%ebx, %ecx
	callq	_hfi1_cdbg
	movq	_RCV_CTXT_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%ebx, %ecx
	callq	_write_kctxt_csr
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_33
## %bb.29:
	movq	_RCV_CTXT_CTRL_DONT_DROP_RHQ_FULL_SMASK@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_32
## %bb.30:
	movq	_RCV_CTXT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_read_kctxt_csr
	testl	%eax, %eax
	je	LBB0_32
## %bb.31:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dd_dev_info
	movq	_RCV_HDR_HEAD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_read_uctxt_csr
	movl	(%rbx), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$16, %ecx
	callq	_write_uctxt_csr
	movl	(%rbx), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_write_uctxt_csr
	movl	(%rbx), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_read_uctxt_csr
	movq	_RCV_CTXT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_read_kctxt_csr
	testl	%eax, %eax
	leaq	L_.str.4(%rip), %rcx
	leaq	L_.str.5(%rip), %r8
	cmoveq	%rcx, %r8
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dd_dev_info
LBB0_32:
	movq	_RCV_AVAIL_TIME_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	32(%r12), %eax
	movq	_RCV_AVAIL_TIME_OUT_TIME_OUT_RELOAD_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%eax, %ecx
	callq	_write_kctxt_csr
	movq	_rcv_intr_count@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_RCV_HDR_HEAD_COUNTER_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_RCV_HDR_HEAD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%eax, %ecx
	callq	_write_uctxt_csr
LBB0_33:
	movq	_HFI1_RCVCTRL_CTXT_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_HFI1_RCVCTRL_TAILUPD_DIS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%r13d, %eax
	je	LBB0_34
## %bb.35:
	movq	_RCV_HDR_TAIL_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r15), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write_kctxt_csr                ## TAILCALL
LBB0_34:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RCVCTRL,4,2                    ## @RCVCTRL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ctxt %d op 0x%x"

	.comm	_RCV_CTXT_CTRL,4,2              ## @RCV_CTXT_CTRL
	.comm	_HFI1_RCVCTRL_CTXT_ENB,4,2      ## @HFI1_RCVCTRL_CTXT_ENB
	.comm	_RCV_CTXT_CTRL_ENABLE_SMASK,4,2 ## @RCV_CTXT_CTRL_ENABLE_SMASK
	.comm	_RCV_HDR_ADDR,4,2               ## @RCV_HDR_ADDR
	.comm	_RCV_HDR_TAIL_ADDR,4,2          ## @RCV_HDR_TAIL_ADDR
	.comm	_RCV_CTXT_CTRL_EGR_BUF_SIZE_SMASK,4,2 ## @RCV_CTXT_CTRL_EGR_BUF_SIZE_SMASK
	.comm	_RCV_CTXT_CTRL_EGR_BUF_SIZE_MASK,4,2 ## @RCV_CTXT_CTRL_EGR_BUF_SIZE_MASK
	.comm	_RCV_CTXT_CTRL_EGR_BUF_SIZE_SHIFT,4,2 ## @RCV_CTXT_CTRL_EGR_BUF_SIZE_SHIFT
	.comm	_RCV_HDR_HEAD,4,2               ## @RCV_HDR_HEAD
	.comm	_RCV_EGR_INDEX_HEAD,4,2         ## @RCV_EGR_INDEX_HEAD
	.comm	_RCV_SHIFT,4,2                  ## @RCV_SHIFT
	.comm	_RCV_EGR_CTRL_EGR_CNT_MASK,4,2  ## @RCV_EGR_CTRL_EGR_CNT_MASK
	.comm	_RCV_EGR_CTRL_EGR_CNT_SHIFT,4,2 ## @RCV_EGR_CTRL_EGR_CNT_SHIFT
	.comm	_RCV_EGR_CTRL_EGR_BASE_INDEX_MASK,4,2 ## @RCV_EGR_CTRL_EGR_BASE_INDEX_MASK
	.comm	_RCV_EGR_CTRL_EGR_BASE_INDEX_SHIFT,4,2 ## @RCV_EGR_CTRL_EGR_BASE_INDEX_SHIFT
	.comm	_RCV_EGR_CTRL,4,2               ## @RCV_EGR_CTRL
	.comm	_RCV_TID_CTRL_TID_PAIR_CNT_MASK,4,2 ## @RCV_TID_CTRL_TID_PAIR_CNT_MASK
	.comm	_RCV_TID_CTRL_TID_PAIR_CNT_SHIFT,4,2 ## @RCV_TID_CTRL_TID_PAIR_CNT_SHIFT
	.comm	_RCV_TID_CTRL_TID_BASE_INDEX_MASK,4,2 ## @RCV_TID_CTRL_TID_BASE_INDEX_MASK
	.comm	_RCV_TID_CTRL_TID_BASE_INDEX_SHIFT,4,2 ## @RCV_TID_CTRL_TID_BASE_INDEX_SHIFT
	.comm	_RCV_TID_CTRL,4,2               ## @RCV_TID_CTRL
	.comm	_HFI1_CTRL_CTXT,8,3             ## @HFI1_CTRL_CTXT
	.comm	_RCV_VL15,4,2                   ## @RCV_VL15
	.comm	_HFI1_RCVCTRL_CTXT_DIS,4,2      ## @HFI1_RCVCTRL_CTXT_DIS
	.comm	_RCV_CTXT_CTRL_TAIL_UPD_SMASK,4,2 ## @RCV_CTXT_CTRL_TAIL_UPD_SMASK
	.comm	_HFI1_RCVCTRL_INTRAVAIL_ENB,4,2 ## @HFI1_RCVCTRL_INTRAVAIL_ENB
	.comm	_IS_RCVAVAIL_START,8,3          ## @IS_RCVAVAIL_START
	.comm	_RCV_CTXT_CTRL_INTR_AVAIL_SMASK,4,2 ## @RCV_CTXT_CTRL_INTR_AVAIL_SMASK
	.comm	_HFI1_RCVCTRL_INTRAVAIL_DIS,4,2 ## @HFI1_RCVCTRL_INTRAVAIL_DIS
	.comm	_HFI1_RCVCTRL_TAILUPD_ENB,4,2   ## @HFI1_RCVCTRL_TAILUPD_ENB
	.comm	_HFI1_RCVCTRL_TAILUPD_DIS,4,2   ## @HFI1_RCVCTRL_TAILUPD_DIS
	.comm	_HFI1_RCVCTRL_TIDFLOW_ENB,4,2   ## @HFI1_RCVCTRL_TIDFLOW_ENB
	.comm	_RCV_CTXT_CTRL_TID_FLOW_ENABLE_SMASK,4,2 ## @RCV_CTXT_CTRL_TID_FLOW_ENABLE_SMASK
	.comm	_HFI1_RCVCTRL_TIDFLOW_DIS,4,2   ## @HFI1_RCVCTRL_TIDFLOW_DIS
	.comm	_HFI1_RCVCTRL_ONE_PKT_EGR_ENB,4,2 ## @HFI1_RCVCTRL_ONE_PKT_EGR_ENB
	.comm	_RCV_CTXT_CTRL_ONE_PACKET_PER_EGR_BUFFER_SMASK,4,2 ## @RCV_CTXT_CTRL_ONE_PACKET_PER_EGR_BUFFER_SMASK
	.comm	_HFI1_RCVCTRL_ONE_PKT_EGR_DIS,4,2 ## @HFI1_RCVCTRL_ONE_PKT_EGR_DIS
	.comm	_HFI1_RCVCTRL_NO_RHQ_DROP_ENB,4,2 ## @HFI1_RCVCTRL_NO_RHQ_DROP_ENB
	.comm	_RCV_CTXT_CTRL_DONT_DROP_RHQ_FULL_SMASK,4,2 ## @RCV_CTXT_CTRL_DONT_DROP_RHQ_FULL_SMASK
	.comm	_HFI1_RCVCTRL_NO_RHQ_DROP_DIS,4,2 ## @HFI1_RCVCTRL_NO_RHQ_DROP_DIS
	.comm	_HFI1_RCVCTRL_NO_EGR_DROP_ENB,4,2 ## @HFI1_RCVCTRL_NO_EGR_DROP_ENB
	.comm	_RCV_CTXT_CTRL_DONT_DROP_EGR_FULL_SMASK,4,2 ## @RCV_CTXT_CTRL_DONT_DROP_EGR_FULL_SMASK
	.comm	_HFI1_RCVCTRL_NO_EGR_DROP_DIS,4,2 ## @HFI1_RCVCTRL_NO_EGR_DROP_DIS
	.comm	_HFI1_RCVCTRL_URGENT_ENB,4,2    ## @HFI1_RCVCTRL_URGENT_ENB
	.comm	_IS_RCVURGENT_START,8,3         ## @IS_RCVURGENT_START
	.comm	_HFI1_RCVCTRL_URGENT_DIS,4,2    ## @HFI1_RCVCTRL_URGENT_DIS
L_.str.1:                               ## @.str.1
	.asciz	"ctxt %d rcvctrl 0x%llx\n"

	.comm	_RCV_CTXT_STATUS,4,2            ## @RCV_CTXT_STATUS
L_.str.2:                               ## @.str.2
	.asciz	"ctxt %d status %lld (blocked)\n"

L_.str.3:                               ## @.str.3
	.asciz	"ctxt %d status %lld (%s blocked)\n"

L_.str.4:                               ## @.str.4
	.asciz	"not"

L_.str.5:                               ## @.str.5
	.asciz	"still"

	.comm	_RCV_AVAIL_TIME_OUT,4,2         ## @RCV_AVAIL_TIME_OUT
	.comm	_RCV_AVAIL_TIME_OUT_TIME_OUT_RELOAD_SHIFT,4,2 ## @RCV_AVAIL_TIME_OUT_TIME_OUT_RELOAD_SHIFT
	.comm	_rcv_intr_count,8,3             ## @rcv_intr_count
	.comm	_RCV_HDR_HEAD_COUNTER_SHIFT,4,2 ## @RCV_HDR_HEAD_COUNTER_SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi1_rcvctrl                   ; -- Begin function hfi1_rcvctrl
	.p2align	2
_hfi1_rcvctrl:                          ; @hfi1_rcvctrl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	x2, LBB0_37
; %bb.1:
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x20, [x2]
Lloh0:
	adrp	x8, _RCVCTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RCVCTRL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x21
	bl	_hfi1_cdbg
Lloh5:
	adrp	x8, _RCV_CTXT_CTRL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RCV_CTXT_CTRL@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_read_kctxt_csr
	mov	x23, x0
Lloh8:
	adrp	x8, _HFI1_RCVCTRL_CTXT_ENB@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HFI1_RCVCTRL_CTXT_ENB@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x28, _RCV_CTXT_CTRL_ENABLE_SMASK@GOTPAGE
Lloh12:
	ldr	x28, [x28, _RCV_CTXT_CTRL_ENABLE_SMASK@GOTPAGEOFF]
	tst	w8, w21
	b.eq	LBB0_3
; %bb.2:
	ldr	w8, [x28]
	tst	w8, w23
	b.eq	LBB0_4
LBB0_3:
	mov	w27, #1
	b	LBB0_9
LBB0_4:
Lloh13:
	adrp	x8, _RCV_HDR_ADDR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RCV_HDR_ADDR@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	ldr	w3, [x22, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_write_kctxt_csr
	ldr	x8, [x22, #40]
	cbz	x8, LBB0_6
; %bb.5:
Lloh16:
	adrp	x8, _RCV_HDR_TAIL_ADDR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _RCV_HDR_TAIL_ADDR@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	ldr	w3, [x22, #12]
	mov	x0, x19
	mov	x1, x20
	bl	_write_kctxt_csr
LBB0_6:
	mov	w8, #1
	str	w8, [x22, #16]
	str	xzr, [x22, #64]
	ldr	w24, [x22, #56]
	mov	x0, x22
	bl	_rcvhdrq_size
	mov	x2, x0
	mov	x0, x24
	mov	w1, #0
	bl	_memset
	ldr	x8, [x19, #8]
	str	x8, [x22, #32]
	ldr	w8, [x28]
	orr	w8, w8, w23
Lloh19:
	adrp	x9, _RCV_CTXT_CTRL_EGR_BUF_SIZE_SMASK@GOTPAGE
Lloh20:
	ldr	x9, [x9, _RCV_CTXT_CTRL_EGR_BUF_SIZE_SMASK@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	bic	w23, w8, w9
	ldr	w0, [x22, #52]
	bl	_encoded_size
Lloh22:
	adrp	x8, _RCV_CTXT_CTRL_EGR_BUF_SIZE_MASK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _RCV_CTXT_CTRL_EGR_BUF_SIZE_MASK@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh25:
	adrp	x9, _RCV_CTXT_CTRL_EGR_BUF_SIZE_SHIFT@GOTPAGE
Lloh26:
	ldr	x9, [x9, _RCV_CTXT_CTRL_EGR_BUF_SIZE_SHIFT@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	orr	w23, w8, w23
Lloh28:
	adrp	x8, _RCV_HDR_HEAD@GOTPAGE
Lloh29:
	ldr	x8, [x8, _RCV_HDR_HEAD@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	bl	_write_uctxt_csr
Lloh31:
	adrp	x8, _RCV_EGR_INDEX_HEAD@GOTPAGE
Lloh32:
	ldr	x8, [x8, _RCV_EGR_INDEX_HEAD@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	bl	_write_uctxt_csr
	ldr	w8, [x22, #48]
Lloh34:
	adrp	x24, _RCV_SHIFT@GOTPAGE
Lloh35:
	ldr	x24, [x24, _RCV_SHIFT@GOTPAGEOFF]
	ldr	w9, [x24]
	asr	w8, w8, w9
Lloh36:
	adrp	x10, _RCV_EGR_CTRL_EGR_CNT_MASK@GOTPAGE
Lloh37:
	ldr	x10, [x10, _RCV_EGR_CTRL_EGR_CNT_MASK@GOTPAGEOFF]
Lloh38:
	ldr	w10, [x10]
	and	w8, w8, w10
Lloh39:
	adrp	x10, _RCV_EGR_CTRL_EGR_CNT_SHIFT@GOTPAGE
Lloh40:
	ldr	x10, [x10, _RCV_EGR_CTRL_EGR_CNT_SHIFT@GOTPAGEOFF]
Lloh41:
	ldr	w10, [x10]
	lsl	w8, w8, w10
	ldr	w10, [x22, #20]
	asr	w9, w10, w9
Lloh42:
	adrp	x10, _RCV_EGR_CTRL_EGR_BASE_INDEX_MASK@GOTPAGE
Lloh43:
	ldr	x10, [x10, _RCV_EGR_CTRL_EGR_BASE_INDEX_MASK@GOTPAGEOFF]
Lloh44:
	ldr	w10, [x10]
	and	w9, w9, w10
Lloh45:
	adrp	x10, _RCV_EGR_CTRL_EGR_BASE_INDEX_SHIFT@GOTPAGE
Lloh46:
	ldr	x10, [x10, _RCV_EGR_CTRL_EGR_BASE_INDEX_SHIFT@GOTPAGEOFF]
Lloh47:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w3, w9, w8
Lloh48:
	adrp	x8, _RCV_EGR_CTRL@GOTPAGE
Lloh49:
	ldr	x8, [x8, _RCV_EGR_CTRL@GOTPAGEOFF]
Lloh50:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_write_kctxt_csr
	ldr	w8, [x24]
	ldp	w9, w10, [x22, #24]
	asr	w9, w9, w8
Lloh51:
	adrp	x11, _RCV_TID_CTRL_TID_PAIR_CNT_MASK@GOTPAGE
Lloh52:
	ldr	x11, [x11, _RCV_TID_CTRL_TID_PAIR_CNT_MASK@GOTPAGEOFF]
Lloh53:
	ldr	w11, [x11]
	and	w9, w9, w11
Lloh54:
	adrp	x11, _RCV_TID_CTRL_TID_PAIR_CNT_SHIFT@GOTPAGE
Lloh55:
	ldr	x11, [x11, _RCV_TID_CTRL_TID_PAIR_CNT_SHIFT@GOTPAGEOFF]
Lloh56:
	ldr	w11, [x11]
	lsl	w9, w9, w11
	asr	w8, w10, w8
Lloh57:
	adrp	x10, _RCV_TID_CTRL_TID_BASE_INDEX_MASK@GOTPAGE
Lloh58:
	ldr	x10, [x10, _RCV_TID_CTRL_TID_BASE_INDEX_MASK@GOTPAGEOFF]
Lloh59:
	ldr	w10, [x10]
	and	w8, w8, w10
Lloh60:
	adrp	x10, _RCV_TID_CTRL_TID_BASE_INDEX_SHIFT@GOTPAGE
Lloh61:
	ldr	x10, [x10, _RCV_TID_CTRL_TID_BASE_INDEX_SHIFT@GOTPAGEOFF]
Lloh62:
	ldr	w10, [x10]
	lsl	w8, w8, w10
	orr	w3, w8, w9
Lloh63:
	adrp	x8, _RCV_TID_CTRL@GOTPAGE
Lloh64:
	ldr	x8, [x8, _RCV_TID_CTRL@GOTPAGEOFF]
Lloh65:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_write_kctxt_csr
Lloh66:
	adrp	x8, _HFI1_CTRL_CTXT@GOTPAGE
Lloh67:
	ldr	x8, [x8, _HFI1_CTRL_CTXT@GOTPAGEOFF]
Lloh68:
	ldr	x8, [x8]
	cmp	x20, x8
	b.ne	LBB0_8
; %bb.7:
Lloh69:
	adrp	x8, _RCV_VL15@GOTPAGE
Lloh70:
	ldr	x8, [x8, _RCV_VL15@GOTPAGEOFF]
Lloh71:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_write_csr
LBB0_8:
	mov	w27, #0
LBB0_9:
Lloh72:
	adrp	x24, _HFI1_RCVCTRL_CTXT_DIS@GOTPAGE
Lloh73:
	ldr	x24, [x24, _HFI1_RCVCTRL_CTXT_DIS@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w21
	b.eq	LBB0_13
; %bb.10:
Lloh74:
	adrp	x8, _RCV_VL15@GOTPAGE
Lloh75:
	ldr	x8, [x8, _RCV_VL15@GOTPAGEOFF]
Lloh76:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_write_csr
	ldr	w3, [x19]
	cbz	w3, LBB0_12
; %bb.11:
Lloh77:
	adrp	x8, _RCV_HDR_TAIL_ADDR@GOTPAGE
Lloh78:
	ldr	x8, [x8, _RCV_HDR_TAIL_ADDR@GOTPAGEOFF]
Lloh79:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_write_kctxt_csr
Lloh80:
	adrp	x8, _RCV_CTXT_CTRL_TAIL_UPD_SMASK@GOTPAGE
Lloh81:
	ldr	x8, [x8, _RCV_CTXT_CTRL_TAIL_UPD_SMASK@GOTPAGEOFF]
Lloh82:
	ldr	w8, [x8]
	orr	w23, w8, w23
LBB0_12:
	ldr	w8, [x28]
	bic	w23, w23, w8
LBB0_13:
Lloh83:
	adrp	x8, _HFI1_RCVCTRL_INTRAVAIL_ENB@GOTPAGE
Lloh84:
	ldr	x8, [x8, _HFI1_RCVCTRL_INTRAVAIL_ENB@GOTPAGEOFF]
Lloh85:
	ldr	w8, [x8]
Lloh86:
	adrp	x28, _IS_RCVAVAIL_START@GOTPAGE
Lloh87:
	ldr	x28, [x28, _IS_RCVAVAIL_START@GOTPAGEOFF]
Lloh88:
	adrp	x25, _RCV_CTXT_CTRL_INTR_AVAIL_SMASK@GOTPAGE
Lloh89:
	ldr	x25, [x25, _RCV_CTXT_CTRL_INTR_AVAIL_SMASK@GOTPAGEOFF]
	tst	w8, w21
	b.eq	LBB0_15
; %bb.14:
	ldr	x8, [x28]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	x0, x19
	mov	x2, x1
	mov	w3, #1
	bl	_set_intr_bits
	ldr	w8, [x25]
	orr	w23, w8, w23
LBB0_15:
Lloh90:
	adrp	x8, _HFI1_RCVCTRL_INTRAVAIL_DIS@GOTPAGE
Lloh91:
	ldr	x8, [x8, _HFI1_RCVCTRL_INTRAVAIL_DIS@GOTPAGEOFF]
Lloh92:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_17
; %bb.16:
	ldr	x8, [x28]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	x0, x19
	mov	x2, x1
	mov	w3, #0
	bl	_set_intr_bits
	ldr	w8, [x25]
	bic	w23, w23, w8
LBB0_17:
Lloh93:
	adrp	x8, _HFI1_RCVCTRL_TAILUPD_ENB@GOTPAGE
Lloh94:
	ldr	x8, [x8, _HFI1_RCVCTRL_TAILUPD_ENB@GOTPAGEOFF]
Lloh95:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_20
; %bb.18:
	ldr	x8, [x22, #40]
	cbz	x8, LBB0_20
; %bb.19:
Lloh96:
	adrp	x8, _RCV_CTXT_CTRL_TAIL_UPD_SMASK@GOTPAGE
Lloh97:
	ldr	x8, [x8, _RCV_CTXT_CTRL_TAIL_UPD_SMASK@GOTPAGEOFF]
Lloh98:
	ldr	w8, [x8]
	orr	w23, w8, w23
LBB0_20:
Lloh99:
	adrp	x28, _HFI1_RCVCTRL_TAILUPD_DIS@GOTPAGE
Lloh100:
	ldr	x28, [x28, _HFI1_RCVCTRL_TAILUPD_DIS@GOTPAGEOFF]
	ldr	w8, [x28]
	tst	w8, w21
	b.eq	LBB0_23
; %bb.21:
	ldr	w8, [x24]
	tst	w8, w21
	b.ne	LBB0_23
; %bb.22:
Lloh101:
	adrp	x8, _RCV_CTXT_CTRL_TAIL_UPD_SMASK@GOTPAGE
Lloh102:
	ldr	x8, [x8, _RCV_CTXT_CTRL_TAIL_UPD_SMASK@GOTPAGEOFF]
Lloh103:
	ldr	w8, [x8]
	bic	w23, w23, w8
LBB0_23:
Lloh104:
	adrp	x8, _HFI1_RCVCTRL_TIDFLOW_ENB@GOTPAGE
Lloh105:
	ldr	x8, [x8, _HFI1_RCVCTRL_TIDFLOW_ENB@GOTPAGEOFF]
Lloh106:
	ldr	w8, [x8]
Lloh107:
	adrp	x9, _RCV_CTXT_CTRL_TID_FLOW_ENABLE_SMASK@GOTPAGE
Lloh108:
	ldr	x9, [x9, _RCV_CTXT_CTRL_TID_FLOW_ENABLE_SMASK@GOTPAGEOFF]
Lloh109:
	ldr	w9, [x9]
	tst	w8, w21
	csel	w8, wzr, w9, eq
	orr	w8, w8, w23
Lloh110:
	adrp	x10, _HFI1_RCVCTRL_TIDFLOW_DIS@GOTPAGE
Lloh111:
	ldr	x10, [x10, _HFI1_RCVCTRL_TIDFLOW_DIS@GOTPAGEOFF]
Lloh112:
	ldr	w10, [x10]
	bic	w9, w23, w9
	tst	w10, w21
	csel	w8, w8, w9, eq
Lloh113:
	adrp	x9, _HFI1_RCVCTRL_ONE_PKT_EGR_ENB@GOTPAGE
Lloh114:
	ldr	x9, [x9, _HFI1_RCVCTRL_ONE_PKT_EGR_ENB@GOTPAGEOFF]
Lloh115:
	ldr	w9, [x9]
	tst	w9, w21
	b.eq	LBB0_25
; %bb.24:
Lloh116:
	adrp	x9, _RCV_CTXT_CTRL_EGR_BUF_SIZE_SMASK@GOTPAGE
Lloh117:
	ldr	x9, [x9, _RCV_CTXT_CTRL_EGR_BUF_SIZE_SMASK@GOTPAGEOFF]
Lloh118:
	ldr	w9, [x9]
	bic	w8, w8, w9
Lloh119:
	adrp	x9, _RCV_CTXT_CTRL_ONE_PACKET_PER_EGR_BUFFER_SMASK@GOTPAGE
Lloh120:
	ldr	x9, [x9, _RCV_CTXT_CTRL_ONE_PACKET_PER_EGR_BUFFER_SMASK@GOTPAGEOFF]
Lloh121:
	ldr	w9, [x9]
	orr	w8, w8, w9
	b	LBB0_26
LBB0_25:
Lloh122:
	adrp	x9, _RCV_CTXT_CTRL_ONE_PACKET_PER_EGR_BUFFER_SMASK@GOTPAGE
Lloh123:
	ldr	x9, [x9, _RCV_CTXT_CTRL_ONE_PACKET_PER_EGR_BUFFER_SMASK@GOTPAGEOFF]
Lloh124:
	ldr	w9, [x9]
LBB0_26:
Lloh125:
	adrp	x10, _HFI1_RCVCTRL_ONE_PKT_EGR_DIS@GOTPAGE
Lloh126:
	ldr	x10, [x10, _HFI1_RCVCTRL_ONE_PKT_EGR_DIS@GOTPAGEOFF]
Lloh127:
	ldr	w10, [x10]
	tst	w10, w21
	mov	w10, #-1
	csinv	w9, w10, w9, eq
	and	w8, w9, w8
Lloh128:
	adrp	x9, _HFI1_RCVCTRL_NO_RHQ_DROP_ENB@GOTPAGE
Lloh129:
	ldr	x9, [x9, _HFI1_RCVCTRL_NO_RHQ_DROP_ENB@GOTPAGEOFF]
Lloh130:
	ldr	w9, [x9]
Lloh131:
	adrp	x25, _RCV_CTXT_CTRL_DONT_DROP_RHQ_FULL_SMASK@GOTPAGE
Lloh132:
	ldr	x25, [x25, _RCV_CTXT_CTRL_DONT_DROP_RHQ_FULL_SMASK@GOTPAGEOFF]
	ldr	w10, [x25]
	tst	w9, w21
	csel	w9, wzr, w10, eq
	orr	w9, w9, w8
Lloh133:
	adrp	x11, _HFI1_RCVCTRL_NO_RHQ_DROP_DIS@GOTPAGE
Lloh134:
	ldr	x11, [x11, _HFI1_RCVCTRL_NO_RHQ_DROP_DIS@GOTPAGEOFF]
Lloh135:
	ldr	w11, [x11]
	bic	w8, w8, w10
	tst	w11, w21
	csel	w8, w9, w8, eq
Lloh136:
	adrp	x9, _HFI1_RCVCTRL_NO_EGR_DROP_ENB@GOTPAGE
Lloh137:
	ldr	x9, [x9, _HFI1_RCVCTRL_NO_EGR_DROP_ENB@GOTPAGEOFF]
Lloh138:
	ldr	w9, [x9]
Lloh139:
	adrp	x10, _RCV_CTXT_CTRL_DONT_DROP_EGR_FULL_SMASK@GOTPAGE
Lloh140:
	ldr	x10, [x10, _RCV_CTXT_CTRL_DONT_DROP_EGR_FULL_SMASK@GOTPAGEOFF]
Lloh141:
	ldr	w10, [x10]
	tst	w9, w21
	csel	w9, wzr, w10, eq
	orr	w9, w9, w8
Lloh142:
	adrp	x11, _HFI1_RCVCTRL_NO_EGR_DROP_DIS@GOTPAGE
Lloh143:
	ldr	x11, [x11, _HFI1_RCVCTRL_NO_EGR_DROP_DIS@GOTPAGEOFF]
Lloh144:
	ldr	w11, [x11]
	bic	w8, w8, w10
	tst	w11, w21
	csel	w23, w9, w8, eq
Lloh145:
	adrp	x8, _HFI1_RCVCTRL_URGENT_ENB@GOTPAGE
Lloh146:
	ldr	x8, [x8, _HFI1_RCVCTRL_URGENT_ENB@GOTPAGEOFF]
Lloh147:
	ldr	w8, [x8]
Lloh148:
	adrp	x26, _IS_RCVURGENT_START@GOTPAGE
Lloh149:
	ldr	x26, [x26, _IS_RCVURGENT_START@GOTPAGEOFF]
	tst	w8, w21
	b.eq	LBB0_28
; %bb.27:
	ldr	x8, [x26]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	x0, x19
	mov	x2, x1
	mov	w3, #1
	bl	_set_intr_bits
LBB0_28:
Lloh150:
	adrp	x8, _HFI1_RCVCTRL_URGENT_DIS@GOTPAGE
Lloh151:
	ldr	x8, [x8, _HFI1_RCVCTRL_URGENT_DIS@GOTPAGEOFF]
Lloh152:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_30
; %bb.29:
	ldr	x8, [x26]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	x0, x19
	mov	x2, x1
	mov	w3, #0
	bl	_set_intr_bits
LBB0_30:
Lloh153:
	adrp	x8, _RCVCTRL@GOTPAGE
Lloh154:
	ldr	x8, [x8, _RCVCTRL@GOTPAGEOFF]
Lloh155:
	ldr	w0, [x8]
Lloh156:
	adrp	x1, l_.str.1@PAGE
Lloh157:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	mov	x3, x23
	bl	_hfi1_cdbg
Lloh158:
	adrp	x8, _RCV_CTXT_CTRL@GOTPAGE
Lloh159:
	ldr	x8, [x8, _RCV_CTXT_CTRL@GOTPAGEOFF]
Lloh160:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x3, x23
	bl	_write_kctxt_csr
	tbnz	w27, #0, LBB0_35
; %bb.31:
	ldr	w8, [x25]
	tst	w8, w23
	b.eq	LBB0_34
; %bb.32:
Lloh161:
	adrp	x23, _RCV_CTXT_STATUS@GOTPAGE
Lloh162:
	ldr	x23, [x23, _RCV_CTXT_STATUS@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x19
	mov	x1, x20
	bl	_read_kctxt_csr
	cbz	w0, LBB0_34
; %bb.33:
	mov	x3, x0
Lloh163:
	adrp	x1, l_.str.2@PAGE
Lloh164:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dd_dev_info
Lloh165:
	adrp	x25, _RCV_HDR_HEAD@GOTPAGE
Lloh166:
	ldr	x25, [x25, _RCV_HDR_HEAD@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	x0, x19
	mov	x1, x20
	bl	_read_uctxt_csr
	ldr	w2, [x25]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #16
	bl	_write_uctxt_csr
	ldr	w2, [x25]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	bl	_write_uctxt_csr
	ldr	w2, [x25]
	mov	x0, x19
	mov	x1, x20
	bl	_read_uctxt_csr
	ldr	w2, [x23]
	mov	x0, x19
	mov	x1, x20
	bl	_read_kctxt_csr
	mov	x3, x0
Lloh167:
	adrp	x8, l_.str.5@PAGE
Lloh168:
	add	x8, x8, l_.str.5@PAGEOFF
Lloh169:
	adrp	x9, l_.str.4@PAGE
Lloh170:
	add	x9, x9, l_.str.4@PAGEOFF
	cmp	w0, #0
	csel	x8, x9, x8, eq
	str	x8, [sp]
Lloh171:
	adrp	x1, l_.str.3@PAGE
Lloh172:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dd_dev_info
LBB0_34:
Lloh173:
	adrp	x8, _RCV_AVAIL_TIME_OUT@GOTPAGE
Lloh174:
	ldr	x8, [x8, _RCV_AVAIL_TIME_OUT@GOTPAGEOFF]
Lloh175:
	ldr	w2, [x8]
	ldr	w8, [x22, #32]
Lloh176:
	adrp	x9, _RCV_AVAIL_TIME_OUT_TIME_OUT_RELOAD_SHIFT@GOTPAGE
Lloh177:
	ldr	x9, [x9, _RCV_AVAIL_TIME_OUT_TIME_OUT_RELOAD_SHIFT@GOTPAGEOFF]
Lloh178:
	ldr	w9, [x9]
	lsl	w3, w8, w9
	mov	x0, x19
	mov	x1, x20
	bl	_write_kctxt_csr
Lloh179:
	adrp	x8, _rcv_intr_count@GOTPAGE
Lloh180:
	ldr	x8, [x8, _rcv_intr_count@GOTPAGEOFF]
Lloh181:
	adrp	x9, _RCV_HDR_HEAD_COUNTER_SHIFT@GOTPAGE
Lloh182:
	ldr	x9, [x9, _RCV_HDR_HEAD_COUNTER_SHIFT@GOTPAGEOFF]
Lloh183:
	ldr	w8, [x8]
Lloh184:
	ldr	w9, [x9]
	lsl	w3, w8, w9
Lloh185:
	adrp	x8, _RCV_HDR_HEAD@GOTPAGE
Lloh186:
	ldr	x8, [x8, _RCV_HDR_HEAD@GOTPAGEOFF]
Lloh187:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_write_uctxt_csr
LBB0_35:
	ldr	w8, [x28]
	ldr	w9, [x24]
	orr	w8, w9, w8
	tst	w8, w21
	b.eq	LBB0_37
; %bb.36:
Lloh188:
	adrp	x8, _RCV_HDR_TAIL_ADDR@GOTPAGE
Lloh189:
	ldr	x8, [x8, _RCV_HDR_TAIL_ADDR@GOTPAGEOFF]
Lloh190:
	ldr	w2, [x8]
	ldr	w3, [x19]
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_write_kctxt_csr
LBB0_37:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGot	Lloh88, Lloh89
	.loh AdrpLdrGot	Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpLdrGot	Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh113, Lloh114, Lloh115
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.loh AdrpLdrGotLdr	Lloh107, Lloh108, Lloh109
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpLdrGotLdr	Lloh119, Lloh120, Lloh121
	.loh AdrpLdrGotLdr	Lloh116, Lloh117, Lloh118
	.loh AdrpLdrGotLdr	Lloh122, Lloh123, Lloh124
	.loh AdrpLdrGot	Lloh148, Lloh149
	.loh AdrpLdrGotLdr	Lloh145, Lloh146, Lloh147
	.loh AdrpLdrGotLdr	Lloh142, Lloh143, Lloh144
	.loh AdrpLdrGotLdr	Lloh139, Lloh140, Lloh141
	.loh AdrpLdrGotLdr	Lloh136, Lloh137, Lloh138
	.loh AdrpLdrGotLdr	Lloh133, Lloh134, Lloh135
	.loh AdrpLdrGot	Lloh131, Lloh132
	.loh AdrpLdrGotLdr	Lloh128, Lloh129, Lloh130
	.loh AdrpLdrGotLdr	Lloh125, Lloh126, Lloh127
	.loh AdrpLdrGotLdr	Lloh150, Lloh151, Lloh152
	.loh AdrpLdrGotLdr	Lloh158, Lloh159, Lloh160
	.loh AdrpAdd	Lloh156, Lloh157
	.loh AdrpLdrGotLdr	Lloh153, Lloh154, Lloh155
	.loh AdrpLdrGot	Lloh161, Lloh162
	.loh AdrpAdd	Lloh171, Lloh172
	.loh AdrpAdd	Lloh169, Lloh170
	.loh AdrpAdd	Lloh167, Lloh168
	.loh AdrpLdrGot	Lloh165, Lloh166
	.loh AdrpAdd	Lloh163, Lloh164
	.loh AdrpLdrGotLdr	Lloh185, Lloh186, Lloh187
	.loh AdrpLdrGotLdr	Lloh181, Lloh182, Lloh184
	.loh AdrpLdrGotLdr	Lloh179, Lloh180, Lloh183
	.loh AdrpLdrGotLdr	Lloh176, Lloh177, Lloh178
	.loh AdrpLdrGotLdr	Lloh173, Lloh174, Lloh175
	.loh AdrpLdrGotLdr	Lloh188, Lloh189, Lloh190
	.cfi_endproc
                                        ; -- End function
	.comm	_RCVCTRL,4,2                    ; @RCVCTRL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ctxt %d op 0x%x"

	.comm	_RCV_CTXT_CTRL,4,2              ; @RCV_CTXT_CTRL
	.comm	_HFI1_RCVCTRL_CTXT_ENB,4,2      ; @HFI1_RCVCTRL_CTXT_ENB
	.comm	_RCV_CTXT_CTRL_ENABLE_SMASK,4,2 ; @RCV_CTXT_CTRL_ENABLE_SMASK
	.comm	_RCV_HDR_ADDR,4,2               ; @RCV_HDR_ADDR
	.comm	_RCV_HDR_TAIL_ADDR,4,2          ; @RCV_HDR_TAIL_ADDR
	.comm	_RCV_CTXT_CTRL_EGR_BUF_SIZE_SMASK,4,2 ; @RCV_CTXT_CTRL_EGR_BUF_SIZE_SMASK
	.comm	_RCV_CTXT_CTRL_EGR_BUF_SIZE_MASK,4,2 ; @RCV_CTXT_CTRL_EGR_BUF_SIZE_MASK
	.comm	_RCV_CTXT_CTRL_EGR_BUF_SIZE_SHIFT,4,2 ; @RCV_CTXT_CTRL_EGR_BUF_SIZE_SHIFT
	.comm	_RCV_HDR_HEAD,4,2               ; @RCV_HDR_HEAD
	.comm	_RCV_EGR_INDEX_HEAD,4,2         ; @RCV_EGR_INDEX_HEAD
	.comm	_RCV_SHIFT,4,2                  ; @RCV_SHIFT
	.comm	_RCV_EGR_CTRL_EGR_CNT_MASK,4,2  ; @RCV_EGR_CTRL_EGR_CNT_MASK
	.comm	_RCV_EGR_CTRL_EGR_CNT_SHIFT,4,2 ; @RCV_EGR_CTRL_EGR_CNT_SHIFT
	.comm	_RCV_EGR_CTRL_EGR_BASE_INDEX_MASK,4,2 ; @RCV_EGR_CTRL_EGR_BASE_INDEX_MASK
	.comm	_RCV_EGR_CTRL_EGR_BASE_INDEX_SHIFT,4,2 ; @RCV_EGR_CTRL_EGR_BASE_INDEX_SHIFT
	.comm	_RCV_EGR_CTRL,4,2               ; @RCV_EGR_CTRL
	.comm	_RCV_TID_CTRL_TID_PAIR_CNT_MASK,4,2 ; @RCV_TID_CTRL_TID_PAIR_CNT_MASK
	.comm	_RCV_TID_CTRL_TID_PAIR_CNT_SHIFT,4,2 ; @RCV_TID_CTRL_TID_PAIR_CNT_SHIFT
	.comm	_RCV_TID_CTRL_TID_BASE_INDEX_MASK,4,2 ; @RCV_TID_CTRL_TID_BASE_INDEX_MASK
	.comm	_RCV_TID_CTRL_TID_BASE_INDEX_SHIFT,4,2 ; @RCV_TID_CTRL_TID_BASE_INDEX_SHIFT
	.comm	_RCV_TID_CTRL,4,2               ; @RCV_TID_CTRL
	.comm	_HFI1_CTRL_CTXT,8,3             ; @HFI1_CTRL_CTXT
	.comm	_RCV_VL15,4,2                   ; @RCV_VL15
	.comm	_HFI1_RCVCTRL_CTXT_DIS,4,2      ; @HFI1_RCVCTRL_CTXT_DIS
	.comm	_RCV_CTXT_CTRL_TAIL_UPD_SMASK,4,2 ; @RCV_CTXT_CTRL_TAIL_UPD_SMASK
	.comm	_HFI1_RCVCTRL_INTRAVAIL_ENB,4,2 ; @HFI1_RCVCTRL_INTRAVAIL_ENB
	.comm	_IS_RCVAVAIL_START,8,3          ; @IS_RCVAVAIL_START
	.comm	_RCV_CTXT_CTRL_INTR_AVAIL_SMASK,4,2 ; @RCV_CTXT_CTRL_INTR_AVAIL_SMASK
	.comm	_HFI1_RCVCTRL_INTRAVAIL_DIS,4,2 ; @HFI1_RCVCTRL_INTRAVAIL_DIS
	.comm	_HFI1_RCVCTRL_TAILUPD_ENB,4,2   ; @HFI1_RCVCTRL_TAILUPD_ENB
	.comm	_HFI1_RCVCTRL_TAILUPD_DIS,4,2   ; @HFI1_RCVCTRL_TAILUPD_DIS
	.comm	_HFI1_RCVCTRL_TIDFLOW_ENB,4,2   ; @HFI1_RCVCTRL_TIDFLOW_ENB
	.comm	_RCV_CTXT_CTRL_TID_FLOW_ENABLE_SMASK,4,2 ; @RCV_CTXT_CTRL_TID_FLOW_ENABLE_SMASK
	.comm	_HFI1_RCVCTRL_TIDFLOW_DIS,4,2   ; @HFI1_RCVCTRL_TIDFLOW_DIS
	.comm	_HFI1_RCVCTRL_ONE_PKT_EGR_ENB,4,2 ; @HFI1_RCVCTRL_ONE_PKT_EGR_ENB
	.comm	_RCV_CTXT_CTRL_ONE_PACKET_PER_EGR_BUFFER_SMASK,4,2 ; @RCV_CTXT_CTRL_ONE_PACKET_PER_EGR_BUFFER_SMASK
	.comm	_HFI1_RCVCTRL_ONE_PKT_EGR_DIS,4,2 ; @HFI1_RCVCTRL_ONE_PKT_EGR_DIS
	.comm	_HFI1_RCVCTRL_NO_RHQ_DROP_ENB,4,2 ; @HFI1_RCVCTRL_NO_RHQ_DROP_ENB
	.comm	_RCV_CTXT_CTRL_DONT_DROP_RHQ_FULL_SMASK,4,2 ; @RCV_CTXT_CTRL_DONT_DROP_RHQ_FULL_SMASK
	.comm	_HFI1_RCVCTRL_NO_RHQ_DROP_DIS,4,2 ; @HFI1_RCVCTRL_NO_RHQ_DROP_DIS
	.comm	_HFI1_RCVCTRL_NO_EGR_DROP_ENB,4,2 ; @HFI1_RCVCTRL_NO_EGR_DROP_ENB
	.comm	_RCV_CTXT_CTRL_DONT_DROP_EGR_FULL_SMASK,4,2 ; @RCV_CTXT_CTRL_DONT_DROP_EGR_FULL_SMASK
	.comm	_HFI1_RCVCTRL_NO_EGR_DROP_DIS,4,2 ; @HFI1_RCVCTRL_NO_EGR_DROP_DIS
	.comm	_HFI1_RCVCTRL_URGENT_ENB,4,2    ; @HFI1_RCVCTRL_URGENT_ENB
	.comm	_IS_RCVURGENT_START,8,3         ; @IS_RCVURGENT_START
	.comm	_HFI1_RCVCTRL_URGENT_DIS,4,2    ; @HFI1_RCVCTRL_URGENT_DIS
l_.str.1:                               ; @.str.1
	.asciz	"ctxt %d rcvctrl 0x%llx\n"

	.comm	_RCV_CTXT_STATUS,4,2            ; @RCV_CTXT_STATUS
l_.str.2:                               ; @.str.2
	.asciz	"ctxt %d status %lld (blocked)\n"

l_.str.3:                               ; @.str.3
	.asciz	"ctxt %d status %lld (%s blocked)\n"

l_.str.4:                               ; @.str.4
	.asciz	"not"

l_.str.5:                               ; @.str.5
	.asciz	"still"

	.comm	_RCV_AVAIL_TIME_OUT,4,2         ; @RCV_AVAIL_TIME_OUT
	.comm	_RCV_AVAIL_TIME_OUT_TIME_OUT_RELOAD_SHIFT,4,2 ; @RCV_AVAIL_TIME_OUT_TIME_OUT_RELOAD_SHIFT
	.comm	_rcv_intr_count,8,3             ; @rcv_intr_count
	.comm	_RCV_HDR_HEAD_COUNTER_SHIFT,4,2 ; @RCV_HDR_HEAD_COUNTER_SHIFT
.subsections_via_symbols
