	.file	"extr_evergreen_hdmi.c_evergreen_hdmi_update_acr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	evergreen_hdmi_update_acr
	.type	evergreen_hdmi_update_acr, @function
evergreen_hdmi_update_acr:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rdi, QWORD PTR [rdi]
	test	rdi, rdi
	je	.L2
	call	to_radeon_crtc@PLT
	cmp	DWORD PTR [rax], 8
	jg	.L9
.L2:
	mov	rdi, QWORD PTR HDMI_ACR_PACKET_CONTROL[rip]
	mov	esi, DWORD PTR HDMI_ACR_SOURCE[rip]
	or	esi, DWORD PTR HDMI_ACR_AUTO_SEND[rip]
	add	rdi, rbx
	call	WREG32@PLT
.L3:
	mov	edi, DWORD PTR 20[rbp]
	call	HDMI_ACR_CTS_32@PLT
	mov	rdi, QWORD PTR HDMI_ACR_32_0[rip]
	mov	esi, eax
	add	rdi, rbx
	call	WREG32@PLT
	mov	rdi, QWORD PTR HDMI_ACR_32_1[rip]
	mov	esi, DWORD PTR 0[rbp]
	add	rdi, rbx
	call	WREG32@PLT
	mov	edi, DWORD PTR 16[rbp]
	call	HDMI_ACR_CTS_44@PLT
	mov	rdi, QWORD PTR HDMI_ACR_44_0[rip]
	mov	esi, eax
	add	rdi, rbx
	call	WREG32@PLT
	mov	rdi, QWORD PTR HDMI_ACR_44_1[rip]
	mov	esi, DWORD PTR 4[rbp]
	add	rdi, rbx
	call	WREG32@PLT
	mov	edi, DWORD PTR 12[rbp]
	call	HDMI_ACR_CTS_48@PLT
	mov	rdi, QWORD PTR HDMI_ACR_48_0[rip]
	mov	esi, eax
	add	rdi, rbx
	call	WREG32@PLT
	add	rbx, QWORD PTR HDMI_ACR_48_1[rip]
	mov	esi, DWORD PTR 8[rbp]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbx
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	WREG32@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rdi, QWORD PTR HDMI_ACR_PACKET_CONTROL[rip]
	mov	esi, DWORD PTR HDMI_ACR_AUTO_SEND[rip]
	add	rdi, rbx
	call	WREG32@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	evergreen_hdmi_update_acr, .-evergreen_hdmi_update_acr
	.comm	HDMI_ACR_SOURCE,4,4
	.comm	HDMI_ACR_PACKET_CONTROL,8,8
	.comm	HDMI_ACR_AUTO_SEND,4,4
	.comm	HDMI_ACR_48_1,8,8
	.comm	HDMI_ACR_48_0,8,8
	.comm	HDMI_ACR_44_1,8,8
	.comm	HDMI_ACR_44_0,8,8
	.comm	HDMI_ACR_32_1,8,8
	.comm	HDMI_ACR_32_0,8,8
	.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_evergreen_hdmi.c_evergreen_hdmi_update_acr.c"
	.text
	.align	2
	.global	evergreen_hdmi_update_acr
	.syntax unified
	.arm
	.fpu softvfp
	.type	evergreen_hdmi_update_acr, %function
evergreen_hdmi_update_acr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r0, [r0]
	push	{r4, r5, r6, lr}
	cmp	r0, #0
	mov	r4, r1
	mov	r5, r2
	beq	.L2
	bl	to_radeon_crtc
	ldr	r3, [r0]
	cmp	r3, #8
	bgt	.L9
.L2:
	ldr	r1, .L10
	ldr	r3, .L10+4
	ldr	r2, .L10+8
	ldr	r1, [r1]
	ldr	r3, [r3]
	ldr	r0, [r2]
	orr	r1, r1, r3
	add	r0, r4, r0
	bl	WREG32
.L3:
	ldr	r3, .L10+12
	ldr	r0, [r5, #20]
	ldr	r6, [r3]
	bl	HDMI_ACR_CTS_32
	add	r6, r4, r6
	mov	r1, r0
	mov	r0, r6
	bl	WREG32
	ldr	r3, .L10+16
	ldr	r1, [r5]
	ldr	r0, [r3]
	add	r0, r4, r0
	bl	WREG32
	ldr	r3, .L10+20
	ldr	r0, [r5, #16]
	ldr	r6, [r3]
	bl	HDMI_ACR_CTS_44
	add	r6, r4, r6
	mov	r1, r0
	mov	r0, r6
	bl	WREG32
	ldr	r3, .L10+24
	ldr	r1, [r5, #4]
	ldr	r0, [r3]
	add	r0, r4, r0
	bl	WREG32
	ldr	r3, .L10+28
	ldr	r0, [r5, #12]
	ldr	r6, [r3]
	bl	HDMI_ACR_CTS_48
	add	r6, r4, r6
	mov	r1, r0
	mov	r0, r6
	bl	WREG32
	ldr	r3, .L10+32
	ldr	r1, [r5, #8]
	ldr	r0, [r3]
	add	r0, r4, r0
	pop	{r4, r5, r6, lr}
	b	WREG32
.L9:
	ldr	r2, .L10+8
	ldr	r3, .L10+4
	ldr	r0, [r2]
	ldr	r1, [r3]
	add	r0, r4, r0
	bl	WREG32
	b	.L3
.L11:
	.align	2
.L10:
	.word	HDMI_ACR_SOURCE
	.word	HDMI_ACR_AUTO_SEND
	.word	HDMI_ACR_PACKET_CONTROL
	.word	HDMI_ACR_32_0
	.word	HDMI_ACR_32_1
	.word	HDMI_ACR_44_0
	.word	HDMI_ACR_44_1
	.word	HDMI_ACR_48_0
	.word	HDMI_ACR_48_1
	.size	evergreen_hdmi_update_acr, .-evergreen_hdmi_update_acr
	.comm	HDMI_ACR_SOURCE,4,4
	.comm	HDMI_ACR_PACKET_CONTROL,4,4
	.comm	HDMI_ACR_AUTO_SEND,4,4
	.comm	HDMI_ACR_48_1,4,4
	.comm	HDMI_ACR_48_0,4,4
	.comm	HDMI_ACR_44_1,4,4
	.comm	HDMI_ACR_44_0,4,4
	.comm	HDMI_ACR_32_1,4,4
	.comm	HDMI_ACR_32_0,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
