	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_net_read_link_status
_nfp_net_read_link_status:              ## @nfp_net_read_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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_NFP_NET_CFG_STS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_nn_readl
	movq	_NFP_NET_CFG_STS_LINK@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	testl	%eax, (%rdx)
	setne	%cl
	cmpl	%ecx, (%rbx)
	je	LBB0_7
## %bb.1:
	movl	%ecx, (%rbx)
	movq	16(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	movq	_NFP_PORT_CHANGED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_bit
	movl	(%rbx), %ecx
LBB0_3:
	movl	8(%rbx), %edi
	testl	%ecx, %ecx
	je	LBB0_5
## %bb.4:
	callq	_netif_carrier_on
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_6
LBB0_5:
	callq	_netif_carrier_off
	leaq	L_.str.1(%rip), %rsi
LBB0_6:
	movl	8(%rbx), %edi
	callq	_netdev_info
LBB0_7:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NFP_NET_CFG_STS,4,2            ## @NFP_NET_CFG_STS
	.comm	_NFP_NET_CFG_STS_LINK,4,2       ## @NFP_NET_CFG_STS_LINK
	.comm	_NFP_PORT_CHANGED,4,2           ## @NFP_PORT_CHANGED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NIC Link is Up\n"

L_.str.1:                               ## @.str.1
	.asciz	"NIC Link is Down\n"

	.no_dead_strip	_nfp_net_read_link_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_net_read_link_status
_nfp_net_read_link_status:              ; @nfp_net_read_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	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _NFP_NET_CFG_STS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NFP_NET_CFG_STS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_nn_readl
Lloh3:
	adrp	x8, _NFP_NET_CFG_STS_LINK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NFP_NET_CFG_STS_LINK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w8, ne
	ldr	w9, [x20]
	cmp	w9, w8
	b.eq	LBB0_7
; %bb.1:
	str	w8, [x20]
	ldr	x1, [x20, #16]
	cbz	x1, LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _NFP_PORT_CHANGED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NFP_PORT_CHANGED@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_set_bit
	ldr	w8, [x20]
LBB0_3:
	ldr	w0, [x20, #8]
	cbz	w8, LBB0_5
; %bb.4:
	bl	_netif_carrier_on
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:
	bl	_netif_carrier_off
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	ldr	w0, [x20, #8]
	bl	_netdev_info
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_NFP_NET_CFG_STS,4,2            ; @NFP_NET_CFG_STS
	.comm	_NFP_NET_CFG_STS_LINK,4,2       ; @NFP_NET_CFG_STS_LINK
	.comm	_NFP_PORT_CHANGED,4,2           ; @NFP_PORT_CHANGED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NIC Link is Up\n"

l_.str.1:                               ; @.str.1
	.asciz	"NIC Link is Down\n"

	.no_dead_strip	_nfp_net_read_link_status
.subsections_via_symbols
