	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_nic_get_link
_hns_nic_get_link:                      ## @hns_nic_get_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	8(%rax), %r14
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	callq	_genphy_read_status
	xorl	%ecx, %ecx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movq	(%rbx), %rax
LBB0_3:
	movl	(%rax), %ecx
LBB0_4:
	movq	(%r14), %rdx
	xorl	%eax, %eax
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.5:
	movq	(%rdx), %rdx
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.6:
	movq	(%rdx), %rdx
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.7:
	testl	%ecx, %ecx
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	*%rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	setne	%al
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_hns_nic_get_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_nic_get_link
_hns_nic_get_link:                      ; @hns_nic_get_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	x20, x0
	bl	_netdev_priv
	ldr	x19, [x0, #8]
	ldr	x8, [x20]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x0, x8
	bl	_genphy_read_status
	cbz	w0, LBB0_4
; %bb.2:
	mov	w8, #0
	ldr	x9, [x19]
	cbnz	x9, LBB0_5
	b	LBB0_7
LBB0_3:
	ldr	w8, [x0]
	ldr	x9, [x19]
	cbnz	x9, LBB0_5
	b	LBB0_7
LBB0_4:
	ldr	x8, [x20]
	ldr	w8, [x8]
	ldr	x9, [x19]
	cbz	x9, LBB0_7
LBB0_5:
	ldr	x9, [x9]
	cbz	x9, LBB0_7
; %bb.6:
	ldr	x9, [x9]
	cmp	x9, #0
	ccmp	w8, #0, #4, ne
	b.ne	LBB0_8
LBB0_7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
	mov	x0, x19
	blr	x9
	cmp	x0, #0
	cset	w0, ne
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_hns_nic_get_link
.subsections_via_symbols
