	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function niu_divide_rdc_groups
_niu_divide_rdc_groups:                 ## @niu_divide_rdc_groups
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %ecx
	movq	_NIU_NUM_RDC_TABLES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cltd
	idivl	%ecx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	testl	%ecx, %ecx
	jle	LBB0_10
## %bb.1:
	movq	_NIU_RDC_TABLE_SLOTS@GOTPCREL(%rip), %r13
	xorl	%edx, %edx
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rdi), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, (%rax,%rdx,4)
	addl	%ecx, %r12d
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	addl	%eax, %ebx
	incq	%rdx
	movl	%r12d, %ecx
	cmpq	-72(%rbp), %rdx                 ## 8-byte Folded Reload
	je	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_6 Depth 3
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r8
	movq	32(%rdi), %r9
	movq	%rdx, %rcx
	shlq	$4, %rcx
	movl	(%r8,%rdx,4), %r12d
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, (%r9,%rcx)
	movl	%eax, 4(%r9,%rcx)
	testl	%eax, %eax
	jle	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r9,%rcx), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	addq	%r9, %rcx
	addq	$4, %rcx
	xorl	%r8d, %r8d
	movl	-44(%rbp), %eax                 ## 4-byte Reload
                                        ## kill: def $eax killed $eax def $rax
	xorl	%ebx, %ebx
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_6 Depth 3
	movq	4(%rcx), %r14
	movl	24(%rdi), %esi
	movq	%r8, %r15
	leal	(%r8,%rax), %ecx
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_pr_info
	cmpl	$0, (%r13)
	jle	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	xorl	%r12d, %r12d
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	leal	(%rbx,%r13), %esi
	movq	(%r14,%r15,8), %rax
	movl	%esi, (%rax,%r12,4)
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_cont
	incl	%ebx
	cmpl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	$0, %eax
	cmovel	%eax, %ebx
	incq	%r12
	movq	_NIU_RDC_TABLE_SLOTS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r12
	jl	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_cont
	incq	%r15
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movslq	(%rcx), %rax
	cmpq	%rax, %r15
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	_NIU_RDC_TABLE_SLOTS@GOTPCREL(%rip), %r13
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%r15, %r8
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	jmp	LBB0_4
LBB0_10:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NIU_NUM_RDC_TABLES,4,2         ## @NIU_NUM_RDC_TABLES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"niu%d: Port %d RDC tbl(%d) [ "

	.comm	_NIU_RDC_TABLE_SLOTS,4,2        ## @NIU_RDC_TABLE_SLOTS
L_.str.1:                               ## @.str.1
	.asciz	"%d "

L_.str.2:                               ## @.str.2
	.asciz	"]\n"

	.no_dead_strip	_niu_divide_rdc_groups
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function niu_divide_rdc_groups
_niu_divide_rdc_groups:                 ; @niu_divide_rdc_groups
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x0]
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x2, #0
	mov	w10, #0
	mov	w26, #0
Lloh0:
	adrp	x8, _NIU_NUM_RDC_TABLES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NIU_NUM_RDC_TABLES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	sdiv	w11, w8, w9
Lloh3:
	adrp	x28, _NIU_RDC_TABLE_SLOTS@GOTPAGE
Lloh4:
	ldr	x28, [x28, _NIU_RDC_TABLE_SLOTS@GOTPAGEOFF]
Lloh5:
	adrp	x22, l_.str.1@PAGE
Lloh6:
	add	x22, x22, l_.str.1@PAGEOFF
	str	x0, [sp, #40]                   ; 8-byte Folded Spill
	str	w11, [sp, #20]                  ; 4-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x0, #16]
	str	w26, [x8, x2, lsl #2]
	add	w26, w24, w26
	ldr	w10, [sp, #36]                  ; 4-byte Folded Reload
	ldr	w11, [sp, #20]                  ; 4-byte Folded Reload
	add	w10, w10, w11
	add	x2, x2, #1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	cmp	x2, x8
	b.eq	LBB0_10
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;       Child Loop BB0_7 Depth 3
	ldr	x8, [x0, #32]
	ldr	x9, [x0, #8]
	ldr	w24, [x9, x2, lsl #2]
	add	x27, x8, x2, lsl #4
	str	w10, [sp, #36]                  ; 4-byte Folded Spill
	str	w10, [x27]
	str	x27, [sp, #56]                  ; 8-byte Folded Spill
	str	w11, [x27, #4]!
	cmp	w11, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, #0
	mov	w23, #0
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	add	x8, x8, #8
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	mov	x25, x2
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_7 Depth 3
	ldr	x9, [sp, #48]                   ; 8-byte Folded Reload
	ldr	x19, [x9]
	ldr	w1, [x0, #24]
	add	w3, w8, w21
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_pr_info
	ldr	w8, [x28]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x20, #0
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	add	w8, w23, w26
	ldr	x9, [x19, x21, lsl #3]
	str	w8, [x9, x20, lsl #2]
	str	x8, [sp]
	mov	x0, x22
	bl	_pr_cont
	add	w8, w23, #1
	cmp	w8, w24
	csinc	w23, wzr, w23, eq
	add	x20, x20, #1
	ldrsw	x8, [x28]
	cmp	x20, x8
	b.lt	LBB0_7
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=2
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_cont
	add	x21, x21, #1
	ldrsw	x8, [x27]
	cmp	x21, x8
	ldr	x0, [sp, #40]                   ; 8-byte Folded Reload
	mov	x2, x25
	b.ge	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	ldr	w8, [x8]
	b	LBB0_5
LBB0_10:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_NIU_NUM_RDC_TABLES,4,2         ; @NIU_NUM_RDC_TABLES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"niu%d: Port %d RDC tbl(%d) [ "

	.comm	_NIU_RDC_TABLE_SLOTS,4,2        ; @NIU_RDC_TABLE_SLOTS
l_.str.1:                               ; @.str.1
	.asciz	"%d "

l_.str.2:                               ; @.str.2
	.asciz	"]\n"

	.no_dead_strip	_niu_divide_rdc_groups
.subsections_via_symbols
