	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sgiseeq_tx
_sgiseeq_tx:                            ## @sgiseeq_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, %rbx
	movq	%rdi, %r13
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdx), %r14
	movq	%rsi, %rdi
	movq	%rcx, %rsi
	callq	_tx_maybe_reset_collisions
	movq	_HPC3_ETXCTRL_ACTIVE@GOTPCREL(%rip), %rcx
	movq	_SEEQ_TSTAT_PTRANS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	orq	(%rcx), %rax
	testq	%r14, %rax
	jne	LBB0_7
## %bb.1:
	movq	_SEEQ_TSTAT_R16@GOTPCREL(%rip), %rax
	testq	%r14, (%rax)
	je	LBB0_3
## %bb.2:
	incl	12(%r13)
LBB0_3:
	movq	_SEEQ_TSTAT_UFLOW@GOTPCREL(%rip), %rax
	testq	%r14, (%rax)
	je	LBB0_5
## %bb.4:
	incl	8(%r13)
LBB0_5:
	movq	_SEEQ_TSTAT_LCLS@GOTPCREL(%rip), %rax
	testq	%r14, (%rax)
	je	LBB0_7
## %bb.6:
	incl	4(%r13)
LBB0_7:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %eax
	cmpl	4(%rbx), %eax
	jne	LBB0_8
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_dma_sync_desc_dev
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_NEXT_TX
	movq	%r14, %rbx
	cmpl	%eax, 4(%r14)
	je	LBB0_15
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %r14
	movslq	%eax, %r15
	shlq	$4, %r15
	leaq	(%r14,%r15), %r12
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_dma_sync_desc_cpu
	movl	8(%r14,%r15), %eax
	movq	_HPCDMA_XIU@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	_HPCDMA_ETXD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	addq	%r14, %r15
	addq	$8, %r15
	incl	(%r13)
	movl	(%rbx), %edi
	callq	_NEXT_TX
	movq	%rbx, %r14
	movl	%eax, (%rbx)
	movq	_HPCDMA_XIE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_HPCDMA_XIU@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	notl	%eax
	andl	(%r15), %eax
	movl	%eax, (%r15)
	movq	_HPCDMA_EOX@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r15)
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	callq	_dev_kfree_skb_any
	movq	$0, (%r12)
	jmp	LBB0_14
LBB0_10:
	movq	_HPC3_ETXCTRL_ACTIVE@GOTPCREL(%rip), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, (%rax)
	jne	LBB0_15
## %bb.11:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_VIRT_TO_DMA
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 8(%rcx)
	movq	_HPC3_ETXCTRL_ACTIVE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rcx)
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_HPC3_ETXCTRL_ACTIVE,8,3        ## @HPC3_ETXCTRL_ACTIVE
	.comm	_SEEQ_TSTAT_PTRANS,8,3          ## @SEEQ_TSTAT_PTRANS
	.comm	_SEEQ_TSTAT_R16,8,3             ## @SEEQ_TSTAT_R16
	.comm	_SEEQ_TSTAT_UFLOW,8,3           ## @SEEQ_TSTAT_UFLOW
	.comm	_SEEQ_TSTAT_LCLS,8,3            ## @SEEQ_TSTAT_LCLS
	.comm	_HPCDMA_XIU,4,2                 ## @HPCDMA_XIU
	.comm	_HPCDMA_ETXD,4,2                ## @HPCDMA_ETXD
	.comm	_HPCDMA_XIE,4,2                 ## @HPCDMA_XIE
	.comm	_HPCDMA_EOX,4,2                 ## @HPCDMA_EOX
	.no_dead_strip	_sgiseeq_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sgiseeq_tx
