	.file	"extr_direct.c_dma_direct_get_required_mask.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	dma_direct_get_required_mask
	.type	dma_direct_get_required_mask, @function
dma_direct_get_required_mask:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	eax, DWORD PTR max_pfn[rip]
	mov	ecx, DWORD PTR PAGE_SHIFT[rip]
	lea	esi, -1[rax]
	sal	esi, cl
	call	phys_to_dma_direct@PLT
	mov	rdi, rax
	call	fls64@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 8
	lea	ecx, -1[rax]
	mov	eax, 2
	sal	rax, cl
	sub	rax, 1
	ret
	.cfi_endproc
.LFE0:
	.size	dma_direct_get_required_mask, .-dma_direct_get_required_mask
	.comm	max_pfn,4,4
	.comm	PAGE_SHIFT,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_direct.c_dma_direct_get_required_mask.c"
	.text
	.align	2
	.global	dma_direct_get_required_mask
	.syntax unified
	.arm
	.fpu softvfp
	.type	dma_direct_get_required_mask, %function
dma_direct_get_required_mask:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L4
	ldr	r2, .L4+4
	ldr	r3, [r3]
	ldr	r1, [r2]
	sub	r3, r3, #1
	push	{r4, lr}
	lsl	r1, r3, r1
	bl	phys_to_dma_direct
	bl	fls64
	mov	ip, #2
	sub	r2, r0, #1
	sub	r1, r0, #33
	rsb	r3, r0, #33
	lsl	r2, ip, r2
	lsl	r1, ip, r1
	subs	r0, r2, #1
	orr	r1, r1, ip, lsr r3
	sbc	r1, r1, #0
	pop	{r4, pc}
.L5:
	.align	2
.L4:
	.word	max_pfn
	.word	PAGE_SHIFT
	.size	dma_direct_get_required_mask, .-dma_direct_get_required_mask
	.comm	max_pfn,4,4
	.comm	PAGE_SHIFT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
