	.file	"extr_dce_v10_0.c_dce_v10_0_crtc_mode_set.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dce_v10_0_crtc_mode_set, @function
dce_v10_0_crtc_mode_set:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, r8d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, ecx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, r9
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	to_amdgpu_crtc@PLT
	mov	edx, DWORD PTR 4[rax]
	test	edx, edx
	jne	.L2
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rsi, rbx
	mov	rdi, rbp
	mov	QWORD PTR 8[rsp], rax
	call	amdgpu_atombios_crtc_set_pll@PLT
	mov	rsi, rbx
	mov	rdi, rbp
	call	amdgpu_atombios_crtc_set_dtd_timing@PLT
	mov	ecx, r15d
	xor	r8d, r8d
	mov	edx, r14d
	mov	rsi, r13
	mov	rdi, rbp
	call	dce_v10_0_crtc_do_set_base@PLT
	mov	rdx, rbx
	mov	rsi, r12
	mov	rdi, rbp
	call	amdgpu_atombios_crtc_overscan_setup@PLT
	mov	rdi, rbp
	call	amdgpu_atombios_crtc_scaler_setup@PLT
	mov	rdi, rbp
	call	dce_v10_0_cursor_reset@PLT
	mov	eax, DWORD PTR [rbx]
	mov	r9, QWORD PTR 8[rsp]
	mov	DWORD PTR [r9], eax
	add	rsp, 24
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	dce_v10_0_crtc_mode_set, .-dce_v10_0_crtc_mode_set
	.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_dce_v10_0.c_dce_v10_0_crtc_mode_set.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dce_v10_0_crtc_mode_set, %function
dce_v10_0_crtc_mode_set:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	sub	sp, sp, #12
	mov	r9, r3
	mov	r8, r1
	mov	r5, r2
	mov	r4, r0
	bl	to_amdgpu_crtc
	ldr	r3, [r0, #4]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L6
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L2:
	mov	r7, #0
	mov	r6, r0
	mov	r1, r5
	mov	r0, r4
	bl	amdgpu_atombios_crtc_set_pll
	mov	r1, r5
	mov	r0, r4
	bl	amdgpu_atombios_crtc_set_dtd_timing
	ldr	r3, [sp, #40]
	mov	r2, r9
	ldr	r1, [sp, #44]
	mov	r0, r4
	str	r7, [sp]
	bl	dce_v10_0_crtc_do_set_base
	mov	r2, r5
	mov	r1, r8
	mov	r0, r4
	bl	amdgpu_atombios_crtc_overscan_setup
	mov	r0, r4
	bl	amdgpu_atombios_crtc_scaler_setup
	mov	r0, r4
	bl	dce_v10_0_cursor_reset
	mov	r0, r7
	ldr	r3, [r5]
	str	r3, [r6]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L7:
	.align	2
.L6:
	.word	EINVAL
	.size	dce_v10_0_crtc_mode_set, .-dce_v10_0_crtc_mode_set
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
