	.file	"extr_drm_gem_shmem_helper.c_drm_gem_shmem_get_pages_locked.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Failed to get pages (%ld)\n"
	.text
	.p2align 4
	.type	drm_gem_shmem_get_pages_locked, @function
drm_gem_shmem_get_pages_locked:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR 8[rdi]
	lea	rdx, 1[rax]
	mov	QWORD PTR 8[rdi], rdx
	test	rax, rax
	jle	.L10
	xor	eax, eax
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	lea	rdi, 16[rdi]
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	drm_gem_get_pages@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L11
	mov	QWORD PTR [rbx], rbp
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rdi, rbp
	call	PTR_ERR@PLT
	lea	rdi, .LC0[rip]
	mov	esi, eax
	call	DRM_DEBUG_KMS@PLT
	mov	QWORD PTR 8[rbx], 0
	mov	rdi, rbp
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 8
	jmp	PTR_ERR@PLT
	.cfi_endproc
.LFE0:
	.size	drm_gem_shmem_get_pages_locked, .-drm_gem_shmem_get_pages_locked
	.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_drm_gem_shmem_helper.c_drm_gem_shmem_get_pages_locked.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to get pages (%ld)\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	drm_gem_shmem_get_pages_locked, %function
drm_gem_shmem_get_pages_locked:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #4]
	cmp	r3, #0
	add	r3, r3, #1
	str	r3, [r0, #4]
	ble	.L10
	mov	r0, #0
	bx	lr
.L10:
	push	{r4, r5, r6, lr}
	mov	r4, r0
	add	r0, r0, #8
	bl	drm_gem_get_pages
	mov	r5, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L11
	mov	r0, #0
	str	r5, [r4]
	pop	{r4, r5, r6, pc}
.L11:
	mov	r0, r5
	bl	PTR_ERR
	mov	r1, r0
	ldr	r0, .L12
	bl	DRM_DEBUG_KMS
	mov	r3, #0
	mov	r0, r5
	str	r3, [r4, #4]
	pop	{r4, r5, r6, lr}
	b	PTR_ERR
.L13:
	.align	2
.L12:
	.word	.LC0
	.size	drm_gem_shmem_get_pages_locked, .-drm_gem_shmem_get_pages_locked
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
