	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mv88e6341_serdes_get_lane      ## -- Begin function mv88e6341_serdes_get_lane
	.p2align	4, 0x90
_mv88e6341_serdes_get_lane:             ## @mv88e6341_serdes_get_lane
	.cfi_startproc
## %bb.0:
	xorl	%eax, %eax
	cmpl	$5, %esi
	jne	LBB0_2
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movl	20(%rax), %ecx
	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	_MV88E6341_PORT5_LANE@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	cmovel	%edi, %eax
	cmpl	(%rsi), %ecx
	cmovel	%edi, %eax
	cmpl	(%rdx), %ecx
	cmovel	%edi, %eax
	popq	%rbp
LBB0_2:
	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	_MV88E6341_PORT5_LANE,4,2       ## @MV88E6341_PORT5_LANE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mv88e6341_serdes_get_lane      ; -- Begin function mv88e6341_serdes_get_lane
	.p2align	2
_mv88e6341_serdes_get_lane:             ; @mv88e6341_serdes_get_lane
	.cfi_startproc
; %bb.0:
	cmp	w1, #5
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x0]
	ldr	w8, [x8, #20]
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, _MV88E6341_PORT5_LANE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MV88E6341_PORT5_LANE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	csel	w0, w8, wzr, eq
	ret
LBB0_2:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.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	_MV88E6341_PORT5_LANE,4,2       ; @MV88E6341_PORT5_LANE
.subsections_via_symbols
