	.file	"extr_en_tx.c_mlx4_en_bounce_to_desc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mlx4_en_bounce_to_desc, @function
mlx4_en_bounce_to_desc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r8d, ecx
	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
	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
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	ebx, DWORD PTR [rsi]
	mov	ecx, DWORD PTR LOG_TXBB_SIZE[rip]
	sub	ebx, edx
	mov	eax, ebx
	lea	ebx, -4[r8]
	sal	eax, cl
	mov	DWORD PTR 12[rsp], eax
	sub	ebx, eax
	js	.L7
	mov	r15d, ebx
	mov	r12d, DWORD PTR 12[rsp]
	movsx	r13, ebx
	or	r15d, -4
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	lea	rax, 0[r13+r12]
	add	rax, QWORD PTR 16[rbp]
	sub	ebx, 4
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR 8[rbp]
	mov	DWORD PTR [rax+r13*4], edx
	sub	r13, 4
	cmp	ebx, r15d
	je	.L7
.L6:
	mov	eax, DWORD PTR TXBB_SIZE[rip]
	sub	eax, 1
	test	eax, ebx
	jne	.L5
	xor	eax, eax
	call	wmb@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	mov	ebx, DWORD PTR 12[rsp]
	sub	ebx, 4
	movsx	r12, ebx
	cmp	ebx, 3
	jg	.L9
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rax, QWORD PTR 16[rbp]
	mov	ecx, DWORD PTR LOG_TXBB_SIZE[rip]
	sub	ebx, 4
	mov	rsi, QWORD PTR 8[rbp]
	mov	edx, DWORD PTR [rax+r12]
	mov	eax, r14d
	sal	eax, cl
	add	rax, r12
	sub	r12, 4
	mov	DWORD PTR [rsi+rax*4], edx
	cmp	ebx, 3
	jle	.L10
.L9:
	mov	eax, DWORD PTR TXBB_SIZE[rip]
	sub	eax, 1
	test	eax, ebx
	jne	.L8
	xor	eax, eax
	call	wmb@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rsi, QWORD PTR 8[rbp]
.L10:
	mov	ecx, DWORD PTR LOG_TXBB_SIZE[rip]
	add	rsp, 24
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	sal	r14d, cl
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	lea	rax, [rsi+r14*4]
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	mlx4_en_bounce_to_desc, .-mlx4_en_bounce_to_desc
	.comm	TXBB_SIZE,4,4
	.comm	LOG_TXBB_SIZE,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_en_tx.c_mlx4_en_bounce_to_desc.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx4_en_bounce_to_desc, %function
mlx4_en_bounce_to_desc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r8, r2
	ldr	r9, .L16
	ldr	r4, [r1]
	ldr	r2, [r9]
	sub	r4, r4, r8
	sub	r5, r3, #4
	lsl	r4, r4, r2
	subs	r5, r5, r4
	mov	r6, r1
	bmi	.L7
	mvn	r10, r5, lsl #30
	ldr	r7, .L16+4
	mvn	r10, r10, lsr #30
	b	.L6
.L5:
	ldr	r3, [r6, #8]
	add	r2, r4, r5
	ldr	r2, [r2, r3]
	ldr	r3, [r6, #4]
	str	r2, [r3, r5, lsl #2]
	sub	r5, r5, #4
	cmp	r5, r10
	beq	.L7
.L6:
	ldr	r3, [r7]
	sub	r3, r3, #1
	tst	r3, r5
	bne	.L5
	bl	wmb
	b	.L5
.L7:
	sub	r4, r4, #4
	cmp	r4, #3
	ble	.L13
	ldr	r7, .L16+4
	b	.L3
.L8:
	ldr	r2, [r6, #8]
	ldr	r3, [r9]
	ldr	r2, [r2, r4]
	add	r3, r4, r8, lsl r3
	ldr	r1, [r6, #4]
	sub	r4, r4, #4
	cmp	r4, #3
	str	r2, [r1, r3, lsl #2]
	ble	.L9
.L3:
	ldr	r3, [r7]
	sub	r3, r3, #1
	tst	r3, r4
	bne	.L8
	bl	wmb
	b	.L8
.L13:
	ldr	r1, [r6, #4]
.L9:
	ldr	r0, [r9]
	lsl	r0, r8, r0
	add	r0, r1, r0, lsl #2
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L17:
	.align	2
.L16:
	.word	LOG_TXBB_SIZE
	.word	TXBB_SIZE
	.size	mlx4_en_bounce_to_desc, .-mlx4_en_bounce_to_desc
	.comm	TXBB_SIZE,4,4
	.comm	LOG_TXBB_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
