	.file	"extr_ipath_user_sdma.c_ipath_user_sdma_pin_pkt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ipath_user_sdma_pin_pkt, @function
ipath_user_sdma_pin_pkt:
.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
	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	QWORD PTR 8[rsp], rsi
	test	r8, r8
	je	.L6
	mov	r13, rdi
	mov	rbp, rdx
	mov	r14, r8
	mov	rbx, rcx
	xor	r15d, r15d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	add	r15, 1
	add	rbx, 16
	cmp	r14, r15
	je	.L1
.L5:
	mov	rdi, rbx
	call	ipath_user_sdma_num_pages@PLT
	mov	rdx, QWORD PTR 8[rbx]
	mov	ecx, DWORD PTR [rbx]
	mov	rsi, rbp
	mov	r8d, eax
	mov	rdi, r13
	call	ipath_user_sdma_pin_pages@PLT
	mov	r12d, eax
	test	eax, eax
	jns	.L3
	xor	ebx, ebx
	cmp	QWORD PTR 0[rbp], 0
	je	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rsi, QWORD PTR 8[rsp]
	mov	rdi, QWORD PTR 0[r13]
	mov	rcx, rbx
	mov	rdx, rbp
	add	rbx, 1
	call	ipath_user_sdma_free_pkt_frag@PLT
	cmp	QWORD PTR 0[rbp], rbx
	ja	.L4
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L6:
	.cfi_restore_state
.L2:
	endbr64
	xor	r12d, r12d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ipath_user_sdma_pin_pkt, .-ipath_user_sdma_pin_pkt
	.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_ipath_user_sdma.c_ipath_user_sdma_pin_pkt.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ipath_user_sdma_pin_pkt, %function
ipath_user_sdma_pin_pkt:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	sub	sp, sp, #8
	ldr	r9, [sp, #40]
	cmp	r9, #0
	beq	.L6
	mov	r8, r0
	mov	r10, r1
	mov	r7, r2
	mov	r4, r3
	mov	r6, #0
	b	.L5
.L3:
	cmp	r9, r6
	add	r4, r4, #8
	beq	.L1
.L5:
	mov	r0, r4
	bl	ipath_user_sdma_num_pages
	ldr	r2, [r4, #4]
	ldr	r3, [r4]
	mov	r1, r7
	str	r0, [sp]
	mov	r0, r8
	bl	ipath_user_sdma_pin_pages
	subs	r5, r0, #0
	add	r6, r6, #1
	bge	.L3
	ldr	r3, [r7]
	cmp	r3, #0
	movne	r4, #0
	beq	.L1
.L4:
	mov	r3, r4
	mov	r2, r7
	mov	r1, r10
	ldr	r0, [r8]
	bl	ipath_user_sdma_free_pkt_frag
	ldr	r3, [r7]
	add	r4, r4, #1
	cmp	r3, r4
	bhi	.L4
.L1:
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L6:
.L2:
	mov	r5, r9
	b	.L1
	.size	ipath_user_sdma_pin_pkt, .-ipath_user_sdma_pin_pkt
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
