	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcmgenet_init_tx_queues
_bcmgenet_init_tx_queues:               ## @bcmgenet_init_tx_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_netdev_priv
	movq	%rax, %r14
	movl	$0, -56(%rbp)
	movq	$0, -64(%rbp)
	movq	_DMA_CTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%rax, %rdi
	callq	_bcmgenet_tdma_readl
	movq	_DMA_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%esi, -68(%rbp)                 ## 4-byte Spill
	notl	%esi
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	andl	%eax, %esi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_bcmgenet_tdma_writel
	movq	_DMA_ARBITER_SP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DMA_ARB_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_bcmgenet_tdma_writel
	movq	(%r14), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	jle	LBB0_1
## %bb.2:
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	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), %r12d
	movl	%edx, %r8d
	imull	%r12d, %r8d
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_bcmgenet_init_tx_ring
	btsl	%ebx, %r13d
	movq	_DMA_RING_BUF_EN_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	btsl	%eax, %r15d
	movq	_GENET_Q0_PRIORITY@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	addl	%ebx, %r14d
	movl	%ebx, %edi
	callq	_DMA_PRIO_REG_SHIFT
	movl	%eax, %ecx
	shll	%cl, %r14d
	movl	%ebx, %edi
	callq	_DMA_PRIO_REG_INDEX
	orl	%r14d, -64(%rbp,%rax,4)
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rax
	movl	(%rax), %ecx
	movl	%r12d, %ebx
	cmpl	%ecx, %r12d
	jl	LBB0_3
	jmp	LBB0_4
LBB0_1:
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
LBB0_4:
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	andl	-72(%rbp), %edx                 ## 4-byte Folded Reload
	movl	%edx, -68(%rbp)                 ## 4-byte Spill
	movq	_DESC_INDEX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movq	%rdx, %rbx
	movq	_GENET_Q16_TX_BD_CNT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	imull	4(%rax), %ecx
	movq	_TOTAL_DESC@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	callq	_bcmgenet_init_tx_ring
	movl	(%rbx), %edi
	btsl	%edi, %r13d
	movq	_DMA_RING_BUF_EN_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	addl	%edi, %r12d
	movq	_GENET_Q0_PRIORITY@GOTPCREL(%rip), %rax
	movq	(%r14), %rcx
	movl	(%rcx), %ebx
	addl	(%rax), %ebx
	callq	_DMA_PRIO_REG_SHIFT
	movl	%eax, %ecx
	shll	%cl, %ebx
	movq	_DESC_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DMA_PRIO_REG_INDEX
	orl	%ebx, -64(%rbp,%rax,4)
	movl	-64(%rbp), %esi
	movq	_DMA_PRIORITY_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_bcmgenet_tdma_writel
	movl	-60(%rbp), %esi
	movq	_DMA_PRIORITY_1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_bcmgenet_tdma_writel
	movl	-56(%rbp), %esi
	movq	_DMA_PRIORITY_2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_bcmgenet_tdma_writel
	movq	_DMA_RING_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_bcmgenet_tdma_writel
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.5:
	movq	_DMA_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_6:
	movq	_DMA_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.8:
	btsl	%r12d, %r15d
	orl	%ecx, %r15d
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bcmgenet_tdma_writel           ## TAILCALL
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_CTRL,4,2                   ## @DMA_CTRL
	.comm	_DMA_EN,4,2                     ## @DMA_EN
	.comm	_DMA_ARBITER_SP,4,2             ## @DMA_ARBITER_SP
	.comm	_DMA_ARB_CTRL,4,2               ## @DMA_ARB_CTRL
	.comm	_DMA_RING_BUF_EN_SHIFT,4,2      ## @DMA_RING_BUF_EN_SHIFT
	.comm	_GENET_Q0_PRIORITY,4,2          ## @GENET_Q0_PRIORITY
	.comm	_DESC_INDEX,4,2                 ## @DESC_INDEX
	.comm	_GENET_Q16_TX_BD_CNT,4,2        ## @GENET_Q16_TX_BD_CNT
	.comm	_TOTAL_DESC,4,2                 ## @TOTAL_DESC
	.comm	_DMA_PRIORITY_0,4,2             ## @DMA_PRIORITY_0
	.comm	_DMA_PRIORITY_1,4,2             ## @DMA_PRIORITY_1
	.comm	_DMA_PRIORITY_2,4,2             ## @DMA_PRIORITY_2
	.comm	_DMA_RING_CFG,4,2               ## @DMA_RING_CFG
	.no_dead_strip	_bcmgenet_init_tx_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_tx_queues
