	.file	"extr_macb_main.c_macb_tx_interrupt.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"macb_tx_interrupt status = 0x%03lx\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"skb %u (data %p) TX complete\n"
	.text
	.p2align 4
	.type	macb_tx_interrupt, @function
macb_tx_interrupt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	rcx, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r12, QWORD PTR 16[rdi]
	mov	esi, DWORD PTR TSR[rip]
	movsx	rax, DWORD PTR [r12]
	mov	rdi, r12
	lea	rax, [rax+rax*2]
	sal	rax, 3
	sub	rcx, rax
	mov	QWORD PTR 8[rsp], rcx
	call	macb_readl@PLT
	mov	esi, DWORD PTR TSR[rip]
	mov	rdi, r12
	mov	edx, eax
	mov	ebx, eax
	call	macb_writel@PLT
	mov	eax, DWORD PTR 4[r12]
	test	DWORD PTR MACB_CAPS_ISR_CLEAR_ON_WRITE[rip], eax
	jne	.L22
.L2:
	mov	rdi, QWORD PTR 8[r12]
	movsx	rdx, ebx
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	netdev_vdbg@PLT
	mov	eax, DWORD PTR 0[rbp]
	mov	ebx, DWORD PTR 4[rbp]
	mov	DWORD PTR 4[rsp], eax
	cmp	eax, ebx
	jne	.L8
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L24:
	mov	rdi, r13
	call	skb_shinfo@PLT
	mov	edi, DWORD PTR [rax]
	and	edi, DWORD PTR SKBTX_HW_TSTAMP[rip]
	call	unlikely@PLT
	test	rax, rax
	jne	.L23
.L6:
	mov	esi, DWORD PTR [rsp]
	mov	r14d, DWORD PTR 8[r13]
	mov	rdi, r12
	call	macb_tx_ring_wrap@PLT
	mov	rdi, QWORD PTR 8[r12]
	lea	rsi, .LC1[rip]
	mov	ecx, r14d
	movsx	rdx, eax
	xor	eax, eax
	call	netdev_vdbg@PLT
	mov	rax, QWORD PTR 8[r12]
	mov	rsi, r15
	mov	rdi, r12
	mov	rdx, QWORD PTR 0[r13]
	add	DWORD PTR 4[rax], 1
	add	DWORD PTR 12[rbp], 1
	add	DWORD PTR [rax], edx
	add	DWORD PTR 8[rbp], edx
	call	macb_tx_unmap@PLT
	cmp	ebx, DWORD PTR 4[rsp]
	je	.L3
.L8:
	mov	rdi, rbp
	mov	esi, ebx
	call	macb_tx_desc@PLT
	mov	r14, rax
	xor	eax, eax
	call	rmb@PLT
	mov	edi, DWORD PTR TX_USED[rip]
	mov	r13d, DWORD PTR [r14]
	call	MACB_BIT@PLT
	test	eax, r13d
	je	.L3
	mov	DWORD PTR [rsp], ebx
	.p2align 4,,10
	.p2align 3
.L12:
	mov	esi, ebx
	mov	rdi, rbp
	add	ebx, 1
	call	macb_tx_skb@PLT
	mov	r13, QWORD PTR [rax]
	mov	r15, rax
	test	r13, r13
	jne	.L24
	mov	rsi, rax
	mov	rdi, r12
	call	macb_tx_unmap@PLT
	mov	DWORD PTR [rsp], ebx
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rdx, r14
	mov	rsi, r13
	mov	rdi, rbp
	call	gem_ptp_do_txstamp@PLT
	test	rax, rax
	jne	.L6
	mov	QWORD PTR [r15], 0
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, QWORD PTR 8[r12]
	mov	rsi, QWORD PTR 8[rsp]
	mov	DWORD PTR 4[rbp], ebx
	call	__netif_subqueue_stopped@PLT
	test	rax, rax
	jne	.L25
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L22:
	.cfi_restore_state
	mov	edi, DWORD PTR TCOMP[rip]
	call	MACB_BIT@PLT
	mov	esi, DWORD PTR ISR[rip]
	mov	rdi, rbp
	mov	edx, eax
	call	queue_writel@PLT
	jmp	.L2
.L25:
	mov	edi, DWORD PTR 0[rbp]
	mov	edx, DWORD PTR 16[r12]
	mov	esi, DWORD PTR 4[rbp]
	call	CIRC_CNT@PLT
	mov	rdi, r12
	mov	rbx, rax
	call	MACB_TX_WAKEUP_THRESH@PLT
	cmp	rbx, rax
	jg	.L1
	mov	rdi, QWORD PTR 8[r12]
	mov	rsi, QWORD PTR 8[rsp]
	add	rsp, 24
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	netif_wake_subqueue@PLT
	.cfi_endproc
.LFE0:
	.size	macb_tx_interrupt, .-macb_tx_interrupt
	.comm	TX_USED,4,4
	.comm	TSR,4,4
	.comm	TCOMP,4,4
	.comm	SKBTX_HW_TSTAMP,4,4
	.comm	MACB_CAPS_ISR_CLEAR_ON_WRITE,4,4
	.comm	ISR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_macb_main.c_macb_tx_interrupt.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"macb_tx_interrupt status = 0x%03lx\012\000"
	.align	2
