	.file	"extr_core-iso.c_fw_iso_buffer_map_dma.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	fw_iso_buffer_map_dma
	.type	fw_iso_buffer_map_dma, @function
fw_iso_buffer_map_dma:
.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
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	eax, DWORD PTR 4[rdi]
	mov	DWORD PTR [rdi], edx
	test	eax, eax
	jle	.L2
	mov	r13, rsi
	mov	r14d, edx
	xor	ebx, ebx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR 16[r12]
	mov	esi, ebp
	lea	r15d, 1[rbx]
	mov	edi, DWORD PTR [rax+rbx*4]
	add	rbx, 1
	call	set_page_private@PLT
	mov	eax, DWORD PTR 4[r12]
	cmp	eax, ebx
	jle	.L4
.L5:
	mov	rax, QWORD PTR 16[r12]
	mov	edi, DWORD PTR 0[r13]
	xor	edx, edx
	mov	r8d, r14d
	mov	ecx, DWORD PTR PAGE_SIZE[rip]
	mov	r15d, ebx
	mov	esi, DWORD PTR [rax+rbx*4]
	call	dma_map_page@PLT
	mov	edi, DWORD PTR 0[r13]
	mov	esi, eax
	mov	ebp, eax
	call	dma_mapping_error@PLT
	test	rax, rax
	je	.L3
	mov	eax, DWORD PTR 4[r12]
.L4:
	mov	DWORD PTR 8[r12], r15d
	xor	r8d, r8d
	cmp	r15d, eax
	jge	.L1
	mov	r8d, DWORD PTR ENOMEM[rip]
	neg	r8d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r8d
	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
.L2:
	.cfi_restore_state
	mov	DWORD PTR 8[rdi], 0
	xor	r8d, r8d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	fw_iso_buffer_map_dma, .-fw_iso_buffer_map_dma
	.comm	PAGE_SIZE,4,4
	.comm	ENOMEM,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_core-iso.c_fw_iso_buffer_map_dma.c"
	.text
	.align	2
	.global	fw_iso_buffer_map_dma
	.syntax unified
	.arm
	.fpu softvfp
	.type	fw_iso_buffer_map_dma, %function
fw_iso_buffer_map_dma:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, [r0, #4]
	mov	r6, r0
	cmp	r3, #0
	sub	sp, sp, #12
	str	r2, [r0]
	ble	.L7
	mov	r8, r2
	mov	r7, r1
	mov	r4, #0
	ldr	r9, .L11
	b	.L6
.L3:
	ldr	r3, [r6, #12]
	mov	r1, r5
	ldr	r0, [r3, r4, lsl #2]
	bl	set_page_private
	ldr	r3, [r6, #4]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L2
.L6:
	ldr	r2, [r6, #12]
	ldr	r3, [r9]
	ldr	r1, [r2, r4, lsl #2]
	str	r8, [sp]
	mov	r2, #0
	ldr	r0, [r7]
	bl	dma_map_page
	mov	r5, r0
	ldr	r0, [r7]
	mov	r1, r5
	bl	dma_mapping_error
	cmp	r0, #0
	beq	.L3
	ldr	r3, [r6, #4]
	str	r4, [r6, #8]
	cmp	r4, r3
	movge	r0, #0
	bge	.L1
	ldr	r3, .L11+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L7:
	mov	r4, #0
.L2:
	mov	r0, #0
	str	r4, [r6, #8]
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L12:
	.align	2
.L11:
	.word	PAGE_SIZE
	.word	ENOMEM
	.size	fw_iso_buffer_map_dma, .-fw_iso_buffer_map_dma
	.comm	PAGE_SIZE,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
