	.file	"extr_xen_drm_front_gem.c_xen_drm_front_gem_import_sg_table.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Imported buffer of size %zu with nents %u\n"
	.text
	.p2align 4
	.globl	xen_drm_front_gem_import_sg_table
	.type	xen_drm_front_gem_import_sg_table, @function
xen_drm_front_gem_import_sg_table:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rax, QWORD PTR [rsi]
	mov	rbx, rdx
	mov	r13, QWORD PTR [rdi]
	mov	r12, QWORD PTR [rax]
	mov	rsi, r12
	call	gem_create_obj@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	IS_ERR_OR_NULL@PLT
	test	rax, rax
	jne	.L9
	mov	rsi, r12
	mov	rdi, rbp
	call	gem_alloc_pages_array@PLT
	test	eax, eax
	js	.L7
	mov	QWORD PTR 16[rbp], rbx
	mov	ecx, DWORD PTR 8[rbp]
	xor	edx, edx
	mov	rdi, rbx
	mov	esi, DWORD PTR 4[rbp]
	call	drm_prime_sg_to_page_addr_arrays@PLT
	test	eax, eax
	js	.L7
	mov	r14d, DWORD PTR 4[rbp]
	mov	rdi, rbp
	call	xen_drm_front_dbuf_to_cookie@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	xor	ecx, ecx
	xor	edx, edx
	push	r14
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR 0[r13]
	mov	esi, eax
	mov	r9, r12
	xor	r8d, r8d
	call	xen_drm_front_dbuf_create@PLT
	pop	rdx
	.cfi_def_cfa_offset 56
	pop	rcx
	.cfi_def_cfa_offset 48
	test	eax, eax
	js	.L7
	mov	edx, DWORD PTR [rbx]
	mov	rsi, r12
	lea	rdi, .LC0[rip]
	call	DRM_DEBUG@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, rbp
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	edi, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	ERR_PTR@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	ERR_CAST@PLT
	.cfi_endproc
.LFE0:
	.size	xen_drm_front_gem_import_sg_table, .-xen_drm_front_gem_import_sg_table
	.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_xen_drm_front_gem.c_xen_drm_front_gem_import_sg_table.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Imported buffer of size %zu with nents %u\012\000"
	.text
	.align	2
	.global	xen_drm_front_gem_import_sg_table
	.syntax unified
	.arm
	.fpu softvfp
	.type	xen_drm_front_gem_import_sg_table, %function
xen_drm_front_gem_import_sg_table:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, [r1]
	sub	sp, sp, #16
	ldr	r7, [r3]
	mov	r6, r2
	mov	r1, r7
	ldr	r8, [r0]
	bl	gem_create_obj
	mov	r4, r0
	bl	IS_ERR_OR_NULL
	subs	r5, r0, #0
	bne	.L9
	mov	r1, r7
	mov	r0, r4
	bl	gem_alloc_pages_array
	cmp	r0, #0
	blt	.L7
	mov	r2, r5
	mov	r0, r6
	ldr	r3, [r4, #8]
	ldr	r1, [r4, #4]
	str	r6, [r4, #12]
	bl	drm_prime_sg_to_page_addr_arrays
	cmp	r0, #0
	blt	.L7
	mov	r0, r4
	ldr	r8, [r8]
	bl	xen_drm_front_dbuf_to_cookie
	ldr	r3, [r4, #4]
	mov	r1, r0
	str	r3, [sp, #8]
	mov	r0, r8
	mov	r3, r5
	mov	r2, r5
	stm	sp, {r5, r7}
	bl	xen_drm_front_dbuf_create
	cmp	r0, #0
	blt	.L7
	mov	r1, r7
	ldr	r2, [r6]
	ldr	r0, .L10
	bl	DRM_DEBUG
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, lr}
	b	ERR_PTR
.L9:
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, lr}
	b	ERR_CAST
.L11:
	.align	2
.L10:
	.word	.LC0
	.size	xen_drm_front_gem_import_sg_table, .-xen_drm_front_gem_import_sg_table
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
