	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns3_reset_notify_restore_enet
_hns3_reset_notify_restore_enet:        ## @hns3_reset_notify_restore_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	16(%rdi), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_hns3_init_mac_addr
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movq	%rbx, %rdi
	callq	_hns3_recover_hw_addr
	testl	%eax, %eax
	jne	LBB0_6
## %bb.2:
	movl	8(%r14), %esi
	movq	%rbx, %rdi
	callq	_hns3_update_promisc_mode
	testl	%eax, %eax
	je	LBB0_3
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%esi, %esi
	andl	(%rbx), %eax
	sete	%sil
	movq	%rbx, %rdi
	callq	_hns3_enable_vlan_filter
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	*%rax
LBB0_5:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_hns3_restore_fd_rules          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.no_dead_strip	_hns3_reset_notify_restore_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_restore_enet
_hns3_reset_notify_restore_enet:        ; @hns3_reset_notify_restore_enet
	.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
	ldr	x19, [x0, #16]
	mov	x0, x19
	mov	w1, #0
	bl	_hns3_init_mac_addr
	cbnz	w0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_hns3_recover_hw_addr
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	w1, [x20, #8]
	mov	x0, x19
	bl	_hns3_update_promisc_mode
	cbz	w0, LBB0_4
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _IFF_PROMISC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IFF_PROMISC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w1, eq
	mov	x0, x19
	bl	_hns3_enable_vlan_filter
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x20
	blr	x8
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_hns3_restore_fd_rules
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.no_dead_strip	_hns3_reset_notify_restore_enet
.subsections_via_symbols
