	.file	"extr_sti_hdmi.c_hdmi_swreset.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Failed to prepare/enable hdmi_audio clk\n"
	.align 8
.LC2:
	.string	"Warning: HDMI sw reset timeout occurs\n"
	.text
	.p2align 4
	.type	hdmi_swreset, @function
hdmi_swreset:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	lea	rdi, .LC0[rip]
	call	DRM_DEBUG_DRIVER@PLT
	mov	edi, DWORD PTR 4[rbx]
	call	clk_prepare_enable@PLT
	test	rax, rax
	jne	.L9
.L2:
	mov	DWORD PTR [rbx], 0
	mov	esi, DWORD PTR HDMI_CFG[rip]
	mov	rdi, rbx
	call	hdmi_read@PLT
	mov	edx, DWORD PTR HDMI_CFG[rip]
	or	eax, DWORD PTR HDMI_CFG_SW_RST_EN[rip]
	mov	rdi, rbx
	mov	esi, eax
	call	hdmi_write@PLT
	mov	edi, DWORD PTR HDMI_TIMEOUT_SWRESET[rip]
	call	msecs_to_jiffies@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	esi, DWORD PTR [rbx]
	mov	edx, eax
	call	wait_event_interruptible_timeout@PLT
	mov	esi, DWORD PTR HDMI_STA[rip]
	mov	rdi, rbx
	call	hdmi_read@PLT
	test	DWORD PTR HDMI_STA_SW_RST[rip], eax
	je	.L10
.L3:
	mov	esi, DWORD PTR HDMI_CFG[rip]
	mov	rdi, rbx
	call	hdmi_read@PLT
	mov	esi, DWORD PTR HDMI_CFG_SW_RST_EN[rip]
	mov	edx, DWORD PTR HDMI_CFG[rip]
	mov	rdi, rbx
	not	esi
	and	esi, eax
	call	hdmi_write@PLT
	mov	edi, DWORD PTR 4[rbx]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	clk_disable_unprepare@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	call	DRM_INFO@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L10:
	lea	rdi, .LC2[rip]
	call	DRM_DEBUG_DRIVER@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	hdmi_swreset, .-hdmi_swreset
	.comm	HDMI_TIMEOUT_SWRESET,4,4
	.comm	HDMI_STA_SW_RST,4,4
	.comm	HDMI_STA,4,4
	.comm	HDMI_CFG_SW_RST_EN,4,4
	.comm	HDMI_CFG,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_sti_hdmi.c_hdmi_swreset.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\012\000"
	.align	2
.LC1:
	.ascii	"Failed to prepare/enable hdmi_audio clk\012\000"
	.align	2
.LC2:
	.ascii	"Warning: HDMI sw reset timeout occurs\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hdmi_swreset, %function
hdmi_swreset:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r0, .L11
	bl	DRM_DEBUG_DRIVER
	ldr	r0, [r4, #4]
	bl	clk_prepare_enable
	cmp	r0, #0
	bne	.L9
.L2:
	mov	r3, #0
	ldr	r5, .L11+4
	str	r3, [r4]
	ldr	r1, [r5]
	mov	r0, r4
	bl	hdmi_read
	mov	r1, r0
	ldr	r6, .L11+8
	ldr	r2, [r5]
	ldr	r3, [r6]
	mov	r0, r4
	orr	r1, r1, r3
	bl	hdmi_write
	ldr	r3, .L11+12
	ldr	r7, [r4, #8]
	ldr	r0, [r3]
	ldr	r8, [r4]
	bl	msecs_to_jiffies
	mov	r1, r8
	mov	r2, r0
	mov	r0, r7
	bl	wait_event_interruptible_timeout
	ldr	r3, .L11+16
	mov	r0, r4
	ldr	r1, [r3]
	bl	hdmi_read
	ldr	r3, .L11+20
	ldr	r3, [r3]
	tst	r0, r3
	beq	.L10
.L3:
	ldr	r1, [r5]
	mov	r0, r4
	bl	hdmi_read
	ldr	r1, [r6]
	ldr	r2, [r5]
	bic	r1, r0, r1
	mov	r0, r4
	bl	hdmi_write
	ldr	r0, [r4, #4]
	pop	{r4, r5, r6, r7, r8, lr}
	b	clk_disable_unprepare
.L9:
	ldr	r0, .L11+24
	bl	DRM_INFO
	b	.L2
.L10:
	ldr	r0, .L11+28
	bl	DRM_DEBUG_DRIVER
	b	.L3
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	HDMI_CFG
	.word	HDMI_CFG_SW_RST_EN
	.word	HDMI_TIMEOUT_SWRESET
	.word	HDMI_STA
	.word	HDMI_STA_SW_RST
	.word	.LC1
	.word	.LC2
	.size	hdmi_swreset, .-hdmi_swreset
	.comm	HDMI_TIMEOUT_SWRESET,4,4
	.comm	HDMI_STA_SW_RST,4,4
	.comm	HDMI_STA,4,4
	.comm	HDMI_CFG_SW_RST_EN,4,4
	.comm	HDMI_CFG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
