	.file	"extr_manager-sysfs.c_manager_display_store.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"display %s found\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"new display is already connected\n"
	.section	.rodata.str1.1
.LC2:
	.string	"new display is not disabled\n"
.LC3:
	.string	"old display is not disabled\n"
.LC4:
	.string	"failed to connect new device\n"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"failed to connect device to this manager\n"
	.section	.rodata.str1.1
.LC6:
	.string	"failed to apply dispc config\n"
	.text
	.p2align 4
	.type	manager_display_store, @function
manager_display_store:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	eax, eax
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	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, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	BYTE PTR -1[rsi+rdx], 10
	sete	al
	cmp	rax, rdx
	jne	.L27
	call	[QWORD PTR 8[rdi]]
	mov	rbp, rax
	test	rax, rax
	je	.L12
	mov	rdi, rax
	call	omapdss_device_is_enabled@PLT
	test	rax, rax
	je	.L28
	lea	rdi, .LC3[rip]
	call	DSSERR@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L9:
	test	r12d, r12d
	jne	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	r12d, ebx
.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
.L27:
	.cfi_restore_state
	mov	rdi, rsi
	mov	esi, DWORD PTR manager_display_match[rip]
	call	omap_dss_find_device@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	mov	r13, rax
	neg	r12d
	test	rax, rax
	je	.L1
	mov	esi, DWORD PTR 8[rax]
	lea	rdi, .LC0[rip]
	call	DSSDBG@PLT
	mov	rdi, r13
	call	omapdss_device_is_connected@PLT
	test	rax, rax
	jne	.L29
	mov	rdi, r13
	call	omapdss_device_is_enabled@PLT
	test	rax, rax
	jne	.L30
	mov	rdi, rbp
	call	[QWORD PTR 8[rbp]]
	mov	r12, rax
	test	rax, rax
	jne	.L31
.L17:
	mov	rax, QWORD PTR 0[r13]
	mov	rdi, r13
	call	[QWORD PTR [rax]]
	mov	r12d, eax
	test	eax, eax
	jne	.L32
	mov	rdi, rbp
	call	[QWORD PTR 8[rbp]]
	cmp	r13, rax
	jne	.L33
	mov	rdi, rbp
	call	[QWORD PTR 0[rbp]]
	mov	r12d, eax
	test	eax, eax
	jne	.L13
	mov	rdi, r13
	call	omap_dss_put_device@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L29:
	lea	rdi, .LC1[rip]
	call	DSSERR@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L7:
	mov	rdi, r13
	call	omap_dss_put_device@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L33:
	lea	rdi, .LC5[rip]
	call	DSSERR@PLT
	mov	rax, QWORD PTR 0[r13]
	mov	rdi, r13
	call	[QWORD PTR 8[rax]]
	mov	rdi, r13
	call	omap_dss_put_device@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L31:
	mov	rdi, rax
	call	omapdss_device_is_enabled@PLT
	test	rax, rax
	jne	.L34
	mov	rax, QWORD PTR [r12]
	mov	rdi, r12
	call	[QWORD PTR 8[rax]]
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L32:
	lea	rdi, .LC4[rip]
	call	DSSERR@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L30:
	lea	rdi, .LC2[rip]
	call	DSSERR@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L13:
	lea	rdi, .LC6[rip]
	call	DSSERR@PLT
	jmp	.L7
.L28:
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, rbp
	call	[QWORD PTR 8[rax]]
	jmp	.L12
.L34:
	lea	rdi, .LC3[rip]
	call	DSSERR@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	manager_display_store, .-manager_display_store
	.comm	manager_display_match,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_manager-sysfs.c_manager_display_store.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"display %s found\012\000"
	.align	2
.LC1:
	.ascii	"new display is already connected\012\000"
	.align	2
.LC2:
	.ascii	"new display is not disabled\012\000"
	.align	2
.LC3:
	.ascii	"old display is not disabled\012\000"
	.align	2
.LC4:
	.ascii	"failed to connect new device\012\000"
	.align	2
.LC5:
	.ascii	"failed to connect device to this manager\012\000"
	.align	2
.LC6:
	.ascii	"failed to apply dispc config\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	manager_display_store, %function
manager_display_store:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r2
	sub	r3, r2, #1
	ldrb	r2, [r1, r3]	@ zero_extendqisi2
	mov	r7, r0
	cmp	r2, #10
	movne	r3, r5
	cmp	r3, #0
	bne	.L27
	ldr	r3, [r0, #4]
	blx	r3
	subs	r4, r0, #0
	beq	.L12
	bl	omapdss_device_is_enabled
	cmp	r0, #0
	beq	.L28
	ldr	r0, .L36
	bl	DSSERR
	ldr	r3, .L36+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L9:
	cmp	r4, #0
	bne	.L1
.L12:
	mov	r4, r5
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L27:
	ldr	r3, .L36+8
	mov	r0, r1
	ldr	r1, [r3]
	bl	omap_dss_find_device
	subs	r6, r0, #0
	beq	.L29
	ldr	r1, [r6, #4]
	ldr	r0, .L36+12
	bl	DSSDBG
	mov	r0, r6
	bl	omapdss_device_is_connected
	cmp	r0, #0
	bne	.L30
	mov	r0, r6
	bl	omapdss_device_is_enabled
	cmp	r0, #0
	bne	.L31
	mov	r0, r7
	ldr	r3, [r7, #4]
	blx	r3
	subs	r4, r0, #0
	bne	.L32
.L17:
	ldr	r3, [r6]
	mov	r0, r6
	ldr	r3, [r3]
	blx	r3
	subs	r4, r0, #0
	bne	.L33
	mov	r0, r7
	ldr	r3, [r7, #4]
	blx	r3
	cmp	r6, r0
	bne	.L34
	mov	r0, r7
	ldr	r3, [r7]
	blx	r3
	subs	r4, r0, #0
	bne	.L13
	mov	r0, r6
	bl	omap_dss_put_device
	b	.L12
.L29:
	ldr	r3, .L36+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L30:
	ldr	r0, .L36+16
	bl	DSSERR
	ldr	r3, .L36+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L7:
	mov	r0, r6
	bl	omap_dss_put_device
	b	.L9
.L34:
	ldr	r0, .L36+20
	bl	DSSERR
	ldr	r3, [r6]
	mov	r0, r6
	ldr	r3, [r3, #4]
	blx	r3
	mov	r0, r6
	bl	omap_dss_put_device
	b	.L12
.L32:
	bl	omapdss_device_is_enabled
	cmp	r0, #0
	bne	.L35
	ldr	r3, [r4]
	mov	r0, r4
	ldr	r3, [r3, #4]
	blx	r3
	b	.L17
.L33:
	ldr	r0, .L36+24
	bl	DSSERR
	b	.L7
.L31:
	ldr	r0, .L36+28
	bl	DSSERR
	ldr	r3, .L36+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L7
.L13:
	ldr	r0, .L36+32
	bl	DSSERR
	b	.L7
.L28:
	ldr	r3, [r4]
	mov	r0, r4
	ldr	r3, [r3, #4]
	blx	r3
	b	.L12
.L35:
	ldr	r0, .L36
	bl	DSSERR
	ldr	r3, .L36+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L7
.L37:
	.align	2
.L36:
	.word	.LC3
	.word	EINVAL
	.word	manager_display_match
	.word	.LC0
	.word	.LC1
	.word	.LC5
	.word	.LC4
	.word	.LC2
	.word	.LC6
	.size	manager_display_store, .-manager_display_store
	.comm	manager_display_match,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
