	.file	"extr_qeth_core_main.c_qeth_do_send_packet_fast.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	qeth_do_send_packet_fast
	.type	qeth_do_send_packet_fast, @function
qeth_do_send_packet_fast:
.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
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	lea	r14, 4[rbp]
	mov	ebx, r9d
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rsi, QWORD PTR QETH_OUT_Q_UNLOCKED[rip]
	mov	QWORD PTR 8[rsp], rdx
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edx, DWORD PTR QETH_OUT_Q_LOCKED[rip]
	mov	rdi, r14
	call	atomic_cmpxchg@PLT
	mov	rsi, QWORD PTR QETH_OUT_Q_UNLOCKED[rip]
	cmp	rax, rsi
	jne	.L2
	movsx	rdx, DWORD PTR 0[rbp]
	mov	rax, QWORD PTR 8[rbp]
	mov	r12, QWORD PTR [rax+rdx*8]
	mov	r15, rdx
	mov	rdi, r12
	call	atomic_read@PLT
	cmp	rax, QWORD PTR QETH_QDIO_BUF_EMPTY[rip]
	je	.L3
	mov	rsi, QWORD PTR QETH_OUT_Q_UNLOCKED[rip]
	mov	rdi, r14
	call	atomic_set@PLT
	mov	eax, DWORD PTR EBUSY[rip]
	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
	neg	eax
	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
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	eax, DWORD PTR 0[rbp]
	mov	rsi, QWORD PTR QETH_OUT_Q_UNLOCKED[rip]
	mov	rdi, r14
	add	eax, 1
	cdq
	idiv	DWORD PTR QDIO_MAX_BUFFERS_PER_Q[rip]
	mov	DWORD PTR 0[rbp], edx
	call	atomic_set@PLT
	mov	r9d, DWORD PTR 80[rsp]
	mov	r8d, ebx
	mov	rcx, r13
	mov	rdx, QWORD PTR 8[rsp]
	mov	rsi, r12
	mov	rdi, rbp
	call	qeth_fill_buffer@PLT
	mov	esi, r15d
	mov	rdi, rbp
	mov	edx, 1
	call	qeth_flush_buffers@PLT
	add	rsp, 24
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
	.cfi_endproc
.LFE0:
	.size	qeth_do_send_packet_fast, .-qeth_do_send_packet_fast
	.comm	QETH_QDIO_BUF_EMPTY,8,8
	.comm	QETH_OUT_Q_UNLOCKED,8,8
	.comm	QETH_OUT_Q_LOCKED,4,4
	.comm	QDIO_MAX_BUFFERS_PER_Q,4,4
	.comm	EBUSY,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_qeth_core_main.c_qeth_do_send_packet_fast.c"
	.text
	.global	__aeabi_idivmod
	.align	2
	.global	qeth_do_send_packet_fast
	.syntax unified
	.arm
	.fpu softvfp
	.type	qeth_do_send_packet_fast, %function
qeth_do_send_packet_fast:
	@ args = 12, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r1
	mov	r8, r2
	mov	r9, r3
	ldr	r4, .L8
	ldr	r6, .L8+4
	ldr	r1, [r4]
	sub	sp, sp, #8
	add	r5, r7, #4
.L2:
	mov	r0, r5
	ldr	r2, [r6]
	bl	atomic_cmpxchg
	ldr	r1, [r4]
	cmp	r0, r1
	bne	.L2
	ldr	r3, [r7, #8]
	ldr	r6, [r7]
	ldr	r10, [r3, r6, lsl #2]
	mov	r0, r10
	bl	atomic_read
	ldr	r3, .L8+8
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L3
	mov	r0, r5
	ldr	r1, [r4]
	bl	atomic_set
	ldr	r3, .L8+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L3:
	ldr	r0, [r7]
	ldr	r3, .L8+16
	add	r0, r0, #1
	ldr	r1, [r3]
	bl	__aeabi_idivmod
	mov	r0, r5
	str	r1, [r7]
	ldr	r1, [r4]
	bl	atomic_set
	ldr	r3, [sp, #48]
	mov	r2, r8
	str	r3, [sp, #4]
	ldr	r3, [sp, #44]
	mov	r1, r10
	str	r3, [sp]
	mov	r0, r7
	mov	r3, r9
	bl	qeth_fill_buffer
	mov	r1, r6
	mov	r0, r7
	mov	r2, #1
	bl	qeth_flush_buffers
	mov	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L9:
	.align	2
.L8:
	.word	QETH_OUT_Q_UNLOCKED
	.word	QETH_OUT_Q_LOCKED
	.word	QETH_QDIO_BUF_EMPTY
	.word	EBUSY
	.word	QDIO_MAX_BUFFERS_PER_Q
	.size	qeth_do_send_packet_fast, .-qeth_do_send_packet_fast
	.comm	QETH_QDIO_BUF_EMPTY,4,4
	.comm	QETH_OUT_Q_UNLOCKED,4,4
	.comm	QETH_OUT_Q_LOCKED,4,4
	.comm	QDIO_MAX_BUFFERS_PER_Q,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
