	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_get_port_info      ## -- Begin function qlcnic_83xx_get_port_info
	.p2align	4, 0x90
_qlcnic_83xx_get_port_info:             ## @qlcnic_83xx_get_port_info
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	callq	_qlcnic_83xx_get_port_config
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_10
LBB0_2:
	movl	(%r15), %edi
	movq	_QLC_83XX_10G_CAPABLE@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_3
LBB0_7:
	movq	_QLCNIC_XGBE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_3:
	movq	_QLC_83XX_10_CAPABLE@GOTPCREL(%rip), %rcx
	movq	_QLCNIC_GBE@GOTPCREL(%rip), %rax
	testl	%edi, (%rcx)
	jne	LBB0_8
## %bb.4:
	movq	_QLC_83XX_100_CAPABLE@GOTPCREL(%rip), %rcx
	testl	%edi, (%rcx)
	jne	LBB0_8
## %bb.5:
	movq	_QLC_83XX_1G_CAPABLE@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_QLCNIC_GBE@GOTPCREL(%rip), %rax
LBB0_8:
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	callq	_QLC_83XX_AUTONEG
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Get Port Info failed\n"

	.comm	_QLC_83XX_10G_CAPABLE,4,2       ## @QLC_83XX_10G_CAPABLE
	.comm	_QLCNIC_XGBE,8,3                ## @QLCNIC_XGBE
	.comm	_QLC_83XX_10_CAPABLE,4,2        ## @QLC_83XX_10_CAPABLE
	.comm	_QLC_83XX_100_CAPABLE,4,2       ## @QLC_83XX_100_CAPABLE
	.comm	_QLC_83XX_1G_CAPABLE,4,2        ## @QLC_83XX_1G_CAPABLE
	.comm	_QLCNIC_GBE,8,3                 ## @QLCNIC_GBE
	.comm	_AUTONEG_ENABLE,4,2             ## @AUTONEG_ENABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_get_port_info      ; -- Begin function qlcnic_83xx_get_port_info
	.p2align	2
_qlcnic_83xx_get_port_info:             ; @qlcnic_83xx_get_port_info
	.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	x21, [x0, #8]
	bl	_qlcnic_83xx_get_port_config
	mov	x19, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x0, [x20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_9
LBB0_2:
Lloh2:
	adrp	x8, _QLC_83XX_10G_CAPABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _QLC_83XX_10G_CAPABLE@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh4:
	ldr	w10, [x8]
Lloh5:
	adrp	x8, _QLCNIC_XGBE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _QLCNIC_XGBE@GOTPAGEOFF]
	mov	x9, x8
	tst	w10, w0
	b.ne	LBB0_7
; %bb.3:
Lloh7:
	adrp	x9, _QLC_83XX_10_CAPABLE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _QLC_83XX_10_CAPABLE@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w0
	b.eq	LBB0_5
; %bb.4:
Lloh10:
	adrp	x9, _QLCNIC_GBE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _QLCNIC_GBE@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh12:
	adrp	x9, _QLC_83XX_100_CAPABLE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _QLC_83XX_100_CAPABLE@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x9]
Lloh15:
	adrp	x9, _QLCNIC_GBE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _QLCNIC_GBE@GOTPAGEOFF]
	tst	w10, w0
	b.ne	LBB0_7
; %bb.6:
Lloh17:
	adrp	x10, _QLC_83XX_1G_CAPABLE@GOTPAGE
Lloh18:
	ldr	x10, [x10, _QLC_83XX_1G_CAPABLE@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	tst	w10, w0
	csel	x9, x8, x9, eq
LBB0_7:
	ldr	x8, [x9]
	str	x8, [x21, #8]
	bl	_QLC_83XX_AUTONEG
	cbz	x0, LBB0_9
; %bb.8:
Lloh20:
	adrp	x8, _AUTONEG_ENABLE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [x21, #4]
LBB0_9:
	mov	x0, x19
	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
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Get Port Info failed\n"

	.comm	_QLC_83XX_10G_CAPABLE,4,2       ; @QLC_83XX_10G_CAPABLE
	.comm	_QLCNIC_XGBE,8,3                ; @QLCNIC_XGBE
	.comm	_QLC_83XX_10_CAPABLE,4,2        ; @QLC_83XX_10_CAPABLE
	.comm	_QLC_83XX_100_CAPABLE,4,2       ; @QLC_83XX_100_CAPABLE
	.comm	_QLC_83XX_1G_CAPABLE,4,2        ; @QLC_83XX_1G_CAPABLE
	.comm	_QLCNIC_GBE,8,3                 ; @QLCNIC_GBE
	.comm	_AUTONEG_ENABLE,4,2             ; @AUTONEG_ENABLE
.subsections_via_symbols
