	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_tx
_tg3_tx:                                ## @tg3_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	$72, %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	32(%rdi), %r13
	movq	(%rdi), %rbx
	movq	24(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rax
	subq	8(%r13), %rax
	shrq	$3, %rax
	imull	$-858993459, %eax, %r14d        ## imm = 0xCCCCCCCD
	movq	_ENABLE_TSS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_tg3_flag
	cmpq	$1, %rax
	adcl	$-1, %r14d
	movl	4(%r13), %edi
	movl	%r14d, %esi
	callq	_netdev_get_tx_queue
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_dev_kfree_skb
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_unlikely
	testq	%rax, %rax
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_3
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
                                        ##     Child Loop BB0_13 Depth 2
                                        ##       Child Loop BB0_14 Depth 3
	cmpq	-80(%rbp), %rbx                 ## 8-byte Folded Reload
	je	LBB0_17
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r12), %r14
	movq	%rbx, %r15
	shlq	$4, %r15
	movq	8(%r14,%r15), %rax
	xorl	%edi, %edi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdx
	leaq	(%r14,%r15), %r13
	movq	16(%r12), %rax
	movq	_TXD_FLAG_HWTSTAMP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax,%rbx,4)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_TG3_TX_TSTAMP_LSB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_tr32
	movq	_TG3_TX_TSTAMP_MSB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_tr32
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leaq	-88(%rbp), %rdx
	callq	_tg3_hwclock_to_timestamp
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	-88(%rbp), %rsi
	callq	_skb_tstamp_tx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	addq	%r15, %r14
	addq	$8, %r14
	movl	(%rdx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_mapping@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_dma_unmap_addr
	movl	%eax, %r15d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_skb_headlen
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_pci_unmap_single
	movq	$0, (%r14)
	cmpl	$0, (%r13)
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	$0, (%r13)
	movq	%rbx, %rdi
	callq	_NEXT_TX
	movq	%rax, %rbx
	movq	8(%r12), %rax
	movq	%rbx, %rcx
	shlq	$4, %rcx
	leaq	(%rax,%rcx), %r13
	cmpl	$0, (%rax,%rcx)
	jne	LBB0_9
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_NEXT_TX
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_skb_shinfo
	cmpl	$0, (%rax)
	jle	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r14d, %r14d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=2
	movq	%rbx, %rdi
	callq	_NEXT_TX
	movq	%rax, %rbx
	incq	%r14
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_skb_shinfo
	movslq	(%rax), %rax
	cmpq	%rax, %r14
	jge	LBB0_16
LBB0_13:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_14 Depth 3
	movq	8(%r12), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, %r13
	shlq	$4, %r13
	leaq	(%rax,%r13), %r15
	cmpq	$0, 8(%rax,%r13)
	setne	%al
	cmpq	-80(%rbp), %rbx                 ## 8-byte Folded Reload
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_unlikely
	testq	%rax, %rax
	movl	$1, %eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmovnel	%eax, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	movq	_mapping@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_dma_unmap_addr
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_skb_shinfo
	leaq	(,%r14,4), %rdi
	addq	8(%rax), %rdi
	callq	_skb_frag_size
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	-96(%rbp), %edi                 ## 4-byte Reload
	movl	-92(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_pci_unmap_page
	movq	-104(%rbp), %rax                ## 8-byte Reload
	cmpl	$0, (%rax,%r13)
	je	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_13 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	$0, (%r15)
	movq	%rbx, %rdi
	callq	_NEXT_TX
	movq	%rax, %rbx
	movq	8(%r12), %rax
	movq	%rbx, %rcx
	shlq	$4, %rcx
	leaq	(%rax,%rcx), %r15
	cmpl	$0, (%rax,%rcx)
	jne	LBB0_14
	jmp	LBB0_15
LBB0_3:
	movq	%r13, %rdi
	callq	_tg3_tx_recover
	jmp	LBB0_24
LBB0_17:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r12)
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_smp_mb
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_tx_queue_stopped
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movq	%r12, %rdi
	callq	_tg3_tx_avail
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_TG3_TX_WAKEUP_THRESH
	xorl	%ebx, %ebx
	cmpq	%rax, %r14
	setg	%bl
LBB0_19:
	movl	%ebx, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_24
## %bb.20:
	xorl	%eax, %eax
	callq	_smp_processor_id
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	___netif_tx_lock
	movq	%rbx, %rdi
	callq	_netif_tx_queue_stopped
	testq	%rax, %rax
	je	LBB0_23
## %bb.21:
	movq	%r12, %rdi
	callq	_tg3_tx_avail
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_TG3_TX_WAKEUP_THRESH
	cmpq	%rax, %rbx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jle	LBB0_23
## %bb.22:
	movq	%rbx, %rdi
	callq	_netif_tx_wake_queue
LBB0_23:
	movq	%rbx, %rdi
	callq	___netif_tx_unlock
LBB0_24:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENABLE_TSS,4,2                 ## @ENABLE_TSS
	.comm	_TXD_FLAG_HWTSTAMP,4,2          ## @TXD_FLAG_HWTSTAMP
	.comm	_TG3_TX_TSTAMP_LSB,4,2          ## @TG3_TX_TSTAMP_LSB
	.comm	_TG3_TX_TSTAMP_MSB,4,2          ## @TG3_TX_TSTAMP_MSB
	.comm	_mapping,4,2                    ## @mapping
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.no_dead_strip	_tg3_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tg3_tx
_tg3_tx:                                ; @tg3_tx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldp	x8, x21, [x0, #24]
	ldr	x8, [x8]
	ldr	x28, [x8]
	ldr	x22, [x0]
	ldr	x8, [x21, #8]
	sub	x8, x0, x8
	lsr	x20, x8, #3
	mov	w23, #52429
	movk	w23, #52428, lsl #16
Lloh0:
	adrp	x8, _ENABLE_TSS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENABLE_TSS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_tg3_flag
	cmp	x0, #0
	cset	w8, ne
	neg	w8, w8
	madd	w1, w20, w23, w8
	ldr	w0, [x21, #4]
	bl	_netdev_get_tx_queue
	str	x0, [sp]                        ; 8-byte Folded Spill
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w24, #0
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	bl	_dev_kfree_skb
	mov	x0, x24
	bl	_unlikely
	cbnz	x0, LBB0_14
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;     Child Loop BB0_12 Depth 2
                                        ;       Child Loop BB0_13 Depth 3
	cmp	x22, x28
	b.eq	LBB0_15
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #8]
	add	x24, x8, x22, lsl #4
	mov	x20, x24
	ldr	x23, [x20, #8]!
	cmp	x23, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #16]
	ldr	w8, [x8, x22, lsl #2]
Lloh3:
	adrp	x9, _TXD_FLAG_HWTSTAMP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TXD_FLAG_HWTSTAMP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh6:
	adrp	x8, _TG3_TX_TSTAMP_LSB@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TG3_TX_TSTAMP_LSB@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_tr32
Lloh9:
	adrp	x8, _TG3_TX_TSTAMP_MSB@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TG3_TX_TSTAMP_MSB@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_tr32
	add	x2, sp, #8
	mov	x0, x21
	bl	_tg3_hwclock_to_timestamp
	add	x1, sp, #8
	mov	x0, x23
	bl	_skb_tstamp_tx
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w25, [x21]
Lloh12:
	adrp	x8, _mapping@GOTPAGE
Lloh13:
	ldr	x8, [x8, _mapping@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_dma_unmap_addr
	mov	x26, x0
	mov	x0, x23
	bl	_skb_headlen
	mov	x2, x0
Lloh15:
	adrp	x8, _PCI_DMA_TODEVICE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	mov	x0, x25
	mov	x1, x26
	bl	_pci_unmap_single
	str	xzr, [x20]
	ldr	w8, [x24]
	cbz	w8, LBB0_9
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	wzr, [x24]
	mov	x0, x22
	bl	_NEXT_TX
	mov	x22, x0
	ldr	x8, [x19, #8]
	add	x24, x8, x0, lsl #4
	ldr	w8, [x24]
	cbnz	w8, LBB0_8
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_NEXT_TX
	mov	x22, x0
	mov	x0, x23
	bl	_skb_shinfo
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_1
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x20, #0
	mov	w24, #0
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	mov	x0, x22
	bl	_NEXT_TX
	mov	x22, x0
	add	x20, x20, #1
	mov	x0, x23
	bl	_skb_shinfo
	ldrsw	x8, [x0]
	cmp	x20, x8
	b.ge	LBB0_2
LBB0_12:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_13 Depth 3
	ldr	x8, [x19, #8]
	add	x25, x8, x22, lsl #4
	ldr	x8, [x25, #8]
	cmp	x8, #0
	ccmp	x22, x28, #4, eq
	cset	w0, eq
	bl	_unlikely
	cmp	x0, #0
	csinc	w24, w24, wzr, eq
	ldr	w26, [x21]
Lloh18:
	adrp	x8, _mapping@GOTPAGE
Lloh19:
	ldr	x8, [x8, _mapping@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x25
	bl	_dma_unmap_addr
	mov	x27, x0
	mov	x0, x23
	bl	_skb_shinfo
	ldr	x8, [x0, #8]
	add	x0, x8, x20, lsl #2
	bl	_skb_frag_size
	mov	x2, x0
Lloh21:
	adrp	x8, _PCI_DMA_TODEVICE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh23:
	ldr	w3, [x8]
	mov	x0, x26
	mov	x1, x27
	bl	_pci_unmap_page
	ldr	w8, [x25]
	cbz	w8, LBB0_11
LBB0_13:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_12 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	str	wzr, [x25]
	mov	x0, x22
	bl	_NEXT_TX
	mov	x22, x0
	ldr	x8, [x19, #8]
	add	x25, x8, x0, lsl #4
	ldr	w8, [x25]
	cbnz	w8, LBB0_13
	b	LBB0_11
LBB0_14:
	mov	x0, x21
	bl	_tg3_tx_recover
	b	LBB0_22
LBB0_15:
	str	x28, [x19]
	bl	_smp_mb
	ldr	x20, [sp]                       ; 8-byte Folded Reload
	mov	x0, x20
	bl	_netif_tx_queue_stopped
	cbz	x0, LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_tg3_tx_avail
	mov	x21, x0
	mov	x0, x19
	bl	_TG3_TX_WAKEUP_THRESH
	cmp	x21, x0
	cset	w0, gt
LBB0_17:
	bl	_unlikely
	cbz	x0, LBB0_22
; %bb.18:
	bl	_smp_processor_id
	mov	x1, x0
	mov	x0, x20
	bl	___netif_tx_lock
	mov	x0, x20
	bl	_netif_tx_queue_stopped
	cbz	x0, LBB0_21
; %bb.19:
	mov	x0, x19
	bl	_tg3_tx_avail
	mov	x21, x0
	mov	x0, x19
	bl	_TG3_TX_WAKEUP_THRESH
	cmp	x21, x0
	b.le	LBB0_21
; %bb.20:
	mov	x0, x20
	bl	_netif_tx_wake_queue
LBB0_21:
	mov	x0, x20
	bl	___netif_tx_unlock
LBB0_22:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ENABLE_TSS,4,2                 ; @ENABLE_TSS
	.comm	_TXD_FLAG_HWTSTAMP,4,2          ; @TXD_FLAG_HWTSTAMP
	.comm	_TG3_TX_TSTAMP_LSB,4,2          ; @TG3_TX_TSTAMP_LSB
	.comm	_TG3_TX_TSTAMP_MSB,4,2          ; @TG3_TX_TSTAMP_MSB
	.comm	_mapping,4,2                    ; @mapping
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.no_dead_strip	_tg3_tx
.subsections_via_symbols
