	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sky2_phy_speed
_sky2_phy_speed:                        ## @sky2_phy_speed
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	movq	_SKY2_HW_FIBRE_PHY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
LBB0_9:
	movq	_SPEED_1000@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_1:
	movq	_SKY2_HW_GIGABIT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.5:
	movq	_PHY_M_PS_SPEED_MSK@GOTPCREL(%rip), %rax
	andl	(%rax), %esi
	cmpl	$129, %esi
	jne	LBB0_6
## %bb.7:
	movq	_SPEED_100@GOTPCREL(%rip), %rax
	cmpl	$128, %esi
	je	LBB0_9
	jmp	LBB0_10
LBB0_2:
	testb	$-127, %sil
	jne	LBB0_3
## %bb.4:
	movq	_SPEED_10@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_6:
	movq	_SPEED_10@GOTPCREL(%rip), %rax
	cmpl	$128, %esi
	je	LBB0_9
	jmp	LBB0_10
LBB0_3:
	movq	_SPEED_100@GOTPCREL(%rip), %rax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_SKY2_HW_FIBRE_PHY,4,2          ## @SKY2_HW_FIBRE_PHY
	.comm	_SPEED_1000,4,2                 ## @SPEED_1000
	.comm	_SKY2_HW_GIGABIT,4,2            ## @SKY2_HW_GIGABIT
	.comm	_SPEED_100,4,2                  ## @SPEED_100
	.comm	_SPEED_10,4,2                   ## @SPEED_10
	.comm	_PHY_M_PS_SPEED_MSK,4,2         ## @PHY_M_PS_SPEED_MSK
	.no_dead_strip	_sky2_phy_speed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sky2_phy_speed
_sky2_phy_speed:                        ; @sky2_phy_speed
	.cfi_startproc
; %bb.0:
	ldr	w9, [x0]
Lloh0:
	adrp	x8, _SKY2_HW_FIBRE_PHY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SKY2_HW_FIBRE_PHY@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x8]
Lloh3:
	adrp	x8, _SPEED_1000@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SPEED_1000@GOTPAGEOFF]
	tst	w10, w9
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x8]
	ret
LBB0_2:
Lloh5:
	adrp	x10, _SKY2_HW_GIGABIT@GOTPAGE
Lloh6:
	ldr	x10, [x10, _SKY2_HW_GIGABIT@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.3:
Lloh8:
	adrp	x9, _PHY_M_PS_SPEED_MSK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PHY_M_PS_SPEED_MSK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	and	w9, w9, w1
Lloh11:
	adrp	x10, _SPEED_10@GOTPAGE
Lloh12:
	ldr	x10, [x10, _SPEED_10@GOTPAGEOFF]
Lloh13:
	adrp	x11, _SPEED_100@GOTPAGE
Lloh14:
	ldr	x11, [x11, _SPEED_100@GOTPAGEOFF]
	cmp	w9, #129
	csel	x10, x11, x10, eq
	cmp	w9, #128
	csel	x8, x8, x10, eq
	ldr	w0, [x8]
	ret
LBB0_4:
Lloh15:
	adrp	x8, _SPEED_100@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SPEED_100@GOTPAGEOFF]
Lloh17:
	adrp	x9, _SPEED_10@GOTPAGE
Lloh18:
	ldr	x9, [x9, _SPEED_10@GOTPAGEOFF]
	mov	w10, #129
	tst	w1, w10
	csel	x8, x9, x8, eq
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_SKY2_HW_FIBRE_PHY,4,2          ; @SKY2_HW_FIBRE_PHY
	.comm	_SPEED_1000,4,2                 ; @SPEED_1000
	.comm	_SKY2_HW_GIGABIT,4,2            ; @SKY2_HW_GIGABIT
	.comm	_SPEED_100,4,2                  ; @SPEED_100
	.comm	_SPEED_10,4,2                   ; @SPEED_10
	.comm	_PHY_M_PS_SPEED_MSK,4,2         ; @PHY_M_PS_SPEED_MSK
	.no_dead_strip	_sky2_phy_speed
.subsections_via_symbols
