	.file	"extr_intel_cdclk.c_bxt_init_cdclk.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bxt_init_cdclk, @function
bxt_init_cdclk:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	sub	rsp, 32
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	bxt_sanitize_cdclk@PLT
	cmp	QWORD PTR 0[rbp], 0
	je	.L2
	cmp	QWORD PTR 8[rbp], 0
	jne	.L1
.L2:
	movdqu	xmm0, XMMWORD PTR 0[rbp]
	mov	rax, QWORD PTR 16[rbp]
	mov	rdi, rbp
	mov	QWORD PTR 16[rsp], rax
	movaps	XMMWORD PTR [rsp], xmm0
	call	IS_GEMINILAKE@PLT
	xor	edi, edi
	test	rax, rax
	jne	.L9
	call	bxt_calc_cdclk@PLT
	mov	rdi, rbp
	mov	rsi, rax
	mov	QWORD PTR [rsp], rax
	call	bxt_de_pll_vco@PLT
	mov	QWORD PTR 8[rsp], rax
.L5:
	mov	rdi, QWORD PTR [rsp]
	call	bxt_calc_voltage_level@PLT
	mov	edx, DWORD PTR INVALID_PIPE[rip]
	mov	rsi, rsp
	mov	rdi, rbp
	mov	DWORD PTR 16[rsp], eax
	call	bxt_set_cdclk@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	call	glk_calc_cdclk@PLT
	mov	rdi, rbp
	mov	rsi, rax
	mov	QWORD PTR [rsp], rax
	call	glk_de_pll_vco@PLT
	mov	QWORD PTR 8[rsp], rax
	jmp	.L5
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	bxt_init_cdclk, .-bxt_init_cdclk
	.comm	INVALID_PIPE,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_cdclk.c_bxt_init_cdclk.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bxt_init_cdclk, %function
bxt_init_cdclk:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r4, r0
	ldr	r3, .L17
	sub	sp, sp, #20
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	bxt_sanitize_cdclk
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [r4, #4]
	cmp	r3, #0
	bne	.L1
.L2:
	ldm	r4, {r0, r1, r2}
	mov	r5, sp
	stm	r5, {r0, r1, r2}
	mov	r0, r4
	bl	IS_GEMINILAKE
	cmp	r0, #0
	bne	.L15
	bl	bxt_calc_cdclk
	mov	r1, r0
	mov	r0, r4
	str	r1, [sp]
	bl	bxt_de_pll_vco
	str	r0, [sp, #4]
.L5:
	ldr	r0, [sp]
	bl	bxt_calc_voltage_level
	mov	r3, r0
	ldr	r2, .L17+4
	mov	r1, r5
	mov	r0, r4
	ldr	r2, [r2]
	str	r3, [sp, #8]
	bl	bxt_set_cdclk
.L1:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L15:
	mov	r0, #0
	bl	glk_calc_cdclk
	mov	r1, r0
	mov	r0, r4
	str	r1, [sp]
	bl	glk_de_pll_vco
	str	r0, [sp, #4]
	b	.L5
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	INVALID_PIPE
	.size	bxt_init_cdclk, .-bxt_init_cdclk
	.comm	INVALID_PIPE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
