	.file	"extr_venc.c_venc_display_enable.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"venc_display_enable\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Failed to enable display: no output/manager\n"
	.text
	.p2align 4
	.type	venc_display_enable, @function
venc_display_enable:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	lea	rdi, .LC0[rip]
	call	DSSDBG@PLT
	lea	rdi, venc[rip]
	call	mutex_lock@PLT
	cmp	QWORD PTR venc[rip+16], 0
	je	.L7
	mov	rdi, r12
	call	venc_power_on@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L8
.L3:
	lea	rdi, venc[rip]
	call	mutex_unlock@PLT
	mov	eax, r12d
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	lea	rdi, venc[rip]
	mov	QWORD PTR venc[rip+8], 0
	call	mutex_unlock@PLT
	mov	eax, r12d
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	call	DSSERR@PLT
	mov	r12d, DWORD PTR ENODEV[rip]
	neg	r12d
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	venc_display_enable, .-venc_display_enable
	.comm	venc,24,16
	.comm	ENODEV,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_venc.c_venc_display_enable.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"venc_display_enable\012\000"
	.align	2
.LC1:
	.ascii	"Failed to enable display: no output/manager\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	venc_display_enable, %function
venc_display_enable:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, .L9
	mov	r4, r0
	ldr	r0, .L9+4
	bl	DSSDBG
	mov	r0, r5
	bl	mutex_lock
	ldr	r3, [r5, #8]
	cmp	r3, #0
	beq	.L7
	mov	r0, r4
	bl	venc_power_on
	subs	r4, r0, #0
	beq	.L8
.L3:
	ldr	r0, .L9
	bl	mutex_unlock
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L8:
	mov	r0, r5
	str	r4, [r5, #4]
	bl	mutex_unlock
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L7:
	ldr	r0, .L9+8
	bl	DSSERR
	ldr	r3, .L9+12
	ldr	r0, [r3]
	rsb	r4, r0, #0
	b	.L3
.L10:
	.align	2
.L9:
	.word	venc
	.word	.LC0
	.word	.LC1
	.word	ENODEV
	.size	venc_display_enable, .-venc_display_enable
	.comm	venc,12,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
