	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mv88e6352_serdes_get_lane      ## -- Begin function mv88e6352_serdes_get_lane
	.p2align	4, 0x90
_mv88e6352_serdes_get_lane:             ## @mv88e6352_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, %rcx
	movq	(%rax,%rcx,8), %rcx
	movq	_MV88E6XXX_PORT_STS_CMODE_100BASEX@GOTPCREL(%rip), %rdx
	movq	_MV88E6XXX_PORT_STS_CMODE_SGMII@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	cmpq	(%rsi), %rcx
	movq	_MV88E6XXX_PORT_STS_CMODE_1000BASEX@GOTPCREL(%rip), %rsi
	movl	$255, %edi
	cmoveq	%rdi, %rax
	cmpq	(%rsi), %rcx
	cmoveq	%rdi, %rax
	cmpq	(%rdx), %rcx
	cmoveq	%rdi, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MV88E6XXX_PORT_STS_CMODE_100BASEX,8,3 ## @MV88E6XXX_PORT_STS_CMODE_100BASEX
	.comm	_MV88E6XXX_PORT_STS_CMODE_1000BASEX,8,3 ## @MV88E6XXX_PORT_STS_CMODE_1000BASEX
	.comm	_MV88E6XXX_PORT_STS_CMODE_SGMII,8,3 ## @MV88E6XXX_PORT_STS_CMODE_SGMII
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mv88e6352_serdes_get_lane      ; -- Begin function mv88e6352_serdes_get_lane
	.p2align	2
_mv88e6352_serdes_get_lane:             ; @mv88e6352_serdes_get_lane
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldr	x8, [x8, w1, sxtw #3]
Lloh0:
	adrp	x9, _MV88E6XXX_PORT_STS_CMODE_100BASEX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MV88E6XXX_PORT_STS_CMODE_100BASEX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _MV88E6XXX_PORT_STS_CMODE_1000BASEX@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MV88E6XXX_PORT_STS_CMODE_1000BASEX@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _MV88E6XXX_PORT_STS_CMODE_SGMII@GOTPAGE
Lloh7:
	ldr	x11, [x11, _MV88E6XXX_PORT_STS_CMODE_SGMII@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x8, x11
	ccmp	x8, x10, #4, ne
	ccmp	x8, x9, #4, ne
	mov	w8, #255
	csel	x0, x8, xzr, eq
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MV88E6XXX_PORT_STS_CMODE_100BASEX,8,3 ; @MV88E6XXX_PORT_STS_CMODE_100BASEX
	.comm	_MV88E6XXX_PORT_STS_CMODE_1000BASEX,8,3 ; @MV88E6XXX_PORT_STS_CMODE_1000BASEX
	.comm	_MV88E6XXX_PORT_STS_CMODE_SGMII,8,3 ; @MV88E6XXX_PORT_STS_CMODE_SGMII
.subsections_via_symbols
