	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tulip_start_xmit
_tulip_start_xmit:                      ## @tulip_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	%rdi, %r12
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	leaq	8(%rax), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movl	(%rbx), %eax
	movq	_TX_RING_SIZE@GOTPCREL(%rip), %r15
	cltd
	idivl	(%r15)
	movq	32(%rbx), %rax
	movslq	%edx, %r14
	movq	%r14, %r13
	shlq	$4, %r13
	movq	%r12, 8(%rax,%r13)
	movl	40(%rbx), %edi
	movl	(%r12), %edx
	movl	4(%r12), %esi
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_pci_map_single
	movq	32(%rbx), %rcx
	movl	%eax, (%rcx,%r13)
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	24(%rbx), %rcx
	leaq	(%r14,%r14,2), %rdx
	movq	%rax, 16(%rcx,%rdx,8)
	movl	(%rbx), %edx
	subl	4(%rbx), %edx
	movl	(%r15), %eax
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%eax, %esi
	sarl	%esi
	movl	$1610612736, %ecx               ## imm = 0x60000000
	cmpl	%esi, %edx
	jge	LBB0_2
## %bb.1:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_6
LBB0_2:
	jne	LBB0_4
## %bb.3:
	movl	$-536870912, %ecx               ## imm = 0xE0000000
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_6
LBB0_4:
	leal	-2(%rax), %esi
	cmpl	%esi, %edx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jl	LBB0_6
## %bb.5:
	movq	%r13, %rdi
	callq	_netif_stop_queue
	movq	_TX_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$-536870912, %ecx               ## imm = 0xE0000000
LBB0_6:
	decl	%eax
	movq	_DESC_RING_WRAP@GOTPCREL(%rip), %rdx
	movl	$-536870912, %edi               ## imm = 0xE0000000
	orl	(%rdx), %edi
	cmpl	%eax, %r14d
	cmovnel	%ecx, %edi
	orl	(%r12), %edi
	callq	_cpu_to_le32
	movq	24(%rbx), %rcx
	shlq	$3, %r14
	leaq	(%r14,%r14,2), %r14
	movq	%rax, 8(%rcx,%r14)
	movq	_DescOwned@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	24(%rbx), %rcx
	movq	%rax, (%rcx,%r14)
	xorl	%eax, %eax
	callq	_wmb
	incl	(%rbx)
	movq	_CSR1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	xorl	%edi, %edi
	callq	_iowrite32
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_RING_SIZE,4,2               ## @TX_RING_SIZE
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.comm	_DESC_RING_WRAP,4,2             ## @DESC_RING_WRAP
	.comm	_DescOwned,4,2                  ## @DescOwned
	.comm	_CSR1,8,3                       ## @CSR1
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.no_dead_strip	_tulip_start_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tulip_start_xmit
_tulip_start_xmit:                      ; @tulip_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	x19, x1
	mov	x22, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x21, x0
	add	x20, x0, #8
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w8, [x21]
Lloh0:
	adrp	x24, _TX_RING_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _TX_RING_SIZE@GOTPAGEOFF]
	ldr	w9, [x24]
	sdiv	w10, w8, w9
	msub	w25, w10, w9, w8
	ldr	x8, [x21, #32]
	sxtw	x23, w25
	sbfiz	x26, x25, #4, #32
	add	x8, x8, x26
	str	x22, [x8, #8]
	ldr	w0, [x21, #40]
	ldp	w2, w1, [x22]
Lloh2:
	adrp	x8, _PCI_DMA_TODEVICE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	bl	_pci_map_single
	ldr	x8, [x21, #32]
	str	w0, [x8, x26]
	bl	_cpu_to_le32
	ldr	x8, [x21, #24]
	mov	w9, #24
	smaddl	x8, w25, w9, x8
	str	x0, [x8, #16]
	ldp	w9, w10, [x21]
	ldr	w8, [x24]
	cmp	w8, #0
	cinc	w11, w8, lt
	asr	w11, w11, #1
	sub	w9, w9, w10
	cmp	w9, w11
	b.lt	LBB0_3
; %bb.1:
	b.eq	LBB0_5
; %bb.2:
	sub	w10, w8, #2
	cmp	w9, w10
	b.ge	LBB0_4
LBB0_3:
	mov	w9, #1610612736
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	bl	_netif_stop_queue
	ldr	w8, [x24]
LBB0_5:
	mov	w9, #-536870912
LBB0_6:
	sub	w8, w8, #1
Lloh5:
	adrp	x10, _DESC_RING_WRAP@GOTPAGE
Lloh6:
	ldr	x10, [x10, _DESC_RING_WRAP@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	orr	w10, w10, #0xe0000000
	cmp	w23, w8
	csel	w8, w10, w9, eq
	ldr	w9, [x22]
	orr	w0, w8, w9
	bl	_cpu_to_le32
	ldr	x8, [x21, #24]
	add	x9, x23, x23, lsl #1
	lsl	x22, x9, #3
	add	x8, x8, x22
	str	x0, [x8, #8]
Lloh8:
	adrp	x8, _DescOwned@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DescOwned@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	ldr	x8, [x21, #24]
	str	x0, [x8, x22]
	bl	_wmb
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	ldr	x8, [x21, #16]
Lloh11:
	adrp	x9, _CSR1@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CSR1@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_iowrite32
	mov	x0, x20
	bl	_spin_unlock_irqrestore
Lloh14:
	adrp	x8, _jiffies@GOTPAGE
Lloh15:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh17:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_RING_SIZE,4,2               ; @TX_RING_SIZE
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.comm	_DESC_RING_WRAP,4,2             ; @DESC_RING_WRAP
	.comm	_DescOwned,4,2                  ; @DescOwned
	.comm	_CSR1,8,3                       ; @CSR1
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.no_dead_strip	_tulip_start_xmit
.subsections_via_symbols
