	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_vf_pf_tunnel_param_update  ## -- Begin function qed_vf_pf_tunnel_param_update
	.p2align	4, 0x90
_qed_vf_pf_tunnel_param_update:         ## @qed_vf_pf_tunnel_param_update
	.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, %r12
	movq	%rdi, %r15
	movq	(%rdi), %r13
	movq	8(%rdi), %r14
	movq	_CHANNEL_TLV_UPDATE_TUNN_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edx
	callq	_qed_vf_pf_prep
	movq	%rax, %rbx
	cmpq	$0, 40(%r12)
	je	LBB0_3
## %bb.1:
	cmpq	$0, 32(%r12)
	je	LBB0_3
## %bb.2:
	movl	$1, (%rbx)
LBB0_3:
	leaq	24(%r12), %rsi
	movq	_QED_MODE_VXLAN_TUNN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	36(%rbx), %rcx
	leaq	20(%r12), %r8
	leaq	32(%rbx), %r9
	leaq	28(%rbx), %rax
	movq	%rax, (%rsp)
	movq	%rbx, %rdi
	callq	_qed_vf_prep_tunn_req_tlv
	leaq	16(%r12), %rsi
	movq	_QED_MODE_L2GENEVE_TUNN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	24(%rbx), %rcx
	leaq	12(%r12), %r8
	leaq	20(%rbx), %r9
	leaq	16(%rbx), %rax
	movq	%rax, (%rsp)
	movq	%rbx, %rdi
	callq	_qed_vf_prep_tunn_req_tlv
	leaq	8(%r12), %rsi
	movq	_QED_MODE_IPGENEVE_TUNN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	12(%rbx), %rcx
	movq	%rbx, %rdi
	callq	___qed_vf_prep_tunn_req_tlv
	leaq	4(%r12), %rsi
	movq	_QED_MODE_L2GRE_TUNN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	8(%rbx), %rcx
	movq	%rbx, %rdi
	callq	___qed_vf_prep_tunn_req_tlv
	movq	_QED_MODE_IPGRE_TUNN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rcx
	addq	$4, %rcx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	___qed_vf_prep_tunn_req_tlv
	leaq	8(%r13), %rsi
	movq	_CHANNEL_TLV_LIST_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$4, %ecx
	callq	_qed_add_tlv
	movq	(%r13), %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	$8, %edx
	callq	_qed_send_msg2pf
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movq	(%r12), %rax
	movq	_PFVF_STATUS_SUCCESS@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	_QED_MSG_IOV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_DP_VERBOSE
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_qed_vf_update_tunn_param
LBB0_7:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_qed_vf_pf_req_end
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHANNEL_TLV_UPDATE_TUNN_PARAM,4,2 ## @CHANNEL_TLV_UPDATE_TUNN_PARAM
	.comm	_QED_MODE_VXLAN_TUNN,4,2        ## @QED_MODE_VXLAN_TUNN
	.comm	_QED_MODE_L2GENEVE_TUNN,4,2     ## @QED_MODE_L2GENEVE_TUNN
	.comm	_QED_MODE_IPGENEVE_TUNN,4,2     ## @QED_MODE_IPGENEVE_TUNN
	.comm	_QED_MODE_L2GRE_TUNN,4,2        ## @QED_MODE_L2GRE_TUNN
	.comm	_QED_MODE_IPGRE_TUNN,4,2        ## @QED_MODE_IPGRE_TUNN
	.comm	_CHANNEL_TLV_LIST_END,4,2       ## @CHANNEL_TLV_LIST_END
	.comm	_PFVF_STATUS_SUCCESS,8,3        ## @PFVF_STATUS_SUCCESS
	.comm	_QED_MSG_IOV,4,2                ## @QED_MSG_IOV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to update tunnel parameters\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_vf_pf_tunnel_param_update  ; -- Begin function qed_vf_pf_tunnel_param_update
	.p2align	2
_qed_vf_pf_tunnel_param_update:         ; @qed_vf_pf_tunnel_param_update
	.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
	ldp	x23, x20, [x0]
