	.file	"extr_artpec6_crypto.c_artpec6_crypto_dma_map_page.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	artpec6_crypto_dma_map_page, @function
artpec6_crypto_dma_map_page:
.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, rcx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, r8d
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r9
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r14, QWORD PTR [rdi]
	mov	r15, QWORD PTR artpec6_crypto_dev[rip]
	mov	DWORD PTR [r9], 0
	mov	QWORD PTR 8[rsp], rsi
	mov	rdi, QWORD PTR 8[r14]
	mov	r13, QWORD PTR [r14]
	mov	QWORD PTR [rsp], rdx
	call	ARRAY_SIZE@PLT
	mov	rdx, QWORD PTR [rsp]
	mov	rsi, QWORD PTR 8[rsp]
	cmp	r13, rax
	jl	.L2
.L6:
	mov	eax, DWORD PTR ENOMEM[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
.L2:
	.cfi_restore_state
	mov	rdi, r15
	mov	r8d, ebp
	mov	rcx, r12
	call	dma_map_page@PLT
	mov	rdi, r15
	mov	esi, eax
	mov	r13d, eax
	call	dma_mapping_error@PLT
	test	rax, rax
	jne	.L6
	mov	rax, QWORD PTR [r14]
	lea	rdx, 1[rax]
	sal	rax, 4
	add	rax, QWORD PTR 8[r14]
	mov	QWORD PTR [r14], rdx
	mov	QWORD PTR [rax], r12
	mov	DWORD PTR 12[rax], r13d
	mov	DWORD PTR 8[rax], ebp
	xor	eax, eax
	mov	DWORD PTR [rbx], r13d
	add	rsp, 24
	.cfi_def_cfa_offset 56
	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
	.cfi_endproc
.LFE0:
	.size	artpec6_crypto_dma_map_page, .-artpec6_crypto_dma_map_page
	.comm	artpec6_crypto_dev,8,8
	.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_artpec6_crypto.c_artpec6_crypto_dma_map_page.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	artpec6_crypto_dma_map_page, %function
artpec6_crypto_dma_map_page:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	sub	sp, sp, #8
	ldr	r4, [r0]
	ldr	lr, .L8
	ldr	r8, [sp, #44]
	ldr	r0, [r4, #4]
	ldr	r9, [lr]
	str	ip, [r8]
	ldr	r10, [r4]
	mov	r6, r1
	mov	r7, r2
	mov	r5, r3
	bl	ARRAY_SIZE
	cmp	r10, r0
	blt	.L2
.L6:
	ldr	r3, .L8+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	ldr	r3, [sp, #40]
	mov	r1, r6
	mov	r2, r7
	str	r3, [sp]
	mov	r0, r9
	mov	r3, r5
	bl	dma_map_page
	mov	r6, r0
	mov	r0, r9
	mov	r1, r6
	bl	dma_mapping_error
	cmp	r0, #0
	bne	.L6
	ldr	r3, [r4]
	ldr	r1, [r4, #4]
	add	r2, r3, #1
	add	r3, r3, r3, lsl #1
	str	r2, [r4]
	str	r5, [r1, r3, lsl #2]
	add	r2, r1, r3, lsl #2
	ldr	r3, [sp, #40]
	str	r6, [r2, #8]
	str	r3, [r2, #4]
	str	r6, [r8]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L9:
	.align	2
.L8:
	.word	artpec6_crypto_dev
	.word	ENOMEM
	.size	artpec6_crypto_dma_map_page, .-artpec6_crypto_dma_map_page
	.comm	artpec6_crypto_dev,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
