	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_disable_ddi
_intel_disable_ddi:                     ## @intel_disable_ddi
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rdi
	callq	_to_intel_crtc
	movl	(%rax), %r14d
	movl	(%rbx), %eax
	movq	_INTEL_OUTPUT_EDP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_enc_to_intel_dp
	movq	%rax, %rdi
	callq	_ironlake_edp_backlight_off
LBB0_2:
	movq	_HSW_AUD_PIN_ELD_CP_VLD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_I915_READ
	movq	_AUDIO_OUTPUT_ENABLE_A@GOTPCREL(%rip), %rcx
	movq	_AUDIO_ELD_VALID_A@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	shll	$2, %r14d
	movl	%r14d, %ecx
	shll	%cl, %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_INTEL_OUTPUT_EDP,4,2           ## @INTEL_OUTPUT_EDP
	.comm	_HSW_AUD_PIN_ELD_CP_VLD,4,2     ## @HSW_AUD_PIN_ELD_CP_VLD
	.comm	_AUDIO_OUTPUT_ENABLE_A,4,2      ## @AUDIO_OUTPUT_ENABLE_A
	.comm	_AUDIO_ELD_VALID_A,4,2          ## @AUDIO_ELD_VALID_A
	.no_dead_strip	_intel_disable_ddi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_disable_ddi
_intel_disable_ddi:                     ; @intel_disable_ddi
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x0, [x0, #16]
	bl	_to_intel_crtc
	ldr	w20, [x0]
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _INTEL_OUTPUT_EDP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INTEL_OUTPUT_EDP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
	add	x0, x19, #8
	bl	_enc_to_intel_dp
	bl	_ironlake_edp_backlight_off
LBB0_2:
Lloh3:
	adrp	x19, _HSW_AUD_PIN_ELD_CP_VLD@GOTPAGE
Lloh4:
	ldr	x19, [x19, _HSW_AUD_PIN_ELD_CP_VLD@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_I915_READ
Lloh5:
	adrp	x8, _AUDIO_OUTPUT_ENABLE_A@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AUDIO_OUTPUT_ENABLE_A@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _AUDIO_ELD_VALID_A@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AUDIO_ELD_VALID_A@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
	lsl	w9, w20, #2
	lsl	w8, w8, w9
	bic	w1, w0, w8
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_I915_WRITE
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_INTEL_OUTPUT_EDP,4,2           ; @INTEL_OUTPUT_EDP
	.comm	_HSW_AUD_PIN_ELD_CP_VLD,4,2     ; @HSW_AUD_PIN_ELD_CP_VLD
	.comm	_AUDIO_OUTPUT_ENABLE_A,4,2      ; @AUDIO_OUTPUT_ENABLE_A
	.comm	_AUDIO_ELD_VALID_A,4,2          ; @AUDIO_ELD_VALID_A
	.no_dead_strip	_intel_disable_ddi
.subsections_via_symbols
