	.file	"extr_fnic_scsi.c_free_wq_copy_descs.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	free_wq_copy_descs, @function
free_wq_copy_descs:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rcx, QWORD PTR 8[rdi]
	mov	eax, 1
	cmp	QWORD PTR [rcx], 0
	je	.L1
	mov	rdx, QWORD PTR [rdi]
	mov	r8d, DWORD PTR [rsi]
	mov	r9d, DWORD PTR 8[rsi]
	mov	edi, DWORD PTR 4[rsi]
	mov	eax, DWORD PTR [rdx]
	cmp	r8d, eax
	jle	.L7
	mov	r10d, edi
	sub	r10d, r8d
	lea	eax, 1[rax+r10]
	add	eax, r9d
.L4:
	mov	DWORD PTR 8[rsi], eax
	mov	eax, DWORD PTR [rdx]
	add	eax, 1
	cdq
	idiv	edi
	xor	eax, eax
	mov	DWORD PTR [rsi], edx
	mov	QWORD PTR [rcx], 0
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	sub	eax, r8d
	lea	eax, 1[r9+rax]
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	free_wq_copy_descs, .-free_wq_copy_descs
	.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_fnic_scsi.c_free_wq_copy_descs.c"
	.text
	.global	__aeabi_idivmod
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	free_wq_copy_descs, %function
free_wq_copy_descs:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, [r0, #4]
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L5
	mov	r4, r1
	ldr	ip, [r0]
	ldr	r3, [r1]
	ldr	r2, [ip]
	ldr	r0, [r1, #8]
	ldr	r1, [r1, #4]
	cmp	r3, r2
	subgt	r3, r1, r3
	suble	r3, r2, r3
	addgt	r3, r3, r2
	add	r3, r3, #1
	add	r3, r3, r0
	str	r3, [r4, #8]
	ldr	r0, [ip]
	add	r0, r0, #1
	bl	__aeabi_idivmod
	mov	r3, #0
	str	r1, [r4]
	mov	r0, r3
	str	r3, [r5]
	pop	{r4, r5, r6, pc}
.L5:
	mov	r0, #1
	pop	{r4, r5, r6, pc}
	.size	free_wq_copy_descs, .-free_wq_copy_descs
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
