	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_mcdi_phy_test_name
_efx_mcdi_phy_test_name:                ## @efx_mcdi_phy_test_name
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	8(%rdi), %rax
	movl	(%rax), %eax
	movq	_MC_CMD_GET_PHY_CFG_OUT_BIST_LBN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	btl	%ecx, %eax
	jae	LBB0_4
## %bb.1:
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.3:
	decl	%ebx
LBB0_4:
	movq	_MC_CMD_GET_PHY_CFG_OUT_BIST_CABLE_LONG_LBN@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %edx
	shll	%cl, %edx
	movq	_MC_CMD_GET_PHY_CFG_OUT_BIST_CABLE_SHORT_LBN@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsl	%ecx, %edx
	testl	%eax, %edx
	je	LBB0_11
## %bb.5:
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.7:
	movq	(%rdi), %rax
	movq	_PHY_TYPE_SFT9001B@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.8:
	decl	%ebx
	movq	_mcdi_sft9001_cable_diag_names@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	movq	(%r14), %rdi
	cmpl	%eax, %ebx
	jae	LBB0_10
## %bb.9:
	movl	%ebx, %eax
	movq	(%rdi,%rax,8), %rax
	jmp	LBB0_12
LBB0_2:
	leaq	L_.str(%rip), %rax
	jmp	LBB0_12
LBB0_6:
	leaq	L_.str.1(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	callq	_ARRAY_SIZE
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MC_CMD_GET_PHY_CFG_OUT_BIST_LBN,4,2 ## @MC_CMD_GET_PHY_CFG_OUT_BIST_LBN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bist"

	.comm	_MC_CMD_GET_PHY_CFG_OUT_BIST_CABLE_SHORT_LBN,4,2 ## @MC_CMD_GET_PHY_CFG_OUT_BIST_CABLE_SHORT_LBN
	.comm	_MC_CMD_GET_PHY_CFG_OUT_BIST_CABLE_LONG_LBN,4,2 ## @MC_CMD_GET_PHY_CFG_OUT_BIST_CABLE_LONG_LBN
L_.str.1:                               ## @.str.1
	.asciz	"cable"

	.comm	_PHY_TYPE_SFT9001B,8,3          ## @PHY_TYPE_SFT9001B
	.comm	_mcdi_sft9001_cable_diag_names,8,3 ## @mcdi_sft9001_cable_diag_names
	.no_dead_strip	_efx_mcdi_phy_test_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efx_mcdi_phy_test_name
_efx_mcdi_phy_test_name:                ; @efx_mcdi_phy_test_name
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _MC_CMD_GET_PHY_CFG_OUT_BIST_LBN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MC_CMD_GET_PHY_CFG_OUT_BIST_LBN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	lsr	w9, w8, w9
	tbz	w9, #0, LBB0_3
; %bb.1:
	cbz	w1, LBB0_8
; %bb.2:
	sub	w1, w1, #1
LBB0_3:
Lloh3:
	adrp	x9, _MC_CMD_GET_PHY_CFG_OUT_BIST_CABLE_SHORT_LBN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MC_CMD_GET_PHY_CFG_OUT_BIST_CABLE_SHORT_LBN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	mov	w10, #1
	lsl	w9, w10, w9
Lloh6:
	adrp	x11, _MC_CMD_GET_PHY_CFG_OUT_BIST_CABLE_LONG_LBN@GOTPAGE
Lloh7:
	ldr	x11, [x11, _MC_CMD_GET_PHY_CFG_OUT_BIST_CABLE_LONG_LBN@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	lsl	w10, w10, w11
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_11
; %bb.4:
	cbz	w1, LBB0_9
; %bb.5:
	ldr	x8, [x0]
Lloh9:
	adrp	x9, _PHY_TYPE_SFT9001B@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PHY_TYPE_SFT9001B@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.6:
	sub	w19, w1, #1
Lloh12:
	adrp	x20, _mcdi_sft9001_cable_diag_names@GOTPAGE
Lloh13:
	ldr	x20, [x20, _mcdi_sft9001_cable_diag_names@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	mov	x8, x0
	ldr	x0, [x20]
	cmp	w19, w8
	b.hs	LBB0_10
; %bb.7:
	ldr	x0, [x0, w19, uxtw #3]
	b	LBB0_12
LBB0_8:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_12
LBB0_9:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_10:
	bl	_ARRAY_SIZE
LBB0_11:
	mov	x0, #0
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MC_CMD_GET_PHY_CFG_OUT_BIST_LBN,4,2 ; @MC_CMD_GET_PHY_CFG_OUT_BIST_LBN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bist"

	.comm	_MC_CMD_GET_PHY_CFG_OUT_BIST_CABLE_SHORT_LBN,4,2 ; @MC_CMD_GET_PHY_CFG_OUT_BIST_CABLE_SHORT_LBN
	.comm	_MC_CMD_GET_PHY_CFG_OUT_BIST_CABLE_LONG_LBN,4,2 ; @MC_CMD_GET_PHY_CFG_OUT_BIST_CABLE_LONG_LBN
l_.str.1:                               ; @.str.1
	.asciz	"cable"

	.comm	_PHY_TYPE_SFT9001B,8,3          ; @PHY_TYPE_SFT9001B
	.comm	_mcdi_sft9001_cable_diag_names,8,3 ; @mcdi_sft9001_cable_diag_names
	.no_dead_strip	_efx_mcdi_phy_test_name
.subsections_via_symbols
