	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function niu_enable_rx_channel
_niu_enable_rx_channel:                 ## @niu_enable_rx_channel
	.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
	movl	%edx, %r14d
	movl	%esi, %r15d
	movl	%esi, %edi
	callq	_RXDMA_CFIG1
	movl	%eax, %edi
	callq	_nr64
	movq	_RXDMA_CFIG1_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%ebx, %ecx
	orl	%eax, %ecx
	notl	%ebx
	andl	%eax, %ebx
	testl	%r14d, %r14d
	cmovnel	%ecx, %ebx
	movl	%r15d, %edi
	callq	_RXDMA_CFIG1
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_nw64
	movl	%r15d, %edi
	callq	_RXDMA_CFIG1
	movl	%eax, %edi
	callq	_nr64
	movq	_RXDMA_CFIG1_QST@GOTPCREL(%rip), %r14
	movl	$1000, %ebx                     ## imm = 0x3E8
	testl	%eax, (%r14)
	jne	LBB0_4
## %bb.1:
	movl	$1000, %ebx                     ## imm = 0x3E8
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	decl	%ebx
	movl	$10, %edi
	callq	_udelay
	cmpl	$1, %ebx
	jbe	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r15d, %edi
	callq	_RXDMA_CFIG1
	movl	%eax, %edi
	callq	_nr64
	testl	%eax, (%r14)
	je	LBB0_3
LBB0_4:
	xorl	%eax, %eax
	cmpl	$1, %ebx
	jg	LBB0_6
LBB0_5:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RXDMA_CFIG1_EN,4,2             ## @RXDMA_CFIG1_EN
	.comm	_RXDMA_CFIG1_QST,4,2            ## @RXDMA_CFIG1_QST
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_niu_enable_rx_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function niu_enable_rx_channel
_niu_enable_rx_channel:                 ; @niu_enable_rx_channel
	.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	x20, x2
	mov	x19, x1
	mov	x0, x1
	bl	_RXDMA_CFIG1
	bl	_nr64
Lloh0:
	adrp	x8, _RXDMA_CFIG1_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RXDMA_CFIG1_EN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w9, w8, w0
	bic	w8, w0, w8
	cmp	w20, #0
	csel	w20, w8, w9, eq
	mov	x0, x19
	bl	_RXDMA_CFIG1
	mov	x1, x20
	bl	_nw64
	mov	x0, x19
	bl	_RXDMA_CFIG1
	bl	_nr64
Lloh3:
	adrp	x21, _RXDMA_CFIG1_QST@GOTPAGE
Lloh4:
	ldr	x21, [x21, _RXDMA_CFIG1_QST@GOTPAGEOFF]
	ldr	w8, [x21]
	mov	w20, #1000
	tst	w8, w0
	b.eq	LBB0_4
LBB0_1:
	cmp	w20, #1
	b.le	LBB0_5
; %bb.2:
	mov	w0, #0
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_RXDMA_CFIG1
	bl	_nr64
	ldr	w8, [x21]
	and	w8, w8, w0
	cbnz	w8, LBB0_1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	w20, w20, #1
	mov	w0, #10
	bl	_udelay
	cmp	w20, #1
	b.hi	LBB0_3
LBB0_5:
Lloh5:
	adrp	x8, _ENODEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_RXDMA_CFIG1_EN,4,2             ; @RXDMA_CFIG1_EN
	.comm	_RXDMA_CFIG1_QST,4,2            ; @RXDMA_CFIG1_QST
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_niu_enable_rx_channel
.subsections_via_symbols