.LC1:
	.ascii	"skb %u (data %p) TX complete\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	macb_tx_interrupt, %function
macb_tx_interrupt:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r0
	ldr	r8, [r0, #16]
	ldr	r5, .L27
	ldr	r3, [r8]
	sub	sp, sp, #20
	add	r3, r3, r3, lsl #2
	sub	r3, r7, r3, lsl #2
	ldr	r1, [r5]
	mov	r0, r8
	str	r3, [sp, #12]
	bl	macb_readl
	mov	r4, r0
	ldr	r1, [r5]
	mov	r2, r4
	mov	r0, r8
	bl	macb_writel
	ldr	r3, .L27+4
	ldr	r2, [r8, #4]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L23
.L2:
	mov	r2, r4
	ldr	r1, .L27+8
	ldr	r0, [r8, #8]
	bl	netdev_vdbg
	ldr	r3, [r7]
	ldr	r5, [r7, #4]
	str	r3, [sp, #4]
	cmp	r3, r5
	beq	.L3
	ldr	fp, .L27+12
	ldr	r10, .L27+16
	b	.L8
.L25:
	mov	r4, r0
	mov	r0, r6
	bl	skb_shinfo
	ldr	r3, [fp]
	ldr	r0, [r0]
	and	r0, r0, r3
	bl	unlikely
	cmp	r0, #0
	bne	.L24
.L6:
	mov	r1, r9
	mov	r0, r8
	ldr	r9, [r8, #8]
	bl	macb_tx_ring_wrap
	mov	r1, r10
	mov	r2, r0
	ldr	r3, [r6, #4]
	mov	r0, r9
	bl	netdev_vdbg
	ldr	r3, [r8, #8]
	ldr	r1, [r6]
	ldr	r0, [r3, #4]
	ldr	ip, [r3]
	ldr	lr, [r7, #12]
	ldr	r2, [r7, #8]
	add	ip, ip, r1
	add	r2, r2, r1
	add	r0, r0, #1
	add	lr, lr, #1
	str	r0, [r3, #4]
	mov	r1, r4
	str	lr, [r7, #12]
	mov	r0, r8
	str	ip, [r3]
	str	r2, [r7, #8]
	bl	macb_tx_unmap
	ldr	r3, [sp, #4]
	cmp	r5, r3
	beq	.L3
.L8:
	mov	r1, r5
	mov	r0, r7
	bl	macb_tx_desc
	mov	r4, r0
	str	r0, [sp, #8]
	bl	rmb
	ldr	r3, .L27+20
	ldr	r4, [r4]
	ldr	r0, [r3]
	bl	MACB_BIT
	tst	r0, r4
	beq	.L3
	mov	r9, r5
.L12:
	mov	r1, r5
	mov	r0, r7
	bl	macb_tx_skb
	ldr	r6, [r0]
	mov	r1, r0
	cmp	r6, #0
	add	r5, r5, #1
	bne	.L25
	mov	r0, r8
	bl	macb_tx_unmap
	mov	r9, r5
	b	.L12
.L24:
	mov	r1, r6
	mov	r0, r7
	ldr	r2, [sp, #8]
	bl	gem_ptp_do_txstamp
	cmp	r0, #0
	streq	r0, [r4]
	b	.L6
.L3:
	ldr	r1, [sp, #12]
	ldr	r0, [r8, #8]
	str	r5, [r7, #4]
	bl	__netif_subqueue_stopped
	cmp	r0, #0
	bne	.L26
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L23:
	ldr	r3, .L27+24
	ldr	r2, .L27+28
	ldr	r0, [r3]
	ldr	r5, [r2]
	bl	MACB_BIT
	mov	r1, r5
	mov	r2, r0
	mov	r0, r7
	bl	queue_writel
	b	.L2
.L26:
	ldr	r2, [r8, #12]
	ldm	r7, {r0, r1}
	bl	CIRC_CNT
	mov	r4, r0
	mov	r0, r8
	bl	MACB_TX_WAKEUP_THRESH
	cmp	r4, r0
	bgt	.L1
	ldr	r1, [sp, #12]
	ldr	r0, [r8, #8]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	netif_wake_subqueue
.L28:
	.align	2
.L27:
	.word	TSR
	.word	MACB_CAPS_ISR_CLEAR_ON_WRITE
	.word	.LC0
	.word	SKBTX_HW_TSTAMP
	.word	.LC1
	.word	TX_USED
	.word	TCOMP
	.word	ISR
	.size	macb_tx_interrupt, .-macb_tx_interrupt
	.comm	TX_USED,4,4
	.comm	TSR,4,4
	.comm	TCOMP,4,4
	.comm	SKBTX_HW_TSTAMP,4,4
	.comm	MACB_CAPS_ISR_CLEAR_ON_WRITE,4,4
	.comm	ISR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
