	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lmc_start_xmit
_lmc_start_xmit:                        ## @lmc_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, %r14
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_dev_to_sc
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_lmc_trace
	leaq	16(%rbx), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movl	(%rbx), %eax
	movq	_LMC_TXDESCS@GOTPCREL(%rip), %r13
	cltd
	idivl	(%r13)
	movq	40(%rbx), %rax
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movslq	%edx, %r15
	movq	%r12, (%rax,%r15,8)
	movl	4(%r12), %edi
	callq	_virt_to_bus
	movq	24(%rbx), %rcx
	leaq	(%r15,%r15,2), %rdx
	movl	%eax, 8(%rcx,%rdx,4)
	movl	(%r12), %edx
	movl	4(%r12), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_LMC_CONSOLE_LOG
	movl	(%rbx), %eax
	subl	4(%rbx), %eax
	movl	(%r13), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	cmpl	%edx, %eax
	jl	LBB0_1
## %bb.2:
	jne	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_netif_wake_queue
	jmp	LBB0_6
LBB0_4:
	decl	%ecx
	cmpl	%ecx, %eax
	jge	LBB0_5
LBB0_1:
	movq	%r14, %rdi
	callq	_netif_wake_queue
	movl	$1610612736, %esi               ## imm = 0x60000000
	jmp	LBB0_7
LBB0_5:
	movl	$1, 8(%rbx)
	movq	%r14, %rdi
	callq	_netif_stop_queue
LBB0_6:
	movl	$-536870912, %esi               ## imm = 0xE0000000
LBB0_7:
	movq	_LMC_TXDESCS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	decl	%ecx
	movl	$0, %eax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	cmpl	%ecx, %edx
	jne	LBB0_9
## %bb.8:
	movq	_LMC_TDES_END_OF_RING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:
	orl	(%r12), %esi
	orl	%eax, %esi
	orl	12(%rbx), %esi
	movq	24(%rbx), %rax
	shlq	$2, %r15
	leaq	(%r15,%r15,2), %r15
	movl	%esi, (%rax,%r15)
	incl	32(%rbx)
	incl	(%rbx)
	movq	_LMC_EVENT_XMT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LMC_EVENT_LOG
	movq	24(%rbx), %rax
	movl	$-2147483648, 4(%rax,%r15)      ## imm = 0x80000000
	movq	_csr_txpoll@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_LMC_CSR_WRITE
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_lmc_trace
	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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lmc_start_xmit in"

	.comm	_LMC_TXDESCS,4,2                ## @LMC_TXDESCS
L_.str.1:                               ## @.str.1
	.asciz	"xmit"

	.comm	_LMC_TDES_END_OF_RING,4,2       ## @LMC_TDES_END_OF_RING
	.comm	_LMC_EVENT_XMT,4,2              ## @LMC_EVENT_XMT
	.comm	_csr_txpoll,4,2                 ## @csr_txpoll
L_.str.2:                               ## @.str.2
	.asciz	"lmc_start_xmit_out"

	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.comm	_LMC_EVENT_TBUSY1,4,2           ## @LMC_EVENT_TBUSY1
	.comm	_LMC_TDES_INTERRUPT_ON_COMPLETION,4,2 ## @LMC_TDES_INTERRUPT_ON_COMPLETION
	.no_dead_strip	_lmc_start_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lmc_start_xmit
_lmc_start_xmit:                        ; @lmc_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	_dev_to_sc
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_lmc_trace
	add	x21, x20, #16
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	w8, [x20]
Lloh2:
	adrp	x24, _LMC_TXDESCS@GOTPAGE
Lloh3:
	ldr	x24, [x24, _LMC_TXDESCS@GOTPAGEOFF]
	ldr	w9, [x24]
	sdiv	w10, w8, w9
	msub	w25, w10, w9, w8
	ldr	x8, [x20, #40]
	sxtw	x23, w25
	str	x22, [x8, w25, sxtw #3]
	ldr	w0, [x22, #4]
	bl	_virt_to_bus
	ldr	x8, [x20, #24]
	mov	w9, #12
	smaddl	x8, w25, w9, x8
	str	w0, [x8, #8]
	ldp	w2, w1, [x22]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_LMC_CONSOLE_LOG
	ldp	w9, w10, [x20]
	ldr	w8, [x24]
	cmp	w8, #0
	cinc	w11, w8, lt
	asr	w11, w11, #1
	sub	w9, w9, w10
	cmp	w9, w11
	b.lt	LBB0_4
; %bb.1:
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_netif_wake_queue
	b	LBB0_6
LBB0_3:
	sub	w8, w8, #1
	cmp	w9, w8
	b.ge	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_netif_wake_queue
	mov	w8, #1610612736
	b	LBB0_7
LBB0_5:
	mov	w8, #1
	str	w8, [x20, #8]
	mov	x0, x19
	bl	_netif_stop_queue
LBB0_6:
	mov	w8, #-536870912
LBB0_7:
	ldr	w9, [x24]
	sub	w9, w9, #1
Lloh6:
	adrp	x10, _LMC_TDES_END_OF_RING@GOTPAGE
Lloh7:
	ldr	x10, [x10, _LMC_TDES_END_OF_RING@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w23, w9
	csel	w9, w10, wzr, eq
	ldr	w10, [x22]
	ldr	w11, [x20, #12]
	orr	w8, w10, w8
	orr	w8, w8, w9
	orr	w1, w8, w11
	ldr	x8, [x20, #24]
	add	x9, x23, x23, lsl #1
	lsl	x22, x9, #2
	str	w1, [x8, x22]
	ldr	w8, [x20, #32]
	add	w8, w8, #1
	str	w8, [x20, #32]
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
Lloh9:
	adrp	x8, _LMC_EVENT_XMT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LMC_EVENT_XMT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x2, x23
	bl	_LMC_EVENT_LOG
	ldr	x8, [x20, #24]
	add	x8, x8, x22
	mov	w9, #-2147483648
	str	w9, [x8, #4]
Lloh12:
	adrp	x8, _csr_txpoll@GOTPAGE
Lloh13:
	ldr	x8, [x8, _csr_txpoll@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_LMC_CSR_WRITE
	mov	x0, x21
	bl	_spin_unlock_irqrestore
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_lmc_trace
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 AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lmc_start_xmit in"

	.comm	_LMC_TXDESCS,4,2                ; @LMC_TXDESCS
l_.str.1:                               ; @.str.1
	.asciz	"xmit"

	.comm	_LMC_TDES_END_OF_RING,4,2       ; @LMC_TDES_END_OF_RING
	.comm	_LMC_EVENT_XMT,4,2              ; @LMC_EVENT_XMT
	.comm	_csr_txpoll,4,2                 ; @csr_txpoll
l_.str.2:                               ; @.str.2
	.asciz	"lmc_start_xmit_out"

	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.comm	_LMC_EVENT_TBUSY1,4,2           ; @LMC_EVENT_TBUSY1
	.comm	_LMC_TDES_INTERRUPT_ON_COMPLETION,4,2 ; @LMC_TDES_INTERRUPT_ON_COMPLETION
	.no_dead_strip	_lmc_start_xmit
.subsections_via_symbols
