	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns3_reset_notify_init_enet
_hns3_reset_notify_init_enet:           ## @hns3_reset_notify_init_enet
	.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
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_netif_carrier_off
	movq	%r14, %rdi
	callq	_hns3_get_ring_config
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movq	%r14, %rdi
	callq	_hns3_nic_alloc_vector_data
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.2:
	movq	%r14, %rdi
	callq	_hns3_restore_coal
	movq	%r14, %rdi
	callq	_hns3_nic_init_vector_data
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movq	%r14, %rdi
	callq	_hns3_init_all_ring
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movq	%r15, %rdi
	callq	_hns3_client_start
	testl	%eax, %eax
	je	LBB0_10
## %bb.5:
	movl	%eax, %ebx
	movl	4(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	movq	%r14, %rdi
	callq	_hns3_uninit_all_ring
LBB0_6:
	movq	%r14, %rdi
	callq	_hns3_nic_uninit_vector_data
LBB0_7:
	movq	%r14, %rdi
	callq	_hns3_nic_dealloc_vector_data
LBB0_8:
	movq	%r14, %rdi
	callq	_hns3_put_ring_config
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_HNS3_NIC_STATE_INITED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_set_bit
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hns3_client_start fail! ret=%d\n"

	.comm	_HNS3_NIC_STATE_INITED,4,2      ## @HNS3_NIC_STATE_INITED
	.no_dead_strip	_hns3_reset_notify_init_enet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns3_reset_notify_init_enet
_hns3_reset_notify_init_enet:           ; @hns3_reset_notify_init_enet
	.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	x21, x0
	ldr	x20, [x0]
	mov	x0, x20
	bl	_netdev_priv
	mov	x19, x0
	mov	x0, x20
	bl	_netif_carrier_off
	mov	x0, x19
	bl	_hns3_get_ring_config
	mov	x20, x0
	cbnz	w0, LBB0_9
; %bb.1:
	mov	x0, x19
	bl	_hns3_nic_alloc_vector_data
	mov	x20, x0
	cbnz	w0, LBB0_8
; %bb.2:
	mov	x0, x19
	bl	_hns3_restore_coal
	mov	x0, x19
	bl	_hns3_nic_init_vector_data
	mov	x20, x0
	cbnz	w0, LBB0_7
; %bb.3:
	mov	x0, x19
	bl	_hns3_init_all_ring
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.4:
	mov	x0, x21
	bl	_hns3_client_start
	mov	x20, x0
	cbz	w0, LBB0_10
; %bb.5:
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
	mov	x0, x19
	bl	_hns3_uninit_all_ring
LBB0_6:
	mov	x0, x19
	bl	_hns3_nic_uninit_vector_data
LBB0_7:
	mov	x0, x19
	bl	_hns3_nic_dealloc_vector_data
LBB0_8:
	mov	x0, x19
	bl	_hns3_put_ring_config
LBB0_9:
	mov	x0, x20
	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
LBB0_10:
Lloh2:
	adrp	x8, _HNS3_NIC_STATE_INITED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HNS3_NIC_STATE_INITED@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_set_bit
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hns3_client_start fail! ret=%d\n"

	.comm	_HNS3_NIC_STATE_INITED,4,2      ; @HNS3_NIC_STATE_INITED
	.no_dead_strip	_hns3_reset_notify_init_enet
.subsections_via_symbols
