	.file	"extr_3945.c_il3945_hw_txq_attach_buf_to_tfd.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Error can not send more than %d chunks\n"
	.text
	.p2align 4
	.globl	il3945_hw_txq_attach_buf_to_tfd
	.type	il3945_hw_txq_attach_buf_to_tfd, @function
il3945_hw_txq_attach_buf_to_tfd:
.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
	mov	r14d, edx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, r9
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rbx, QWORD PTR 8[rsi]
	sal	rbx, 4
	add	rbx, QWORD PTR [rsi]
	test	r8, r8
	jne	.L12
.L2:
	mov	rdi, QWORD PTR [rbx]
	call	le32_to_cpu@PLT
	mov	edi, eax
	call	TFD_CTL_COUNT_GET@PLT
	mov	esi, DWORD PTR NUM_TFD_CHUNKS[rip]
	mov	ebp, eax
	cmp	esi, eax
	jle	.L6
	test	eax, eax
	js	.L6
	mov	rdx, QWORD PTR 8[rbx]
	movsx	r15, eax
	mov	edi, r14d
	sal	r15, 4
	add	rdx, r15
	mov	QWORD PTR 8[rsp], rdx
	call	cpu_to_le32@PLT
	mov	rdx, QWORD PTR 8[rsp]
	mov	edi, r13d
	add	r15, QWORD PTR 8[rbx]
	mov	QWORD PTR 8[rdx], rax
	call	cpu_to_le32@PLT
	lea	edi, 1[rbp]
	mov	QWORD PTR [r15], rax
	call	TFD_CTL_COUNT_SET@PLT
	mov	rdi, r12
	mov	ebp, eax
	call	TFD_CTL_PAD_SET@PLT
	mov	edi, ebp
	or	edi, eax
	call	cpu_to_le32@PLT
	mov	QWORD PTR [rbx], rax
	add	rsp, 24
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	IL_ERR@PLT
	mov	eax, DWORD PTR EINVAL[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
.L12:
	.cfi_restore_state
	mov	edx, 16
	xor	esi, esi
	mov	rdi, rbx
	call	memset@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	il3945_hw_txq_attach_buf_to_tfd, .-il3945_hw_txq_attach_buf_to_tfd
	.comm	NUM_TFD_CHUNKS,4,4
	.comm	EINVAL,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_3945.c_il3945_hw_txq_attach_buf_to_tfd.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Error can not send more than %d chunks\012\000"
	.text
	.align	2
	.global	il3945_hw_txq_attach_buf_to_tfd
	.syntax unified
	.arm
	.fpu softvfp
	.type	il3945_hw_txq_attach_buf_to_tfd, %function
il3945_hw_txq_attach_buf_to_tfd:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r0, [sp, #32]
	ldr	r7, [r1, #4]
	ldr	r8, [r1]
	cmp	r0, #0
	mov	r6, r2
	mov	r5, r3
	add	r9, r8, r7, lsl #3
	bne	.L2
	ldr	r0, [r8, r7, lsl #3]
.L3:
	bl	le32_to_cpu
	bl	TFD_CTL_COUNT_GET
	ldr	r3, .L8
	lsr	r4, r0, #31
	ldr	r1, [r3]
	mov	r10, r0
	cmp	r1, r0
	orrle	r4, r4, #1
	cmp	r4, #0
	beq	.L4
	ldr	r0, .L8+4
	bl	IL_ERR
	ldr	r3, .L8+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	ldr	r3, [r9, #4]
	mov	r0, r6
	add	r6, r3, r10, lsl #3
	bl	cpu_to_le32
	mov	r3, r0
	mov	r0, r5
	str	r3, [r6, #4]
	ldr	r5, [r9, #4]
	bl	cpu_to_le32
	mov	r3, r0
	add	r0, r10, #1
	str	r3, [r5, r10, lsl #3]
	bl	TFD_CTL_COUNT_SET
	mov	r5, r0
	ldr	r0, [sp, #36]
	bl	TFD_CTL_PAD_SET
	orr	r0, r5, r0
	bl	cpu_to_le32
	mov	r3, r0
	mov	r0, r4
	str	r3, [r8, r7, lsl #3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	mov	r2, #8
	mov	r1, #0
	mov	r0, r9
	bl	memset
	mov	r0, #0
	b	.L3
.L9:
	.align	2
.L8:
	.word	NUM_TFD_CHUNKS
	.word	.LC0
	.word	EINVAL
	.size	il3945_hw_txq_attach_buf_to_tfd, .-il3945_hw_txq_attach_buf_to_tfd
	.comm	NUM_TFD_CHUNKS,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
