	.file	"extr_drm_client.c_drm_client_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	drm_client_init
	.type	drm_client_init, @function
drm_client_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rcx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR DRIVER_MODESET[rip]
	call	drm_core_check_feature@PLT
	test	eax, eax
	je	.L2
	mov	rax, QWORD PTR 0[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L2
	test	rbx, rbx
	je	.L5
	mov	edi, DWORD PTR [rbx]
	call	try_module_get@PLT
	test	eax, eax
	je	.L20
	mov	QWORD PTR 0[r13], r12
	mov	rdi, r13
	mov	QWORD PTR 16[r13], rbp
	mov	QWORD PTR 8[r13], rbx
	call	drm_client_modeset_create@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L21
.L8:
	mov	edi, DWORD PTR [rbx]
	call	module_put@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L2:
	.cfi_restore_state
	mov	r12d, DWORD PTR EOPNOTSUPP[rip]
	neg	r12d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L21:
	.cfi_restore_state
	mov	rdi, r13
	call	drm_client_open@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L22
.L11:
	mov	rdi, rbp
	xor	r12d, r12d
	call	drm_dev_get@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L5:
	.cfi_restore_state
	mov	QWORD PTR 0[r13], r12
	mov	rdi, r13
	mov	QWORD PTR 16[r13], rbp
	mov	QWORD PTR 8[r13], 0
	call	drm_client_modeset_create@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	rdi, r13
	call	drm_client_open@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L11
	mov	rdi, r13
	call	drm_client_modeset_free@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	mov	r12d, DWORD PTR ENODEV[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	rdi, r13
	call	drm_client_modeset_free@PLT
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	drm_client_init, .-drm_client_init
	.comm	EOPNOTSUPP,4,4
	.comm	ENODEV,4,4
	.comm	DRIVER_MODESET,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_client.c_drm_client_init.c"
	.text
	.align	2
	.global	drm_client_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	drm_client_init, %function
drm_client_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, .L23
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	ldr	r1, [ip]
	mov	r4, r2
	mov	r6, r3
	mov	r7, r0
	bl	drm_core_check_feature
	cmp	r0, #0
	beq	.L2
	ldr	r3, [r7]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L2
	cmp	r6, #0
	beq	.L5
	ldr	r0, [r6]
	bl	try_module_get
	cmp	r0, #0
	beq	.L20
	stm	r5, {r4, r6, r7}
	mov	r0, r5
	bl	drm_client_modeset_create
	subs	r4, r0, #0
	beq	.L21
.L8:
	ldr	r0, [r6]
	bl	module_put
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, .L23+4
	ldr	r0, [r3]
	rsb	r4, r0, #0
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L21:
	mov	r0, r5
	bl	drm_client_open
	subs	r4, r0, #0
	bne	.L22
.L11:
	mov	r4, #0
	mov	r0, r7
	bl	drm_dev_get
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	stm	r5, {r4, r6, r7}
	mov	r0, r5
	bl	drm_client_modeset_create
	subs	r4, r0, #0
	bne	.L1
	mov	r0, r5
	bl	drm_client_open
	subs	r4, r0, #0
	beq	.L11
	mov	r0, r5
	bl	drm_client_modeset_free
	b	.L1
.L20:
	ldr	r3, .L23+8
	ldr	r0, [r3]
	rsb	r4, r0, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L22:
	mov	r0, r5
	bl	drm_client_modeset_free
	b	.L8
.L24:
	.align	2
.L23:
	.word	DRIVER_MODESET
	.word	EOPNOTSUPP
	.word	ENODEV
	.size	drm_client_init, .-drm_client_init
	.comm	EOPNOTSUPP,4,4
	.comm	ENODEV,4,4
	.comm	DRIVER_MODESET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
