	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hfi1_vnic_deinit
_hfi1_vnic_deinit:                      ## @hfi1_vnic_deinit
	.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	(%rdi), %r14
	movq	_hfi1_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	decq	(%r14)
	jne	LBB0_5
## %bb.1:
	cmpl	$0, 8(%r14)
	jle	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	%r14, %rdi
	callq	_deallocate_vnic_ctxt
	movq	16(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_hfi1_rcd_put
	movq	16(%r14), %rax
	movq	$0, (%rax,%rbx,8)
	incq	%rbx
	movslq	8(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_4:
	movq	%r14, %rdi
	callq	_hfi1_deinit_vnic_rsm
	movl	$0, 8(%r14)
	movq	%r14, %rdi
	callq	_hfi1_vnic_txreq_deinit
LBB0_5:
	movq	_hfi1_mutex@GOTPCREL(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_hfi1_mutex,4,2                 ## @hfi1_mutex
	.no_dead_strip	_hfi1_vnic_deinit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hfi1_vnic_deinit
_hfi1_vnic_deinit:                      ; @hfi1_vnic_deinit
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x19, [x0]
Lloh0:
	adrp	x0, _hfi1_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _hfi1_mutex@GOTPAGEOFF]
	bl	_mutex_lock
	ldr	x8, [x19]
	subs	x8, x8, #1
	str	x8, [x19]
	b.ne	LBB0_5
; %bb.1:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x20, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	lsl	x21, x20, #3
	ldr	x1, [x8, x21]
	mov	x0, x19
	bl	_deallocate_vnic_ctxt
	ldr	x8, [x19, #16]
	ldr	x0, [x8, x21]
	bl	_hfi1_rcd_put
	ldr	x8, [x19, #16]
	str	xzr, [x8, x21]
	add	x20, x20, #1
	ldrsw	x8, [x19, #8]
	cmp	x20, x8
	b.lt	LBB0_3
LBB0_4:
	mov	x0, x19
	bl	_hfi1_deinit_vnic_rsm
	str	wzr, [x19, #8]
	mov	x0, x19
	bl	_hfi1_vnic_txreq_deinit
LBB0_5:
Lloh2:
	adrp	x0, _hfi1_mutex@GOTPAGE
Lloh3:
	ldr	x0, [x0, _hfi1_mutex@GOTPAGEOFF]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_hfi1_mutex,4,2                 ; @hfi1_mutex
	.no_dead_strip	_hfi1_vnic_deinit
.subsections_via_symbols
