	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function niu_init_rx_channels
_niu_init_rx_channels:                  ## @niu_init_rx_channels
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_jiffies_64@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	callq	_niu_lock_parent
	movq	_RX_DMA_CK_DIV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	16(%r15), %rax
	movl	(%rax), %esi
	callq	_nw64
	movq	_RED_RAN_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RED_RAN_INIT_OPMODE@GOTPCREL(%rip), %rax
	movq	_RED_RAN_INIT_VAL@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r14d
	orl	(%rax), %r14d
	movl	%r14d, %esi
	callq	_nw64
	movq	%r15, %rdi
	callq	_niu_unlock_parent
	movq	%r15, %rdi
	callq	_niu_init_rdc_groups
	movq	%r15, %rdi
	callq	_niu_init_drr_weight
	movq	%r15, %rdi
	callq	_niu_init_hostinfo
	testl	%eax, %eax
	jne	LBB0_1
## %bb.2:
	cmpl	$0, (%r15)
	jle	LBB0_7
## %bb.3:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rsi
	addq	%r14, %rsi
	movq	%r15, %rdi
	callq	_niu_init_one_rx_channel
	testl	%eax, %eax
	jne	LBB0_1
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	addq	$4, %r14
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_7:
	xorl	%eax, %eax
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies_64,4,2                 ## @jiffies_64
	.comm	_RX_DMA_CK_DIV,4,2              ## @RX_DMA_CK_DIV
	.comm	_RED_RAN_INIT,4,2               ## @RED_RAN_INIT
	.comm	_RED_RAN_INIT_OPMODE,4,2        ## @RED_RAN_INIT_OPMODE
	.comm	_RED_RAN_INIT_VAL,4,2           ## @RED_RAN_INIT_VAL
	.no_dead_strip	_niu_init_rx_channels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function niu_init_rx_channels
_niu_init_rx_channels:                  ; @niu_init_rx_channels
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _jiffies_64@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jiffies_64@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	bl	_niu_lock_parent
Lloh3:
	adrp	x8, _RX_DMA_CK_DIV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RX_DMA_CK_DIV@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	x8, [x19, #16]
	ldr	w1, [x8]
	bl	_nw64
Lloh6:
	adrp	x8, _RED_RAN_INIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RED_RAN_INIT@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _RED_RAN_INIT_OPMODE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RED_RAN_INIT_OPMODE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _RED_RAN_INIT_VAL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _RED_RAN_INIT_VAL@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	and	w9, w9, w20
	orr	w1, w9, w8
	bl	_nw64
	mov	x0, x19
	bl	_niu_unlock_parent
	mov	x0, x19
	bl	_niu_init_rdc_groups
	mov	x0, x19
	bl	_niu_init_drr_weight
	mov	x0, x19
	bl	_niu_init_hostinfo
	cbnz	w0, LBB0_6
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x20, #0
	mov	x21, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x1, x8, x20
	mov	x0, x19
	bl	_niu_init_one_rx_channel
	cbnz	w0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x19]
	add	x20, x20, #4
	cmp	x21, x8
	b.lt	LBB0_3
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies_64,4,2                 ; @jiffies_64
	.comm	_RX_DMA_CK_DIV,4,2              ; @RX_DMA_CK_DIV
	.comm	_RED_RAN_INIT,4,2               ; @RED_RAN_INIT
	.comm	_RED_RAN_INIT_OPMODE,4,2        ; @RED_RAN_INIT_OPMODE
	.comm	_RED_RAN_INIT_VAL,4,2           ; @RED_RAN_INIT_VAL
	.no_dead_strip	_niu_init_rx_channels
.subsections_via_symbols
