	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fflp_early_init
_fflp_early_init:                       ## @fflp_early_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_niu_lock_parent
	movq	8(%rbx), %r15
	movq	_PARENT_FLGS_CLS_HWINIT@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	xorl	%r14d, %r14d
	testl	%eax, (%r15)
	jne	LBB0_13
## %bb.1:
	movq	8(%r15), %rax
	movq	_PLAT_TYPE_NIU@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	je	LBB0_5
## %bb.2:
	movq	%rbx, %rdi
	callq	_fflp_reset
	movq	%rbx, %rdi
	callq	_fflp_set_timings
	movq	%rbx, %rdi
	callq	_fflp_disable_all_partitions
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %r14d
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KERN_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rbx), %ecx
	leaq	L_.str(%rip), %r8
	jmp	LBB0_4
LBB0_5:
	movq	%rbx, %rdi
	callq	_tcam_early_init
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r14d
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KERN_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rbx), %ecx
	leaq	L_.str.1(%rip), %r8
	jmp	LBB0_4
LBB0_7:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_fflp_llcsnap_enable
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_fflp_errors_enable
	movq	_H1POLY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_nw64
	movq	_H2POLY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_nw64
	movq	%rbx, %rdi
	callq	_tcam_flush_all
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r14d
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KERN_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rbx), %ecx
	leaq	L_.str.2(%rip), %r8
LBB0_4:
	movq	%rbx, %rdi
	movl	%r14d, %r9d
	callq	_netif_printk
LBB0_13:
	movq	%rbx, %rdi
	callq	_niu_unlock_parent
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	8(%rbx), %rax
	movq	8(%rax), %rax
	cmpq	(%r13), %rax
	je	LBB0_12
## %bb.10:
	movq	%rbx, %rdi
	callq	_fflp_hash_clear
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %r14d
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KERN_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rbx), %ecx
	leaq	L_.str.3(%rip), %r8
	jmp	LBB0_4
LBB0_12:
	movq	%rbx, %rdi
	callq	_vlan_tbl_clear
	movl	(%r12), %eax
	orl	%eax, (%r15)
	xorl	%r14d, %r14d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_PARENT_FLGS_CLS_HWINIT,4,2     ## @PARENT_FLGS_CLS_HWINIT
	.comm	_PLAT_TYPE_NIU,8,3              ## @PLAT_TYPE_NIU
	.comm	_probe,4,2                      ## @probe
	.comm	_KERN_DEBUG,4,2                 ## @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fflp_disable_all_partitions failed, err=%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"tcam_early_init failed, err=%d\n"

	.comm	_H1POLY,4,2                     ## @H1POLY
	.comm	_H2POLY,4,2                     ## @H2POLY
L_.str.2:                               ## @.str.2
	.asciz	"tcam_flush_all failed, err=%d\n"

L_.str.3:                               ## @.str.3
	.asciz	"fflp_hash_clear failed, err=%d\n"

	.no_dead_strip	_fflp_early_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fflp_early_init
_fflp_early_init:                       ; @fflp_early_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	bl	_niu_lock_parent
	ldr	x21, [x19, #8]
	ldr	w8, [x21]
Lloh0:
	adrp	x22, _PARENT_FLGS_CLS_HWINIT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PARENT_FLGS_CLS_HWINIT@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_10
LBB0_2:
	ldr	x8, [x21, #8]
Lloh2:
	adrp	x23, _PLAT_TYPE_NIU@GOTPAGE
Lloh3:
	ldr	x23, [x23, _PLAT_TYPE_NIU@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_fflp_reset
	mov	x0, x19
	bl	_fflp_set_timings
	mov	x0, x19
	bl	_fflp_disable_all_partitions
	cbz	w0, LBB0_5
; %bb.4:
	mov	x20, x0
Lloh4:
	adrp	x8, _probe@GOTPAGE
Lloh5:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _KERN_DEBUG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _KERN_DEBUG@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	ldr	w3, [x19]
Lloh10:
	adrp	x4, l_.str@PAGE
Lloh11:
	add	x4, x4, l_.str@PAGEOFF
	b	LBB0_9
LBB0_5:
	mov	x0, x19
	bl	_tcam_early_init
	cbz	w0, LBB0_7
; %bb.6:
	mov	x20, x0
Lloh12:
	adrp	x8, _probe@GOTPAGE
Lloh13:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _KERN_DEBUG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _KERN_DEBUG@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	ldr	w3, [x19]
Lloh18:
	adrp	x4, l_.str.1@PAGE
Lloh19:
	add	x4, x4, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_7:
	mov	x0, x19
	mov	w1, #1
	bl	_fflp_llcsnap_enable
	mov	x0, x19
	mov	w1, #0
	bl	_fflp_errors_enable
Lloh20:
	adrp	x8, _H1POLY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _H1POLY@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_nw64
Lloh23:
	adrp	x8, _H2POLY@GOTPAGE
Lloh24:
	ldr	x8, [x8, _H2POLY@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_nw64
	mov	x0, x19
	bl	_tcam_flush_all
	cbz	w0, LBB0_11
; %bb.8:
	mov	x20, x0
Lloh26:
	adrp	x8, _probe@GOTPAGE
Lloh27:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x8, _KERN_DEBUG@GOTPAGE
Lloh30:
	ldr	x8, [x8, _KERN_DEBUG@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	ldr	w3, [x19]
Lloh32:
	adrp	x4, l_.str.2@PAGE
Lloh33:
	add	x4, x4, l_.str.2@PAGEOFF
LBB0_9:
	mov	x0, x19
	mov	x5, x20
	bl	_netif_printk
LBB0_10:
	mov	x0, x19
	bl	_niu_unlock_parent
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_14
; %bb.12:
	mov	x0, x19
	bl	_fflp_hash_clear
	cbz	w0, LBB0_14
; %bb.13:
	mov	x20, x0
Lloh34:
	adrp	x8, _probe@GOTPAGE
Lloh35:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
Lloh37:
	adrp	x8, _KERN_DEBUG@GOTPAGE
Lloh38:
	ldr	x8, [x8, _KERN_DEBUG@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
	ldr	w3, [x19]
Lloh40:
	adrp	x4, l_.str.3@PAGE
Lloh41:
	add	x4, x4, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_14:
	mov	x0, x19
	bl	_vlan_tbl_clear
	mov	w20, #0
	ldr	w8, [x22]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_PARENT_FLGS_CLS_HWINIT,4,2     ; @PARENT_FLGS_CLS_HWINIT
	.comm	_PLAT_TYPE_NIU,8,3              ; @PLAT_TYPE_NIU
	.comm	_probe,4,2                      ; @probe
	.comm	_KERN_DEBUG,4,2                 ; @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fflp_disable_all_partitions failed, err=%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"tcam_early_init failed, err=%d\n"

	.comm	_H1POLY,4,2                     ; @H1POLY
	.comm	_H2POLY,4,2                     ; @H2POLY
l_.str.2:                               ; @.str.2
	.asciz	"tcam_flush_all failed, err=%d\n"

l_.str.3:                               ; @.str.3
	.asciz	"fflp_hash_clear failed, err=%d\n"

	.no_dead_strip	_fflp_early_init
.subsections_via_symbols
