	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function deallocate_vnic_ctxt
_deallocate_vnic_ctxt:                  ## @deallocate_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	16(%rsi), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dd_dev_dbg
	xorl	%eax, %eax
	callq	_flush_wc
	movq	_HFI1_RCVCTRL_CTXT_DIS@GOTPCREL(%rip), %rax
	movq	_HFI1_RCVCTRL_TIDFLOW_DIS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_HFI1_RCVCTRL_INTRAVAIL_DIS@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_HFI1_RCVCTRL_ONE_PKT_EGR_DIS@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_HFI1_RCVCTRL_NO_RHQ_DROP_DIS@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_HFI1_RCVCTRL_NO_EGR_DROP_DIS@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_hfi1_rcvctrl
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_msix_free_irq
LBB0_2:
	movq	$0, (%rbx)
	movq	%rbx, %rdi
	callq	_hfi1_clear_tids
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_hfi1_clear_ctxt_pkey
	movq	_hfi1_stats@GOTPCREL(%rip), %rax
	decl	(%rax)
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_hfi1_free_ctxt                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"closing vnic context %d\n"

	.comm	_HFI1_RCVCTRL_CTXT_DIS,4,2      ## @HFI1_RCVCTRL_CTXT_DIS
	.comm	_HFI1_RCVCTRL_TIDFLOW_DIS,4,2   ## @HFI1_RCVCTRL_TIDFLOW_DIS
	.comm	_HFI1_RCVCTRL_INTRAVAIL_DIS,4,2 ## @HFI1_RCVCTRL_INTRAVAIL_DIS
	.comm	_HFI1_RCVCTRL_ONE_PKT_EGR_DIS,4,2 ## @HFI1_RCVCTRL_ONE_PKT_EGR_DIS
	.comm	_HFI1_RCVCTRL_NO_RHQ_DROP_DIS,4,2 ## @HFI1_RCVCTRL_NO_RHQ_DROP_DIS
	.comm	_HFI1_RCVCTRL_NO_EGR_DROP_DIS,4,2 ## @HFI1_RCVCTRL_NO_EGR_DROP_DIS
	.comm	_hfi1_stats,4,2                 ## @hfi1_stats
	.no_dead_strip	_deallocate_vnic_ctxt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function deallocate_vnic_ctxt
_deallocate_vnic_ctxt:                  ; @deallocate_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
	mov	x20, x0
	ldr	w2, [x1, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dd_dev_dbg
	bl	_flush_wc
Lloh2:
	adrp	x8, _HFI1_RCVCTRL_CTXT_DIS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HFI1_RCVCTRL_CTXT_DIS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _HFI1_RCVCTRL_TIDFLOW_DIS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HFI1_RCVCTRL_TIDFLOW_DIS@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _HFI1_RCVCTRL_INTRAVAIL_DIS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HFI1_RCVCTRL_INTRAVAIL_DIS@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh11:
	adrp	x9, _HFI1_RCVCTRL_ONE_PKT_EGR_DIS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _HFI1_RCVCTRL_ONE_PKT_EGR_DIS@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh14:
	adrp	x9, _HFI1_RCVCTRL_NO_RHQ_DROP_DIS@GOTPAGE
Lloh15:
	ldr	x9, [x9, _HFI1_RCVCTRL_NO_RHQ_DROP_DIS@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh17:
	adrp	x9, _HFI1_RCVCTRL_NO_EGR_DROP_DIS@GOTPAGE
Lloh18:
	ldr	x9, [x9, _HFI1_RCVCTRL_NO_EGR_DROP_DIS@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x20
	mov	x2, x19
	bl	_hfi1_rcvctrl
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_msix_free_irq
LBB0_2:
	str	xzr, [x19]
	mov	x0, x19
	bl	_hfi1_clear_tids
	mov	x0, x20
	mov	x1, x19
	bl	_hfi1_clear_ctxt_pkey
Lloh20:
	adrp	x8, _hfi1_stats@GOTPAGE
Lloh21:
	ldr	x8, [x8, _hfi1_stats@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_hfi1_free_ctxt
	.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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"closing vnic context %d\n"

	.comm	_HFI1_RCVCTRL_CTXT_DIS,4,2      ; @HFI1_RCVCTRL_CTXT_DIS
	.comm	_HFI1_RCVCTRL_TIDFLOW_DIS,4,2   ; @HFI1_RCVCTRL_TIDFLOW_DIS
	.comm	_HFI1_RCVCTRL_INTRAVAIL_DIS,4,2 ; @HFI1_RCVCTRL_INTRAVAIL_DIS
	.comm	_HFI1_RCVCTRL_ONE_PKT_EGR_DIS,4,2 ; @HFI1_RCVCTRL_ONE_PKT_EGR_DIS
	.comm	_HFI1_RCVCTRL_NO_RHQ_DROP_DIS,4,2 ; @HFI1_RCVCTRL_NO_RHQ_DROP_DIS
	.comm	_HFI1_RCVCTRL_NO_EGR_DROP_DIS,4,2 ; @HFI1_RCVCTRL_NO_EGR_DROP_DIS
	.comm	_hfi1_stats,4,2                 ; @hfi1_stats
	.no_dead_strip	_deallocate_vnic_ctxt
.subsections_via_symbols
