	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2_5708s_linkup
_bnx2_5708s_linkup:                     ## @bnx2_5708s_linkup
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	$1, (%rdi)
	movq	_BCM5708S_1000X_STAT1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	callq	_bnx2_read_phy
	movl	-12(%rbp), %eax
	movq	_BCM5708S_1000X_STAT1_SPEED_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	addl	$-128, %ecx
	cmpl	$3, %ecx
	ja	LBB0_2
## %bb.1:
	movslq	%ecx, %rcx
	leaq	l_switch.table.bnx2_5708s_linkup(%rip), %rdx
	movq	(%rdx,%rcx,8), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rbx)
LBB0_2:
	movq	_BCM5708S_1000X_STAT1_FD@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	jne	LBB0_3
## %bb.4:
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BCM5708S_1000X_STAT1,4,2       ## @BCM5708S_1000X_STAT1
	.comm	_BCM5708S_1000X_STAT1_SPEED_MASK,4,2 ## @BCM5708S_1000X_STAT1_SPEED_MASK
	.comm	_SPEED_10,4,2                   ## @SPEED_10
	.comm	_SPEED_100,4,2                  ## @SPEED_100
	.comm	_SPEED_1000,4,2                 ## @SPEED_1000
	.comm	_SPEED_2500,4,2                 ## @SPEED_2500
	.comm	_BCM5708S_1000X_STAT1_FD,4,2    ## @BCM5708S_1000X_STAT1_FD
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ## @DUPLEX_HALF
	.no_dead_strip	_bnx2_5708s_linkup
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.bnx2_5708s_linkup
l_switch.table.bnx2_5708s_linkup:
	.quad	_SPEED_2500
	.quad	_SPEED_1000
	.quad	_SPEED_100
	.quad	_SPEED_10

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2_5708s_linkup
_bnx2_5708s_linkup:                     ; @bnx2_5708s_linkup
	.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, x0
	mov	w8, #1
	str	w8, [x0]
Lloh0:
	adrp	x8, _BCM5708S_1000X_STAT1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BCM5708S_1000X_STAT1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_bnx2_read_phy
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _BCM5708S_1000X_STAT1_SPEED_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BCM5708S_1000X_STAT1_SPEED_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w9, w9, w8
	sub	w9, w9, #128
	cmp	w9, #3
	b.hi	LBB0_2
; %bb.1:
Lloh6:
	adrp	x10, l_switch.table.bnx2_5708s_linkup@PAGE
Lloh7:
	add	x10, x10, l_switch.table.bnx2_5708s_linkup@PAGEOFF
	ldr	x9, [x10, w9, sxtw #3]
	ldr	w9, [x9]
	str	w9, [x19, #8]
LBB0_2:
Lloh8:
	adrp	x9, _BCM5708S_1000X_STAT1_FD@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BCM5708S_1000X_STAT1_FD@GOTPAGEOFF]
Lloh10:
	adrp	x10, _DUPLEX_HALF@GOTPAGE
Lloh11:
	ldr	x10, [x10, _DUPLEX_HALF@GOTPAGEOFF]
Lloh12:
	adrp	x11, _DUPLEX_FULL@GOTPAGE
Lloh13:
	ldr	x11, [x11, _DUPLEX_FULL@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
	str	w8, [x19, #4]
	mov	w0, #0
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_BCM5708S_1000X_STAT1,4,2       ; @BCM5708S_1000X_STAT1
	.comm	_BCM5708S_1000X_STAT1_SPEED_MASK,4,2 ; @BCM5708S_1000X_STAT1_SPEED_MASK
	.comm	_SPEED_10,4,2                   ; @SPEED_10
	.comm	_SPEED_100,4,2                  ; @SPEED_100
	.comm	_SPEED_1000,4,2                 ; @SPEED_1000
	.comm	_SPEED_2500,4,2                 ; @SPEED_2500
	.comm	_BCM5708S_1000X_STAT1_FD,4,2    ; @BCM5708S_1000X_STAT1_FD
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ; @DUPLEX_HALF
	.no_dead_strip	_bnx2_5708s_linkup
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.bnx2_5708s_linkup
l_switch.table.bnx2_5708s_linkup:
	.quad	_SPEED_2500
	.quad	_SPEED_1000
	.quad	_SPEED_100
	.quad	_SPEED_10

.subsections_via_symbols
