	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function niu_new_parent
_niu_new_parent:                        ## @niu_new_parent
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	_niu_parent_index@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_platform_device_register_simple
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_15
## %bb.1:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	_niu_parent_attributes@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	cmpq	$0, (%rsi)
	je	LBB0_6
## %bb.2:
	movl	$8, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_device_create_file
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r12), %rax
	leaq	(%rax,%r14), %rsi
	cmpq	$0, (%rax,%r14)
	leaq	8(%r14), %r14
	jne	LBB0_4
LBB0_6:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$80, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movq	%rax, %r12
	movslq	(%r13), %rax
	leal	1(%rax), %ecx
	movl	%ecx, (%r13)
	movq	%rax, 72(%r12)
	movq	%r12, (%rbx)
	movq	%rbx, 64(%r12)
	leaq	56(%r12), %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r12)
	leaq	48(%r12), %rbx
	movq	%rbx, %rdi
	callq	_INIT_LIST_HEAD
	leaq	52(%r12), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	_niu_parent_list@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_list_add
	movq	%r12, %rdi
	addq	$44, %rdi
	callq	_spin_lock_init
	movl	$7500, 8(%r12)                  ## imm = 0x1D4C
	movq	_NIU_PCI_TCAM_ENTRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r12)
	movq	(%r12), %rax
	movq	_PLAT_TYPE_NIU@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movq	_NIU_NONPCI_TCAM_ENTRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r12)
LBB0_9:
	movq	_CLASS_CODE_USER_PROG1@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_CLASS_CODE_SCTP_IPV6@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jle	LBB0_10
LBB0_12:
	movq	_LDN_MAX@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	js	LBB0_15
## %bb.13:
	movq	24(%r12), %rcx
	movq	$-1, %rdx
	movq	_LDG_INVALID@GOTPCREL(%rip), %rsi
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %edi
	movl	%edi, 4(%rcx,%rdx,4)
	movslq	(%rax), %rdi
	incq	%rdx
	cmpq	%rdi, %rdx
	jl	LBB0_14
	jmp	LBB0_15
LBB0_5:
	movq	%rbx, %rdi
	callq	_platform_device_unregister
	xorl	%r12d, %r12d
LBB0_15:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movslq	%ecx, %rsi
	movq	16(%r12), %r14
	movq	32(%r12), %rbx
	movq	_FLOW_KEY_PROTO@GOTPCREL(%rip), %r15
	movq	_FLOW_KEY_L4_BYTE12@GOTPCREL(%rip), %r13
	movq	_FLOW_KEY_L4_0_SHIFT@GOTPCREL(%rip), %r10
	movq	_FLOW_KEY_L4_1_SHIFT@GOTPCREL(%rip), %r11
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	_TCAM_KEY_TSEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movslq	%ecx, %r9
	shlq	$2, %r9
	movq	%rbx, %rcx
	subq	%r9, %rcx
	movl	%r8d, (%rcx,%rsi,4)
	movq	_FLOW_KEY_IPDA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_FLOW_KEY_IPSA@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	(%r13), %edi
	movzbl	(%r10), %ecx
	movl	%edi, %eax
	shll	%cl, %eax
	orl	(%r15), %edx
	orl	%edx, %eax
	movzbl	(%r11), %ecx
	shll	%cl, %edi
	orl	%eax, %edi
	movq	%r14, %rax
	subq	%r9, %rax
	movl	%edi, (%rax,%rsi,4)
	movq	_CLASS_CODE_SCTP_IPV6@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jge	LBB0_12
## %bb.16:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_CLASS_CODE_USER_PROG1@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	incq	%rsi
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"niu-board"

	.comm	_niu_parent_index,4,2           ## @niu_parent_index
	.comm	_niu_parent_attributes,8,3      ## @niu_parent_attributes
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_niu_parent_list,4,2            ## @niu_parent_list
	.comm	_NIU_PCI_TCAM_ENTRIES,4,2       ## @NIU_PCI_TCAM_ENTRIES
	.comm	_PLAT_TYPE_NIU,8,3              ## @PLAT_TYPE_NIU
	.comm	_NIU_NONPCI_TCAM_ENTRIES,4,2    ## @NIU_NONPCI_TCAM_ENTRIES
	.comm	_CLASS_CODE_USER_PROG1,4,2      ## @CLASS_CODE_USER_PROG1
	.comm	_CLASS_CODE_SCTP_IPV6,4,2       ## @CLASS_CODE_SCTP_IPV6
	.comm	_TCAM_KEY_TSEL,4,2              ## @TCAM_KEY_TSEL
	.comm	_FLOW_KEY_IPSA,4,2              ## @FLOW_KEY_IPSA
	.comm	_FLOW_KEY_IPDA,4,2              ## @FLOW_KEY_IPDA
	.comm	_FLOW_KEY_PROTO,4,2             ## @FLOW_KEY_PROTO
	.comm	_FLOW_KEY_L4_BYTE12,4,2         ## @FLOW_KEY_L4_BYTE12
	.comm	_FLOW_KEY_L4_0_SHIFT,4,2        ## @FLOW_KEY_L4_0_SHIFT
	.comm	_FLOW_KEY_L4_1_SHIFT,4,2        ## @FLOW_KEY_L4_1_SHIFT
	.comm	_LDN_MAX,4,2                    ## @LDN_MAX
	.comm	_LDG_INVALID,4,2                ## @LDG_INVALID
	.no_dead_strip	_niu_new_parent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function niu_new_parent
