	.file	"extr_mcdi_port.c_efx_mcdi_phy_test_name.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"cable"
.LC1:
	.string	"bist"
	.text
	.p2align 4
	.type	efx_mcdi_phy_test_name, @function
efx_mcdi_phy_test_name:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR 8[rdi]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR MC_CMD_GET_PHY_CFG_OUT_BIST_LBN[rip]
	bt	edx, eax
	jnc	.L2
	lea	r12, .LC1[rip]
	test	esi, esi
	je	.L1
	sub	esi, 1
.L2:
	mov	ecx, DWORD PTR MC_CMD_GET_PHY_CFG_OUT_BIST_CABLE_LONG_LBN[rip]
	mov	eax, 1
	xor	r12d, r12d
	sal	eax, cl
	mov	ecx, DWORD PTR MC_CMD_GET_PHY_CFG_OUT_BIST_CABLE_SHORT_LBN[rip]
	bts	eax, ecx
	test	eax, edx
	je	.L1
	lea	r12, .LC0[rip]
	test	esi, esi
	je	.L1
	mov	rax, QWORD PTR PHY_TYPE_SFT9001B[rip]
	xor	r12d, r12d
	cmp	QWORD PTR [rdi], rax
	je	.L17
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	rdi, QWORD PTR mcdi_sft9001_cable_diag_names[rip]
	lea	ebx, -1[rsi]
	call	ARRAY_SIZE@PLT
	cmp	eax, ebx
	jbe	.L4
	mov	rax, QWORD PTR mcdi_sft9001_cable_diag_names[rip]
	mov	esi, ebx
	mov	r12, QWORD PTR [rax+rsi*8]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	mov	rax, r12
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rdi, QWORD PTR mcdi_sft9001_cable_diag_names[rip]
	call	ARRAY_SIZE@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	efx_mcdi_phy_test_name, .-efx_mcdi_phy_test_name
	.comm	mcdi_sft9001_cable_diag_names,8,8
	.comm	PHY_TYPE_SFT9001B,8,8
	.comm	MC_CMD_GET_PHY_CFG_OUT_BIST_LBN,4,4
	.comm	MC_CMD_GET_PHY_CFG_OUT_BIST_CABLE_SHORT_LBN,4,4
	.comm	MC_CMD_GET_PHY_CFG_OUT_BIST_CABLE_LONG_LBN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_mcdi_port.c_efx_mcdi_phy_test_name.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"cable\000"
	.align	2
.LC1:
	.ascii	"bist\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	efx_mcdi_phy_test_name, %function
efx_mcdi_phy_test_name:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, [r0, #4]
	ldr	r3, .L18
	ldr	ip, [r2]
	ldr	r2, [r3]
	asr	r2, ip, r2
	tst	r2, #1
	beq	.L2
	cmp	r1, #0
	beq	.L5
	sub	r1, r1, #1
.L2:
	mov	r2, #1
	ldr	r3, .L18+4
	push	{r4, r5, r6, lr}
	ldr	lr, .L18+8
	ldr	r3, [r3]
	ldr	lr, [lr]
	lsl	r3, r2, r3
	orr	r3, r3, r2, lsl lr
	ands	r3, r3, ip
	beq	.L15
	cmp	r1, #0
	beq	.L7
	ldr	r3, .L18+12
	ldr	r2, [r0]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L17
.L15:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L7:
	ldr	r0, .L18+16
	pop	{r4, r5, r6, pc}
.L5:
	ldr	r0, .L18+20
	bx	lr
.L17:
	ldr	r5, .L18+24
	sub	r4, r1, #1
	ldr	r0, [r5]
	bl	ARRAY_SIZE
	cmp	r0, r4
	bls	.L4
	ldr	r3, [r5]
	ldr	r0, [r3, r4, lsl #2]
	pop	{r4, r5, r6, pc}
.L4:
	ldr	r0, [r5]
	bl	ARRAY_SIZE
	b	.L15
.L19:
	.align	2
.L18:
	.word	MC_CMD_GET_PHY_CFG_OUT_BIST_LBN
	.word	MC_CMD_GET_PHY_CFG_OUT_BIST_CABLE_LONG_LBN
	.word	MC_CMD_GET_PHY_CFG_OUT_BIST_CABLE_SHORT_LBN
	.word	PHY_TYPE_SFT9001B
	.word	.LC0
	.word	.LC1
	.word	mcdi_sft9001_cable_diag_names
	.size	efx_mcdi_phy_test_name, .-efx_mcdi_phy_test_name
	.comm	mcdi_sft9001_cable_diag_names,4,4
	.comm	PHY_TYPE_SFT9001B,4,4
	.comm	MC_CMD_GET_PHY_CFG_OUT_BIST_LBN,4,4
	.comm	MC_CMD_GET_PHY_CFG_OUT_BIST_CABLE_SHORT_LBN,4,4
	.comm	MC_CMD_GET_PHY_CFG_OUT_BIST_CABLE_LONG_LBN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
