	.file	"extr_dispc.c_dispc_ovl_get_channel_out.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dispc_ovl_get_channel_out, @function
dispc_ovl_get_channel_out:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	cmp	edi, 130
	jbe	.L17
	mov	r12d, 8
	cmp	edi, 131
	jne	.L4
.L3:
	call	DISPC_OVL_ATTRIBUTES@PLT
	mov	edi, eax
	call	dispc_read_reg@PLT
	mov	edx, r12d
	mov	esi, r12d
	mov	edi, eax
	mov	ebp, eax
	call	FLD_GET@PLT
	cmp	eax, 1
	je	.L18
	mov	edi, DWORD PTR FEAT_MGR_LCD2[rip]
	call	dss_has_feature@PLT
	test	eax, eax
	jne	.L7
	mov	eax, DWORD PTR OMAP_DSS_CHANNEL_LCD[rip]
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	cmp	edi, 127
	ja	.L19
.L4:
	xor	eax, eax
	call	BUG@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	eax, DWORD PTR OMAP_DSS_CHANNEL_DIGIT[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	r12d, 16
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edx, 30
	mov	esi, 31
	mov	edi, ebp
	call	FLD_GET@PLT
	mov	edx, eax
	cmp	eax, 2
	je	.L8
	mov	eax, DWORD PTR OMAP_DSS_CHANNEL_WB[rip]
	cmp	edx, 3
	je	.L1
	mov	eax, DWORD PTR OMAP_DSS_CHANNEL_LCD[rip]
	cmp	edx, 1
	cmove	eax, DWORD PTR OMAP_DSS_CHANNEL_LCD2[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	eax, DWORD PTR OMAP_DSS_CHANNEL_LCD3[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	dispc_ovl_get_channel_out, .-dispc_ovl_get_channel_out
	.comm	OMAP_DSS_CHANNEL_WB,4,4
	.comm	OMAP_DSS_CHANNEL_LCD3,4,4
	.comm	OMAP_DSS_CHANNEL_LCD2,4,4
	.comm	OMAP_DSS_CHANNEL_LCD,4,4
	.comm	OMAP_DSS_CHANNEL_DIGIT,4,4
	.comm	FEAT_MGR_LCD2,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_dispc.c_dispc_ovl_get_channel_out.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dispc_ovl_get_channel_out, %function
dispc_ovl_get_channel_out:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r0, #130
	push	{r4, lr}
	bls	.L16
	cmp	r0, #131
	moveq	r4, #8
	bne	.L4
.L3:
	bl	DISPC_OVL_ATTRIBUTES
	bl	dispc_read_reg
	mov	r2, r4
	mov	r1, r4
	mov	r4, r0
	bl	FLD_GET
	cmp	r0, #1
	beq	.L17
	ldr	r3, .L19
	ldr	r0, [r3]
	bl	dss_has_feature
	cmp	r0, #0
	beq	.L14
	mov	r0, r4
	mov	r2, #30
	mov	r1, #31
	bl	FLD_GET
	cmp	r0, #2
	beq	.L8
	cmp	r0, #3
	beq	.L9
	cmp	r0, #1
	beq	.L10
.L14:
	ldr	r3, .L19+4
	ldr	r0, [r3]
	pop	{r4, pc}
.L16:
	cmp	r0, #127
	bhi	.L18
.L4:
	bl	BUG
	mov	r0, #0
	pop	{r4, pc}
.L17:
	ldr	r3, .L19+8
	ldr	r0, [r3]
	pop	{r4, pc}
.L18:
	mov	r4, #16
	b	.L3
.L10:
	ldr	r3, .L19+12
	ldr	r0, [r3]
	pop	{r4, pc}
.L9:
	ldr	r3, .L19+16
	ldr	r0, [r3]
	pop	{r4, pc}
.L8:
	ldr	r3, .L19+20
	ldr	r0, [r3]
	pop	{r4, pc}
.L20:
	.align	2
.L19:
	.word	FEAT_MGR_LCD2
	.word	OMAP_DSS_CHANNEL_LCD
	.word	OMAP_DSS_CHANNEL_DIGIT
	.word	OMAP_DSS_CHANNEL_LCD2
	.word	OMAP_DSS_CHANNEL_WB
	.word	OMAP_DSS_CHANNEL_LCD3
	.size	dispc_ovl_get_channel_out, .-dispc_ovl_get_channel_out
	.comm	OMAP_DSS_CHANNEL_WB,4,4
	.comm	OMAP_DSS_CHANNEL_LCD3,4,4
	.comm	OMAP_DSS_CHANNEL_LCD2,4,4
	.comm	OMAP_DSS_CHANNEL_LCD,4,4
	.comm	OMAP_DSS_CHANNEL_DIGIT,4,4
	.comm	FEAT_MGR_LCD2,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
