	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns3_nic_net_up
_hns3_nic_net_up:                       ## @hns3_nic_net_up
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	24(%rax), %r15
	movq	%r15, %rdi
	callq	_hns3_nic_reset_all_ring
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_22
## %bb.1:
	movq	%rbx, %rdi
	callq	_hns3_set_rx_cpu_rmap
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_netdev_warn
LBB0_3:
	movq	%rbx, %r12
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_hns3_nic_init_irq
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_netdev_err
LBB0_21:
	movq	%r12, %rdi
	callq	_hns3_free_rx_cpu_rmap
	movl	%ebx, %r12d
LBB0_22:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_HNS3_NIC_STATE_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	addq	$16, %rsi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	callq	_clear_bit
	xorl	%r14d, %r14d
	cmpl	$0, (%r13)
	movl	$0, %r13d
	movq	%r12, %rbx
	jle	LBB0_9
## %bb.6:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rdi
	addq	%rbx, %rdi
	callq	_hns3_vector_enable
	incq	%r13
	movslq	(%r12), %rax
	addq	$4, %rbx
	cmpq	%rax, %r13
	jl	LBB0_7
## %bb.8:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_9:
	cmpl	$0, (%r15)
	jle	LBB0_12
## %bb.10:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movl	(%rax,%r14,4), %edi
	callq	_hns3_tqp_enable
	incq	%r14
	movslq	(%r15), %rax
	cmpq	%rax, %r14
	jl	LBB0_11
LBB0_12:
	movq	16(%r15), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	xorl	%r12d, %r12d
	testq	%rcx, %rcx
	je	LBB0_22
## %bb.13:
	movq	%r15, %rdi
	callq	*%rcx
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	je	LBB0_22
## %bb.14:
	movq	%rbx, %r12
	movq	_HNS3_NIC_STATE_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_set_bit
	testl	%r14d, %r14d
	je	LBB0_17
## %bb.15:
	movl	%r14d, %ebx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movl	-4(%rax,%rbx,4), %edi
	callq	_hns3_tqp_disable
	decq	%rbx
	jne	LBB0_16
LBB0_17:
	testl	%r13d, %r13d
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jle	LBB0_20
## %bb.18:
	movl	%r13d, %r14d
	leaq	-4(,%r14,4), %rbx
	incq	%r14
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rdi
	addq	%rbx, %rdi
	callq	_hns3_vector_disable
	decq	%r14
	addq	$-4, %rbx
	cmpq	$1, %r14
	ja	LBB0_19
LBB0_20:
	movq	%r15, %rdi
	callq	_hns3_nic_uninit_irq
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set rx cpu rmap fail, ret=%d!\n"

L_.str.1:                               ## @.str.1
	.asciz	"init irq failed! ret=%d\n"

	.comm	_HNS3_NIC_STATE_DOWN,4,2        ## @HNS3_NIC_STATE_DOWN
	.no_dead_strip	_hns3_nic_net_up
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns3_nic_net_up
_hns3_nic_net_up:                       ; @hns3_nic_net_up
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x21, [x0, #24]
	mov	x0, x21
	bl	_hns3_nic_reset_all_ring
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.1:
	mov	x0, x19
	bl	_hns3_set_rx_cpu_rmap
	cbz	w0, LBB0_3
; %bb.2:
	mov	x2, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_warn
LBB0_3:
	mov	x0, x20
	bl	_hns3_nic_init_irq
	cbz	w0, LBB0_7
; %bb.4:
	mov	x22, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_netdev_err
LBB0_5:
	mov	x0, x19
	bl	_hns3_free_rx_cpu_rmap
LBB0_6:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh4:
	adrp	x25, _HNS3_NIC_STATE_DOWN@GOTPAGE
Lloh5:
	ldr	x25, [x25, _HNS3_NIC_STATE_DOWN@GOTPAGEOFF]
	ldr	w0, [x25]
	add	x23, x20, #16
	mov	x1, x23
	bl	_clear_bit
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x22, #0
	mov	x24, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	add	x0, x8, x22
	bl	_hns3_vector_enable
	add	x24, x24, #1
	ldrsw	x8, [x20]
	add	x22, x22, #4
	cmp	x24, x8
	b.lt	LBB0_9
	b	LBB0_11
LBB0_10:
	mov	w24, #0
LBB0_11:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.12:
	mov	x26, #0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	w0, [x8, x26, lsl #2]
	bl	_hns3_tqp_enable
	add	x26, x26, #1
	ldrsw	x8, [x21]
	cmp	x26, x8
	b.lt	LBB0_13
	b	LBB0_15
LBB0_14:
	mov	w26, #0
LBB0_15:
	ldr	x8, [x21, #16]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_24
; %bb.16:
	mov	x0, x21
	blr	x8
	mov	x22, x0
	cbz	w0, LBB0_6
; %bb.17:
	ldr	w0, [x25]
	mov	x1, x23
	bl	_set_bit
	cbz	w26, LBB0_20
; %bb.18:
	mov	w8, w26
	lsl	x8, x8, #2
	sub	x23, x8, #4
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	w0, [x8, x23]
	bl	_hns3_tqp_disable
	sub	x23, x23, #4
	cmn	x23, #4
	b.ne	LBB0_19
LBB0_20:
	cmp	w24, #1
	b.lt	LBB0_23
; %bb.21:
	mov	w8, w24
	add	x21, x8, #1
	lsl	x8, x8, #2
	sub	x23, x8, #4
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	add	x0, x8, x23
	bl	_hns3_vector_disable
	sub	x21, x21, #1
	sub	x23, x23, #4
	cmp	x21, #1
	b.hi	LBB0_22
LBB0_23:
	mov	x0, x20
	bl	_hns3_nic_uninit_irq
	b	LBB0_5
LBB0_24:
	mov	w22, #0
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set rx cpu rmap fail, ret=%d!\n"

l_.str.1:                               ; @.str.1
	.asciz	"init irq failed! ret=%d\n"

	.comm	_HNS3_NIC_STATE_DOWN,4,2        ; @HNS3_NIC_STATE_DOWN
	.no_dead_strip	_hns3_nic_net_up
.subsections_via_symbols
