	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hns_mac_get_link_status        ## -- Begin function hns_mac_get_link_status
	.p2align	4, 0x90
_hns_mac_get_link_status:               ## @hns_mac_get_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_hns_mac_get_drv
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	*%rcx
	jmp	LBB0_3
LBB0_2:
	movl	$0, (%r14)
LBB0_3:
	movq	(%rbx), %rax
	movq	_HNAE_MEDIA_TYPE_FIBER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	leaq	-20(%rbp), %rsi
	movq	%rbx, %rdi
	callq	*(%rax)
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	cmpl	$0, (%r14)
	setne	%al
	cmpl	$0, -20(%rbp)
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %eax
	movl	%eax, (%r14)
LBB0_6:
	movl	(%r14), %eax
	movl	%eax, 8(%rbx)
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HNAE_MEDIA_TYPE_FIBER,8,3      ## @HNAE_MEDIA_TYPE_FIBER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hns_mac_get_link_status        ; -- Begin function hns_mac_get_link_status
	.p2align	2
_hns_mac_get_link_status:               ; @hns_mac_get_link_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_hns_mac_get_drv
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x1, x20
	blr	x8
	b	LBB0_3
LBB0_2:
	str	wzr, [x20]
LBB0_3:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _HNAE_MEDIA_TYPE_FIBER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HNAE_MEDIA_TYPE_FIBER@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	x8, [x8]
	add	x1, sp, #12
	mov	x0, x19
	blr	x8
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	w8, [x20]
	cmp	w8, #0
	ldr	w8, [sp, #12]
	ccmp	w8, #0, #4, ne
	cset	w8, ne
	str	w8, [x20]
LBB0_6:
	ldr	w8, [x20]
	str	w8, [x19, #8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HNAE_MEDIA_TYPE_FIBER,8,3      ; @HNAE_MEDIA_TYPE_FIBER
.subsections_via_symbols
