	.file	"extr_msm_fb.c_msm_framebuffer_create.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	msm_framebuffer_create
	.type	msm_framebuffer_create, @function
msm_framebuffer_create:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	mov	rsi, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	QWORD PTR 8[rsp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	call	drm_get_format_info@PLT
	pxor	xmm0, xmm0
	mov	r13d, DWORD PTR [rax]
	movaps	XMMWORD PTR 16[rsp], xmm0
	movaps	XMMWORD PTR 32[rsp], xmm0
	test	r13d, r13d
	jle	.L2
	lea	eax, -1[r13]
	xor	r15d, r15d
	lea	rbx, 16[rsp]
	lea	r12, 4[0+rax*4]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	add	r15, 4
	cmp	r15, r12
	je	.L18
.L5:
	mov	rax, QWORD PTR [r14]
	mov	rdi, rbp
	mov	esi, DWORD PTR [rax+r15]
	call	drm_gem_object_lookup@PLT
	mov	QWORD PTR [rbx+r15*2], rax
	test	rax, rax
	jne	.L3
	mov	r12d, DWORD PTR ENXIO[rip]
	neg	r12d
.L4:
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, QWORD PTR [rbx+rbp*8]
	add	rbp, 1
	call	drm_gem_object_put_unlocked@PLT
	cmp	r13d, ebp
	jg	.L7
.L10:
	mov	edi, r12d
	call	ERR_PTR@PLT
	mov	r12, rax
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L19
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[rsp]
	mov	rdx, rbx
	mov	rsi, r14
	call	msm_framebuffer_init@PLT
	mov	rdi, rax
	mov	r12, rax
	call	IS_ERR@PLT
	test	rax, rax
	je	.L1
	mov	rdi, r12
	call	PTR_ERR@PLT
	mov	r12d, eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, QWORD PTR 8[rsp]
	lea	rdx, 16[rsp]
	mov	rsi, r14
	call	msm_framebuffer_init@PLT
	mov	rdi, rax
	mov	r12, rax
	call	IS_ERR@PLT
	test	rax, rax
	je	.L1
	mov	rdi, r12
	call	PTR_ERR@PLT
	mov	r12d, eax
	jmp	.L10
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	msm_framebuffer_create, .-msm_framebuffer_create
	.comm	ENXIO,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_msm_fb.c_msm_framebuffer_create.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	msm_framebuffer_create
	.syntax unified
	.arm
	.fpu softvfp
	.type	msm_framebuffer_create, %function
msm_framebuffer_create:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L20
	sub	sp, sp, #28
	mov	r7, r1
	mov	r1, r2
	mov	r9, r2
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	mov	r8, r0
	bl	drm_get_format_info
	mov	r4, #0
	ldr	r6, [r0]
	add	r5, sp, #4
	cmp	r6, r4
	str	r4, [sp, #4]
	str	r4, [r5, #4]
	str	r4, [r5, #8]
	str	r4, [r5, #12]
	bgt	.L5
	b	.L2
.L3:
	add	r4, r4, #1
	cmp	r6, r4
	beq	.L18
.L5:
	ldr	r3, [r9]
	mov	r0, r7
	ldr	r1, [r3, r4, lsl #2]
	bl	drm_gem_object_lookup
	cmp	r0, #0
	str	r0, [r5, r4, lsl #2]
	bne	.L3
	ldr	r3, .L20+4
	ldr	r7, [r3]
	rsb	r7, r7, #0
.L4:
	mov	r4, #0
.L7:
	ldr	r0, [r5], #4
	add	r4, r4, #1
	bl	drm_gem_object_put_unlocked
	cmp	r6, r4
	bgt	.L7
.L10:
	mov	r0, r7
	bl	ERR_PTR
	mov	r4, r0
.L1:
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	mov	r0, r4
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L18:
	mov	r1, r9
	mov	r2, r5
	mov	r0, r8
	bl	msm_framebuffer_init
	mov	r4, r0
	bl	IS_ERR
	cmp	r0, #0
	beq	.L1
	mov	r0, r4
	bl	PTR_ERR
	mov	r7, r0
	b	.L4
.L2:
	mov	r2, r5
	mov	r1, r9
	mov	r0, r8
	bl	msm_framebuffer_init
	mov	r4, r0
	bl	IS_ERR
	cmp	r0, #0
	beq	.L1
	mov	r0, r4
	bl	PTR_ERR
	mov	r7, r0
	b	.L10
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC0
	.word	ENXIO
	.size	msm_framebuffer_create, .-msm_framebuffer_create
	.comm	ENXIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
