	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_setup_pf_switch
_i40e_setup_pf_switch:                  ## @i40e_setup_pf_switch
	.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, %r14d
	movq	%rdi, %r13
	xorl	%esi, %esi
	callq	_i40e_fetch_switch_configuration
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r15d
	movq	56(%r13), %r14
	leaq	32(%r13), %rbx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_i40e_stat_str
	movl	%eax, %r12d
	movq	48(%r13), %rsi
	movq	%rbx, %rdi
	callq	_i40e_aq_str
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_info
	jmp	LBB0_27
LBB0_2:
	movq	%r13, %rdi
	callq	_i40e_pf_reset_stats
	cmpq	$0, 32(%r13)
	jne	LBB0_10
## %bb.3:
	leaq	32(%r13), %r12
	movq	_I40E_FLAG_TRUE_PROMISC_SUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_I40E_AQ_SET_SWITCH_CFG_PROMISC@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r15
	testl	%eax, (%r13)
	je	LBB0_5
## %bb.4:
	xorl	%esi, %esi
	jmp	LBB0_6
LBB0_5:
	movq	%r15, 104(%r13)
	movq	%r15, %rsi
LBB0_6:
	movq	%r12, %rdi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_i40e_aq_set_switch_config
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	movq	48(%r13), %rcx
	movq	_I40E_AQ_RC_ESRCH@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_9
## %bb.8:
	movq	56(%r13), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_i40e_stat_str
	movl	%eax, %ebx
	movq	48(%r13), %rsi
	movq	%r12, %rdi
	callq	_i40e_aq_str
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_info
LBB0_9:
	movq	%r15, 96(%r13)
LBB0_10:
	movq	8(%r13), %rax
	movq	_I40E_NO_VSI@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testl	%r14d, %r14d
	jne	LBB0_12
## %bb.11:
	cmpq	%rcx, %rax
	je	LBB0_12
## %bb.21:
	movq	64(%r13), %rcx
	movq	(%rcx,%rax,8), %rdi
	movq	8(%rdi), %rsi
	movq	$0, 8(%rdi)
	movl	72(%r13), %eax
	movl	%eax, (%rdi)
	callq	_i40e_vsi_config_tc
	jmp	LBB0_22
LBB0_12:
	movq	16(%r13), %rdx
	movq	_I40E_MAX_VEB@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jae	LBB0_14
