	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_ddi_clk_disable
_intel_ddi_clk_disable:                 ## @intel_ddi_clk_disable
	.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	%rdi, %rbx
	movl	4(%rdi), %edi
	callq	_to_i915
	movq	%rax, %r12
	movl	(%rbx), %r14d
	movq	%rax, %rdi
	movl	%r14d, %esi
	callq	_intel_port_to_phy
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_INTEL_GEN
	movq	%r12, %rdi
	cmpl	$11, %eax
	jl	LBB0_7
## %bb.1:
	movl	%r15d, %esi
	callq	_intel_phy_is_combo
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movq	%r12, %rdi
	callq	_IS_ELKHARTLAKE
	testq	%rax, %rax
	je	LBB0_14
## %bb.3:
	movq	_PORT_C@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jb	LBB0_14
LBB0_4:
	movl	%r14d, %edi
	callq	_DDI_CLK_SEL
	movq	_DDI_CLK_SEL_NONE@GOTPCREL(%rip), %rcx
LBB0_5:
	movl	(%rcx), %esi
	movl	%eax, %edi
	jmp	LBB0_6
LBB0_7:
	callq	_IS_CANNONLAKE
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	_DPCLKA_CFGCR0@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r15d, %edi
	callq	_I915_READ
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_DPCLKA_CFGCR0_DDI_CLK_OFF
	jmp	LBB0_9
LBB0_10:
	movq	%r12, %rdi
	callq	_IS_GEN9_BC
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_DPLL_CTRL2@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r15d, %edi
	callq	_I915_READ
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_DPLL_CTRL2_DDI_CLK_OFF
LBB0_9:
	orl	%eax, %ebx
	movl	%r15d, %edi
	movl	%ebx, %esi
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
LBB0_12:
	movq	%r12, %rdi
	callq	_INTEL_GEN
	cmpl	$8, %eax
	jg	LBB0_14
## %bb.13:
	movl	%r14d, %edi
	callq	_PORT_CLK_SEL
	movq	_PORT_CLK_SEL_NONE@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_14:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PORT_C,4,2                     ## @PORT_C
	.comm	_DDI_CLK_SEL_NONE,4,2           ## @DDI_CLK_SEL_NONE
	.comm	_DPCLKA_CFGCR0,4,2              ## @DPCLKA_CFGCR0
	.comm	_DPLL_CTRL2,4,2                 ## @DPLL_CTRL2
	.comm	_PORT_CLK_SEL_NONE,4,2          ## @PORT_CLK_SEL_NONE
	.no_dead_strip	_intel_ddi_clk_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_ddi_clk_disable
_intel_ddi_clk_disable:                 ; @intel_ddi_clk_disable
	.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, x0
	ldr	w0, [x0, #4]
	bl	_to_i915
	mov	x20, x0
	ldr	w19, [x19]
	mov	x1, x19
	bl	_intel_port_to_phy
	mov	x21, x0
	mov	x0, x20
	bl	_INTEL_GEN
	cmp	w0, #11
	b.lt	LBB0_6
; %bb.1:
	mov	x0, x20
	mov	x1, x21
	bl	_intel_phy_is_combo
	cbz	w0, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_IS_ELKHARTLAKE
	cbz	x0, LBB0_14
; %bb.3:
Lloh0:
	adrp	x8, _PORT_C@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PORT_C@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w19, w8
	b.lo	LBB0_14
LBB0_4:
	mov	x0, x19
	bl	_DDI_CLK_SEL
Lloh3:
	adrp	x8, _DDI_CLK_SEL_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DDI_CLK_SEL_NONE@GOTPAGEOFF]
LBB0_5:
	ldr	w1, [x8]
	b	LBB0_11
LBB0_6:
	mov	x0, x20
	bl	_IS_CANNONLAKE
	cbz	x0, LBB0_8
; %bb.7:
Lloh5:
	adrp	x8, _DPCLKA_CFGCR0@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DPCLKA_CFGCR0@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_I915_READ
	mov	x21, x0
	mov	x0, x19
	bl	_DPCLKA_CFGCR0_DDI_CLK_OFF
	b	LBB0_10
LBB0_8:
	mov	x0, x20
	bl	_IS_GEN9_BC
	cbz	x0, LBB0_12
; %bb.9:
Lloh8:
	adrp	x8, _DPLL_CTRL2@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DPLL_CTRL2@GOTPAGEOFF]
Lloh10:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_I915_READ
	mov	x21, x0
	mov	x0, x19
	bl	_DPLL_CTRL2_DDI_CLK_OFF
LBB0_10:
	orr	w1, w0, w21
	mov	x0, x20
LBB0_11:
	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	_I915_WRITE
LBB0_12:
	mov	x0, x20
	bl	_INTEL_GEN
	cmp	w0, #8
	b.gt	LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_PORT_CLK_SEL
Lloh11:
	adrp	x8, _PORT_CLK_SEL_NONE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PORT_CLK_SEL_NONE@GOTPAGEOFF]
	b	LBB0_5
LBB0_14:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_PORT_C,4,2                     ; @PORT_C
	.comm	_DDI_CLK_SEL_NONE,4,2           ; @DDI_CLK_SEL_NONE
	.comm	_DPCLKA_CFGCR0,4,2              ; @DPCLKA_CFGCR0
	.comm	_DPLL_CTRL2,4,2                 ; @DPLL_CTRL2
	.comm	_PORT_CLK_SEL_NONE,4,2          ; @PORT_CLK_SEL_NONE
	.no_dead_strip	_intel_ddi_clk_disable
.subsections_via_symbols
