	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function qlcnic_get_eswitch_port_config
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_qlcnic_get_eswitch_port_config
	.p2align	4, 0x90
_qlcnic_get_eswitch_port_config:        ## @qlcnic_get_eswitch_port_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %rcx
	movq	_QLCNIC_MGMT_FUNC@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.1:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_qlcnic_is_valid_nic_func
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movl	%eax, %eax
	shlq	$2, %rax
	addq	8(%rbx), %rax
	jmp	LBB0_5
LBB0_4:
	addq	$8, %rax
LBB0_5:
	movl	(%r14), %ecx
	shll	$8, %ecx
	orl	(%rax), %ecx
	movl	%ecx, -20(%rbp)
	leaq	-20(%rbp), %rsi
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	callq	___qlcnic_get_eswitch_port_config
	testq	%rax, %rax
	je	LBB0_6
LBB0_2:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_6:
	movl	-20(%rbp), %edi
	movq	_BIT_4@GOTPCREL(%rip), %rax
	movq	_BIT_5@GOTPCREL(%rip), %rcx
	movq	_BIT_6@GOTPCREL(%rip), %rdx
	movd	(%rax), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	pinsrd	$1, (%rcx), %xmm0
	pinsrd	$2, (%rdx), %xmm0
	movq	_BIT_7@GOTPCREL(%rip), %rax
	pinsrd	$3, (%rax), %xmm0
	movd	%edi, %xmm1
	pshufd	$0, %xmm1, %xmm1                ## xmm1 = xmm1[0,0,0,0]
	pand	%xmm0, %xmm1
	pxor	%xmm0, %xmm0
	pcmpeqd	%xmm1, %xmm0
	pandn	LCPI0_0(%rip), %xmm0
	movdqu	%xmm0, 4(%r14)
	sarl	$16, %edi
	callq	_LSW
	movl	%eax, 28(%r14)
	movl	-24(%rbp), %eax
	movl	%eax, %ecx
	andl	$1, %ecx
	movl	%ecx, 20(%r14)
	shrl	%eax
	andl	$7, %eax
	movl	%eax, 24(%r14)
	xorl	%eax, %eax
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_MGMT_FUNC,8,3           ## @QLCNIC_MGMT_FUNC
	.comm	_EIO,4,2                        ## @EIO
	.comm	_BIT_4,4,2                      ## @BIT_4
	.comm	_BIT_5,4,2                      ## @BIT_5
	.comm	_BIT_6,4,2                      ## @BIT_6
	.comm	_BIT_7,4,2                      ## @BIT_7
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_get_eswitch_port_config ; -- Begin function qlcnic_get_eswitch_port_config
	.p2align	2
_qlcnic_get_eswitch_port_config:        ; @qlcnic_get_eswitch_port_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _QLCNIC_MGMT_FUNC@GOTPAGE
Lloh1:
	ldr	x10, [x10, _QLCNIC_MGMT_FUNC@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.1:
	ldr	w1, [x19]
	mov	x0, x20
	bl	_qlcnic_is_valid_nic_func
	tbnz	w0, #31, LBB0_5
; %bb.2:
	ldr	x8, [x20, #8]
	add	x8, x8, w0, uxtw #2
	b	LBB0_4
LBB0_3:
	add	x8, x8, #8
LBB0_4:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w8, w9, lsl #8
	str	w8, [sp, #12]
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x20
	bl	___qlcnic_get_eswitch_port_config
	cbz	x0, LBB0_6
LBB0_5:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_6:
Lloh6:
	adrp	x8, _BIT_4@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BIT_4@GOTPAGEOFF]
Lloh8:
	adrp	x9, _BIT_5@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BIT_5@GOTPAGEOFF]
Lloh10:
	adrp	x10, _BIT_6@GOTPAGE
Lloh11:
	ldr	x10, [x10, _BIT_6@GOTPAGEOFF]
	ldr	w11, [sp, #12]
Lloh12:
	adrp	x12, _BIT_7@GOTPAGE
Lloh13:
	ldr	x12, [x12, _BIT_7@GOTPAGEOFF]
Lloh14:
	ldr	s0, [x8]
	ld1.s	{ v0 }[1], [x9]
	ld1.s	{ v0 }[2], [x10]
	ld1.s	{ v0 }[3], [x12]
	dup.4s	v1, w11
	and.16b	v0, v0, v1
	cmeq.4s	v0, v0, #0
	movi.4s	v1, #1
	bic.16b	v0, v1, v0
	stur	q0, [x19, #4]
	asr	w0, w11, #16
	bl	_LSW
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #28]
	ldr	w8, [sp, #8]
	and	w9, w8, #0x1
	ubfx	w8, w8, #1, #3
	stp	w9, w8, [x19, #20]
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_MGMT_FUNC,8,3           ; @QLCNIC_MGMT_FUNC
	.comm	_EIO,4,2                        ; @EIO
	.comm	_BIT_4,4,2                      ; @BIT_4
	.comm	_BIT_5,4,2                      ; @BIT_5
	.comm	_BIT_6,4,2                      ; @BIT_6
	.comm	_BIT_7,4,2                      ; @BIT_7
.subsections_via_symbols
