	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcmgenet_init_rx_queues
_bcmgenet_init_rx_queues:               ## @bcmgenet_init_rx_queues
	.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
	callq	_netdev_priv
	movq	%rax, %r15
	movq	_DMA_CTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%rax, %rdi
	callq	_bcmgenet_rdma_readl
	movq	_DMA_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	notl	%esi
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	andl	%eax, %esi
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_bcmgenet_rdma_writel
	movq	(%r15), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_1
## %bb.2:
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rax), %edx
	movl	%edx, %ecx
	imull	%ebx, %ecx
	leal	1(%rbx), %r14d
	movl	%edx, %r8d
	imull	%r14d, %r8d
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_bcmgenet_init_rx_ring
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	btsl	%ebx, %r13d
	movq	_DMA_RING_BUF_EN_SHIFT@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	btsl	%ebx, %r12d
	movq	(%r15), %rax
	movl	(%rax), %ecx
	movl	%r14d, %ebx
	cmpl	%ecx, %r14d
	jl	LBB0_3
	jmp	LBB0_5
LBB0_1:
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
LBB0_5:
	movq	_DESC_INDEX@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_GENET_Q16_RX_BD_CNT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	imull	4(%rax), %ecx
	movq	_TOTAL_DESC@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	callq	_bcmgenet_init_rx_ring
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	movl	(%rbx), %eax
	btsl	%eax, %r13d
	movq	_DMA_RING_BUF_EN_SHIFT@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	btsl	%eax, %r12d
	movq	_DMA_RING_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_bcmgenet_rdma_writel
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	andl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_8
## %bb.7:
	movq	_DMA_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	orl	%eax, %r12d
	movq	_DMA_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_bcmgenet_rdma_writel
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_CTRL,4,2                   ## @DMA_CTRL
	.comm	_DMA_EN,4,2                     ## @DMA_EN
	.comm	_DMA_RING_BUF_EN_SHIFT,4,2      ## @DMA_RING_BUF_EN_SHIFT
	.comm	_DESC_INDEX,4,2                 ## @DESC_INDEX
	.comm	_GENET_Q16_RX_BD_CNT,4,2        ## @GENET_Q16_RX_BD_CNT
	.comm	_TOTAL_DESC,4,2                 ## @TOTAL_DESC
	.comm	_DMA_RING_CFG,4,2               ## @DMA_RING_CFG
	.no_dead_strip	_bcmgenet_init_rx_queues
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcmgenet_init_rx_queues
_bcmgenet_init_rx_queues:               ; @bcmgenet_init_rx_queues
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x22, _DMA_CTRL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DMA_CTRL@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_bcmgenet_rdma_readl
	mov	x20, x0
Lloh2:
	adrp	x23, _DMA_EN@GOTPAGE
Lloh3:
	ldr	x23, [x23, _DMA_EN@GOTPAGEOFF]
	ldr	w24, [x23]
	bic	w1, w0, w24
	ldr	w2, [x22]
	mov	x0, x19
	bl	_bcmgenet_rdma_writel
	ldr	x8, [x19]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.1:
	mov	w26, #0
	mov	w25, #0
	mov	w21, #0
	mov	w27, #1
Lloh4:
	adrp	x28, _DMA_RING_BUF_EN_SHIFT@GOTPAGE
Lloh5:
	ldr	x28, [x28, _DMA_RING_BUF_EN_SHIFT@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x8, #4]
	mul	w3, w2, w21
	add	w23, w21, #1
	mul	w4, w2, w23
	mov	x0, x19
	mov	x1, x21
	bl	_bcmgenet_init_rx_ring
	cbnz	w0, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	lsl	w8, w27, w21
	orr	w26, w26, w8
	ldr	w8, [x28]
	add	w8, w21, w8
	lsl	w8, w27, w8
	orr	w25, w8, w25
	ldr	x8, [x19]
	ldr	w9, [x8]
	mov	x21, x23
	cmp	w23, w9
	b.lt	LBB0_2
; %bb.4:
Lloh6:
	adrp	x23, _DMA_EN@GOTPAGE
Lloh7:
	ldr	x23, [x23, _DMA_EN@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	mov	w25, #0
	mov	w26, #0
LBB0_6:
Lloh8:
	adrp	x21, _DESC_INDEX@GOTPAGE
Lloh9:
	ldr	x21, [x21, _DESC_INDEX@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh10:
	adrp	x10, _GENET_Q16_RX_BD_CNT@GOTPAGE
Lloh11:
	ldr	x10, [x10, _GENET_Q16_RX_BD_CNT@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x10]
	ldr	w8, [x8, #4]
	mul	w3, w8, w9
Lloh13:
	adrp	x8, _TOTAL_DESC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TOTAL_DESC@GOTPAGEOFF]
Lloh15:
	ldr	w4, [x8]
	mov	x0, x19
	bl	_bcmgenet_init_rx_ring
	cbnz	w0, LBB0_8
; %bb.7:
	and	w20, w24, w20
	ldr	w8, [x21]
	mov	w9, #1
	lsl	w10, w9, w8
	orr	w1, w10, w26
Lloh16:
	adrp	x10, _DMA_RING_BUF_EN_SHIFT@GOTPAGE
Lloh17:
	ldr	x10, [x10, _DMA_RING_BUF_EN_SHIFT@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	add	w8, w10, w8
	lsl	w8, w9, w8
	orr	w21, w8, w25
Lloh19:
	adrp	x8, _DMA_RING_CFG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DMA_RING_CFG@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_bcmgenet_rdma_writel
	ldr	w8, [x23]
	cmp	w20, #0
	csel	w8, wzr, w8, eq
	orr	w1, w21, w8
	ldr	w2, [x22]
	mov	x0, x19
	bl	_bcmgenet_rdma_writel
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_CTRL,4,2                   ; @DMA_CTRL
	.comm	_DMA_EN,4,2                     ; @DMA_EN
	.comm	_DMA_RING_BUF_EN_SHIFT,4,2      ; @DMA_RING_BUF_EN_SHIFT
	.comm	_DESC_INDEX,4,2                 ; @DESC_INDEX
	.comm	_GENET_Q16_RX_BD_CNT,4,2        ; @GENET_Q16_RX_BD_CNT
	.comm	_TOTAL_DESC,4,2                 ; @TOTAL_DESC
	.comm	_DMA_RING_CFG,4,2               ; @DMA_RING_CFG
	.no_dead_strip	_bcmgenet_init_rx_queues
.subsections_via_symbols
