	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_reset_eswitch_config
_qlcnic_reset_eswitch_config:           ## @qlcnic_reset_eswitch_config
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_QLCNIC_PORT_DEFAULTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movl	%edx, -40(%rbp)
	movl	20(%rsi), %eax
	movl	%eax, -12(%rbp)
	movl	16(%rsi), %eax
	movl	%eax, -16(%rbp)
	movups	(%rsi), %xmm0
	movups	%xmm0, -32(%rbp)
	leaq	-40(%rbp), %rsi
	callq	_qlcnic_config_switch_port
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	_QLCNIC_ADD_VLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_qlcnic_config_switch_port
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	xorl	%eax, %eax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_PORT_DEFAULTS,4,2       ## @QLCNIC_PORT_DEFAULTS
	.comm	_EIO,4,2                        ## @EIO
	.comm	_QLCNIC_ADD_VLAN,4,2            ## @QLCNIC_ADD_VLAN
	.no_dead_strip	_qlcnic_reset_eswitch_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_reset_eswitch_config
_qlcnic_reset_eswitch_config:           ; @qlcnic_reset_eswitch_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
Lloh0:
	adrp	x8, _QLCNIC_PORT_DEFAULTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLCNIC_PORT_DEFAULTS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	w2, w8, [sp]
	ldr	d0, [x1, #16]
	str	d0, [sp, #24]
	ldr	q0, [x1]
	stur	q0, [sp, #8]
	mov	x1, sp
	bl	_qlcnic_config_switch_port
	cbnz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _QLCNIC_ADD_VLAN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QLCNIC_ADD_VLAN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #4]
	mov	x1, sp
	mov	x0, x19
	bl	_qlcnic_config_switch_port
	cbz	x0, LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_PORT_DEFAULTS,4,2       ; @QLCNIC_PORT_DEFAULTS
	.comm	_EIO,4,2                        ; @EIO
	.comm	_QLCNIC_ADD_VLAN,4,2            ; @QLCNIC_ADD_VLAN
	.no_dead_strip	_qlcnic_reset_eswitch_config
.subsections_via_symbols
