	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tlan_start_tx
_tlan_start_tx:                         ## @tlan_start_tx
	.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, %rbx
	movq	%rsi, %rdi
	callq	_netdev_priv
	cmpl	$0, 48(%rax)
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	_TLAN_MIN_FRAME_SIZE@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	movq	%rbx, %rdi
	callq	_skb_padto
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	jne	LBB0_12
## %bb.3:
	movl	4(%rbx), %edi
	movl	(%r15), %esi
	callq	_max
	movl	%eax, %edx
	movq	16(%r13), %r12
	movslq	(%r13), %r8
	movq	%r8, %r15
	shlq	$5, %r15
	movq	(%r12,%r15), %rax
	movq	_TLAN_CSTAT_UNUSED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	leaq	(%r12,%r15), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	40(%r13), %rax
	addq	%r15, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	$0, 8(%r12,%r15)
	movl	24(%r13), %edi
	movl	(%rbx), %esi
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	callq	_pci_map_single
	movq	16(%r12,%r15), %rcx
	movq	%rax, 8(%rcx)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_tlan_store_skb
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %eax
	movq	%rax, 24(%r12,%r15)
	movq	_TLAN_LAST_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%ecx, %eax
	movq	16(%r12,%r15), %rcx
	movl	%eax, (%rcx)
	movl	$0, 16(%rcx)
	movq	$0, 24(%rcx)
	movq	%r13, %r12
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	_TLAN_CSTAT_READY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	cmpl	$0, 4(%r13)
	je	LBB0_6
## %bb.7:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	_TLAN_DEBUG_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %edx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_TLAN_DBG
	movslq	(%r13), %rcx
	movq	16(%r13), %rax
	testq	%rcx, %rcx
	jne	LBB0_9
## %bb.8:
	movq	_TLAN_NUM_TX_LISTS@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
LBB0_9:
	shlq	$5, %rcx
	movq	%rbx, -24(%rcx,%rax)
	jmp	LBB0_10
LBB0_1:
	movq	_TLAN_DEBUG_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_TLAN_DBG
	movq	%rbx, %rdi
	callq	_dev_kfree_skb_any
	jmp	LBB0_11
LBB0_4:
	movq	_TLAN_DEBUG_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %edx
	movl	32(%r13), %ecx
	leaq	L_.str.1(%rip), %rsi
                                        ## kill: def $r8d killed $r8d killed $r8
	xorl	%eax, %eax
	callq	_TLAN_DBG
	movq	%r14, %rdi
	callq	_netif_stop_queue
	incl	28(%r13)
	movq	_NETDEV_TX_BUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_6:
	movl	$1, 4(%r13)
	movq	_TLAN_DEBUG_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_TLAN_DBG
	movq	_TLAN_CH_PARM@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_outl
	movq	_TLAN_HC_GO@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_TLAN_HOST_CMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	callq	_outl
LBB0_10:
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movl	(%r13), %edi
	movq	_TLAN_NUM_TX_LISTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_CIRC_INC
LBB0_11:
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rcx
LBB0_12:
	movl	(%rcx), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TLAN_DEBUG_TX,4,2              ## @TLAN_DEBUG_TX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TRANSMIT:  %s PHY is not ready\n"

	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.comm	_TLAN_MIN_FRAME_SIZE,8,3        ## @TLAN_MIN_FRAME_SIZE
	.comm	_TLAN_CSTAT_UNUSED,8,3          ## @TLAN_CSTAT_UNUSED
L_.str.1:                               ## @.str.1
	.asciz	"TRANSMIT:  %s is busy (Head=%d Tail=%d)\n"

	.comm	_NETDEV_TX_BUSY,4,2             ## @NETDEV_TX_BUSY
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.comm	_TLAN_LAST_BUFFER,4,2           ## @TLAN_LAST_BUFFER
	.comm	_TLAN_CSTAT_READY,8,3           ## @TLAN_CSTAT_READY
L_.str.2:                               ## @.str.2
	.asciz	"TRANSMIT:  Starting TX on buffer %d\n"

	.comm	_TLAN_CH_PARM,8,3               ## @TLAN_CH_PARM
	.comm	_TLAN_HC_GO,8,3                 ## @TLAN_HC_GO
	.comm	_TLAN_HOST_CMD,8,3              ## @TLAN_HOST_CMD
L_.str.3:                               ## @.str.3
	.asciz	"TRANSMIT:  Adding buffer %d to TX channel\n"

	.comm	_TLAN_NUM_TX_LISTS,4,2          ## @TLAN_NUM_TX_LISTS
	.no_dead_strip	_tlan_start_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tlan_start_tx
_tlan_start_tx:                         ; @tlan_start_tx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	w8, [x0, #48]
	cbz	w8, LBB0_7
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x21, _TLAN_MIN_FRAME_SIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TLAN_MIN_FRAME_SIZE@GOTPAGEOFF]
	ldr	x1, [x21]
	mov	x0, x22
	bl	_skb_padto
	cbnz	x0, LBB0_11
