	.file	"extr_tc358767.c_tc_stream_enable.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"enable video stream\n"
	.text
	.p2align 4
	.type	tc_stream_enable, @function
tc_stream_enable:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	rsi, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	edi, DWORD PTR 16[rdi]
	call	dev_dbg@PLT
	cmp	QWORD PTR tc_test_pattern[rip], 0
	je	.L5
	imul	r12d, DWORD PTR 8[rbx], 1000
	mov	edi, DWORD PTR 12[rbx]
	call	clk_get_rate@PLT
	mov	rdi, rbx
	mov	esi, eax
	mov	edx, r12d
	call	tc_pxl_pll_en@PLT
	test	eax, eax
	jne	.L1
.L5:
	lea	rsi, 8[rbx]
	mov	rdi, rbx
	call	tc_set_video_mode@PLT
	test	eax, eax
	je	.L15
.L1:
	pop	rbx
	.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
.L15:
	.cfi_restore_state
	mov	rdi, rbx
	call	tc_stream_clock_calc@PLT
	test	eax, eax
	jne	.L1
	mov	ebp, DWORD PTR VID_MN_GEN[rip]
	mov	eax, DWORD PTR 4[rbx]
	or	ebp, DWORD PTR DP_EN[rip]
	test	DWORD PTR DP_LINK_CAP_ENHANCED_FRAMING[rip], eax
	je	.L6
	or	ebp, DWORD PTR EF_EN[rip]
.L6:
	mov	esi, DWORD PTR DP0CTL[rip]
	mov	edi, DWORD PTR [rbx]
	mov	edx, ebp
	call	regmap_write@PLT
	test	eax, eax
	jne	.L1
	mov	esi, 1000
	mov	edi, 500
	call	usleep_range@PLT
	mov	edx, DWORD PTR VID_EN[rip]
	mov	esi, DWORD PTR DP0CTL[rip]
	mov	edi, DWORD PTR [rbx]
	or	edx, ebp
	call	regmap_write@PLT
	test	eax, eax
	jne	.L1
	cmp	QWORD PTR tc_test_pattern[rip], 0
	mov	edx, DWORD PTR DP0_AUDSRC_NO_INPUT[rip]
	jne	.L16
	or	edx, DWORD PTR DP0_VIDSRC_DPI_RX[rip]
.L8:
	mov	edi, DWORD PTR [rbx]
	mov	esi, DWORD PTR SYSCTRL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	regmap_write@PLT
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	or	edx, DWORD PTR DP0_VIDSRC_COLOR_BAR[rip]
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	tc_stream_enable, .-tc_stream_enable
	.comm	tc_test_pattern,8,8
	.comm	VID_MN_GEN,4,4
	.comm	VID_EN,4,4
	.comm	SYSCTRL,4,4
	.comm	EF_EN,4,4
	.comm	DP_LINK_CAP_ENHANCED_FRAMING,4,4
	.comm	DP_EN,4,4
	.comm	DP0_VIDSRC_DPI_RX,4,4
	.comm	DP0_VIDSRC_COLOR_BAR,4,4
	.comm	DP0_AUDSRC_NO_INPUT,4,4
	.comm	DP0CTL,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_tc358767.c_tc_stream_enable.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"enable video stream\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tc_stream_enable, %function
tc_stream_enable:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, .L16
	mov	r4, r0
	ldr	r1, .L16+4
	ldr	r0, [r0, #16]
	bl	dev_dbg
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L5
	ldr	r0, [r4, #12]
	bl	clk_get_rate
	ldr	r2, [r4, #8]
	mov	r1, r0
	rsb	r3, r2, r2, lsl #5
	add	r2, r2, r3, lsl #2
	mov	r0, r4
	lsl	r2, r2, #3
	bl	tc_pxl_pll_en
	cmp	r0, #0
	popne	{r4, r5, r6, r7, r8, pc}
.L5:
	mov	r0, r4
	add	r1, r4, #8
	bl	tc_set_video_mode
	cmp	r0, #0
	popne	{r4, r5, r6, r7, r8, pc}
	mov	r0, r4
	bl	tc_stream_clock_calc
	cmp	r0, #0
	popne	{r4, r5, r6, r7, r8, pc}
	ldr	r3, .L16+8
	ldr	r1, [r4, #4]
	ldr	r3, [r3]
	ldr	r0, .L16+12
	tst	r1, r3
	ldr	r2, .L16+16
	ldrne	r3, .L16+20
	ldr	r6, [r0]
	ldr	r2, [r2]
	ldrne	r3, [r3]
	orr	r6, r6, r2
	ldr	r7, .L16+24
	orrne	r6, r6, r3
	mov	r2, r6
	ldr	r1, [r7]
	ldr	r0, [r4]
	bl	regmap_write
	cmp	r0, #0
	popne	{r4, r5, r6, r7, r8, pc}
	mov	r1, #1000
	mov	r0, #500
	bl	usleep_range
	ldr	r3, .L16+28
	ldr	r1, [r7]
	ldr	r2, [r3]
	ldr	r0, [r4]
	orr	r2, r6, r2
	bl	regmap_write
	cmp	r0, #0
	popne	{r4, r5, r6, r7, r8, pc}
	ldr	r2, [r5]
	ldr	r3, .L16+32
	cmp	r2, #0
	ldr	r2, [r3]
	ldrne	r3, .L16+36
	ldreq	r3, .L16+40
	ldr	r0, [r4]
	ldr	r3, [r3]
	pop	{r4, r5, r6, r7, r8, lr}
	orr	r2, r2, r3
	ldr	r3, .L16+44
	ldr	r1, [r3]
	b	regmap_write
.L17:
	.align	2
.L16:
	.word	tc_test_pattern
	.word	.LC0
	.word	DP_LINK_CAP_ENHANCED_FRAMING
	.word	VID_MN_GEN
	.word	DP_EN
	.word	EF_EN
	.word	DP0CTL
	.word	VID_EN
	.word	DP0_AUDSRC_NO_INPUT
	.word	DP0_VIDSRC_COLOR_BAR
	.word	DP0_VIDSRC_DPI_RX
	.word	SYSCTRL
	.size	tc_stream_enable, .-tc_stream_enable
	.comm	tc_test_pattern,4,4
	.comm	VID_MN_GEN,4,4
	.comm	VID_EN,4,4
	.comm	SYSCTRL,4,4
	.comm	EF_EN,4,4
	.comm	DP_LINK_CAP_ENHANCED_FRAMING,4,4
	.comm	DP_EN,4,4
	.comm	DP0_VIDSRC_DPI_RX,4,4
	.comm	DP0_VIDSRC_COLOR_BAR,4,4
	.comm	DP0_AUDSRC_NO_INPUT,4,4
	.comm	DP0CTL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