_niu_new_parent:                        ; @niu_new_parent
	.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	x20, x2
	mov	x21, x1
Lloh0:
	adrp	x23, _niu_parent_index@GOTPAGE
Lloh1:
	ldr	x23, [x23, _niu_parent_index@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, #0
	mov	w3, #0
	bl	_platform_device_register_simple
	mov	x22, x0
	bl	_IS_ERR
	mov	x19, #0
	cbnz	x0, LBB0_13
; %bb.1:
Lloh4:
	adrp	x19, _niu_parent_attributes@GOTPAGE
Lloh5:
	ldr	x19, [x19, _niu_parent_attributes@GOTPAGEOFF]
	ldr	x1, [x19]
	ldr	x8, [x1]
	cbz	x8, LBB0_5
; %bb.2:
	mov	w24, #8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_device_create_file
	cbnz	w0, LBB0_12
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	add	x1, x8, x24
	ldr	x8, [x1]
	add	x24, x24, #8
	cbnz	x8, LBB0_3
LBB0_5:
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w0, #80
	bl	_kzalloc
	cbz	x0, LBB0_12
; %bb.6:
	mov	x19, x0
	ldrsw	x8, [x23]
	add	w9, w8, #1
	str	w9, [x23]
	str	x0, [x22]
	stp	x22, x8, [x0, #64]
	add	x0, x0, #56
	mov	x1, x21
	mov	w2, #4
	bl	_memcpy
	str	x20, [x19]
	add	x20, x19, #48
	mov	x0, x20
	bl	_INIT_LIST_HEAD
	add	x0, x19, #52
	mov	w1, #0
	bl	_atomic_set
Lloh9:
	adrp	x1, _niu_parent_list@GOTPAGE
Lloh10:
	ldr	x1, [x1, _niu_parent_list@GOTPAGEOFF]
	mov	x0, x20
	bl	_list_add
	add	x0, x19, #44
	bl	_spin_lock_init
	mov	w8, #7500
	str	w8, [x19, #8]
Lloh11:
	adrp	x8, _NIU_PCI_TCAM_ENTRIES@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NIU_PCI_TCAM_ENTRIES@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x19, #40]
	ldr	x8, [x19]
Lloh14:
	adrp	x9, _PLAT_TYPE_NIU@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PLAT_TYPE_NIU@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
Lloh17:
	adrp	x8, _NIU_NONPCI_TCAM_ENTRIES@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NIU_NONPCI_TCAM_ENTRIES@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x19, #40]
LBB0_8:
Lloh20:
	adrp	x8, _CLASS_CODE_USER_PROG1@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CLASS_CODE_USER_PROG1@GOTPAGEOFF]
	ldr	w1, [x8]
Lloh22:
	adrp	x9, _CLASS_CODE_SCTP_IPV6@GOTPAGE
Lloh23:
	ldr	x9, [x9, _CLASS_CODE_SCTP_IPV6@GOTPAGEOFF]
	ldr	w10, [x9]
	cmp	w1, w10
	b.le	LBB0_14
LBB0_9:
Lloh24:
	adrp	x8, _LDN_MAX@GOTPAGE
Lloh25:
	ldr	x8, [x8, _LDN_MAX@GOTPAGEOFF]
	ldr	w9, [x8]
	tbnz	w9, #31, LBB0_13
; %bb.10:
	mov	x10, #0
	ldr	x9, [x19, #24]
Lloh26:
	adrp	x11, _LDG_INVALID@GOTPAGE
Lloh27:
	ldr	x11, [x11, _LDG_INVALID@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11]
	str	w12, [x9, x10, lsl #2]
	add	x12, x10, #1
	ldrsw	x13, [x8]
	cmp	x10, x13
	mov	x10, x12
	b.lt	LBB0_11
	b	LBB0_13
LBB0_12:
	mov	x0, x22
	bl	_platform_device_unregister
	mov	x19, #0
LBB0_13:
	mov	x0, x19
	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_14:
	sxtw	x10, w1
	ldr	x11, [x19, #32]
Lloh28:
	adrp	x12, _TCAM_KEY_TSEL@GOTPAGE
Lloh29:
	ldr	x12, [x12, _TCAM_KEY_TSEL@GOTPAGEOFF]
Lloh30:
	adrp	x13, _FLOW_KEY_IPSA@GOTPAGE
Lloh31:
	ldr	x13, [x13, _FLOW_KEY_IPSA@GOTPAGEOFF]
Lloh32:
	adrp	x14, _FLOW_KEY_IPDA@GOTPAGE
Lloh33:
	ldr	x14, [x14, _FLOW_KEY_IPDA@GOTPAGEOFF]
Lloh34:
	adrp	x15, _FLOW_KEY_PROTO@GOTPAGE
Lloh35:
	ldr	x15, [x15, _FLOW_KEY_PROTO@GOTPAGEOFF]
Lloh36:
	adrp	x16, _FLOW_KEY_L4_BYTE12@GOTPAGE
Lloh37:
	ldr	x16, [x16, _FLOW_KEY_L4_BYTE12@GOTPAGEOFF]
	ldr	x17, [x19, #16]
Lloh38:
	adrp	x0, _FLOW_KEY_L4_0_SHIFT@GOTPAGE
Lloh39:
	ldr	x0, [x0, _FLOW_KEY_L4_0_SHIFT@GOTPAGEOFF]
	mov	x2, x1
Lloh40:
	adrp	x1, _FLOW_KEY_L4_1_SHIFT@GOTPAGE
Lloh41:
	ldr	x1, [x1, _FLOW_KEY_L4_1_SHIFT@GOTPAGEOFF]
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	w3, [x12]
	sbfiz	x2, x2, #2, #32
	sub	x4, x11, x2
	lsl	x5, x10, #2
	str	w3, [x4, x5]
	ldr	w3, [x13]
	ldr	w4, [x14]
	orr	w3, w4, w3
	ldr	w4, [x15]
	orr	w3, w3, w4
	ldr	w4, [x16]
	ldr	w6, [x0]
	lsl	w6, w4, w6
	orr	w3, w3, w6
	ldr	w6, [x1]
	lsl	w4, w4, w6
	orr	w3, w3, w4
	sub	x2, x17, x2
	str	w3, [x2, x5]
	ldr	w2, [x9]
	cmp	w10, w2
	b.ge	LBB0_9
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w2, [x8]
	add	x10, x10, #1
	b	LBB0_15
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"niu-board"

	.comm	_niu_parent_index,4,2           ; @niu_parent_index
	.comm	_niu_parent_attributes,8,3      ; @niu_parent_attributes
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_niu_parent_list,4,2            ; @niu_parent_list
	.comm	_NIU_PCI_TCAM_ENTRIES,4,2       ; @NIU_PCI_TCAM_ENTRIES
	.comm	_PLAT_TYPE_NIU,8,3              ; @PLAT_TYPE_NIU
	.comm	_NIU_NONPCI_TCAM_ENTRIES,4,2    ; @NIU_NONPCI_TCAM_ENTRIES
	.comm	_CLASS_CODE_USER_PROG1,4,2      ; @CLASS_CODE_USER_PROG1
	.comm	_CLASS_CODE_SCTP_IPV6,4,2       ; @CLASS_CODE_SCTP_IPV6
	.comm	_TCAM_KEY_TSEL,4,2              ; @TCAM_KEY_TSEL
	.comm	_FLOW_KEY_IPSA,4,2              ; @FLOW_KEY_IPSA
	.comm	_FLOW_KEY_IPDA,4,2              ; @FLOW_KEY_IPDA
	.comm	_FLOW_KEY_PROTO,4,2             ; @FLOW_KEY_PROTO
	.comm	_FLOW_KEY_L4_BYTE12,4,2         ; @FLOW_KEY_L4_BYTE12
	.comm	_FLOW_KEY_L4_0_SHIFT,4,2        ; @FLOW_KEY_L4_0_SHIFT
	.comm	_FLOW_KEY_L4_1_SHIFT,4,2        ; @FLOW_KEY_L4_1_SHIFT
	.comm	_LDN_MAX,4,2                    ; @LDN_MAX
	.comm	_LDG_INVALID,4,2                ; @LDG_INVALID
	.no_dead_strip	_niu_new_parent
.subsections_via_symbols
