	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function t1_sge_tx
_t1_sge_tx:                             ## @t1_sge_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	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	16(%rsi), %r14
	movq	24(%r14), %rbx
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%edx, %eax
	leaq	(%rax,%rax,8), %rcx
	leaq	(%rcx,%rcx,2), %r13
	addq	%rax, %r13
	leaq	(%rbx,%r13), %r15
	leaq	(%rbx,%r13), %rdi
	addq	$20, %rdi
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	callq	_spin_lock
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	movq	%r15, %rsi
	callq	_reclaim_completed_tx
	movl	4(%rbx,%r13), %r15d
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	subl	8(%rbx,%r13), %r15d
	movq	%r12, %rdi
	callq	_skb_shinfo
	movl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_compute_large_page_tx_descs
	leal	(%rbx,%rax), %r14d
	incl	%r14d
	xorl	%edi, %edi
	movl	%r15d, %ebx
	subl	%r14d, %ebx
	setb	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_netif_queue_stopped
	movq	_NETDEV_TX_BUSY@GOTPCREL(%rip), %rbx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_netif_stop_queue
	movl	(%r14), %edi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	leaq	16(%r14), %rsi
	callq	_set_bit
	movq	8(%r14), %rax
	incl	8(%rax)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_3
LBB0_5:
	xorl	%edi, %edi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpl	12(%rax,%r13), %ebx
	setb	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_netif_stop_queue
	movl	(%rbx), %edi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	leaq	16(%rbx), %rsi
	callq	_set_bit
	movq	8(%rbx), %rax
	incl	8(%rax)
LBB0_7:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addq	%r13, %rax
	addq	$4, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movb	$1, %dil
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	jne	LBB0_13
## %bb.8:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_13
## %bb.9:
	cmpq	$0, (%r12)
	jne	LBB0_10
	jmp	LBB0_13
LBB0_3:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock
LBB0_4:
	movl	(%rbx), %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_sched_skb
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_skb_shinfo
	movl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_compute_large_page_tx_descs
	leal	(%rbx,%rax), %r14d
	incl	%r14d
	xorl	%edi, %edi
LBB0_13:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addl	%r14d, 4(%rcx)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax,%r13), %r15d
	movq	%r13, %rdx
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movl	(%rsi), %r13d
	addl	%r13d, %r14d
	movl	%r14d, (%rsi)
	subl	(%rcx), %r14d
	jb	LBB0_15
## %bb.14:
	addq	%rdx, %rax
	addq	$16, %rax
	movl	%r14d, (%rsi)
	movl	%r15d, %ecx
	xorl	$1, %ecx
	movl	%ecx, (%rax)
LBB0_15:
	movl	%edi, -92(%rbp)                 ## 4-byte Spill
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%rsi, %r14
	callq	_spin_unlock
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	movl	%r15d, %ecx
	movq	%r14, %r8
	callq	_write_tx_descs
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	testl	%r14d, %r14d
	je	LBB0_17
## %bb.16:
	movq	_F_CMDQ1_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_doorbell_pio
	movq	-104(%rbp), %r13                ## 8-byte Reload
	jmp	LBB0_19
LBB0_17:
	movq	_CMDQ_STAT_LAST_PKT_DB@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	-104(%rbp), %r13                ## 8-byte Reload
	leaq	(%rax,%r13), %rbx
	addq	$24, %rbx
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	_CMDQ_STAT_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_and_set_bit
	testq	%rax, %rax
	jne	LBB0_19
## %bb.18:
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_set_bit
	movq	_F_CMDQ0_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_A_SG_DOORBELL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %rsi
	callq	_writel
