	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_get_mac_phy_link
_hclge_get_mac_phy_link:                ## @hclge_get_mac_phy_link
	.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
	movq	_HCLGE_STATE_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %rsi
	callq	_test_bit
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_6
## %bb.1:
	movq	%rbx, %rdi
	callq	_hclge_get_mac_link_status
	movq	(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.2:
	movq	(%rcx), %rsi
	movq	_PHY_RUNNING@GOTPCREL(%rip), %rdi
	xorl	%edx, %edx
	cmpq	(%rdi), %rsi
	jne	LBB0_5
## %bb.3:
	andl	8(%rcx), %eax
LBB0_4:
	movl	%eax, %edx
LBB0_5:
	xorl	%eax, %eax
	testl	%edx, %edx
	setne	%al
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HCLGE_STATE_DOWN,4,2           ## @HCLGE_STATE_DOWN
	.comm	_PHY_RUNNING,8,3                ## @PHY_RUNNING
	.no_dead_strip	_hclge_get_mac_phy_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_get_mac_phy_link
_hclge_get_mac_phy_link:                ; @hclge_get_mac_phy_link
	.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
Lloh0:
	adrp	x8, _HCLGE_STATE_DOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HCLGE_STATE_DOWN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_7
LBB0_2:
	mov	x0, x19
	bl	_hclge_get_mac_link_status
	ldr	x8, [x19]
	cbz	x8, LBB0_6
; %bb.3:
	ldr	x9, [x8]
Lloh3:
	adrp	x10, _PHY_RUNNING@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PHY_RUNNING@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.4:
	ldr	w8, [x8, #8]
	and	w0, w8, w0
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	cmp	w0, #0
	cset	w0, ne
LBB0_7:
	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	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGE_STATE_DOWN,4,2           ; @HCLGE_STATE_DOWN
	.comm	_PHY_RUNNING,8,3                ; @PHY_RUNNING
	.no_dead_strip	_hclge_get_mac_phy_link
.subsections_via_symbols
