	.file	"extr_coherent.c_dma_init_coherent_memory.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dma_init_coherent_memory, @function
dma_init_coherent_memory:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rcx, QWORD PTR PAGE_SHIFT[rip]
	shr	r15, cl
	mov	edi, r15d
	call	BITS_TO_LONGS@PLT
	test	rbp, rbp
	jne	.L2
.L10:
	mov	r12d, DWORD PTR EINVAL[rip]
	xor	edi, edi
	neg	r12d
	call	kfree@PLT
.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
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edx, DWORD PTR MEMREMAP_WC[rip]
	mov	rsi, rbp
	mov	edi, r12d
	mov	ebx, eax
	call	memremap@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L10
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 32
	call	kzalloc@PLT
	mov	r8, rax
	test	rax, rax
	je	.L9
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	lea	edi, 0[0+rbx*8]
	mov	QWORD PTR 8[rsp], rax
	call	kzalloc@PLT
	mov	r8, QWORD PTR 8[rsp]
	mov	QWORD PTR 24[r8], rax
	test	rax, rax
	je	.L9
	mov	QWORD PTR 16[r8], rbp
	mov	edi, r12d
	xor	r12d, r12d
	mov	DWORD PTR 12[r8], r14d
	mov	QWORD PTR 8[rsp], r8
	call	PFN_DOWN@PLT
	mov	r8, QWORD PTR 8[rsp]
	mov	DWORD PTR 8[r8], eax
	lea	rdi, 4[r8]
	mov	DWORD PTR [r8], r15d
	call	spin_lock_init@PLT
	mov	r8, QWORD PTR 8[rsp]
	mov	QWORD PTR 0[r13], r8
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, r8
	mov	r12d, DWORD PTR ENOMEM[rip]
	call	kfree@PLT
	mov	rdi, rbp
	neg	r12d
	call	memunmap@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	dma_init_coherent_memory, .-dma_init_coherent_memory
	.comm	PAGE_SHIFT,8,8
	.comm	MEMREMAP_WC,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,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_coherent.c_dma_init_coherent_memory.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dma_init_coherent_memory, %function
dma_init_coherent_memory:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r2
	ldr	r2, .L12
	mov	r6, r0
	ldr	r5, [r2]
	mov	r10, r1
	lsr	r5, r4, r5
	mov	r0, r5
	mov	r8, r3
	bl	BITS_TO_LONGS
	cmp	r4, #0
	bne	.L2
	ldr	r3, .L12+4
	mov	r0, r4
	ldr	r4, [r3]
	bl	kfree
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r3, .L12+8
	mov	fp, r0
	mov	r1, r4
	mov	r0, r6
	ldr	r2, [r3]
	bl	memremap
	subs	r9, r0, #0
	beq	.L11
	ldr	r4, .L12+12
	mov	r0, #24
	ldr	r1, [r4]
	bl	kzalloc
	subs	r7, r0, #0
	beq	.L9
	ldr	r1, [r4]
	lsl	r0, fp, #2
	bl	kzalloc
	cmp	r0, #0
	str	r0, [r7, #20]
	beq	.L9
	mov	r0, r6
	str	r9, [r7, #16]
	str	r10, [r7, #12]
	bl	PFN_DOWN
	mov	r3, r7
	mov	r4, #0
	str	r0, [r7, #8]
	str	r5, [r3], #4
	mov	r0, r3
	bl	spin_lock_init
	mov	r0, r4
	str	r7, [r8]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	ldr	r3, .L12+16
	mov	r0, r7
	ldr	r4, [r3]
	bl	kfree
	rsb	r4, r4, #0
	mov	r0, r9
	bl	memunmap
	mov	r0, r4
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	ldr	r3, .L12+4
	ldr	r4, [r3]
	bl	kfree
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	.align	2
.L12:
	.word	PAGE_SHIFT
	.word	EINVAL
	.word	MEMREMAP_WC
	.word	GFP_KERNEL
	.word	ENOMEM
	.size	dma_init_coherent_memory, .-dma_init_coherent_memory
	.comm	PAGE_SHIFT,4,4
	.comm	MEMREMAP_WC,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
