	.file	"extr_sba_iommu.c_sba_alloc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sba_alloc, @function
sba_alloc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	test	rdi, rdi
	je	.L8
	mov	rbp, rdi
	mov	rdi, rsi
	mov	r13d, ecx
	mov	r12, rsi
	call	get_order@PLT
	mov	edi, r13d
	xor	r13d, r13d
	mov	esi, eax
	call	__get_free_pages@PLT
	test	rax, rax
	jne	.L9
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r13
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	r13, rax
	mov	rdx, r12
	xor	esi, esi
	mov	rdi, rax
	call	memset@PLT
	mov	rdx, r12
	mov	rsi, r13
	mov	rdi, rbp
	xor	ecx, ecx
	call	sba_map_single@PLT
	mov	DWORD PTR [rbx], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r13
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	DWORD PTR [rdx], 0
	xor	r13d, r13d
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	mov	rax, r13
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	sba_alloc, .-sba_alloc
	.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_sba_iommu.c_sba_alloc.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sba_alloc, %function
sba_alloc:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r6, r0, #0
	mov	r7, r2
	moveq	r4, r6
	streq	r6, [r2]
	beq	.L1
	mov	r0, r1
	mov	r4, r3
	mov	r5, r1
	bl	get_order
	mov	r1, r0
	mov	r0, r4
	bl	__get_free_pages
	subs	r4, r0, #0
	bne	.L7
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	mov	r2, r5
	mov	r1, #0
	bl	memset
	mov	r2, r5
	mov	r0, r6
	mov	r1, r4
	mov	r3, #0
	bl	sba_map_single
	str	r0, [r7]
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
	.size	sba_alloc, .-sba_alloc
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
