	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function greth_start_xmit
_greth_start_xmit:                      ## @greth_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%rax, %r14
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	48(%rbx), %edi
	callq	_greth_clean_tx
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	setle	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	addq	$24, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	40(%r14), %rax
	movl	(%rax), %edi
	callq	_GRETH_REGLOAD
	movq	_GRETH_RXI@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	40(%r14), %rcx
	movl	(%rcx), %edi
	movq	_GRETH_TXI@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, %esi
	callq	_GRETH_REGSAVE
LBB0_3:
	movq	%r13, %rdi
	callq	_netif_stop_queue
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	_NETDEV_TX_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_12
LBB0_4:
	movq	%r14, %rdi
	callq	_netif_msg_pktdata
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	callq	_greth_print_tx_packet
LBB0_6:
	movl	(%r12), %eax
	movq	_MAX_FRAME_SIZE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	incl	(%r13)
	jmp	LBB0_11
LBB0_8:
	movq	32(%r14), %rax
	movslq	8(%r14), %rcx
	leaq	(%rax,%rcx,8), %rdx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rcx,8), %rdi
	addq	$4, %rdi
	callq	_greth_read_bd
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_phys_to_virt
	movl	(%r12), %edx
	movl	4(%r12), %esi
	movq	%rax, %rdi
	callq	_memcpy
	movl	28(%r14), %edi
	movl	(%r12), %edx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r13d, %esi
	callq	_dma_sync_single_for_device
	movq	_GRETH_BD_EN@GOTPCREL(%rip), %rax
	movq	_GRETH_BD_IE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	orl	(%rax), %r13d
	movq	_GRETH_BD_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r12), %eax
	orl	%eax, %r13d
	movq	16(%r14), %rcx
	movslq	8(%r14), %rdx
	movl	%eax, (%rcx,%rdx,4)
	movslq	8(%r14), %rdi
	movq	_GRETH_TXBD_NUM_MASK@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	%rdi, (%rcx)
	jne	LBB0_10
## %bb.9:
	movq	_GRETH_BD_WR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_10:
	orl	%eax, %r13d
	callq	_NEXT_TX
	movl	%eax, 8(%r14)
	decq	(%r14)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_greth_write_bd
	addq	$24, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	%r14, %rdi
	callq	_greth_enable_tx
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
LBB0_11:
	movq	%r12, %rdi
	callq	_dev_kfree_skb
LBB0_12:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.comm	_GRETH_RXI,4,2                  ## @GRETH_RXI
	.comm	_GRETH_TXI,4,2                  ## @GRETH_TXI
	.comm	_NETDEV_TX_BUSY,4,2             ## @NETDEV_TX_BUSY
	.comm	_MAX_FRAME_SIZE,4,2             ## @MAX_FRAME_SIZE
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_GRETH_BD_EN,4,2                ## @GRETH_BD_EN
	.comm	_GRETH_BD_IE,4,2                ## @GRETH_BD_IE
	.comm	_GRETH_BD_LEN,4,2               ## @GRETH_BD_LEN
	.comm	_GRETH_TXBD_NUM_MASK,8,3        ## @GRETH_TXBD_NUM_MASK
	.comm	_GRETH_BD_WR,4,2                ## @GRETH_BD_WR
	.no_dead_strip	_greth_start_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function greth_start_xmit
_greth_start_xmit:                      ; @greth_start_xmit
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x1
	mov	x21, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	ldr	w0, [x0, #48]
	bl	_greth_clean_tx
	ldr	x8, [x20]
	cmp	x8, #1
	cset	w0, lt
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.1:
	add	x19, x20, #24
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x20, #40]
	ldr	w0, [x8]
	bl	_GRETH_REGLOAD
Lloh3:
	adrp	x8, _GRETH_RXI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GRETH_RXI@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x20, #40]
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _GRETH_TXI@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GRETH_TXI@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w1, w9, w0
	mov	x0, x8
	bl	_GRETH_REGSAVE
LBB0_3:
	mov	x0, x22
	bl	_netif_stop_queue
	mov	x0, x19
	bl	_spin_unlock_irqrestore
Lloh9:
	adrp	x8, _NETDEV_TX_BUSY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NETDEV_TX_BUSY@GOTPAGEOFF]