LBB0_19:
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rbx
	testb	$1, -92(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_4
## %bb.20:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_trylock
	testq	%rax, %rax
	je	LBB0_4
## %bb.21:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r15d
	subl	4(%rax), %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_10
LBB0_11:
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rbx
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Tx ring full while queue awake!\n"

	.comm	_NETDEV_TX_BUSY,4,2             ## @NETDEV_TX_BUSY
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.comm	_F_CMDQ1_ENABLE,4,2             ## @F_CMDQ1_ENABLE
	.comm	_CMDQ_STAT_LAST_PKT_DB,4,2      ## @CMDQ_STAT_LAST_PKT_DB
	.comm	_CMDQ_STAT_RUNNING,4,2          ## @CMDQ_STAT_RUNNING
	.comm	_F_CMDQ0_ENABLE,4,2             ## @F_CMDQ0_ENABLE
	.comm	_A_SG_DOORBELL,8,3              ## @A_SG_DOORBELL
	.no_dead_strip	_t1_sge_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function t1_sge_tx
_t1_sge_tx:                             ; @t1_sge_tx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	str	x3, [sp, #8]                    ; 8-byte Folded Spill
	mov	x26, x2
	mov	x24, x0
	str	x1, [sp, #24]                   ; 8-byte Folded Spill
	ldr	x21, [x1, #16]
	ldr	x20, [x21, #24]
	mov	w8, #28
	umaddl	x23, w2, w8, x20
	add	x19, x23, #20
	mov	x0, x19
	bl	_spin_lock
	str	x21, [sp, #32]                  ; 8-byte Folded Spill
	mov	x0, x21
	mov	x1, x23
	bl	_reclaim_completed_tx
	mov	x28, x23
	ldr	w8, [x28, #4]!
	mov	x22, x23
	ldr	w9, [x22, #8]!
	sub	w25, w8, w9
	mov	x0, x24
	bl	_skb_shinfo
	ldr	w21, [x0]
	mov	x0, x24
	bl	_compute_large_page_tx_descs
	add	w8, w21, w0
	add	w27, w8, #1
	subs	w21, w25, w27
	cset	w0, lo
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
	mov	x0, x20
	bl	_netif_queue_stopped
	cbnz	w0, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_netif_stop_queue
	ldr	w0, [x20]
	ldr	x21, [sp, #32]                  ; 8-byte Folded Reload
	add	x1, x21, #16
	bl	_set_bit
	ldr	x8, [x21, #8]
	ldr	w9, [x8, #8]
	add	w9, w9, #1
	str	w9, [x8, #8]
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w1, [x8, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
LBB0_3:
Lloh2:
	adrp	x20, _NETDEV_TX_BUSY@GOTPAGE
Lloh3:
	ldr	x20, [x20, _NETDEV_TX_BUSY@GOTPAGEOFF]
LBB0_4:
	mov	x0, x19
	bl	_spin_unlock
	b	LBB0_23
LBB0_5:
	str	w26, [sp, #20]                  ; 4-byte Folded Spill
	mov	w9, w26
	mov	w8, #28
	str	x9, [sp, #40]                   ; 8-byte Folded Spill
	madd	x8, x9, x8, x20
	ldr	w8, [x8, #12]
	cmp	w21, w8
	cset	w0, lo
	bl	_unlikely
	mov	x26, x20
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
	mov	x0, x20
	bl	_netif_stop_queue
	ldr	w0, [x20]
	ldr	x21, [sp, #32]                  ; 8-byte Folded Reload
	add	x1, x21, #16
	bl	_set_bit
	ldr	x8, [x21, #8]
	ldr	w9, [x8, #8]
	add	w9, w9, #1
	str	w9, [x8, #8]
LBB0_7:
	mov	w21, #1
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	cbnz	w8, LBB0_14
; %bb.8:
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	cbz	x8, LBB0_14
; %bb.9:
	ldr	x8, [x24]
	cbnz	x8, LBB0_12
; %bb.10:
	mov	w21, #1
	b	LBB0_14
LBB0_11:
	mov	x24, #0
	ldr	w8, [x28]
	ldr	w9, [x22]
	sub	w25, w8, w9
LBB0_12:
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
	mov	x1, x24
	mov	x2, x25
	bl	_sched_skb
	cbz	x0, LBB0_24
; %bb.13:
	mov	x24, x0
	bl	_skb_shinfo
	ldr	w25, [x0]
	mov	x0, x24
	bl	_compute_large_page_tx_descs
	mov	w21, #0
	add	w8, w25, w0
	add	w27, w8, #1
LBB0_14:
	ldr	w8, [x22]
	add	w9, w8, w27
	mov	w8, #28
	mov	x20, x26
	ldr	x10, [sp, #40]                  ; 8-byte Folded Reload
	madd	x8, x10, x8, x26
	ldr	w25, [x8, #16]!
	str	w9, [x22]
	ldr	w26, [x23]
	ldr	w9, [x28]
	add	w10, w26, w27
	subs	w9, w10, w9
	str	w10, [x23]
	b.lo	LBB0_16
; %bb.15:
	str	w9, [x23]
	eor	w9, w25, #0x1
	str	w9, [x8]
LBB0_16:
	mov	x0, x19
	bl	_spin_unlock
	ldr	x27, [sp, #24]                  ; 8-byte Folded Reload
	mov	x0, x27
	mov	x1, x24
	mov	x2, x26
	mov	x3, x25
	mov	x4, x23
	bl	_write_tx_descs
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_18
; %bb.17:
Lloh4:
	adrp	x8, _F_CMDQ1_ENABLE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _F_CMDQ1_ENABLE@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x27
	bl	_doorbell_pio
	mov	x26, x20
	b	LBB0_20
LBB0_18:
Lloh7:
	adrp	x25, _CMDQ_STAT_LAST_PKT_DB@GOTPAGE
Lloh8:
	ldr	x25, [x25, _CMDQ_STAT_LAST_PKT_DB@GOTPAGEOFF]
	ldr	w0, [x25]
	mov	w8, #28
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	mul	x8, x9, x8
	mov	x26, x20
	add	x8, x20, x8
	add	x24, x8, #24
	mov	x1, x24
	bl	_clear_bit
Lloh9:
	adrp	x8, _CMDQ_STAT_RUNNING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CMDQ_STAT_RUNNING@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x24
	bl	_test_and_set_bit
	cbnz	x0, LBB0_20
; %bb.19:
	ldr	w0, [x25]
	mov	x1, x24
	bl	_set_bit
Lloh12:
	adrp	x8, _F_CMDQ0_ENABLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _F_CMDQ0_ENABLE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	x8, [x27]
Lloh15:
	adrp	x9, _A_SG_DOORBELL@GOTPAGE
Lloh16:
	ldr	x9, [x9, _A_SG_DOORBELL@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
LBB0_20:
	tbnz	w21, #0, LBB0_22
; %bb.21:
	mov	x0, x19
	bl	_spin_trylock
	cbnz	x0, LBB0_11
LBB0_22:
Lloh18:
	adrp	x20, _NETDEV_TX_OK@GOTPAGE
Lloh19:
	ldr	x20, [x20, _NETDEV_TX_OK@GOTPAGEOFF]
LBB0_23:
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_24:
Lloh20:
	adrp	x20, _NETDEV_TX_OK@GOTPAGE
Lloh21:
	ldr	x20, [x20, _NETDEV_TX_OK@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Tx ring full while queue awake!\n"

	.comm	_NETDEV_TX_BUSY,4,2             ; @NETDEV_TX_BUSY
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.comm	_F_CMDQ1_ENABLE,4,2             ; @F_CMDQ1_ENABLE
	.comm	_CMDQ_STAT_LAST_PKT_DB,4,2      ; @CMDQ_STAT_LAST_PKT_DB
	.comm	_CMDQ_STAT_RUNNING,4,2          ; @CMDQ_STAT_RUNNING
	.comm	_F_CMDQ0_ENABLE,4,2             ; @F_CMDQ0_ENABLE
	.comm	_A_SG_DOORBELL,8,3              ; @A_SG_DOORBELL
	.no_dead_strip	_t1_sge_tx
.subsections_via_symbols
