	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_config_bridge_mode
_i40e_config_bridge_mode:               ## @i40e_config_bridge_mode
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movq	_I40E_DEBUG_LAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r14)
	je	LBB0_2
## %bb.1:
	movq	(%r14), %rdi
	movl	(%rbx), %eax
	movq	_BRIDGE_MODE_VEPA@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
LBB0_2:
	movq	_BRIDGE_MODE_VEPA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_i40e_disable_pf_switch_lb      ## TAILCALL
LBB0_4:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_i40e_enable_pf_switch_lb       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_DEBUG_LAN,4,2             ## @I40E_DEBUG_LAN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enabling bridge mode: %s\n"

	.comm	_BRIDGE_MODE_VEPA,4,2           ## @BRIDGE_MODE_VEPA
L_.str.1:                               ## @.str.1
	.asciz	"VEPA"

L_.str.2:                               ## @.str.2
	.asciz	"VEB"

	.no_dead_strip	_i40e_config_bridge_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_config_bridge_mode
_i40e_config_bridge_mode:               ; @i40e_config_bridge_mode
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
	ldr	x19, [x0, #8]
	ldr	w8, [x19, #8]
Lloh0:
	adrp	x9, _I40E_DEBUG_LAN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I40E_DEBUG_LAN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x21, _BRIDGE_MODE_VEPA@GOTPAGE
Lloh4:
	ldr	x21, [x21, _BRIDGE_MODE_VEPA@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x0, [x19]
	ldr	w8, [x20]
	ldr	w9, [x21]
Lloh5:
	adrp	x10, l_.str.2@PAGE
Lloh6:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh7:
	adrp	x11, l_.str.1@PAGE
Lloh8:
	add	x11, x11, l_.str.1@PAGEOFF
	cmp	w8, w9
	csel	x2, x11, x10, eq
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
LBB0_2:
	ldr	w8, [x20]
	ldr	w9, [x21]
	mov	x0, x19
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_i40e_disable_pf_switch_lb
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_i40e_enable_pf_switch_lb
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_DEBUG_LAN,4,2             ; @I40E_DEBUG_LAN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enabling bridge mode: %s\n"

	.comm	_BRIDGE_MODE_VEPA,4,2           ; @BRIDGE_MODE_VEPA
l_.str.1:                               ; @.str.1
	.asciz	"VEPA"

l_.str.2:                               ; @.str.2
	.asciz	"VEB"

	.no_dead_strip	_i40e_config_bridge_mode
.subsections_via_symbols
