	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_set_port_eswitch_status ## -- Begin function qlcnic_83xx_set_port_eswitch_status
	.p2align	4, 0x90
_qlcnic_83xx_set_port_eswitch_status:   ## @qlcnic_83xx_set_port_eswitch_status
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r15
	leaq	-40(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_qlcnic_get_nic_info
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	_QLC_83XX_ESWITCH_CAPABILITY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -40(%rbp)
	je	LBB0_3
## %bb.2:
	movl	-36(%rbp), %eax
	movl	%eax, (%r14)
LBB0_6:
	movq	_QLCNIC_SWITCH_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	(%r15), %rdx
	cltq
	orl	%ecx, (%rdx,%rax,4)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_3:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	negl	%eax
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	(%r14), %eax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_QLC_83XX_ESWITCH_CAPABILITY,4,2 ## @QLC_83XX_ESWITCH_CAPABILITY
	.comm	_EIO,4,2                        ## @EIO
	.comm	_QLCNIC_SWITCH_ENABLE,4,2       ## @QLCNIC_SWITCH_ENABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_set_port_eswitch_status ; -- Begin function qlcnic_83xx_set_port_eswitch_status
	.p2align	2
_qlcnic_83xx_set_port_eswitch_status:   ; @qlcnic_83xx_set_port_eswitch_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, x21
	bl	_qlcnic_get_nic_info
	cbnz	w0, LBB0_6
; %bb.1:
	ldr	w8, [sp, #8]
Lloh0:
	adrp	x9, _QLC_83XX_ESWITCH_CAPABILITY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QLC_83XX_ESWITCH_CAPABILITY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	ldr	w8, [sp, #12]
	str	w8, [x20]
LBB0_3:
	mov	w0, #0
Lloh3:
	adrp	x9, _QLCNIC_SWITCH_ENABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _QLCNIC_SWITCH_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ldr	x10, [x19]
	sbfiz	x8, x8, #2, #32
	ldr	w11, [x10, x8]
	orr	w9, w11, w9
	str	w9, [x10, x8]
	b	LBB0_6
LBB0_4:
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cbz	w8, LBB0_7
; %bb.5:
	neg	w0, w8
LBB0_6:
	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
	add	sp, sp, #64
	ret
LBB0_7:
	ldr	w8, [x20]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_QLC_83XX_ESWITCH_CAPABILITY,4,2 ; @QLC_83XX_ESWITCH_CAPABILITY
	.comm	_EIO,4,2                        ; @EIO
	.comm	_QLCNIC_SWITCH_ENABLE,4,2       ; @QLCNIC_SWITCH_ENABLE
.subsections_via_symbols
