	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function niu_init_classifier_hw
_niu_init_classifier_hw:                ## @niu_init_classifier_hw
	.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, %r15
	movq	40(%rdi), %r12
	movq	_H1POLY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	36(%r15), %esi
	callq	_nw64
	movq	_H2POLY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	32(%r15), %esi
	callq	_nw64
	movq	%r15, %rdi
	callq	_niu_init_hostinfo
	testl	%eax, %eax
	je	LBB0_1
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_ENET_VLAN_TBL_NUM_ENTRIES@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rax
	movl	(%r15), %edx
	movl	(%rax,%rbx,8), %r8d
	movl	4(%rax,%rbx,8), %ecx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_vlan_tbl_write
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_4:
	cmpl	$0, 8(%r15)
	jle	LBB0_8
## %bb.5:
	movl	$8, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movl	(%rax,%rbx), %esi
	movl	-8(%rax,%rbx), %ecx
	movl	-4(%rax,%rbx), %edx
	movq	%r15, %rdi
	callq	_niu_set_alt_mac_rdc_table
	testl	%eax, %eax
	jne	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%r14
	movslq	8(%r15), %rax
	addq	$12, %rbx
	cmpq	%rax, %r14
	jl	LBB0_7
LBB0_8:
	movq	_CLASS_CODE_USER_PROG1@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_CLASS_CODE_SCTP_IPV6@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jle	LBB0_9
LBB0_14:
	movq	%r15, %rdi
	callq	_niu_set_ip_frag_rule
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_tcam_enable
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_9:
	movq	8(%r12), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_niu_set_tcam_key
	testl	%eax, %eax
	jne	LBB0_16
## %bb.10:
	incl	%r14d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	leal	-1(%r14), %ebx
	movq	(%r12), %rax
	movl	(%rax,%r13,4), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_niu_set_flow_key
	testl	%eax, %eax
	jne	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	_CLASS_CODE_SCTP_IPV6@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jge	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	%r14d, %eax
	movq	_CLASS_CODE_USER_PROG1@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	movq	8(%r12), %rcx
	movslq	%eax, %r13
	movl	(%rcx,%r13,4), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_niu_set_tcam_key
	incl	%r14d
	testl	%eax, %eax
	je	LBB0_13
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_H1POLY,4,2                     ## @H1POLY
	.comm	_H2POLY,4,2                     ## @H2POLY
	.comm	_ENET_VLAN_TBL_NUM_ENTRIES,4,2  ## @ENET_VLAN_TBL_NUM_ENTRIES
	.comm	_CLASS_CODE_USER_PROG1,4,2      ## @CLASS_CODE_USER_PROG1
	.comm	_CLASS_CODE_SCTP_IPV6,4,2       ## @CLASS_CODE_SCTP_IPV6
	.no_dead_strip	_niu_init_classifier_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function niu_init_classifier_hw
_niu_init_classifier_hw:                ; @niu_init_classifier_hw
	.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
	ldr	x22, [x0, #40]
Lloh0:
	adrp	x8, _H1POLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _H1POLY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x19, #36]
	bl	_nw64
Lloh3:
	adrp	x8, _H2POLY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _H2POLY@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w1, [x19, #32]
	bl	_nw64
	mov	x0, x19
	bl	_niu_init_hostinfo
	cbz	w0, LBB0_2
LBB0_1:
	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_2:
Lloh6:
	adrp	x21, _ENET_VLAN_TBL_NUM_ENTRIES@GOTPAGE
Lloh7:
	ldr	x21, [x21, _ENET_VLAN_TBL_NUM_ENTRIES@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x23, #0
	mov	x20, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	w2, [x19]
	add	x8, x8, x23
	ldp	w4, w3, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_vlan_tbl_write
	add	x20, x20, #1
	ldrsw	x8, [x21]
	add	x23, x23, #8
	cmp	x20, x8
	b.lt	LBB0_4
LBB0_5:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.6:
	mov	x20, #0
	mov	x21, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x8, x8, x20
	ldp	w2, w1, [x8, #4]
	ldr	w3, [x8]
	mov	x0, x19
	bl	_niu_set_alt_mac_rdc_table
	cbnz	w0, LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x19, #8]
	add	x20, x20, #12
	cmp	x21, x8
	b.lt	LBB0_7
LBB0_9:
Lloh8:
	adrp	x23, _CLASS_CODE_USER_PROG1@GOTPAGE
Lloh9:
	ldr	x23, [x23, _CLASS_CODE_USER_PROG1@GOTPAGEOFF]
	ldr	w20, [x23]
Lloh10:
	adrp	x24, _CLASS_CODE_SCTP_IPV6@GOTPAGE
Lloh11:
	ldr	x24, [x24, _CLASS_CODE_SCTP_IPV6@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w20, w8
	b.le	LBB0_12
LBB0_10:
	mov	x0, x19
	bl	_niu_set_ip_frag_rule
	cbnz	w0, LBB0_1
; %bb.11:
	mov	x0, x19
	mov	w1, #1
	bl	_tcam_enable
	mov	w0, #0
	b	LBB0_1
LBB0_12:
	ldr	x8, [x22, #8]
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_niu_set_tcam_key
	cbnz	w0, LBB0_1
; %bb.13:
	mov	x25, #0
	add	w20, w20, #1
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	sub	w21, w20, #1
	ldr	x8, [x22]
	ldr	w2, [x8, x25, lsl #2]
	mov	x0, x19
	mov	x1, x21
	bl	_niu_set_flow_key
	cbnz	w0, LBB0_1
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w8, [x24]
	cmp	w21, w8
	b.ge	LBB0_10
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w8, [x23]
	sub	w8, w20, w8
	ldr	x9, [x22, #8]
	sxtw	x25, w8
	ldr	w2, [x9, w8, sxtw #2]
	mov	x0, x19
	mov	x1, x20
	bl	_niu_set_tcam_key
	add	w20, w20, #1
	cbz	w0, LBB0_14
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_H1POLY,4,2                     ; @H1POLY
	.comm	_H2POLY,4,2                     ; @H2POLY
	.comm	_ENET_VLAN_TBL_NUM_ENTRIES,4,2  ; @ENET_VLAN_TBL_NUM_ENTRIES
	.comm	_CLASS_CODE_USER_PROG1,4,2      ; @CLASS_CODE_USER_PROG1
	.comm	_CLASS_CODE_SCTP_IPV6,4,2       ; @CLASS_CODE_SCTP_IPV6
	.no_dead_strip	_niu_init_classifier_hw
.subsections_via_symbols
