	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function phy_check_link_status
_phy_check_link_status:                 ## @phy_check_link_status
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	addq	$24, %rdi
	callq	_mutex_is_locked
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	cmpq	$0, 16(%rbx)
	je	LBB0_1
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_1:
	movq	%rbx, %rdi
	callq	_phy_read_status
	testl	%eax, %eax
	je	LBB0_2
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	cmpq	$0, 8(%rbx)
	movq	(%rbx), %rax
	je	LBB0_5
## %bb.3:
	movq	_PHY_RUNNING@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	je	LBB0_7
## %bb.4:
	movq	%rcx, (%rbx)
	movq	%rbx, %rdi
	callq	_phy_link_up
	jmp	LBB0_7
LBB0_5:
	movq	_PHY_NOLINK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	je	LBB0_7
## %bb.6:
	movq	%rcx, (%rbx)
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_phy_link_down
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_RUNNING,8,3                ## @PHY_RUNNING
	.comm	_PHY_NOLINK,8,3                 ## @PHY_NOLINK
	.no_dead_strip	_phy_check_link_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function phy_check_link_status
_phy_check_link_status:                 ; @phy_check_link_status
	.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
	mov	x19, x0
	add	x0, x0, #24
	bl	_mutex_is_locked
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_phy_read_status
	cbz	w0, LBB0_4
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldp	x8, x9, [x19]
	cbz	x9, LBB0_7
; %bb.5:
Lloh0:
	adrp	x9, _PHY_RUNNING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PHY_RUNNING@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_1
; %bb.6:
	str	x9, [x19]
	mov	x0, x19
	bl	_phy_link_up
	b	LBB0_1
LBB0_7:
Lloh3:
	adrp	x9, _PHY_NOLINK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PHY_NOLINK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_1
; %bb.8:
	str	x9, [x19]
	mov	x0, x19
	mov	w1, #1
	bl	_phy_link_down
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_RUNNING,8,3                ; @PHY_RUNNING
	.comm	_PHY_NOLINK,8,3                 ; @PHY_NOLINK
	.no_dead_strip	_phy_check_link_status
.subsections_via_symbols
