	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcmgenet_init_tx_ring
_bcmgenet_init_tx_ring:                 ## @bcmgenet_init_tx_ring
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	16(%rdi), %r15
	movl	%esi, %r12d
	callq	_WORDS_PER_BD
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	imulq	$88, %r12, %r13
	leaq	(%r15,%r13), %rdi
	addq	$80, %rdi
	callq	_spin_lock_init
	movq	%r14, 72(%r15,%r13)
	movl	%ebx, (%r15,%r13)
	movq	_DESC_INDEX@GOTPCREL(%rip), %rax
	leal	1(%rbx), %edx
	xorl	%ecx, %ecx
	cmpl	%ebx, (%rax)
	cmovel	%ecx, %edx
	movq	_bcmgenet_tx_ring_int_enable@GOTPCREL(%rip), %rsi
	cmoveq	_bcmgenet_tx_ring16_int_enable@GOTPCREL(%rip), %rsi
	movl	%edx, 4(%r15,%r13)
	movl	(%rsi), %edx
	movl	%edx, 68(%r15,%r13)
	movq	_bcmgenet_tx_ring_int_disable@GOTPCREL(%rip), %rdx
	cmoveq	_bcmgenet_tx_ring16_int_disable@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 64(%r15,%r13)
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	%esi, %edx
	addq	8(%r14), %rdx
	movq	%rdx, 56(%r15,%r13)
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, 8(%r15,%r13)
	movl	%esi, 12(%r15,%r13)
	movl	%edx, 16(%r15,%r13)
	movl	%esi, 20(%r15,%r13)
	movl	%esi, 24(%r15,%r13)
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	decl	%edx
	movl	%edx, 28(%r15,%r13)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%r15,%r13)
	movq	_ENET_MAX_MTU_SIZE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r12d
	shll	$16, %r12d
	cmpl	%ebx, (%rax)
	cmovel	%ecx, %r12d
	movq	_TDMA_PROD_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_bcmgenet_tdma_ring_writel
	movq	_TDMA_CONS_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_bcmgenet_tdma_ring_writel
	movq	_DMA_MBUF_DONE_THRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$1, %edx
	callq	_bcmgenet_tdma_ring_writel
	movq	_TDMA_FLOW_PERIOD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_bcmgenet_tdma_ring_writel
	movq	_DMA_RING_SIZE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	shll	%cl, %edx
	movq	_RX_BUF_LENGTH@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_DMA_RING_BUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_bcmgenet_tdma_ring_writel
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	imull	-52(%rbp), %r12d                ## 4-byte Folded Reload
	movq	_DMA_START_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_bcmgenet_tdma_ring_writel
	movq	_TDMA_READ_PTR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_bcmgenet_tdma_ring_writel
	movq	_TDMA_WRITE_PTR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_bcmgenet_tdma_ring_writel
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	imull	-64(%rbp), %edx                 ## 4-byte Folded Reload
	decl	%edx
	movq	_DMA_END_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_bcmgenet_tdma_ring_writel
	movl	(%r14), %edi
	leaq	(%r15,%r13), %rsi
	addq	$32, %rsi
	movq	_bcmgenet_tx_poll@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_NAPI_POLL_WEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_napi_add                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DESC_INDEX,4,2                 ## @DESC_INDEX
	.comm	_bcmgenet_tx_ring16_int_enable,4,2 ## @bcmgenet_tx_ring16_int_enable
	.comm	_bcmgenet_tx_ring16_int_disable,4,2 ## @bcmgenet_tx_ring16_int_disable
	.comm	_bcmgenet_tx_ring_int_enable,4,2 ## @bcmgenet_tx_ring_int_enable
	.comm	_bcmgenet_tx_ring_int_disable,4,2 ## @bcmgenet_tx_ring_int_disable
	.comm	_ENET_MAX_MTU_SIZE,4,2          ## @ENET_MAX_MTU_SIZE
	.comm	_TDMA_PROD_INDEX,4,2            ## @TDMA_PROD_INDEX
	.comm	_TDMA_CONS_INDEX,4,2            ## @TDMA_CONS_INDEX
	.comm	_DMA_MBUF_DONE_THRESH,4,2       ## @DMA_MBUF_DONE_THRESH
	.comm	_TDMA_FLOW_PERIOD,4,2           ## @TDMA_FLOW_PERIOD
	.comm	_DMA_RING_SIZE_SHIFT,4,2        ## @DMA_RING_SIZE_SHIFT
	.comm	_RX_BUF_LENGTH,4,2              ## @RX_BUF_LENGTH
	.comm	_DMA_RING_BUF_SIZE,4,2          ## @DMA_RING_BUF_SIZE
	.comm	_DMA_START_ADDR,4,2             ## @DMA_START_ADDR
	.comm	_TDMA_READ_PTR,4,2              ## @TDMA_READ_PTR
	.comm	_TDMA_WRITE_PTR,4,2             ## @TDMA_WRITE_PTR
	.comm	_DMA_END_ADDR,4,2               ## @DMA_END_ADDR
	.comm	_bcmgenet_tx_poll,4,2           ## @bcmgenet_tx_poll
	.comm	_NAPI_POLL_WEIGHT,4,2           ## @NAPI_POLL_WEIGHT
	.no_dead_strip	_bcmgenet_init_tx_ring
