	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_mcdi_phy_run_tests
_efx_mcdi_phy_run_tests:                ## @efx_mcdi_phy_run_tests
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	(%rdi), %rbx
	movl	(%rbx), %eax
	movq	_MC_CMD_GET_PHY_CFG_OUT_BIST_LBN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	btl	%ecx, %eax
	jae	LBB0_3
## %bb.1:
	movq	_MC_CMD_PHY_BIST@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_efx_mcdi_bist
	testl	%eax, %eax
	js	LBB0_12
## %bb.2:
	movl	%eax, %eax
	leaq	(%r14,%rax,4), %r14
	movl	(%rbx), %eax
LBB0_3:
	movq	_MC_CMD_GET_PHY_CFG_OUT_BIST_CABLE_SHORT_LBN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	btl	%ecx, %eax
	jae	LBB0_7
## %bb.4:
	movq	_ETH_TEST_FL_OFFLINE@GOTPCREL(%rip), %rcx
	testl	%r15d, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	_MC_CMD_GET_PHY_CFG_OUT_BIST_CABLE_LONG_LBN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	btl	%ecx, %eax
	jb	LBB0_8
LBB0_6:
	movq	_MC_CMD_PHY_BIST_CABLE_SHORT@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_MC_CMD_GET_PHY_CFG_OUT_BIST_CABLE_LONG_LBN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	btl	%ecx, %eax
	jae	LBB0_11
LBB0_8:
	movq	_MC_CMD_PHY_BIST_CABLE_LONG@GOTPCREL(%rip), %rax
LBB0_9:
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.10:
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_efx_mcdi_bist
	testl	%eax, %eax
	js	LBB0_12
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	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
	.comm	_MC_CMD_PHY_BIST,8,3            ## @MC_CMD_PHY_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	_ETH_TEST_FL_OFFLINE,4,2        ## @ETH_TEST_FL_OFFLINE
	.comm	_MC_CMD_GET_PHY_CFG_OUT_BIST_CABLE_LONG_LBN,4,2 ## @MC_CMD_GET_PHY_CFG_OUT_BIST_CABLE_LONG_LBN
	.comm	_MC_CMD_PHY_BIST_CABLE_LONG,8,3 ## @MC_CMD_PHY_BIST_CABLE_LONG
	.comm	_MC_CMD_PHY_BIST_CABLE_SHORT,8,3 ## @MC_CMD_PHY_BIST_CABLE_SHORT
	.no_dead_strip	_efx_mcdi_phy_run_tests
.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_run_tests
_efx_mcdi_phy_run_tests:                ; @efx_mcdi_phy_run_tests
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x22, [x0]
	ldr	w8, [x22]
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:
Lloh3:
	adrp	x8, _MC_CMD_PHY_BIST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MC_CMD_PHY_BIST@GOTPAGEOFF]
Lloh5:
	ldr	x1, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_efx_mcdi_bist
	tbnz	w0, #31, LBB0_11
; %bb.2:
	add	x19, x19, w0, uxtw #2
	ldr	w8, [x22]
LBB0_3:
Lloh6:
	adrp	x9, _MC_CMD_GET_PHY_CFG_OUT_BIST_CABLE_SHORT_LBN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MC_CMD_GET_PHY_CFG_OUT_BIST_CABLE_SHORT_LBN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	lsr	w9, w8, w9
	tbz	w9, #0, LBB0_7
; %bb.4:
Lloh9:
	adrp	x9, _ETH_TEST_FL_OFFLINE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ETH_TEST_FL_OFFLINE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w21
	b.eq	LBB0_6
; %bb.5:
Lloh12:
	adrp	x9, _MC_CMD_GET_PHY_CFG_OUT_BIST_CABLE_LONG_LBN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MC_CMD_GET_PHY_CFG_OUT_BIST_CABLE_LONG_LBN@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	lsr	w8, w8, w9
	tbnz	w8, #0, LBB0_8
LBB0_6:
Lloh15:
	adrp	x8, _MC_CMD_PHY_BIST_CABLE_SHORT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MC_CMD_PHY_BIST_CABLE_SHORT@GOTPAGEOFF]
Lloh17:
	ldr	x1, [x8]
	cbnz	x1, LBB0_9
	b	LBB0_10
LBB0_7:
Lloh18:
	adrp	x9, _MC_CMD_GET_PHY_CFG_OUT_BIST_CABLE_LONG_LBN@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MC_CMD_GET_PHY_CFG_OUT_BIST_CABLE_LONG_LBN@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	lsr	w8, w8, w9
	tbz	w8, #0, LBB0_10
LBB0_8:
Lloh21:
	adrp	x8, _MC_CMD_PHY_BIST_CABLE_LONG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MC_CMD_PHY_BIST_CABLE_LONG@GOTPAGEOFF]
Lloh23:
	ldr	x1, [x8]
	cbz	x1, LBB0_10
LBB0_9:
	mov	x0, x20
	mov	x2, x19
	bl	_efx_mcdi_bist
	tbnz	w0, #31, LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_MC_CMD_GET_PHY_CFG_OUT_BIST_LBN,4,2 ; @MC_CMD_GET_PHY_CFG_OUT_BIST_LBN
	.comm	_MC_CMD_PHY_BIST,8,3            ; @MC_CMD_PHY_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	_ETH_TEST_FL_OFFLINE,4,2        ; @ETH_TEST_FL_OFFLINE
	.comm	_MC_CMD_GET_PHY_CFG_OUT_BIST_CABLE_LONG_LBN,4,2 ; @MC_CMD_GET_PHY_CFG_OUT_BIST_CABLE_LONG_LBN
	.comm	_MC_CMD_PHY_BIST_CABLE_LONG,8,3 ; @MC_CMD_PHY_BIST_CABLE_LONG
	.comm	_MC_CMD_PHY_BIST_CABLE_SHORT,8,3 ; @MC_CMD_PHY_BIST_CABLE_SHORT
	.no_dead_strip	_efx_mcdi_phy_run_tests
.subsections_via_symbols
