	.file	"extr_intel_dpll_mgr.c_bxt_get_dpll.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"[CRTC:%d:%s] using pre-allocated %s\n"
	.text
	.p2align 4
	.type	bxt_get_dpll, @function
bxt_get_dpll:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	intel_atomic_get_new_crtc_state@PLT
	mov	edi, DWORD PTR 8[rbp]
	mov	rbx, rax
	call	to_i915@PLT
	mov	esi, DWORD PTR INTEL_OUTPUT_HDMI[rip]
	mov	rdi, rbx
	mov	r14, rax
	call	intel_crtc_has_type@PLT
	test	rax, rax
	je	.L5
	mov	rdi, rbx
	call	bxt_ddi_hdmi_set_dpll_hw_state@PLT
	test	eax, eax
	je	.L7
.L5:
	mov	rdi, rbx
	call	intel_crtc_has_dp_encoder@PLT
	test	rax, rax
	jne	.L3
.L4:
	mov	rsi, QWORD PTR 0[r13]
	mov	rdi, r14
	call	intel_get_shared_dpll_by_id@PLT
	mov	esi, DWORD PTR 4[rbp]
	mov	edx, DWORD PTR 0[rbp]
	lea	rdi, .LC0[rip]
	mov	r13, rax
	mov	rax, QWORD PTR [rax]
	mov	ecx, DWORD PTR [rax]
	call	DRM_DEBUG_KMS@PLT
	lea	rcx, 8[rbx]
	mov	rdx, r13
	mov	rsi, rbp
	mov	rdi, r12
	call	intel_reference_shared_dpll@PLT
	mov	QWORD PTR [rbx], r13
	mov	eax, 1
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rdi, rbx
	call	bxt_ddi_dp_set_dpll_hw_state@PLT
	test	eax, eax
	jne	.L4
.L7:
	pop	rbx
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	bxt_get_dpll, .-bxt_get_dpll
	.comm	INTEL_OUTPUT_HDMI,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_intel_dpll_mgr.c_bxt_get_dpll.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"[CRTC:%d:%s] using pre-allocated %s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bxt_get_dpll, %function
bxt_get_dpll:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	mov	r8, r2
	mov	r7, r0
	bl	intel_atomic_get_new_crtc_state
	mov	r4, r0
	ldr	r0, [r5, #8]
	bl	to_i915
	ldr	r2, .L13
	mov	r6, r0
	ldr	r1, [r2]
	mov	r0, r4
	bl	intel_crtc_has_type
	cmp	r0, #0
	beq	.L5
	mov	r0, r4
	bl	bxt_ddi_hdmi_set_dpll_hw_state
	cmp	r0, #0
	beq	.L7
.L5:
	mov	r0, r4
	bl	intel_crtc_has_dp_encoder
	cmp	r0, #0
	beq	.L4
	mov	r0, r4
	bl	bxt_ddi_dp_set_dpll_hw_state
	cmp	r0, #0
	beq	.L7
.L4:
	ldr	r1, [r8]
	mov	r0, r6
	bl	intel_get_shared_dpll_by_id
	mov	r6, r0
	ldr	r3, [r0]
	ldr	r2, [r5]
	ldr	r1, [r5, #4]
	ldr	r3, [r3]
	ldr	r0, .L13+4
	bl	DRM_DEBUG_KMS
	mov	r1, r5
	mov	r0, r7
	mov	r2, r6
	add	r3, r4, #4
	bl	intel_reference_shared_dpll
	mov	r0, #1
	str	r6, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	.align	2
.L13:
	.word	INTEL_OUTPUT_HDMI
	.word	.LC0
	.size	bxt_get_dpll, .-bxt_get_dpll
	.comm	INTEL_OUTPUT_HDMI,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