.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_ring
_bcmgenet_init_tx_ring:                 ; @bcmgenet_init_tx_ring
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x4
	mov	x23, x3
	mov	x24, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x25, [x0, #16]
	bl	_WORDS_PER_BD
	mov	x22, x0
	mov	w8, #88
	umaddl	x26, w20, w8, x25
	add	x0, x26, #80
	bl	_spin_lock_init
	str	x19, [x26, #72]
	str	w20, [x26]
Lloh0:
	adrp	x8, _DESC_INDEX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DESC_INDEX@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, w20
	csinc	w9, wzr, w20, eq
	str	w9, [x26, #4]
Lloh2:
	adrp	x9, _bcmgenet_tx_ring16_int_enable@GOTPAGE
Lloh3:
	ldr	x9, [x9, _bcmgenet_tx_ring16_int_enable@GOTPAGEOFF]
Lloh4:
	adrp	x10, _bcmgenet_tx_ring_int_enable@GOTPAGE
Lloh5:
	ldr	x10, [x10, _bcmgenet_tx_ring_int_enable@GOTPAGEOFF]
	csel	x9, x9, x10, eq
	ldr	w9, [x9]
	str	w9, [x26, #68]
Lloh6:
	adrp	x9, _bcmgenet_tx_ring16_int_disable@GOTPAGE
Lloh7:
	ldr	x9, [x9, _bcmgenet_tx_ring16_int_disable@GOTPAGEOFF]
Lloh8:
	adrp	x10, _bcmgenet_tx_ring_int_disable@GOTPAGE
Lloh9:
	ldr	x10, [x10, _bcmgenet_tx_ring_int_disable@GOTPAGEOFF]
	csel	x9, x9, x10, eq
	ldr	w9, [x9]
	str	w9, [x26, #64]
	ldr	x9, [x19, #8]
	add	x9, x9, w23, uxtw
	stp	xzr, x9, [x26, #48]
	stp	w24, w23, [x26, #8]
	stp	w24, w23, [x26, #16]
	sub	w9, w21, #1
	stp	w23, w9, [x26, #24]
	str	xzr, [x26, #40]
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _ENET_MAX_MTU_SIZE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ENET_MAX_MTU_SIZE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	lsl	w9, w9, #16
	cmp	w8, w20
	csel	w25, wzr, w9, eq
Lloh13:
	adrp	x8, _TDMA_PROD_INDEX@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TDMA_PROD_INDEX@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_bcmgenet_tdma_ring_writel
Lloh16:
	adrp	x8, _TDMA_CONS_INDEX@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TDMA_CONS_INDEX@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_bcmgenet_tdma_ring_writel
Lloh19:
	adrp	x8, _DMA_MBUF_DONE_THRESH@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DMA_MBUF_DONE_THRESH@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_bcmgenet_tdma_ring_writel
Lloh22:
	adrp	x8, _TDMA_FLOW_PERIOD@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TDMA_FLOW_PERIOD@GOTPAGEOFF]
Lloh24:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x25
	bl	_bcmgenet_tdma_ring_writel
Lloh25:
	adrp	x8, _DMA_RING_SIZE_SHIFT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _DMA_RING_SIZE_SHIFT@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _RX_BUF_LENGTH@GOTPAGE
Lloh29:
	ldr	x9, [x9, _RX_BUF_LENGTH@GOTPAGEOFF]
	lsl	w8, w24, w8
Lloh30:
	ldr	w9, [x9]
	orr	w2, w8, w9
Lloh31:
	adrp	x8, _DMA_RING_BUF_SIZE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _DMA_RING_BUF_SIZE@GOTPAGEOFF]
Lloh33:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_bcmgenet_tdma_ring_writel
	mul	w23, w22, w23
Lloh34:
	adrp	x8, _DMA_START_ADDR@GOTPAGE
Lloh35:
	ldr	x8, [x8, _DMA_START_ADDR@GOTPAGEOFF]
Lloh36:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	bl	_bcmgenet_tdma_ring_writel
Lloh37:
	adrp	x8, _TDMA_READ_PTR@GOTPAGE
Lloh38:
	ldr	x8, [x8, _TDMA_READ_PTR@GOTPAGEOFF]
Lloh39:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	bl	_bcmgenet_tdma_ring_writel
Lloh40:
	adrp	x8, _TDMA_WRITE_PTR@GOTPAGE
Lloh41:
	ldr	x8, [x8, _TDMA_WRITE_PTR@GOTPAGEOFF]
Lloh42:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	bl	_bcmgenet_tdma_ring_writel
	mul	w8, w22, w21
	sub	w2, w8, #1
Lloh43:
	adrp	x8, _DMA_END_ADDR@GOTPAGE
Lloh44:
	ldr	x8, [x8, _DMA_END_ADDR@GOTPAGEOFF]
Lloh45:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_bcmgenet_tdma_ring_writel
	ldr	w0, [x19]
	add	x1, x26, #32
Lloh46:
	adrp	x8, _bcmgenet_tx_poll@GOTPAGE
Lloh47:
	ldr	x8, [x8, _bcmgenet_tx_poll@GOTPAGEOFF]
Lloh48:
	adrp	x9, _NAPI_POLL_WEIGHT@GOTPAGE
Lloh49:
	ldr	x9, [x9, _NAPI_POLL_WEIGHT@GOTPAGEOFF]
Lloh50:
	ldr	w2, [x8]
Lloh51:
	ldr	w3, [x9]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_netif_napi_add
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh50
	.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 AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DESC_INDEX,4,2                 ; @DESC_INDEX
	.comm	_bcmgenet_tx_ring16_int_enable,4,2 ; @bcmgenet_tx_ring16_int_enable
	.comm	_bcmgenet_tx_ring16_int_disable,4,2 ; @bcmgenet_tx_ring16_int_disable
	.comm	_bcmgenet_tx_ring_int_enable,4,2 ; @bcmgenet_tx_ring_int_enable
	.comm	_bcmgenet_tx_ring_int_disable,4,2 ; @bcmgenet_tx_ring_int_disable
	.comm	_ENET_MAX_MTU_SIZE,4,2          ; @ENET_MAX_MTU_SIZE
	.comm	_TDMA_PROD_INDEX,4,2            ; @TDMA_PROD_INDEX
	.comm	_TDMA_CONS_INDEX,4,2            ; @TDMA_CONS_INDEX
	.comm	_DMA_MBUF_DONE_THRESH,4,2       ; @DMA_MBUF_DONE_THRESH
	.comm	_TDMA_FLOW_PERIOD,4,2           ; @TDMA_FLOW_PERIOD
	.comm	_DMA_RING_SIZE_SHIFT,4,2        ; @DMA_RING_SIZE_SHIFT
	.comm	_RX_BUF_LENGTH,4,2              ; @RX_BUF_LENGTH
	.comm	_DMA_RING_BUF_SIZE,4,2          ; @DMA_RING_BUF_SIZE
	.comm	_DMA_START_ADDR,4,2             ; @DMA_START_ADDR
	.comm	_TDMA_READ_PTR,4,2              ; @TDMA_READ_PTR
	.comm	_TDMA_WRITE_PTR,4,2             ; @TDMA_WRITE_PTR
	.comm	_DMA_END_ADDR,4,2               ; @DMA_END_ADDR
	.comm	_bcmgenet_tx_poll,4,2           ; @bcmgenet_tx_poll
	.comm	_NAPI_POLL_WEIGHT,4,2           ; @NAPI_POLL_WEIGHT
	.no_dead_strip	_bcmgenet_init_tx_ring
.subsections_via_symbols
