	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgbe_phy_switch_mode
_xgbe_phy_switch_mode:                  ## @xgbe_phy_switch_mode
	.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
	callq	_xgbe_phy_cur_mode
	movq	%rax, %rcx
	movq	_XGBE_MODE_KR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rcx
	jne	LBB0_5
## %bb.1:
	movq	(%rbx), %rax
	movq	_XGBE_SPEEDSET_2500_10000@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	_XGBE_MODE_KX_2500@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_XGBE_MODE_KX_1000@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
LBB0_5:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XGBE_MODE_KR,8,3               ## @XGBE_MODE_KR
	.comm	_XGBE_SPEEDSET_2500_10000,8,3   ## @XGBE_SPEEDSET_2500_10000
	.comm	_XGBE_MODE_KX_2500,4,2          ## @XGBE_MODE_KX_2500
	.comm	_XGBE_MODE_KX_1000,4,2          ## @XGBE_MODE_KX_1000
	.no_dead_strip	_xgbe_phy_switch_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgbe_phy_switch_mode
_xgbe_phy_switch_mode:                  ; @xgbe_phy_switch_mode
	.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
	ldr	x19, [x0]
	bl	_xgbe_phy_cur_mode
	mov	x8, x0
Lloh0:
	adrp	x9, _XGBE_MODE_KR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XGBE_MODE_KR@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x9]
	cmp	x8, x0
	b.ne	LBB0_5
; %bb.1:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _XGBE_SPEEDSET_2500_10000@GOTPAGE
Lloh4:
	ldr	x9, [x9, _XGBE_SPEEDSET_2500_10000@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _XGBE_MODE_KX_2500@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XGBE_MODE_KX_2500@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _XGBE_MODE_KX_1000@GOTPAGE
Lloh9:
	ldr	x8, [x8, _XGBE_MODE_KX_1000@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
LBB0_5:
                                        ; kill: def $w0 killed $w0 killed $x0
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_XGBE_MODE_KR,8,3               ; @XGBE_MODE_KR
	.comm	_XGBE_SPEEDSET_2500_10000,8,3   ; @XGBE_SPEEDSET_2500_10000
	.comm	_XGBE_MODE_KX_2500,4,2          ; @XGBE_MODE_KX_2500
	.comm	_XGBE_MODE_KX_1000,4,2          ; @XGBE_MODE_KX_1000
	.no_dead_strip	_xgbe_phy_switch_mode
.subsections_via_symbols