## %bb.13:
	movq	88(%r13), %rsi
	movq	(%rsi,%rdx,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_14
## %bb.15:
	cmpq	%rcx, %rax
	jne	LBB0_17
LBB0_16:
	movq	(%rdx), %rdx
	movq	_I40E_VSI_MAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%ecx, %ecx
	callq	_i40e_vsi_setup
	testq	%rax, %rax
	jne	LBB0_22
	jmp	LBB0_20
LBB0_14:
	leaq	80(%r13), %rdx
	cmpq	%rcx, %rax
	je	LBB0_16
LBB0_17:
	testl	%r14d, %r14d
	je	LBB0_20
## %bb.18:
	movq	64(%r13), %rcx
	movq	(%rcx,%rax,8), %rdi
	callq	_i40e_vsi_reinit_setup
	testq	%rax, %rax
	je	LBB0_20
LBB0_22:
	movq	8(%r13), %rax
	movq	64(%r13), %rcx
	movq	(%rcx,%rax,8), %rdi
	callq	_i40e_vlan_stripping_disable
	movq	%r13, %rdi
	callq	_i40e_fdir_sb_setup
	movq	%r13, %rdi
	callq	_i40e_setup_pf_filter_control
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_24
## %bb.23:
	movq	56(%r13), %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_info
LBB0_24:
	movq	_I40E_FLAG_RSS_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_26
## %bb.25:
	movq	%r13, %rdi
	callq	_i40e_pf_config_rss
LBB0_26:
	movq	%r13, %rdi
	callq	_i40e_link_event
	movq	_I40E_AQ_AN_COMPLETED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	andl	40(%r13), %eax
	setne	%cl
	movl	%ecx, 24(%r13)
	movq	%r13, %rdi
	callq	_i40e_ptp_init
	movq	%r13, %rdi
	callq	_i40e_sync_udp_filters
	jmp	LBB0_27
LBB0_20:
	movq	56(%r13), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_dev_info
	movq	%r13, %rdi
	callq	_i40e_cloud_filter_exit
	movq	%r13, %rdi
	callq	_i40e_fdir_teardown
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_27:
	movl	%r15d, %eax
	addq	$8, %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 fetch switch config, err %s aq_err %s\n"

	.comm	_I40E_FLAG_TRUE_PROMISC_SUPPORT,4,2 ## @I40E_FLAG_TRUE_PROMISC_SUPPORT
	.comm	_I40E_AQ_SET_SWITCH_CFG_PROMISC,8,3 ## @I40E_AQ_SET_SWITCH_CFG_PROMISC
	.comm	_I40E_AQ_RC_ESRCH,8,3           ## @I40E_AQ_RC_ESRCH
L_.str.1:                               ## @.str.1
	.asciz	"couldn't set switch config bits, err %s aq_err %s\n"

	.comm	_I40E_NO_VSI,8,3                ## @I40E_NO_VSI
	.comm	_I40E_MAX_VEB,8,3               ## @I40E_MAX_VEB
	.comm	_I40E_VSI_MAIN,4,2              ## @I40E_VSI_MAIN
L_.str.2:                               ## @.str.2
	.asciz	"setup of MAIN VSI failed\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
L_.str.3:                               ## @.str.3
	.asciz	"setup_pf_filter_control failed: %d\n"

	.comm	_I40E_FLAG_RSS_ENABLED,4,2      ## @I40E_FLAG_RSS_ENABLED
	.comm	_I40E_AQ_AN_COMPLETED,4,2       ## @I40E_AQ_AN_COMPLETED
	.no_dead_strip	_i40e_setup_pf_switch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_setup_pf_switch
_i40e_setup_pf_switch:                  ; @i40e_setup_pf_switch
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x19, x0
	mov	w1, #0
	bl	_i40e_fetch_switch_configuration
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	x20, [x19, #56]
	add	x22, x19, #32
	mov	x0, x22
	mov	x1, x21
	bl	_i40e_stat_str
	mov	x23, x0
	ldr	x1, [x19, #48]
	mov	x0, x22
	bl	_i40e_aq_str
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x23, x0, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	b	LBB0_26
LBB0_2:
	mov	x0, x19
	bl	_i40e_pf_reset_stats
	mov	x22, x19
	ldr	x8, [x22, #32]!
	cbnz	x8, LBB0_10
; %bb.3:
Lloh2:
	adrp	x8, _I40E_FLAG_TRUE_PROMISC_SUPPORT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _I40E_FLAG_TRUE_PROMISC_SUPPORT@GOTPAGEOFF]
	ldr	w9, [x19]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x10, _I40E_AQ_SET_SWITCH_CFG_PROMISC@GOTPAGE
Lloh6:
	ldr	x10, [x10, _I40E_AQ_SET_SWITCH_CFG_PROMISC@GOTPAGEOFF]
Lloh7:
	ldr	x21, [x10]
	tst	w8, w9
	b.eq	LBB0_5
; %bb.4:
	mov	x1, #0
	b	LBB0_6
LBB0_5:
	str	x21, [x19, #104]
	mov	x1, x21
LBB0_6:
	mov	x0, x22
	mov	x2, x21
	mov	w3, #0
	mov	x4, #0
	bl	_i40e_aq_set_switch_config
	cbz	w0, LBB0_9
; %bb.7:
	ldr	x8, [x19, #48]
Lloh8:
	adrp	x9, _I40E_AQ_RC_ESRCH@GOTPAGE
Lloh9:
	ldr	x9, [x9, _I40E_AQ_RC_ESRCH@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.8:
	mov	x1, x0
	ldr	x23, [x19, #56]
	mov	x0, x22
	bl	_i40e_stat_str
	mov	x24, x0
	ldr	x1, [x19, #48]
	mov	x0, x22
	bl	_i40e_aq_str
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x24, x0, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	bl	_dev_info
LBB0_9:
	str	x21, [x19, #96]
LBB0_10:
	ldr	x8, [x19, #8]
Lloh13:
	adrp	x9, _I40E_NO_VSI@GOTPAGE
Lloh14:
	ldr	x9, [x9, _I40E_NO_VSI@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cbnz	w20, LBB0_13
; %bb.11:
	cmp	x8, x9
	b.eq	LBB0_13
; %bb.12:
	ldr	x9, [x19, #64]
	ldr	x0, [x9, x8, lsl #3]
	ldr	x1, [x0, #8]
	str	xzr, [x0, #8]
	ldr	w8, [x19, #72]
	str	w8, [x0]
	bl	_i40e_vsi_config_tc
	b	LBB0_20
LBB0_13:
	ldr	x10, [x19, #16]
Lloh16:
	adrp	x11, _I40E_MAX_VEB@GOTPAGE
Lloh17:
	ldr	x11, [x11, _I40E_MAX_VEB@GOTPAGEOFF]
Lloh18:
	ldr	x11, [x11]
	cmp	x10, x11
	b.hs	LBB0_17
; %bb.14:
	ldr	x11, [x19, #88]
	ldr	x10, [x11, x10, lsl #3]
	cbz	x10, LBB0_17
; %bb.15:
	cmp	x8, x9
	b.ne	LBB0_18
LBB0_16:
	ldr	x2, [x10]
Lloh19:
	adrp	x8, _I40E_VSI_MAIN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _I40E_VSI_MAIN@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_i40e_vsi_setup
	cbnz	x0, LBB0_20
	b	LBB0_25
LBB0_17:
	add	x10, x19, #80
	cmp	x8, x9
	b.eq	LBB0_16
LBB0_18:
	cbz	w20, LBB0_25
; %bb.19:
	ldr	x9, [x19, #64]
	ldr	x0, [x9, x8, lsl #3]
	bl	_i40e_vsi_reinit_setup
	cbz	x0, LBB0_25
LBB0_20:
	ldr	x8, [x19, #64]
	ldr	x9, [x19, #8]
	ldr	x0, [x8, x9, lsl #3]
	bl	_i40e_vlan_stripping_disable
	mov	x0, x19
	bl	_i40e_fdir_sb_setup
	mov	x0, x19
	bl	_i40e_setup_pf_filter_control
	mov	x21, x0
	cbz	w0, LBB0_22
; %bb.21:
	ldr	x0, [x19, #56]
	str	x21, [sp]
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_info
LBB0_22:
	ldr	w8, [x19]
Lloh24:
	adrp	x9, _I40E_FLAG_RSS_ENABLED@GOTPAGE
Lloh25:
	ldr	x9, [x9, _I40E_FLAG_RSS_ENABLED@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_24
; %bb.23:
	mov	x0, x19
	bl	_i40e_pf_config_rss
LBB0_24:
	mov	x0, x19
	bl	_i40e_link_event
	ldr	w8, [x19, #40]
Lloh27:
	adrp	x9, _I40E_AQ_AN_COMPLETED@GOTPAGE
Lloh28:
	ldr	x9, [x9, _I40E_AQ_AN_COMPLETED@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	str	w8, [x19, #24]
	mov	x0, x19
	bl	_i40e_ptp_init
	mov	x0, x19
	bl	_i40e_sync_udp_filters
	b	LBB0_26
LBB0_25:
	ldr	x0, [x19, #56]
Lloh30:
	adrp	x1, l_.str.2@PAGE
Lloh31:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_info
	mov	x0, x19
	bl	_i40e_cloud_filter_exit
	mov	x0, x19
	bl	_i40e_fdir_teardown
Lloh32:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_26:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"couldn't fetch switch config, err %s aq_err %s\n"

	.comm	_I40E_FLAG_TRUE_PROMISC_SUPPORT,4,2 ; @I40E_FLAG_TRUE_PROMISC_SUPPORT
	.comm	_I40E_AQ_SET_SWITCH_CFG_PROMISC,8,3 ; @I40E_AQ_SET_SWITCH_CFG_PROMISC
	.comm	_I40E_AQ_RC_ESRCH,8,3           ; @I40E_AQ_RC_ESRCH
l_.str.1:                               ; @.str.1
	.asciz	"couldn't set switch config bits, err %s aq_err %s\n"

	.comm	_I40E_NO_VSI,8,3                ; @I40E_NO_VSI
	.comm	_I40E_MAX_VEB,8,3               ; @I40E_MAX_VEB
	.comm	_I40E_VSI_MAIN,4,2              ; @I40E_VSI_MAIN
l_.str.2:                               ; @.str.2
	.asciz	"setup of MAIN VSI failed\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
l_.str.3:                               ; @.str.3
	.asciz	"setup_pf_filter_control failed: %d\n"

	.comm	_I40E_FLAG_RSS_ENABLED,4,2      ; @I40E_FLAG_RSS_ENABLED
	.comm	_I40E_AQ_AN_COMPLETED,4,2       ; @I40E_AQ_AN_COMPLETED
	.no_dead_strip	_i40e_setup_pf_switch
.subsections_via_symbols
