	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_del_rx_ctx         ## -- Begin function qlcnic_83xx_del_rx_ctx
	.p2align	4, 0x90
_qlcnic_83xx_del_rx_ctx:                ## @qlcnic_83xx_del_rx_ctx
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	$0, -20(%rbp)
	movq	8(%rdi), %r14
	movq	_QLCNIC_CMD_DESTROY_RX_CTX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-32(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_qlcnic_alloc_mbx_args
	testq	%rax, %rax
	jne	LBB0_9
## %bb.1:
	movq	%rbx, %rdi
	callq	_qlcnic_sriov_pf_check
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_qlcnic_sriov_vf_check
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	movq	-32(%rbp), %rax
	orl	$1610612736, (%rax)             ## imm = 0x60000000
LBB0_4:
	movq	%rbx, %rdi
	callq	_qlcnic_sriov_pf_check
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	-20(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_qlcnic_pf_set_interface_id_del_rx_ctx
LBB0_6:
	movl	-20(%rbp), %eax
	orl	(%r14), %eax
	movq	-32(%rbp), %rcx
	movl	%eax, 4(%rcx)
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_qlcnic_issue_cmd
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_8:
	movq	_QLCNIC_HOST_CTX_STATE_FREED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	leaq	-32(%rbp), %rdi
	callq	_qlcnic_free_mbx_args
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_CMD_DESTROY_RX_CTX,4,2  ## @QLCNIC_CMD_DESTROY_RX_CTX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to destroy rx ctx in firmware\n"

	.comm	_QLCNIC_HOST_CTX_STATE_FREED,4,2 ## @QLCNIC_HOST_CTX_STATE_FREED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_del_rx_ctx         ; -- Begin function qlcnic_83xx_del_rx_ctx
	.p2align	2
_qlcnic_83xx_del_rx_ctx:                ; @qlcnic_83xx_del_rx_ctx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	str	wzr, [sp, #12]
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x8, _QLCNIC_CMD_DESTROY_RX_CTX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLCNIC_CMD_DESTROY_RX_CTX@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, sp
	mov	x1, x19
	bl	_qlcnic_alloc_mbx_args
	cbnz	x0, LBB0_9
; %bb.1:
	mov	x0, x19
	bl	_qlcnic_sriov_pf_check
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_qlcnic_sriov_vf_check
	cbz	x0, LBB0_4
LBB0_3:
	ldr	x8, [sp]
	ldr	w9, [x8]
	orr	w9, w9, #0x60000000
	str	w9, [x8]
LBB0_4:
	mov	x0, x19
	bl	_qlcnic_sriov_pf_check
	cbz	x0, LBB0_6
; %bb.5:
	add	x1, sp, #12
	mov	x0, x19
	bl	_qlcnic_pf_set_interface_id_del_rx_ctx
LBB0_6:
	ldr	w8, [x20]
	ldr	w9, [sp, #12]
	orr	w8, w9, w8
	ldr	x9, [sp]
	str	w8, [x9, #4]
	mov	x1, sp
	mov	x0, x19
	bl	_qlcnic_issue_cmd
	cbz	w0, LBB0_8
; %bb.7:
	ldr	x0, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_8:
Lloh5:
	adrp	x8, _QLCNIC_HOST_CTX_STATE_FREED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _QLCNIC_HOST_CTX_STATE_FREED@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x20, #4]
	mov	x0, sp
	bl	_qlcnic_free_mbx_args
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_CMD_DESTROY_RX_CTX,4,2  ; @QLCNIC_CMD_DESTROY_RX_CTX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to destroy rx ctx in firmware\n"

	.comm	_QLCNIC_HOST_CTX_STATE_FREED,4,2 ; @QLCNIC_HOST_CTX_STATE_FREED
.subsections_via_symbols
