	.file	"extr_dma.c_arch_dma_alloc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	arch_dma_alloc
	.type	arch_dma_alloc, @function
arch_dma_alloc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	or	ecx, DWORD PTR __GFP_ZERO[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	mov	esi, ecx
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rdi, rbp
	mov	rbx, rdx
	call	alloc_pages_exact@PLT
	mov	r12, rax
	test	rax, rax
	je	.L1
	mov	rdi, rax
	call	__pa@PLT
	xor	r8d, r8d
	lea	rdx, 0[rbp+r12]
	mov	rsi, r12
	mov	DWORD PTR [rbx], eax
	lea	rcx, set_nocache_walk_ops[rip]
	lea	rdi, init_mm[rip]
	call	walk_page_range@PLT
	test	rax, rax
	jne	.L11
.L1:
	mov	rax, r12
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rdi, r12
	mov	rsi, rbp
	xor	r12d, r12d
	call	free_pages_exact@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	arch_dma_alloc, .-arch_dma_alloc
	.comm	set_nocache_walk_ops,4,4
	.comm	init_mm,4,4
	.comm	__GFP_ZERO,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_dma.c_arch_dma_alloc.c"
	.text
	.align	2
	.global	arch_dma_alloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	arch_dma_alloc, %function
arch_dma_alloc:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r5, r1
	ldr	r1, .L12
	mov	r0, r5
	ldr	r1, [r1]
	sub	sp, sp, #12
	orr	r1, r3, r1
	mov	r6, r2
	bl	alloc_pages_exact
	subs	r4, r0, #0
	beq	.L1
	bl	__pa
	mov	r7, #0
	str	r0, [r6]
	mov	r1, r4
	ldr	r3, .L12+4
	ldr	r0, .L12+8
	str	r7, [sp]
	add	r2, r4, r5
	bl	walk_page_range
	cmp	r0, r7
	bne	.L11
.L1:
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L11:
	mov	r0, r4
	mov	r1, r5
	bl	free_pages_exact
	mov	r4, r7
	b	.L1
.L13:
	.align	2
.L12:
	.word	__GFP_ZERO
	.word	set_nocache_walk_ops
	.word	init_mm
	.size	arch_dma_alloc, .-arch_dma_alloc
	.comm	set_nocache_walk_ops,4,4
	.comm	init_mm,4,4
	.comm	__GFP_ZERO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
