	.file	"extr_drm_dumb_buffers.c_drm_mode_create_dumb.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	drm_mode_create_dumb
	.type	drm_mode_create_dumb, @function
drm_mode_create_dumb:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR [rdi]
	cmp	QWORD PTR [rax], 0
	je	.L14
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ecx, DWORD PTR [rsi]
	test	ecx, ecx
	je	.L12
	mov	eax, DWORD PTR 4[rsi]
	test	eax, eax
	je	.L12
	mov	r13, rdi
	mov	edi, DWORD PTR 8[rsi]
	test	edi, edi
	je	.L12
	mov	eax, DWORD PTR U32_MAX[rip]
	sub	eax, 7
	cmp	edi, eax
	jl	.L15
.L12:
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	esi, 8
	mov	rbp, rdx
	call	DIV_ROUND_UP@PLT
	mov	ecx, DWORD PTR U32_MAX[rip]
	mov	edi, DWORD PTR [r12]
	mov	esi, eax
	mov	eax, ecx
	cdq
	idiv	edi
	cmp	eax, esi
	jl	.L12
	imul	edi, esi
	mov	eax, ecx
	mov	esi, DWORD PTR 4[r12]
	cdq
	idiv	edi
	cmp	esi, eax
	jg	.L12
	imul	edi, esi
	call	PAGE_ALIGN@PLT
	test	rax, rax
	je	.L12
	mov	rax, QWORD PTR 0[r13]
	mov	rdx, r12
	mov	rsi, r13
	mov	rdi, rbp
	mov	QWORD PTR 32[r12], 0
	mov	QWORD PTR 24[r12], 0
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR 16[r12], 0
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 8
	jmp	rax
	.p2align 4,,10
	.p2align 3
.L14:
	mov	eax, DWORD PTR ENOSYS[rip]
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	drm_mode_create_dumb, .-drm_mode_create_dumb
	.comm	U32_MAX,4,4
	.comm	ENOSYS,4,4
	.comm	EINVAL,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_drm_dumb_buffers.c_drm_mode_create_dumb.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.global	drm_mode_create_dumb
	.syntax unified
	.arm
	.fpu softvfp
	.type	drm_mode_create_dumb, %function
drm_mode_create_dumb:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L20
	ldr	r3, [r1]
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	cmp	r3, #0
	mov	r4, r1
	beq	.L18
	ldr	r3, [r1, #4]
	cmp	r3, #0
	beq	.L18
	mov	r6, r0
	ldr	r0, [r1, #8]
	cmp	r0, #0
	beq	.L18
	ldr	r7, .L22
	ldr	r3, [r7]
	sub	r3, r3, #7
	cmp	r0, r3
	blt	.L21
.L18:
	ldr	r3, .L22+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L21:
	mov	r1, #8
	mov	r5, r2
	bl	DIV_ROUND_UP
	mov	r3, r0
	ldr	r9, [r7]
	ldr	r8, [r4]
	mov	r0, r9
	mov	r1, r8
	mov	r7, r3
	bl	__aeabi_idiv
	cmp	r0, r7
	blt	.L18
	mul	r7, r8, r7
	mov	r0, r9
	mov	r1, r7
	bl	__aeabi_idiv
	ldr	r3, [r4, #4]
	cmp	r3, r0
	bgt	.L18
	mul	r0, r7, r3
	bl	PAGE_ALIGN
	cmp	r0, #0
	beq	.L18
	mov	r3, #0
	ldr	r1, [r6]
	mov	r0, r5
	str	r3, [r4, #20]
	str	r3, [r4, #16]
	str	r3, [r4, #12]
	mov	r2, r4
	ldr	r3, [r1]
	mov	r1, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	bx	r3
.L20:
	ldr	r3, .L22+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	bx	lr
.L23:
	.align	2
.L22:
	.word	U32_MAX
	.word	EINVAL
	.word	ENOSYS
	.size	drm_mode_create_dumb, .-drm_mode_create_dumb
	.comm	U32_MAX,4,4
	.comm	ENOSYS,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
