	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function icl_dpll_write
_icl_dpll_write:                        ## @icl_dpll_write
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rsi), %rax
	movl	(%rax), %r12d
	callq	_INTEL_GEN
	cmpl	$12, %eax
	jl	LBB0_2
## %bb.1:
	movl	%r12d, %edi
	callq	_TGL_DPLL_CFGCR0
	movl	%eax, %r15d
	movl	%r12d, %edi
	callq	_TGL_DPLL_CFGCR1
	jmp	LBB0_7
LBB0_2:
	movq	%rbx, %rdi
	callq	_IS_ELKHARTLAKE
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	_DPLL_ID_EHL_DPLL4@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_5
## %bb.4:
	movl	$4, %edi
	callq	_ICL_DPLL_CFGCR0
	movl	%eax, %r15d
	movl	$4, %edi
	jmp	LBB0_6
LBB0_5:
	movl	%r12d, %edi
	callq	_ICL_DPLL_CFGCR0
	movl	%eax, %r15d
	movl	%r12d, %edi
LBB0_6:
	callq	_ICL_DPLL_CFGCR1
LBB0_7:
	movl	%eax, %ebx
	movl	12(%r14), %esi
	movl	%r15d, %edi
	callq	_I915_WRITE
	movl	8(%r14), %esi
	movl	%ebx, %edi
	callq	_I915_WRITE
	movl	%ebx, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_POSTING_READ                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DPLL_ID_EHL_DPLL4,4,2          ## @DPLL_ID_EHL_DPLL4
	.no_dead_strip	_icl_dpll_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function icl_dpll_write
_icl_dpll_write:                        ; @icl_dpll_write
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x21, x0
	ldr	x8, [x1]
	ldr	w20, [x8]
	bl	_INTEL_GEN
	cmp	w0, #12
	b.lt	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_TGL_DPLL_CFGCR0
	mov	x21, x0
	mov	x0, x20
	bl	_TGL_DPLL_CFGCR1
	b	LBB0_7
LBB0_2:
	mov	x0, x21
	bl	_IS_ELKHARTLAKE
	cbz	x0, LBB0_5
; %bb.3:
Lloh0:
	adrp	x8, _DPLL_ID_EHL_DPLL4@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DPLL_ID_EHL_DPLL4@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ne	LBB0_5
; %bb.4:
	mov	w0, #4
	bl	_ICL_DPLL_CFGCR0
	mov	x21, x0
	mov	w0, #4
	b	LBB0_6
LBB0_5:
	mov	x0, x20
	bl	_ICL_DPLL_CFGCR0
	mov	x21, x0
	mov	x0, x20
LBB0_6:
	bl	_ICL_DPLL_CFGCR1
LBB0_7:
	mov	x20, x0
	ldr	w1, [x19, #12]
	mov	x0, x21
	bl	_I915_WRITE
	ldr	w1, [x19, #8]
	mov	x0, x20
	bl	_I915_WRITE
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_POSTING_READ
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DPLL_ID_EHL_DPLL4,4,2          ; @DPLL_ID_EHL_DPLL4
	.no_dead_strip	_icl_dpll_write
.subsections_via_symbols