; %bb.2:
	ldr	w0, [x22, #4]
	ldr	w1, [x21]
	bl	_max
	ldr	x9, [x19, #16]
	ldrsw	x8, [x19]
	lsl	x10, x8, #5
	add	x23, x9, x10
	ldr	x11, [x23]
Lloh2:
	adrp	x12, _TLAN_CSTAT_UNUSED@GOTPAGE
Lloh3:
	ldr	x12, [x12, _TLAN_CSTAT_UNUSED@GOTPAGEOFF]
Lloh4:
	ldr	x12, [x12]
	cmp	x11, x12
	b.ne	LBB0_8
; %bb.3:
	mov	x24, x0
	ldr	x11, [x19, #40]
	add	x21, x11, x10
	add	x25, x9, x8, lsl #5
	str	xzr, [x25, #8]
	ldr	w0, [x19, #24]
	ldr	w1, [x22]
Lloh5:
	adrp	x8, _PCI_DMA_TODEVICE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x2, x24
	bl	_pci_map_single
	ldr	x8, [x25, #16]
	str	x0, [x8, #8]
	mov	x0, x23
	mov	x1, x22
	bl	_tlan_store_skb
	mov	w8, w24
	str	x8, [x25, #24]
Lloh8:
	adrp	x8, _TLAN_LAST_BUFFER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TLAN_LAST_BUFFER@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	orr	w8, w8, w24
	ldr	x9, [x25, #16]
	str	w8, [x9]
	str	wzr, [x9, #16]
	str	xzr, [x9, #24]
	add	x22, x19, #8
	mov	x0, x22
	bl	_spin_lock_irqsave
Lloh11:
	adrp	x8, _TLAN_CSTAT_READY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TLAN_CSTAT_READY@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	x8, [x23]
	ldr	w8, [x19, #4]
Lloh14:
	adrp	x23, _TLAN_NUM_TX_LISTS@GOTPAGE
Lloh15:
	ldr	x23, [x23, _TLAN_NUM_TX_LISTS@GOTPAGEOFF]
	cbz	w8, LBB0_9
; %bb.4:
Lloh16:
	adrp	x8, _TLAN_DEBUG_TX@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TLAN_DEBUG_TX@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	ldr	w2, [x19]
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_TLAN_DBG
	ldrsw	x9, [x19]
	ldr	x8, [x19, #16]
	cbnz	w9, LBB0_6
; %bb.5:
	ldrsw	x9, [x23]
LBB0_6:
	add	x8, x8, x9, lsl #5
	stur	x21, [x8, #-24]
	b	LBB0_10
LBB0_7:
Lloh21:
	adrp	x8, _TLAN_DEBUG_TX@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TLAN_DEBUG_TX@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	ldr	w2, [x20]
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	bl	_TLAN_DBG
	mov	x0, x22
	bl	_dev_kfree_skb_any
	b	LBB0_11
LBB0_8:
Lloh26:
	adrp	x9, _TLAN_DEBUG_TX@GOTPAGE
Lloh27:
	ldr	x9, [x9, _TLAN_DEBUG_TX@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x9]
	ldr	w2, [x20]
	ldr	w9, [x19, #32]
	stp	x9, x8, [sp]
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_TLAN_DBG
	mov	x0, x20
	bl	_netif_stop_queue
	ldr	w8, [x19, #28]
	add	w8, w8, #1
	str	w8, [x19, #28]
Lloh31:
	adrp	x8, _NETDEV_TX_BUSY@GOTPAGE
Lloh32:
	ldr	x8, [x8, _NETDEV_TX_BUSY@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
	mov	w8, #1
	str	w8, [x19, #4]
Lloh33:
	adrp	x8, _TLAN_DEBUG_TX@GOTPAGE
Lloh34:
	ldr	x8, [x8, _TLAN_DEBUG_TX@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	ldr	w2, [x19]
Lloh36:
	adrp	x1, l_.str.2@PAGE
Lloh37:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_TLAN_DBG
	ldr	x8, [x20, #8]
Lloh38:
	adrp	x9, _TLAN_CH_PARM@GOTPAGE
Lloh39:
	ldr	x9, [x9, _TLAN_CH_PARM@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x21
	bl	_outl
Lloh41:
	adrp	x8, _TLAN_HC_GO@GOTPAGE
Lloh42:
	ldr	x8, [x8, _TLAN_HC_GO@GOTPAGEOFF]
Lloh43:
	ldr	x0, [x8]
	ldr	x8, [x20, #8]
Lloh44:
	adrp	x9, _TLAN_HOST_CMD@GOTPAGE
Lloh45:
	ldr	x9, [x9, _TLAN_HOST_CMD@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_outl
LBB0_10:
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	ldr	w0, [x19]
	ldr	w1, [x23]
	bl	_CIRC_INC
LBB0_11:
Lloh47:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh48:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_TLAN_DEBUG_TX,4,2              ; @TLAN_DEBUG_TX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TRANSMIT:  %s PHY is not ready\n"

	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.comm	_TLAN_MIN_FRAME_SIZE,8,3        ; @TLAN_MIN_FRAME_SIZE
	.comm	_TLAN_CSTAT_UNUSED,8,3          ; @TLAN_CSTAT_UNUSED
l_.str.1:                               ; @.str.1
	.asciz	"TRANSMIT:  %s is busy (Head=%d Tail=%d)\n"

	.comm	_NETDEV_TX_BUSY,4,2             ; @NETDEV_TX_BUSY
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.comm	_TLAN_LAST_BUFFER,4,2           ; @TLAN_LAST_BUFFER
	.comm	_TLAN_CSTAT_READY,8,3           ; @TLAN_CSTAT_READY
l_.str.2:                               ; @.str.2
	.asciz	"TRANSMIT:  Starting TX on buffer %d\n"

	.comm	_TLAN_CH_PARM,8,3               ; @TLAN_CH_PARM
	.comm	_TLAN_HC_GO,8,3                 ; @TLAN_HC_GO
	.comm	_TLAN_HOST_CMD,8,3              ; @TLAN_HOST_CMD
l_.str.3:                               ; @.str.3
	.asciz	"TRANSMIT:  Adding buffer %d to TX channel\n"

	.comm	_TLAN_NUM_TX_LISTS,4,2          ; @TLAN_NUM_TX_LISTS
	.no_dead_strip	_tlan_start_tx
.subsections_via_symbols
