	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dscc4_start_xmit
_dscc4_start_xmit:                      ## @dscc4_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, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_dscc4_priv
	movq	%rax, %r15
	movq	32(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%r15), %eax
	movq	_TX_RING_SIZE@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movq	24(%r15), %rax
	movslq	%edx, %r12
	movq	%r14, (%rax,%r12,8)
	movq	16(%r15), %r13
	movq	_FrameEnd@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r14), %edi
	callq	_TO_STATE_TX
	orl	%ebx, %eax
	leaq	(%r12,%r12,2), %rbx
	movl	%eax, (%r13,%rbx,8)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	(%r14), %edx
	movl	4(%r14), %esi
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_pci_map_single
	movl	%eax, %edi
	callq	_cpu_to_le32
	movl	%eax, 16(%r13,%rbx,8)
	movl	$0, 4(%r13,%rbx,8)
	movq	_jiffies@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	%rax, 8(%r13,%rbx,8)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_mb
	movq	(%r14), %rax
	movq	%rax, (%rbx)
	movq	_debug@GOTPCREL(%rip), %rax
	cmpl	$3, (%rax)
	jl	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_dscc4_tx_print
LBB0_2:
	movl	(%r15), %eax
	incl	%eax
	movl	%eax, (%r15)
	subl	4(%r15), %eax
	cltd
	movq	_TX_RING_SIZE@GOTPCREL(%rip), %rcx
	idivl	(%rcx)
	testl	%edx, %edx
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_netif_stop_queue
LBB0_4:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_dscc4_tx_quiescent
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_dscc4_do_tx
LBB0_6:
	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	_FrameEnd,4,2                   ## @FrameEnd
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Xmit"

	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.no_dead_strip	_dscc4_start_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dscc4_start_xmit
_dscc4_start_xmit:                      ; @dscc4_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	x21, x0
	mov	x0, x1
	bl	_dscc4_priv
	mov	x20, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x22, _TX_RING_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _TX_RING_SIZE@GOTPAGEOFF]
	ldr	w9, [x22]
	sdiv	w10, w8, w9
	msub	w23, w10, w9, w8
	ldp	x8, x24, [x0, #24]
	str	x21, [x8, w23, sxtw #3]
	ldr	x25, [x0, #16]
Lloh2:
	adrp	x8, _FrameEnd@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FrameEnd@GOTPAGEOFF]
Lloh4:
	ldr	w26, [x8]
	ldr	w0, [x21]
	bl	_TO_STATE_TX
	orr	w8, w0, w26
	mov	w9, #24
	smaddl	x23, w23, w9, x25
	str	w8, [x23]
	ldr	w0, [x24]
	ldp	w2, w1, [x21]
Lloh5:
	adrp	x8, _PCI_DMA_TODEVICE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	bl	_pci_map_single
	bl	_cpu_to_le32
	str	w0, [x23, #16]
	str	wzr, [x23, #4]
Lloh8:
	adrp	x21, _jiffies@GOTPAGE
Lloh9:
	ldr	x21, [x21, _jiffies@GOTPAGEOFF]
	ldr	x8, [x21]
	str	x8, [x23, #8]
	bl	_mb
	ldr	x8, [x21]
	str	x8, [x19]
Lloh10:
	adrp	x8, _debug@GOTPAGE
Lloh11:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w8, #3
	b.lt	LBB0_2
; %bb.1:
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_dscc4_tx_print
LBB0_2:
	ldp	w8, w9, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	sub	w8, w8, w9
	ldr	w9, [x22]
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	cbnz	w8, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_netif_stop_queue
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	bl	_dscc4_tx_quiescent
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x20
	mov	x1, x19
	bl	_dscc4_do_tx
LBB0_6:
Lloh15:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
Lloh17:
	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	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_RING_SIZE,4,2               ; @TX_RING_SIZE
	.comm	_FrameEnd,4,2                   ; @FrameEnd
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Xmit"

	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.no_dead_strip	_dscc4_start_xmit
.subsections_via_symbols
