	.file	"extr_idt77252.c_drain_scq.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"%s: SCQ (before drain %2d) next = 0x%p.\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%s: freeing skb at %p.\n"
	.text
	.p2align 4
	.type	drain_scq, @function
drain_scq:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r14, QWORD PTR [rsi]
	lea	r13, 8[r14]
	mov	r15d, DWORD PTR 16[r14]
	mov	rdi, r13
	call	atomic_read@PLT
	mov	esi, DWORD PTR 4[rbx]
	lea	rdi, .LC0[rip]
	mov	ecx, r15d
	movsx	rdx, eax
	xor	eax, eax
	call	TXPRINTK@PLT
	lea	rdi, 12[r14]
	call	skb_dequeue@PLT
	test	rax, rax
	je	.L2
	mov	esi, DWORD PTR 4[rbx]
	mov	rbp, rax
	mov	rdx, rax
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	TXPRINTK@PLT
	mov	ecx, DWORD PTR PCI_DMA_TODEVICE[rip]
	mov	r15d, DWORD PTR 0[rbp]
	mov	rdi, rbp
	mov	DWORD PTR 12[rsp], ecx
	call	IDT77252_PRV_PADDR@PLT
	mov	ecx, DWORD PTR 12[rsp]
	mov	edi, DWORD PTR [rbx]
	mov	edx, r15d
	mov	esi, eax
	call	pci_unmap_single@PLT
	mov	rdi, rbp
	call	ATM_SKB@PLT
	mov	r15, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[r15]
	test	rax, rax
	je	.L3
	mov	rsi, rbp
	mov	rdi, r15
	call	rax
.L4:
	mov	rdi, QWORD PTR [r15]
	call	atomic_inc@PLT
.L2:
	mov	rdi, r13
	lea	r13, 4[r14]
	call	atomic_dec@PLT
	mov	rdi, r14
	call	spin_lock@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdx, rbp
	mov	rsi, r12
	mov	rdi, rbx
	call	push_on_scq@PLT
	test	rax, rax
	jne	.L15
.L5:
	mov	rdi, r13
	call	skb_dequeue@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L7
.L6:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, r14
	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	spin_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	rdi, QWORD PTR [r12]
	mov	rsi, rbp
	add	rdi, 4
	call	skb_queue_head@PLT
	jmp	.L6
.L3:
	mov	rdi, rbp
	call	dev_kfree_skb@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	drain_scq, .-drain_scq
	.comm	PCI_DMA_TODEVICE,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_idt77252.c_drain_scq.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s: SCQ (before drain %2d) next = 0x%p.\012\000"
	.align	2
.LC1:
	.ascii	"%s: freeing skb at %p.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	drain_scq, %function
drain_scq:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r8, [r1]
	ldr	r4, [r0, #4]
	add	r7, r8, #8
	mov	r5, r0
	mov	r0, r7
	mov	r6, r1
	bl	atomic_read
	mov	r1, r4
	mov	r2, r0
	ldr	r3, [r8, #16]
	ldr	r0, .L16
	bl	TXPRINTK
	add	r0, r8, #12
	bl	skb_dequeue
	subs	r4, r0, #0
	beq	.L2
	mov	r2, r4
	ldr	r1, [r5, #4]
	ldr	r0, .L16+4
	bl	TXPRINTK
	mov	r0, r4
	ldr	r9, [r5]
	bl	IDT77252_PRV_PADDR
	ldr	r3, .L16+8
	mov	r1, r0
	ldr	r3, [r3]
	mov	r0, r9
	ldr	r2, [r4]
	bl	pci_unmap_single
	mov	r0, r4
	bl	ATM_SKB
	ldr	r9, [r0]
	ldr	r3, [r9, #4]
	cmp	r3, #0
	beq	.L3
	mov	r1, r4
	mov	r0, r9
	blx	r3
.L4:
	ldr	r0, [r9]
	bl	atomic_inc
.L2:
	mov	r0, r7
	bl	atomic_dec
	mov	r0, r8
	bl	spin_lock
	add	r7, r8, #4
	b	.L5
.L7:
	mov	r2, r4
	mov	r1, r6
	mov	r0, r5
	bl	push_on_scq
	cmp	r0, #0
	bne	.L15
.L5:
	mov	r0, r7
	bl	skb_dequeue
	subs	r4, r0, #0
	bne	.L7
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	spin_unlock
.L15:
	ldr	r0, [r6]
	mov	r1, r4
	add	r0, r0, #4
	bl	skb_queue_head
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	spin_unlock
.L3:
	mov	r0, r4
	bl	dev_kfree_skb
	b	.L4
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	.LC1
	.word	PCI_DMA_TODEVICE
	.size	drain_scq, .-drain_scq
	.comm	PCI_DMA_TODEVICE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
