	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_mcdi_phy_test_alive
_efx_mcdi_phy_test_alive:               ## @efx_mcdi_phy_test_alive
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_MC_CMD_GET_PHY_STATE_OUT_LEN@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	movq	%rbx, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_MC_CMD_GET_PHY_STATE_IN_LEN@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	setne	%dil
	callq	_BUILD_BUG_ON
	movq	_MC_CMD_GET_PHY_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leal	(,%rbx,4), %r9d
	subq	$8, %rsp
	leaq	-48(%rbp), %rax
	movq	%r12, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r14, %r8
	pushq	%rax
	callq	_efx_mcdi_rpc
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movslq	(%r15), %rax
	cmpq	%rax, -48(%rbp)
	jae	LBB0_3
## %bb.2:
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_3:
	movq	_GET_PHY_STATE_OUT_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_MCDI_DWORD
	movq	%rax, %rcx
	movq	_MC_CMD_PHY_STATE_OK@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_6
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MC_CMD_GET_PHY_STATE_OUT_LEN,4,2 ## @MC_CMD_GET_PHY_STATE_OUT_LEN
	.comm	_MC_CMD_GET_PHY_STATE_IN_LEN,8,3 ## @MC_CMD_GET_PHY_STATE_IN_LEN
	.comm	_MC_CMD_GET_PHY_STATE,4,2       ## @MC_CMD_GET_PHY_STATE
	.comm	_EIO,4,2                        ## @EIO
	.comm	_GET_PHY_STATE_OUT_STATE,4,2    ## @GET_PHY_STATE_OUT_STATE
	.comm	_MC_CMD_PHY_STATE_OK,8,3        ## @MC_CMD_PHY_STATE_OK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_efx_mcdi_phy_test_alive
.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_alive
_efx_mcdi_phy_test_alive:               ; @efx_mcdi_phy_test_alive
	.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
	sub	sp, sp, #16
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x21, _MC_CMD_GET_PHY_STATE_OUT_LEN@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MC_CMD_GET_PHY_STATE_OUT_LEN@GOTPAGEOFF]
	ldr	w22, [x21]
	lsl	x8, x22, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x19, x9, x8
	mov	sp, x19
Lloh7:
	adrp	x8, _MC_CMD_GET_PHY_STATE_IN_LEN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MC_CMD_GET_PHY_STATE_IN_LEN@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, ne
	bl	_BUILD_BUG_ON
Lloh10:
	adrp	x8, _MC_CMD_GET_PHY_STATE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MC_CMD_GET_PHY_STATE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	lsl	w5, w22, #2
	sub	x6, x29, #48
	mov	x0, x20
	mov	x2, #0
	mov	w3, #0
	mov	x4, x19
	bl	_efx_mcdi_rpc
	cbnz	w0, LBB0_7
; %bb.1:
	ldur	x8, [x29, #-48]
	ldrsw	x9, [x21]
	cmp	x8, x9
	b.hs	LBB0_3
; %bb.2:
Lloh13:
	adrp	x8, _EIO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
Lloh15:
	adrp	x8, _GET_PHY_STATE_OUT_STATE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GET_PHY_STATE_OUT_STATE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_MCDI_DWORD
Lloh18:
	adrp	x8, _MC_CMD_PHY_STATE_OK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MC_CMD_PHY_STATE_OK@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.4:
	mov	w0, #0
	b	LBB0_7
LBB0_5:
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldur	x8, [x29, #-40]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	sub	sp, x29, #32
	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
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_MC_CMD_GET_PHY_STATE_OUT_LEN,4,2 ; @MC_CMD_GET_PHY_STATE_OUT_LEN
	.comm	_MC_CMD_GET_PHY_STATE_IN_LEN,8,3 ; @MC_CMD_GET_PHY_STATE_IN_LEN
	.comm	_MC_CMD_GET_PHY_STATE,4,2       ; @MC_CMD_GET_PHY_STATE
	.comm	_EIO,4,2                        ; @EIO
	.comm	_GET_PHY_STATE_OUT_STATE,4,2    ; @GET_PHY_STATE_OUT_STATE
	.comm	_MC_CMD_PHY_STATE_OK,8,3        ; @MC_CMD_PHY_STATE_OK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_efx_mcdi_phy_test_alive
.subsections_via_symbols