_bcmgenet_init_tx_queues:               ; @bcmgenet_init_tx_queues
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_netdev_priv
	mov	x19, x0
	str	wzr, [sp, #16]
	str	xzr, [sp, #8]
Lloh3:
	adrp	x25, _DMA_CTRL@GOTPAGE
Lloh4:
	ldr	x25, [x25, _DMA_CTRL@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_bcmgenet_tdma_readl
Lloh5:
	adrp	x8, _DMA_EN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DMA_EN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	stp	w8, w0, [sp]                    ; 8-byte Folded Spill
	bic	w1, w0, w8
	ldr	w2, [x25]
	mov	x0, x19
	bl	_bcmgenet_tdma_writel
Lloh8:
	adrp	x8, _DMA_ARBITER_SP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DMA_ARBITER_SP@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _DMA_ARB_CTRL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DMA_ARB_CTRL@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_bcmgenet_tdma_writel
	ldr	x8, [x19]
	ldr	w9, [x8]
Lloh14:
	adrp	x27, _DMA_RING_BUF_EN_SHIFT@GOTPAGE
Lloh15:
	ldr	x27, [x27, _DMA_RING_BUF_EN_SHIFT@GOTPAGEOFF]
Lloh16:
	adrp	x28, _GENET_Q0_PRIORITY@GOTPAGE
Lloh17:
	ldr	x28, [x28, _GENET_Q0_PRIORITY@GOTPAGEOFF]
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.1:
	mov	w22, #0
	mov	w26, #0
	mov	w21, #0
	mov	w24, #1
	add	x23, sp, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x8, #4]
	mul	w3, w2, w21
	add	w25, w21, #1
	mul	w4, w2, w25
	mov	x0, x19
	mov	x1, x21
	bl	_bcmgenet_init_tx_ring
	lsl	w8, w24, w21
	orr	w22, w22, w8
	ldr	w8, [x27]
	add	w8, w21, w8
	lsl	w8, w24, w8
	orr	w26, w8, w26
	ldr	w8, [x28]
	add	w20, w21, w8
	mov	x0, x21
	bl	_DMA_PRIO_REG_SHIFT
	lsl	w20, w20, w0
	mov	x0, x21
	bl	_DMA_PRIO_REG_INDEX
	lsl	x8, x0, #2
	ldr	w9, [x23, x8]
	orr	w9, w9, w20
	str	w9, [x23, x8]
	ldr	x8, [x19]
	ldr	w9, [x8]
	mov	x21, x25
	cmp	w25, w9
	b.lt	LBB0_2
; %bb.3:
Lloh18:
	adrp	x25, _DMA_CTRL@GOTPAGE
Lloh19:
	ldr	x25, [x25, _DMA_CTRL@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	mov	w26, #0
	mov	w22, #0
LBB0_5:
Lloh20:
	adrp	x20, _DESC_INDEX@GOTPAGE
Lloh21:
	ldr	x20, [x20, _DESC_INDEX@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh22:
	adrp	x10, _GENET_Q16_TX_BD_CNT@GOTPAGE
Lloh23:
	ldr	x10, [x10, _GENET_Q16_TX_BD_CNT@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x10]
	ldr	w8, [x8, #4]
	mul	w3, w8, w9
Lloh25:
	adrp	x8, _TOTAL_DESC@GOTPAGE
Lloh26:
	ldr	x8, [x8, _TOTAL_DESC@GOTPAGEOFF]
Lloh27:
	ldr	w4, [x8]
	mov	x0, x19
	bl	_bcmgenet_init_tx_ring
	ldr	w21, [x20]
	mov	w24, #1
	lsl	w8, w24, w21
	orr	w22, w8, w22
	ldr	w27, [x27]
	ldr	w8, [x28]
	ldr	x9, [x19]
	ldr	w9, [x9]
	add	w23, w9, w8
	mov	x0, x21
	bl	_DMA_PRIO_REG_SHIFT
	lsl	w23, w23, w0
	ldr	w0, [x20]
	bl	_DMA_PRIO_REG_INDEX
	lsl	x8, x0, #2
	add	x9, sp, #8
	ldr	w10, [x9, x8]
	orr	w10, w10, w23
	str	w10, [x9, x8]
	ldr	w1, [sp, #8]
Lloh28:
	adrp	x8, _DMA_PRIORITY_0@GOTPAGE
Lloh29:
	ldr	x8, [x8, _DMA_PRIORITY_0@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_bcmgenet_tdma_writel
	ldr	w1, [sp, #12]
Lloh31:
	adrp	x8, _DMA_PRIORITY_1@GOTPAGE
Lloh32:
	ldr	x8, [x8, _DMA_PRIORITY_1@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_bcmgenet_tdma_writel
	ldr	w1, [sp, #16]
Lloh34:
	adrp	x8, _DMA_PRIORITY_2@GOTPAGE
Lloh35:
	ldr	x8, [x8, _DMA_PRIORITY_2@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_bcmgenet_tdma_writel
Lloh37:
	adrp	x8, _DMA_RING_CFG@GOTPAGE
Lloh38:
	ldr	x8, [x8, _DMA_RING_CFG@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	bl	_bcmgenet_tdma_writel
Lloh40:
	adrp	x8, _DMA_EN@GOTPAGE
Lloh41:
	ldr	x8, [x8, _DMA_EN@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	ldp	w10, w9, [sp]                   ; 8-byte Folded Reload
	tst	w10, w9
	csel	w8, wzr, w8, eq
	ldr	w2, [x25]
	ldr	x9, [sp, #24]
Lloh43:
	adrp	x10, ___stack_chk_guard@GOTPAGE
Lloh44:
	ldr	x10, [x10, ___stack_chk_guard@GOTPAGEOFF]
Lloh45:
	ldr	x10, [x10]
	cmp	x10, x9
	b.ne	LBB0_7
; %bb.6:
	add	w9, w27, w21
	lsl	w9, w24, w9
	orr	w9, w9, w26
	orr	w1, w9, w8
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_bcmgenet_tdma_writel
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_CTRL,4,2                   ; @DMA_CTRL
	.comm	_DMA_EN,4,2                     ; @DMA_EN
	.comm	_DMA_ARBITER_SP,4,2             ; @DMA_ARBITER_SP
	.comm	_DMA_ARB_CTRL,4,2               ; @DMA_ARB_CTRL
	.comm	_DMA_RING_BUF_EN_SHIFT,4,2      ; @DMA_RING_BUF_EN_SHIFT
	.comm	_GENET_Q0_PRIORITY,4,2          ; @GENET_Q0_PRIORITY
	.comm	_DESC_INDEX,4,2                 ; @DESC_INDEX
	.comm	_GENET_Q16_TX_BD_CNT,4,2        ; @GENET_Q16_TX_BD_CNT
	.comm	_TOTAL_DESC,4,2                 ; @TOTAL_DESC
	.comm	_DMA_PRIORITY_0,4,2             ; @DMA_PRIORITY_0
	.comm	_DMA_PRIORITY_1,4,2             ; @DMA_PRIORITY_1
	.comm	_DMA_PRIORITY_2,4,2             ; @DMA_PRIORITY_2
	.comm	_DMA_RING_CFG,4,2               ; @DMA_RING_CFG
	.no_dead_strip	_bcmgenet_init_tx_queues
.subsections_via_symbols
