	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_enet_start_xmit
_bcm_enet_start_xmit:                   ## @bcm_enet_start_xmit
	.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
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	leaq	16(%rax), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	xorl	%edi, %edi
	cmpl	$0, 28(%rbx)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_netif_stop_queue
	movq	40(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_NETDEV_TX_BUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	56(%rbx), %r13
	movq	(%rbx), %r14
	movq	48(%rbx), %rax
	movq	%r12, (%rax,%r14,8)
	movq	40(%rbx), %rdi
	movl	(%r12), %edx
	movl	4(%r12), %esi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_map_single
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, 4(%r13,%r14,8)
	movl	(%r12), %r13d
	movq	_DMADESC_LENGTH_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r13d
	movq	_DMADESC_LENGTH_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r13d
	movq	_DMADESC_ESOP_MASK@GOTPCREL(%rip), %rax
	movq	_DMADESC_APPEND_CRC@GOTPCREL(%rip), %rcx
	orl	(%rax), %r13d
	orl	(%rcx), %r13d
	movq	_DMADESC_OWNER_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movq	(%rbx), %rax
	incq	%rax
	movq	%rax, (%rbx)
	cmpq	8(%rbx), %rax
	jne	LBB0_4
## %bb.3:
	movq	$0, (%rbx)
	movq	_DMADESC_WRAP_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
LBB0_4:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	decl	28(%rbx)
	xorl	%eax, %eax
	callq	_wmb
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%r13d, (%rax,%rcx,8)
	xorl	%eax, %eax
	callq	_wmb
	movq	_ENETDMA_CHANCFG_EN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	32(%rbx), %edi
	callq	_ENETDMA_CHANCFG_REG
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_enet_dma_writel
	cmpl	$0, 28(%rbx)
	jne	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	_netif_stop_queue
LBB0_6:
	movl	(%r12), %eax
	addl	%eax, 20(%rbx)
	incl	24(%rbx)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_spin_unlock
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"xmit called with no tx desc available?\n"

	.comm	_NETDEV_TX_BUSY,4,2             ## @NETDEV_TX_BUSY
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_DMADESC_LENGTH_SHIFT,4,2       ## @DMADESC_LENGTH_SHIFT
	.comm	_DMADESC_LENGTH_MASK,4,2        ## @DMADESC_LENGTH_MASK
	.comm	_DMADESC_ESOP_MASK,4,2          ## @DMADESC_ESOP_MASK
	.comm	_DMADESC_APPEND_CRC,4,2         ## @DMADESC_APPEND_CRC
	.comm	_DMADESC_OWNER_MASK,4,2         ## @DMADESC_OWNER_MASK
	.comm	_DMADESC_WRAP_MASK,4,2          ## @DMADESC_WRAP_MASK
	.comm	_ENETDMA_CHANCFG_EN_MASK,4,2    ## @ENETDMA_CHANCFG_EN_MASK
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.no_dead_strip	_bcm_enet_start_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm_enet_start_xmit
_bcm_enet_start_xmit:                   ; @bcm_enet_start_xmit
	.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	x20, x1
	mov	x22, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x21, x0
	add	x19, x0, #16
	mov	x0, x19
	bl	_spin_lock
	ldr	w8, [x21, #28]
	cmp	w8, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_netif_stop_queue
	ldr	x0, [x21, #40]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh2:
	adrp	x8, _NETDEV_TX_BUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NETDEV_TX_BUSY@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	ldr	x8, [x21]
	ldp	x9, x23, [x21, #48]
	lsl	x24, x8, #3
	str	x22, [x9, x24]
	ldr	x0, [x21, #40]
	ldp	w2, w1, [x22]
Lloh4:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
	bl	_dma_map_single
	add	x8, x23, x24
	str	w0, [x8, #4]
Lloh7:
	adrp	x8, _DMADESC_LENGTH_SHIFT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DMADESC_LENGTH_SHIFT@GOTPAGEOFF]
	ldr	w9, [x22]
Lloh9:
	ldr	w8, [x8]
	lsl	w8, w9, w8
Lloh10:
	adrp	x9, _DMADESC_LENGTH_MASK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _DMADESC_LENGTH_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	and	w8, w8, w9
Lloh13:
	adrp	x9, _DMADESC_ESOP_MASK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _DMADESC_ESOP_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	adrp	x10, _DMADESC_APPEND_CRC@GOTPAGE
Lloh17:
	ldr	x10, [x10, _DMADESC_APPEND_CRC@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
Lloh19:
	adrp	x11, _DMADESC_OWNER_MASK@GOTPAGE
Lloh20:
	ldr	x11, [x11, _DMADESC_OWNER_MASK@GOTPAGEOFF]
Lloh21:
	ldr	w11, [x11]
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w25, w8, w11
	ldp	x8, x9, [x21]
	add	x8, x8, #1
	str	x8, [x21]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	str	xzr, [x21]
Lloh22:
	adrp	x8, _DMADESC_WRAP_MASK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DMADESC_WRAP_MASK@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	orr	w25, w8, w25
LBB0_4:
	ldr	w8, [x21, #28]
	sub	w8, w8, #1
	str	w8, [x21, #28]
	bl	_wmb
	str	w25, [x23, x24]
	bl	_wmb
Lloh25:
	adrp	x8, _ENETDMA_CHANCFG_EN_MASK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENETDMA_CHANCFG_EN_MASK@GOTPAGEOFF]
Lloh27:
	ldr	w23, [x8]
	ldr	w0, [x21, #32]
	bl	_ENETDMA_CHANCFG_REG
	mov	x2, x0
	mov	x0, x21
	mov	x1, x23
	bl	_enet_dma_writel
	ldr	w8, [x21, #28]
	cbnz	w8, LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_netif_stop_queue
LBB0_6:
	ldur	d0, [x21, #20]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x22]
	add.2s	v0, v0, v1
	stur	d0, [x21, #20]
Lloh28:
	adrp	x8, _jiffies@GOTPAGE
Lloh29:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	str	w8, [x20]
Lloh31:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh32:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
LBB0_7:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_spin_unlock
	mov	x0, x20
	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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"xmit called with no tx desc available?\n"

	.comm	_NETDEV_TX_BUSY,4,2             ; @NETDEV_TX_BUSY
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_DMADESC_LENGTH_SHIFT,4,2       ; @DMADESC_LENGTH_SHIFT
	.comm	_DMADESC_LENGTH_MASK,4,2        ; @DMADESC_LENGTH_MASK
	.comm	_DMADESC_ESOP_MASK,4,2          ; @DMADESC_ESOP_MASK
	.comm	_DMADESC_APPEND_CRC,4,2         ; @DMADESC_APPEND_CRC
	.comm	_DMADESC_OWNER_MASK,4,2         ; @DMADESC_OWNER_MASK
	.comm	_DMADESC_WRAP_MASK,4,2          ; @DMADESC_WRAP_MASK
	.comm	_ENETDMA_CHANCFG_EN_MASK,4,2    ; @ENETDMA_CHANCFG_EN_MASK
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.no_dead_strip	_bcm_enet_start_xmit
.subsections_via_symbols
