	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgbe_phy_status_result
_xgbe_phy_status_result:                ## @xgbe_phy_status_result
	.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
	addq	$24, %rdi
	callq	_XGBE_ZERO_LP_ADV
	movq	8(%rbx), %rax
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	cmpq	$0, 32(%rbx)
	je	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_xgbe_cur_mode
	jmp	LBB0_4
LBB0_3:
	movq	%rbx, %rdi
	callq	_xgbe_phy_status_aneg
LBB0_4:
                                        ## kill: def $eax killed $eax def $rax
	leal	-128(%rax), %ecx
	cmpl	$7, %ecx
	ja	LBB0_5
## %bb.6:
	movslq	%ecx, %rcx
	leaq	l_switch.table.xgbe_phy_status_result(%rip), %rdx
	movq	(%rdx,%rcx,8), %rcx
	jmp	LBB0_7
LBB0_5:
	movq	_SPEED_UNKNOWN@GOTPCREL(%rip), %rcx
LBB0_7:
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rbx)
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rbx)
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_xgbe_set_mode
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	cmpq	$0, (%rbx)
	je	LBB0_9
## %bb.10:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_xgbe_phy_reconfig_aneg         ## TAILCALL
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AUTONEG_ENABLE,8,3             ## @AUTONEG_ENABLE
	.comm	_SPEED_100,4,2                  ## @SPEED_100
	.comm	_SPEED_1000,4,2                 ## @SPEED_1000
	.comm	_SPEED_2500,4,2                 ## @SPEED_2500
	.comm	_SPEED_10000,4,2                ## @SPEED_10000
	.comm	_SPEED_UNKNOWN,4,2              ## @SPEED_UNKNOWN
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.no_dead_strip	_xgbe_phy_status_result
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.xgbe_phy_status_result
l_switch.table.xgbe_phy_status_result:
	.quad	_SPEED_1000
	.quad	_SPEED_UNKNOWN
	.quad	_SPEED_1000
	.quad	_SPEED_100
	.quad	_SPEED_10000
	.quad	_SPEED_2500
	.quad	_SPEED_1000
	.quad	_SPEED_10000

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgbe_phy_status_result
_xgbe_phy_status_result:                ; @xgbe_phy_status_result
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x0, x0, #24
	bl	_XGBE_ZERO_LP_ADV
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _AUTONEG_ENABLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_xgbe_cur_mode
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_xgbe_phy_status_aneg
LBB0_4:
	mov	x1, x0
	sub	w8, w0, #128
	cmp	w8, #7
	b.hi	LBB0_6
; %bb.5:
Lloh3:
	adrp	x9, l_switch.table.xgbe_phy_status_result@PAGE
Lloh4:
	add	x9, x9, l_switch.table.xgbe_phy_status_result@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_7
LBB0_6:
Lloh5:
	adrp	x8, _SPEED_UNKNOWN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SPEED_UNKNOWN@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh8:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #16]
	mov	x0, x19
	bl	_xgbe_set_mode
	cbz	x0, LBB0_10
; %bb.8:
	ldr	x8, [x19]
	cbz	x8, LBB0_10
; %bb.9:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_xgbe_phy_reconfig_aneg
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_AUTONEG_ENABLE,8,3             ; @AUTONEG_ENABLE
	.comm	_SPEED_100,4,2                  ; @SPEED_100
	.comm	_SPEED_1000,4,2                 ; @SPEED_1000
	.comm	_SPEED_2500,4,2                 ; @SPEED_2500
	.comm	_SPEED_10000,4,2                ; @SPEED_10000
	.comm	_SPEED_UNKNOWN,4,2              ; @SPEED_UNKNOWN
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.no_dead_strip	_xgbe_phy_status_result
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.xgbe_phy_status_result
l_switch.table.xgbe_phy_status_result:
	.quad	_SPEED_1000
	.quad	_SPEED_UNKNOWN
	.quad	_SPEED_1000
	.quad	_SPEED_100
	.quad	_SPEED_10000
	.quad	_SPEED_2500
	.quad	_SPEED_1000
	.quad	_SPEED_10000

.subsections_via_symbols