Lloh11:
	ldr	w19, [x8]
	b	LBB0_10
LBB0_4:
	mov	x0, x20
	bl	_netif_msg_pktdata
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x21
	bl	_greth_print_tx_packet
LBB0_6:
	ldr	w8, [x21]
Lloh12:
	adrp	x9, _MAX_FRAME_SIZE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MAX_FRAME_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, gt
	bl	_unlikely
	cbz	x0, LBB0_8
; %bb.7:
	ldr	w8, [x22]
	add	w8, w8, #1
	str	w8, [x22]
	b	LBB0_9
LBB0_8:
	ldr	x8, [x20, #32]
	ldrsw	x9, [x20, #8]
	add	x22, x8, x9, lsl #3
	add	x0, x22, #4
	bl	_greth_read_bd
	mov	x23, x0
	bl	_phys_to_virt
	ldp	w2, w1, [x21]
	bl	_memcpy
	ldr	w0, [x20, #28]
	ldr	w2, [x21]
Lloh15:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	mov	x1, x23
	bl	_dma_sync_single_for_device
Lloh18:
	adrp	x8, _GRETH_BD_EN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GRETH_BD_EN@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _GRETH_BD_IE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _GRETH_BD_IE@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh24:
	adrp	x9, _GRETH_BD_LEN@GOTPAGE
Lloh25:
	ldr	x9, [x9, _GRETH_BD_LEN@GOTPAGEOFF]
	ldr	w10, [x21]
Lloh26:
	ldr	w9, [x9]
	and	w9, w9, w10
	orr	w8, w8, w9
	ldr	x10, [x20, #16]
	ldrsw	x11, [x20, #8]
	str	w9, [x10, x11, lsl #2]
	ldrsw	x0, [x20, #8]
Lloh27:
	adrp	x9, _GRETH_TXBD_NUM_MASK@GOTPAGE
Lloh28:
	ldr	x9, [x9, _GRETH_TXBD_NUM_MASK@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
Lloh30:
	adrp	x10, _GRETH_BD_WR@GOTPAGE
Lloh31:
	ldr	x10, [x10, _GRETH_BD_WR@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
	cmp	x9, x0
	csel	w9, w10, wzr, eq
	orr	w23, w8, w9
	bl	_NEXT_TX
	str	w0, [x20, #8]
	ldr	x8, [x20]
	sub	x8, x8, #1
	str	x8, [x20]
	mov	x0, x22
	mov	x1, x23
	bl	_greth_write_bd
	add	x22, x20, #24
	mov	x0, x22
	bl	_spin_lock_irqsave
	mov	x0, x20
	bl	_greth_enable_tx
	mov	x0, x22
	bl	_spin_unlock_irqrestore
LBB0_9:
	mov	x0, x21
	bl	_dev_kfree_skb
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.comm	_GRETH_RXI,4,2                  ; @GRETH_RXI
	.comm	_GRETH_TXI,4,2                  ; @GRETH_TXI
	.comm	_NETDEV_TX_BUSY,4,2             ; @NETDEV_TX_BUSY
	.comm	_MAX_FRAME_SIZE,4,2             ; @MAX_FRAME_SIZE
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_GRETH_BD_EN,4,2                ; @GRETH_BD_EN
	.comm	_GRETH_BD_IE,4,2                ; @GRETH_BD_IE
	.comm	_GRETH_BD_LEN,4,2               ; @GRETH_BD_LEN
	.comm	_GRETH_TXBD_NUM_MASK,8,3        ; @GRETH_TXBD_NUM_MASK
	.comm	_GRETH_BD_WR,4,2                ; @GRETH_BD_WR
	.no_dead_strip	_greth_start_xmit
.subsections_via_symbols
