	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_vnic_ctxt
_setup_vnic_ctxt:                       ## @setup_vnic_ctxt
	.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	_handle_receive_interrupt@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rsi)
	callq	_hfi1_create_rcvhdrq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.1:
	movq	%r14, %rdi
	callq	_hfi1_setup_eagerbufs
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.2:
	cmpq	$0, 8(%r14)
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_clear_rcvhdrtail
LBB0_4:
	movq	_HFI1_RCVCTRL_CTXT_ENB@GOTPCREL(%rip), %rax
	movq	_HFI1_RCVCTRL_INTRAVAIL_ENB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	orl	(%rax), %r15d
	movl	4(%r14), %edi
	movq	_MULTI_PKT_EGR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HFI1_CAP_KGET_MASK
	xorl	%ebx, %ebx
	movl	$0, %r13d
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	_HFI1_RCVCTRL_ONE_PKT_EGR_ENB@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_6:
	movl	4(%r14), %edi
	movq	_NODROP_EGR_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HFI1_CAP_KGET_MASK
	movl	$0, %r12d
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_HFI1_RCVCTRL_NO_EGR_DROP_ENB@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_8:
	orl	%r13d, %r15d
	movl	4(%r14), %edi
	movq	_NODROP_RHQ_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HFI1_CAP_KGET_MASK
	movl	$0, %ecx
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_HFI1_RCVCTRL_NO_RHQ_DROP_ENB@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_10:
	orl	%ecx, %r12d
	orl	%r12d, %r15d
	movl	4(%r14), %edi
	movq	_DMA_RTAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HFI1_CAP_KGET_MASK
	movl	$0, %ecx
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_HFI1_RCVCTRL_TAILUPD_ENB@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_12:
	orl	%ecx, %r15d
	movl	(%r14), %edi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_hfi1_rcvctrl
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_handle_receive_interrupt,4,2   ## @handle_receive_interrupt
	.comm	_HFI1_RCVCTRL_CTXT_ENB,4,2      ## @HFI1_RCVCTRL_CTXT_ENB
	.comm	_HFI1_RCVCTRL_INTRAVAIL_ENB,4,2 ## @HFI1_RCVCTRL_INTRAVAIL_ENB
	.comm	_MULTI_PKT_EGR,4,2              ## @MULTI_PKT_EGR
	.comm	_HFI1_RCVCTRL_ONE_PKT_EGR_ENB,4,2 ## @HFI1_RCVCTRL_ONE_PKT_EGR_ENB
	.comm	_NODROP_EGR_FULL,4,2            ## @NODROP_EGR_FULL
	.comm	_HFI1_RCVCTRL_NO_EGR_DROP_ENB,4,2 ## @HFI1_RCVCTRL_NO_EGR_DROP_ENB
	.comm	_NODROP_RHQ_FULL,4,2            ## @NODROP_RHQ_FULL
	.comm	_HFI1_RCVCTRL_NO_RHQ_DROP_ENB,4,2 ## @HFI1_RCVCTRL_NO_RHQ_DROP_ENB
	.comm	_DMA_RTAIL,4,2                  ## @DMA_RTAIL
	.comm	_HFI1_RCVCTRL_TAILUPD_ENB,4,2   ## @HFI1_RCVCTRL_TAILUPD_ENB
	.no_dead_strip	_setup_vnic_ctxt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_vnic_ctxt
_setup_vnic_ctxt:                       ; @setup_vnic_ctxt
	.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	x19, x1
Lloh0:
	adrp	x8, _handle_receive_interrupt@GOTPAGE
Lloh1:
	ldr	x8, [x8, _handle_receive_interrupt@GOTPAGEOFF]
	str	x8, [x1, #16]
	bl	_hfi1_create_rcvhdrq
	cbnz	w0, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_hfi1_setup_eagerbufs
	cbnz	w0, LBB0_5
; %bb.2:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_clear_rcvhdrtail
LBB0_4:
Lloh2:
	adrp	x8, _HFI1_RCVCTRL_CTXT_ENB@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HFI1_RCVCTRL_CTXT_ENB@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _HFI1_RCVCTRL_INTRAVAIL_ENB@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HFI1_RCVCTRL_INTRAVAIL_ENB@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w20, w9, w8
	ldr	w0, [x19, #4]
Lloh8:
	adrp	x8, _MULTI_PKT_EGR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MULTI_PKT_EGR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_HFI1_CAP_KGET_MASK
Lloh11:
	adrp	x8, _HFI1_RCVCTRL_ONE_PKT_EGR_ENB@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HFI1_RCVCTRL_ONE_PKT_EGR_ENB@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, w8, wzr, eq
	orr	w20, w20, w8
	ldr	w0, [x19, #4]
Lloh14:
	adrp	x8, _NODROP_EGR_FULL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NODROP_EGR_FULL@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_HFI1_CAP_KGET_MASK
Lloh17:
	adrp	x8, _HFI1_RCVCTRL_NO_EGR_DROP_ENB@GOTPAGE
Lloh18:
	ldr	x8, [x8, _HFI1_RCVCTRL_NO_EGR_DROP_ENB@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w20, w20, w8
	ldr	w0, [x19, #4]
Lloh20:
	adrp	x8, _NODROP_RHQ_FULL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _NODROP_RHQ_FULL@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_HFI1_CAP_KGET_MASK
Lloh23:
	adrp	x8, _HFI1_RCVCTRL_NO_RHQ_DROP_ENB@GOTPAGE
Lloh24:
	ldr	x8, [x8, _HFI1_RCVCTRL_NO_RHQ_DROP_ENB@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w20, w20, w8
	ldr	w0, [x19, #4]
Lloh26:
	adrp	x8, _DMA_RTAIL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _DMA_RTAIL@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	bl	_HFI1_CAP_KGET_MASK
Lloh29:
	adrp	x8, _HFI1_RCVCTRL_TAILUPD_ENB@GOTPAGE
Lloh30:
	ldr	x8, [x8, _HFI1_RCVCTRL_TAILUPD_ENB@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w1, w20, w8
	ldr	w0, [x19]
	mov	x2, x19
	bl	_hfi1_rcvctrl
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_handle_receive_interrupt,4,2   ; @handle_receive_interrupt
	.comm	_HFI1_RCVCTRL_CTXT_ENB,4,2      ; @HFI1_RCVCTRL_CTXT_ENB
	.comm	_HFI1_RCVCTRL_INTRAVAIL_ENB,4,2 ; @HFI1_RCVCTRL_INTRAVAIL_ENB
	.comm	_MULTI_PKT_EGR,4,2              ; @MULTI_PKT_EGR
	.comm	_HFI1_RCVCTRL_ONE_PKT_EGR_ENB,4,2 ; @HFI1_RCVCTRL_ONE_PKT_EGR_ENB
	.comm	_NODROP_EGR_FULL,4,2            ; @NODROP_EGR_FULL
	.comm	_HFI1_RCVCTRL_NO_EGR_DROP_ENB,4,2 ; @HFI1_RCVCTRL_NO_EGR_DROP_ENB
	.comm	_NODROP_RHQ_FULL,4,2            ; @NODROP_RHQ_FULL
	.comm	_HFI1_RCVCTRL_NO_RHQ_DROP_ENB,4,2 ; @HFI1_RCVCTRL_NO_RHQ_DROP_ENB
	.comm	_DMA_RTAIL,4,2                  ; @DMA_RTAIL
	.comm	_HFI1_RCVCTRL_TAILUPD_ENB,4,2   ; @HFI1_RCVCTRL_TAILUPD_ENB
	.no_dead_strip	_setup_vnic_ctxt
.subsections_via_symbols
