	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_vfpf_teardown_queue
_bnx2x_vfpf_teardown_queue:             ## @bnx2x_vfpf_teardown_queue
	.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
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	8(%rdi), %rbx
	leaq	4(%rbx), %r13
	leaq	8(%rbx), %r14
	movq	_CHANNEL_TLV_TEARDOWN_Q@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	movl	$8, %ecx
	callq	_bnx2x_vfpf_prep
	movl	%r15d, 4(%rbx)
	movl	8(%rbx), %edx
	movq	_CHANNEL_TLV_LIST_END@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$4, %r8d
	callq	_bnx2x_add_tlv
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_bnx2x_dp_tlv_list
	movl	(%r12), %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_bnx2x_send_msg2pf
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r13d
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_BNX2X_ERR
	jmp	LBB0_4
LBB0_2:
	movl	(%rbx), %edx
	movq	_PFVF_STATUS_SUCCESS@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	cmpl	(%rax), %edx
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	callq	_BNX2X_ERR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_4:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_bnx2x_vfpf_finalize
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHANNEL_TLV_TEARDOWN_Q,4,2     ## @CHANNEL_TLV_TEARDOWN_Q
	.comm	_CHANNEL_TLV_LIST_END,4,2       ## @CHANNEL_TLV_LIST_END
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Sending TEARDOWN for queue %d failed: %d\n"

	.comm	_PFVF_STATUS_SUCCESS,4,2        ## @PFVF_STATUS_SUCCESS
L_.str.1:                               ## @.str.1
	.asciz	"TEARDOWN for queue %d failed: %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_bnx2x_vfpf_teardown_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_vfpf_teardown_queue
_bnx2x_vfpf_teardown_queue:             ; @bnx2x_vfpf_teardown_queue
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x19, x0
	ldr	x22, [x0, #8]
	add	x20, x22, #8
Lloh0:
	adrp	x8, _CHANNEL_TLV_TEARDOWN_Q@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHANNEL_TLV_TEARDOWN_Q@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x20
	mov	w3, #8
	bl	_bnx2x_vfpf_prep
	mov	x23, x22
	str	w21, [x23, #4]!
	ldr	w2, [x22, #8]
Lloh3:
	adrp	x8, _CHANNEL_TLV_LIST_END@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CHANNEL_TLV_LIST_END@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x23
	mov	w4, #4
	bl	_bnx2x_add_tlv
	mov	x0, x19
	mov	x1, x23
	bl	_bnx2x_dp_tlv_list
	ldr	w2, [x19]
	mov	x0, x19
	mov	x1, x22
	bl	_bnx2x_send_msg2pf
	cbz	w0, LBB0_2
; %bb.1:
	mov	x23, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x23
	bl	_BNX2X_ERR
	b	LBB0_5
LBB0_2:
	ldr	w2, [x22]
Lloh8:
	adrp	x8, _PFVF_STATUS_SUCCESS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PFVF_STATUS_SUCCESS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w2, w8
	b.ne	LBB0_4
; %bb.3:
	mov	w23, #0
	b	LBB0_5
LBB0_4:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_BNX2X_ERR
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	_bnx2x_vfpf_finalize
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_CHANNEL_TLV_TEARDOWN_Q,4,2     ; @CHANNEL_TLV_TEARDOWN_Q
	.comm	_CHANNEL_TLV_LIST_END,4,2       ; @CHANNEL_TLV_LIST_END
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Sending TEARDOWN for queue %d failed: %d\n"

	.comm	_PFVF_STATUS_SUCCESS,4,2        ; @PFVF_STATUS_SUCCESS
l_.str.1:                               ; @.str.1
	.asciz	"TEARDOWN for queue %d failed: %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_bnx2x_vfpf_teardown_queue
.subsections_via_symbols
