	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_enable_pf_switch_lb
_i40e_enable_pf_switch_lb:              ## @i40e_enable_pf_switch_lb
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	32(%rdi), %rcx
	movq	(%rcx,%rax,8), %r15
	movl	24(%rdi), %eax
	movl	%eax, -44(%rbp)
	leaq	8(%rdi), %r14
	movl	12(%rdi), %eax
	movl	%eax, -48(%rbp)
	movq	$0, -56(%rbp)
	leaq	-72(%rbp), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_i40e_aq_get_vsi_params
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %r15
	jmp	LBB0_4
LBB0_2:
	movq	_I40E_AQ_VSI_TYPE_PF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	_I40E_AQ_VSI_PROP_SWITCH_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movl	%eax, -68(%rbp)
	movq	_I40E_AQ_VSI_SW_ID_FLAG_ALLOW_LB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	orl	%eax, -72(%rbp)
	movq	(%r15), %rdi
	leaq	-72(%rbp), %rsi
	xorl	%edx, %edx
	callq	_i40e_aq_update_vsi_params
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	leaq	L_.str.1(%rip), %r15
LBB0_4:
	movq	16(%rbx), %r12
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_i40e_stat_str
	movl	%eax, %r13d
	movl	8(%rbx), %esi
	movq	%r14, %rdi
	callq	_i40e_aq_str
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	movl	%eax, %ecx
	callq	_dev_info
LBB0_5:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"couldn't get PF vsi config, err %s aq_err %s\n"

	.comm	_I40E_AQ_VSI_TYPE_PF,4,2        ## @I40E_AQ_VSI_TYPE_PF
	.comm	_I40E_AQ_VSI_PROP_SWITCH_VALID,4,2 ## @I40E_AQ_VSI_PROP_SWITCH_VALID
	.comm	_I40E_AQ_VSI_SW_ID_FLAG_ALLOW_LB,4,2 ## @I40E_AQ_VSI_SW_ID_FLAG_ALLOW_LB
L_.str.1:                               ## @.str.1
	.asciz	"update vsi switch failed, err %s aq_err %s\n"

	.no_dead_strip	_i40e_enable_pf_switch_lb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_enable_pf_switch_lb
_i40e_enable_pf_switch_lb:              ; @i40e_enable_pf_switch_lb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
	ldr	x8, [x0, #32]
	ldr	x9, [x0]
	ldr	x21, [x8, x9, lsl #3]
	ldr	w8, [x0, #24]
	add	x20, x0, #8
	ldr	w9, [x0, #12]
	stp	w9, w8, [sp, #24]
	str	xzr, [sp, #16]
	mov	x1, sp
	mov	x0, x20
	mov	x2, #0
	bl	_i40e_aq_get_vsi_params
	cbz	w0, LBB0_2
; %bb.1:
	mov	x1, x0
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
Lloh2:
	adrp	x8, _I40E_AQ_VSI_TYPE_PF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _I40E_AQ_VSI_TYPE_PF@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh5:
	adrp	x8, _I40E_AQ_VSI_PROP_SWITCH_VALID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I40E_AQ_VSI_PROP_SWITCH_VALID@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	w0, [sp, #4]
Lloh8:
	adrp	x8, _I40E_AQ_VSI_SW_ID_FLAG_ALLOW_LB@GOTPAGE
Lloh9:
	ldr	x8, [x8, _I40E_AQ_VSI_SW_ID_FLAG_ALLOW_LB@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	ldr	w8, [sp]
	orr	w8, w8, w0
	str	w8, [sp]
	ldr	x0, [x21]
	mov	x1, sp
	mov	x2, #0
	bl	_i40e_aq_update_vsi_params
	cbz	w0, LBB0_5
; %bb.3:
	mov	x1, x0
Lloh11:
	adrp	x21, l_.str.1@PAGE
Lloh12:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_4:
	ldr	x22, [x19, #16]
	mov	x0, x20
	bl	_i40e_stat_str
	mov	x23, x0
	ldr	w1, [x19, #8]
	mov	x0, x20
	bl	_i40e_aq_str
	mov	x3, x0
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	bl	_dev_info
LBB0_5:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"couldn't get PF vsi config, err %s aq_err %s\n"

	.comm	_I40E_AQ_VSI_TYPE_PF,4,2        ; @I40E_AQ_VSI_TYPE_PF
	.comm	_I40E_AQ_VSI_PROP_SWITCH_VALID,4,2 ; @I40E_AQ_VSI_PROP_SWITCH_VALID
	.comm	_I40E_AQ_VSI_SW_ID_FLAG_ALLOW_LB,4,2 ; @I40E_AQ_VSI_SW_ID_FLAG_ALLOW_LB
l_.str.1:                               ; @.str.1
	.asciz	"update vsi switch failed, err %s aq_err %s\n"

	.no_dead_strip	_i40e_enable_pf_switch_lb
.subsections_via_symbols
