	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_nic_adjust_link
_hns_nic_adjust_link:                   ## @hns_nic_adjust_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movq	8(%rax), %rbx
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.2:
	movq	(%rbx), %rcx
	movq	(%rcx), %rcx
	movl	8(%rax), %edx
	movl	12(%rax), %esi
	movq	%rbx, %rdi
	callq	*16(%rcx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_netif_carrier_off
	movl	$200, %edi
	callq	_msleep
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	(%r15), %rcx
	movl	8(%rcx), %edx
	movl	12(%rcx), %esi
	movq	%rbx, %rdi
	callq	*8(%rax)
	movq	%r15, %rdi
	callq	_netif_carrier_on
LBB0_4:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	xorl	%ebx, %ebx
	testq	%rax, %rax
	setne	%bl
	cmpl	%ebx, (%r14)
	je	LBB0_9
## %bb.5:
	movq	%r15, %rdi
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	callq	_netif_carrier_on
	movq	%r15, %rdi
	callq	_netif_tx_wake_all_queues
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_8
LBB0_7:
	callq	_netif_carrier_off
	leaq	L_.str.1(%rip), %rsi
LBB0_8:
	movq	%r15, %rdi
	callq	_netdev_info
	movl	%ebx, (%r14)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"link up\n"

L_.str.1:                               ## @.str.1
	.asciz	"link down\n"

	.no_dead_strip	_hns_nic_adjust_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_adjust_link
_hns_nic_adjust_link:                   ; @hns_nic_adjust_link
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x21, [x0, #8]
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x9, [x8]
	cbz	x9, LBB0_9
; %bb.2:
	ldr	x9, [x21]
	ldr	x9, [x9]
	ldr	x9, [x9, #16]
	ldp	w2, w1, [x8, #8]
	mov	x0, x21
	blr	x9
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_netif_carrier_off
	mov	w0, #200
	bl	_msleep
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	ldr	x9, [x19]
	ldp	w2, w1, [x9, #8]
	mov	x0, x21
	blr	x8
	mov	x0, x19
	bl	_netif_carrier_on
LBB0_4:
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	x8, [x8]
	mov	x0, x21
	blr	x8
	cmp	x0, #0
	cset	w21, ne
	ldr	w8, [x20]
	cmp	w8, w21
	b.eq	LBB0_9
; %bb.5:
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_netif_carrier_on
	mov	x0, x19
	bl	_netif_tx_wake_all_queues
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_netif_carrier_off
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_8:
	mov	x0, x19
	bl	_netdev_info
	str	w21, [x20]
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"link up\n"

l_.str.1:                               ; @.str.1
	.asciz	"link down\n"

	.no_dead_strip	_hns_nic_adjust_link
.subsections_via_symbols
