	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mv88e6390_serdes_get_lane      ## -- Begin function mv88e6390_serdes_get_lane
	.p2align	4, 0x90
_mv88e6390_serdes_get_lane:             ## @mv88e6390_serdes_get_lane
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movslq	%esi, %rdx
	movl	(%rax,%rdx,4), %ecx
	cmpl	$10, %edx
	je	LBB0_3
## %bb.1:
	xorl	%eax, %eax
	cmpl	$9, %esi
	jne	LBB0_5
## %bb.2:
	movq	_MV88E6XXX_PORT_STS_CMODE_1000BASEX@GOTPCREL(%rip), %rdx
	movq	_MV88E6XXX_PORT_STS_CMODE_SGMII@GOTPCREL(%rip), %rsi
	movq	_MV88E6XXX_PORT_STS_CMODE_2500BASEX@GOTPCREL(%rip), %rdi
	xorl	%eax, %eax
	cmpl	(%rdi), %ecx
	movq	_MV88E6390_PORT9_LANE0@GOTPCREL(%rip), %rdi
	jmp	LBB0_4
LBB0_3:
	movq	_MV88E6XXX_PORT_STS_CMODE_1000BASEX@GOTPCREL(%rip), %rdx
	movq	_MV88E6XXX_PORT_STS_CMODE_SGMII@GOTPCREL(%rip), %rsi
	movq	_MV88E6XXX_PORT_STS_CMODE_2500BASEX@GOTPCREL(%rip), %rdi
	xorl	%eax, %eax
	cmpl	(%rdi), %ecx
	movq	_MV88E6390_PORT10_LANE0@GOTPCREL(%rip), %rdi
LBB0_4:
	movl	(%rdi), %edi
	cmovel	%edi, %eax
	cmpl	(%rsi), %ecx
	cmovel	%edi, %eax
	cmpl	(%rdx), %ecx
	cmovel	%edi, %eax
LBB0_5:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MV88E6XXX_PORT_STS_CMODE_1000BASEX,4,2 ## @MV88E6XXX_PORT_STS_CMODE_1000BASEX
	.comm	_MV88E6XXX_PORT_STS_CMODE_SGMII,4,2 ## @MV88E6XXX_PORT_STS_CMODE_SGMII
	.comm	_MV88E6XXX_PORT_STS_CMODE_2500BASEX,4,2 ## @MV88E6XXX_PORT_STS_CMODE_2500BASEX
	.comm	_MV88E6390_PORT9_LANE0,4,2      ## @MV88E6390_PORT9_LANE0
	.comm	_MV88E6390_PORT10_LANE0,4,2     ## @MV88E6390_PORT10_LANE0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mv88e6390_serdes_get_lane      ; -- Begin function mv88e6390_serdes_get_lane
	.p2align	2
_mv88e6390_serdes_get_lane:             ; @mv88e6390_serdes_get_lane
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldr	w8, [x8, w1, sxtw #2]
	cmp	w1, #10
	b.eq	LBB0_3
; %bb.1:
	cmp	w1, #9
	b.ne	LBB0_5
; %bb.2:
Lloh0:
	adrp	x9, _MV88E6XXX_PORT_STS_CMODE_1000BASEX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MV88E6XXX_PORT_STS_CMODE_1000BASEX@GOTPAGEOFF]
Lloh2:
	adrp	x10, _MV88E6XXX_PORT_STS_CMODE_SGMII@GOTPAGE
Lloh3:
	ldr	x10, [x10, _MV88E6XXX_PORT_STS_CMODE_SGMII@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _MV88E6XXX_PORT_STS_CMODE_2500BASEX@GOTPAGE
Lloh7:
	ldr	x11, [x11, _MV88E6XXX_PORT_STS_CMODE_2500BASEX@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	cmp	w8, w11
	ccmp	w8, w10, #4, ne
	ccmp	w8, w9, #4, ne
Lloh9:
	adrp	x8, _MV88E6390_PORT9_LANE0@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MV88E6390_PORT9_LANE0@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh11:
	adrp	x9, _MV88E6XXX_PORT_STS_CMODE_1000BASEX@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MV88E6XXX_PORT_STS_CMODE_1000BASEX@GOTPAGEOFF]
Lloh13:
	adrp	x10, _MV88E6XXX_PORT_STS_CMODE_SGMII@GOTPAGE
Lloh14:
	ldr	x10, [x10, _MV88E6XXX_PORT_STS_CMODE_SGMII@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	ldr	w10, [x10]
Lloh17:
	adrp	x11, _MV88E6XXX_PORT_STS_CMODE_2500BASEX@GOTPAGE
Lloh18:
	ldr	x11, [x11, _MV88E6XXX_PORT_STS_CMODE_2500BASEX@GOTPAGEOFF]
Lloh19:
	ldr	w11, [x11]
	cmp	w8, w11
	ccmp	w8, w10, #4, ne
	ccmp	w8, w9, #4, ne
Lloh20:
	adrp	x8, _MV88E6390_PORT10_LANE0@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MV88E6390_PORT10_LANE0@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	csel	w0, w8, wzr, eq
	ret
LBB0_5:
	mov	w0, #0
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MV88E6XXX_PORT_STS_CMODE_1000BASEX,4,2 ; @MV88E6XXX_PORT_STS_CMODE_1000BASEX
	.comm	_MV88E6XXX_PORT_STS_CMODE_SGMII,4,2 ; @MV88E6XXX_PORT_STS_CMODE_SGMII
	.comm	_MV88E6XXX_PORT_STS_CMODE_2500BASEX,4,2 ; @MV88E6XXX_PORT_STS_CMODE_2500BASEX
	.comm	_MV88E6390_PORT9_LANE0,4,2      ; @MV88E6390_PORT9_LANE0
	.comm	_MV88E6390_PORT10_LANE0,4,2     ; @MV88E6390_PORT10_LANE0
.subsections_via_symbols