_sgiseeq_tx:                            ; @sgiseeq_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	x20, x1
	mov	x21, x0
	str	x2, [sp, #8]                    ; 8-byte Folded Spill
	ldr	x25, [x2]
	mov	x0, x1
	mov	x1, x3
	bl	_tx_maybe_reset_collisions
Lloh0:
	adrp	x8, _HPC3_ETXCTRL_ACTIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HPC3_ETXCTRL_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _SEEQ_TSTAT_PTRANS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SEEQ_TSTAT_PTRANS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	orr	x8, x9, x8
	tst	x8, x25
	b.ne	LBB0_7
; %bb.1:
Lloh6:
	adrp	x8, _SEEQ_TSTAT_R16@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SEEQ_TSTAT_R16@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	tst	x8, x25
	b.eq	LBB0_3
; %bb.2:
	ldr	w8, [x21, #12]
	add	w8, w8, #1
	str	w8, [x21, #12]
LBB0_3:
Lloh9:
	adrp	x8, _SEEQ_TSTAT_UFLOW@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SEEQ_TSTAT_UFLOW@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	tst	x8, x25
	b.eq	LBB0_5
; %bb.4:
	ldr	w8, [x21, #8]
	add	w8, w8, #1
	str	w8, [x21, #8]
LBB0_5:
Lloh12:
	adrp	x8, _SEEQ_TSTAT_LCLS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SEEQ_TSTAT_LCLS@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	tst	x8, x25
	b.eq	LBB0_7
; %bb.6:
	ldr	w8, [x21, #4]
	add	w8, w8, #1
	str	w8, [x21, #4]
LBB0_7:
	ldp	w22, w8, [x20]
	cmp	w22, w8
	b.ne	LBB0_9
LBB0_8:
	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
LBB0_9:
Lloh15:
	adrp	x26, _HPCDMA_XIU@GOTPAGE
Lloh16:
	ldr	x26, [x26, _HPCDMA_XIU@GOTPAGEOFF]
Lloh17:
	adrp	x27, _HPCDMA_ETXD@GOTPAGE
Lloh18:
	ldr	x27, [x27, _HPCDMA_ETXD@GOTPAGEOFF]
Lloh19:
	adrp	x28, _HPCDMA_XIE@GOTPAGE
Lloh20:
	ldr	x28, [x28, _HPCDMA_XIE@GOTPAGEOFF]
Lloh21:
	adrp	x24, _HPCDMA_EOX@GOTPAGE
Lloh22:
	ldr	x24, [x24, _HPCDMA_EOX@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x21
	mov	x1, x19
	bl	_dma_sync_desc_dev
	mov	x0, x22
	bl	_NEXT_TX
	mov	x22, x0
	ldr	w8, [x20, #4]
	cmp	w8, w22
	b.eq	LBB0_8
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	add	x19, x8, w22, sxtw #4
	mov	x0, x21
	mov	x1, x19
	bl	_dma_sync_desc_cpu
	mov	x23, x19
	ldr	w8, [x23, #8]!
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w9, [x27]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	ldr	w0, [x20]
	bl	_NEXT_TX
	str	w0, [x20]
	ldr	w8, [x26]
	ldr	w9, [x28]
	orr	w8, w9, w8
	ldr	w9, [x23]
	bic	w8, w9, w8
	str	w8, [x23]
	ldr	w9, [x24]
	orr	w8, w9, w8
	str	w8, [x23]
	ldr	x0, [x19]
	cbz	x0, LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	bl	_dev_kfree_skb_any
	str	xzr, [x19]
	b	LBB0_10
LBB0_15:
Lloh23:
	adrp	x8, _HPC3_ETXCTRL_ACTIVE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _HPC3_ETXCTRL_ACTIVE@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	tst	x8, x25
	b.ne	LBB0_8
; %bb.16:
	mov	x0, x20
	mov	x1, x19
	bl	_VIRT_TO_DMA
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	str	w0, [x9, #8]
Lloh26:
	adrp	x8, _HPC3_ETXCTRL_ACTIVE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _HPC3_ETXCTRL_ACTIVE@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	str	x8, [x9]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_HPC3_ETXCTRL_ACTIVE,8,3        ; @HPC3_ETXCTRL_ACTIVE
	.comm	_SEEQ_TSTAT_PTRANS,8,3          ; @SEEQ_TSTAT_PTRANS
	.comm	_SEEQ_TSTAT_R16,8,3             ; @SEEQ_TSTAT_R16
	.comm	_SEEQ_TSTAT_UFLOW,8,3           ; @SEEQ_TSTAT_UFLOW
	.comm	_SEEQ_TSTAT_LCLS,8,3            ; @SEEQ_TSTAT_LCLS
	.comm	_HPCDMA_XIU,4,2                 ; @HPCDMA_XIU
	.comm	_HPCDMA_ETXD,4,2                ; @HPCDMA_ETXD
	.comm	_HPCDMA_XIE,4,2                 ; @HPCDMA_XIE
	.comm	_HPCDMA_EOX,4,2                 ; @HPCDMA_EOX
	.no_dead_strip	_sgiseeq_tx
.subsections_via_symbols