Lloh0:
	adrp	x8, _CHANNEL_TLV_UPDATE_TUNN_PARAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHANNEL_TLV_UPDATE_TUNN_PARAM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #40
	bl	_qed_vf_pf_prep
	mov	x22, x0
	ldr	x8, [x21, #40]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x21, #32]
	cbz	x8, LBB0_3
; %bb.2:
	mov	w8, #1
	str	w8, [x22]
LBB0_3:
Lloh3:
	adrp	x8, _QED_MODE_VXLAN_TUNN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QED_MODE_VXLAN_TUNN@GOTPAGEOFF]
	add	x1, x21, #24
Lloh5:
	ldr	w2, [x8]
	add	x3, x22, #36
	add	x4, x21, #20
	add	x5, x22, #32
	add	x6, x22, #28
	mov	x0, x22
	bl	_qed_vf_prep_tunn_req_tlv
Lloh6:
	adrp	x8, _QED_MODE_L2GENEVE_TUNN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QED_MODE_L2GENEVE_TUNN@GOTPAGEOFF]
	add	x1, x21, #16
Lloh8:
	ldr	w2, [x8]
	add	x3, x22, #24
	add	x4, x21, #12
	add	x5, x22, #20
	add	x6, x22, #16
	mov	x0, x22
	bl	_qed_vf_prep_tunn_req_tlv
	add	x1, x21, #8
Lloh9:
	adrp	x8, _QED_MODE_IPGENEVE_TUNN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _QED_MODE_IPGENEVE_TUNN@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	add	x3, x22, #12
	mov	x0, x22
	bl	___qed_vf_prep_tunn_req_tlv
	add	x1, x21, #4
Lloh12:
	adrp	x8, _QED_MODE_L2GRE_TUNN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _QED_MODE_L2GRE_TUNN@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	add	x3, x22, #8
	mov	x0, x22
	bl	___qed_vf_prep_tunn_req_tlv
Lloh15:
	adrp	x8, _QED_MODE_IPGRE_TUNN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _QED_MODE_IPGRE_TUNN@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	add	x3, x22, #4
	mov	x0, x22
	mov	x1, x21
	bl	___qed_vf_prep_tunn_req_tlv
	add	x1, x23, #8
Lloh18:
	adrp	x8, _CHANNEL_TLV_LIST_END@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CHANNEL_TLV_LIST_END@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #4
	bl	_qed_add_tlv
	ldr	x21, [x23]
	mov	x0, x19
	mov	x1, x21
	mov	w2, #8
	bl	_qed_send_msg2pf
	mov	x22, x0
	cbnz	w0, LBB0_8
; %bb.4:
	ldr	x8, [x21]
Lloh21:
	adrp	x9, _PFVF_STATUS_SUCCESS@GOTPAGE
Lloh22:
	ldr	x9, [x9, _PFVF_STATUS_SUCCESS@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	mov	w22, #0
	b	LBB0_7
LBB0_6:
Lloh24:
	adrp	x8, _QED_MSG_IOV@GOTPAGE
Lloh25:
	ldr	x8, [x8, _QED_MSG_IOV@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x2, l_.str@PAGE
Lloh28:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_DP_VERBOSE
Lloh29:
	adrp	x8, _EINVAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_qed_vf_update_tunn_param
LBB0_8:
	mov	x0, x19
	mov	x1, x22
	bl	_qed_vf_pf_req_end
	mov	x0, x22
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_CHANNEL_TLV_UPDATE_TUNN_PARAM,4,2 ; @CHANNEL_TLV_UPDATE_TUNN_PARAM
	.comm	_QED_MODE_VXLAN_TUNN,4,2        ; @QED_MODE_VXLAN_TUNN
	.comm	_QED_MODE_L2GENEVE_TUNN,4,2     ; @QED_MODE_L2GENEVE_TUNN
	.comm	_QED_MODE_IPGENEVE_TUNN,4,2     ; @QED_MODE_IPGENEVE_TUNN
	.comm	_QED_MODE_L2GRE_TUNN,4,2        ; @QED_MODE_L2GRE_TUNN
	.comm	_QED_MODE_IPGRE_TUNN,4,2        ; @QED_MODE_IPGRE_TUNN
	.comm	_CHANNEL_TLV_LIST_END,4,2       ; @CHANNEL_TLV_LIST_END
	.comm	_PFVF_STATUS_SUCCESS,8,3        ; @PFVF_STATUS_SUCCESS
	.comm	_QED_MSG_IOV,4,2                ; @QED_MSG_IOV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to update tunnel parameters\n"

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