	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_ddi_disable_transcoder_func ## -- Begin function intel_ddi_disable_transcoder_func
	.p2align	4, 0x90
_intel_ddi_disable_transcoder_func:     ## @intel_ddi_disable_transcoder_func
	.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, %r14
	movl	4(%rdi), %edi
	callq	_to_intel_crtc
	movl	(%rax), %edi
	callq	_to_i915
	movq	%rax, %r15
	movl	(%r14), %edi
	callq	_TRANS_DDI_FUNC_CTL
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_INTEL_GEN
	movq	_TRANS_DDI_FUNC_ENABLE@GOTPCREL(%rip), %rcx
	cmpl	$12, %eax
	jl	LBB0_1
## %bb.2:
	movq	_TGL_TRANS_DDI_PORT_MASK@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_TRANS_DDI_PORT_MASK@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_TRANS_DDI_DP_VC_PAYLOAD_ALLOC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	notl	%eax
	andl	%eax, %ebx
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movq	_QUIRK_INCREASE_DDI_DISABLED_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_5
## %bb.4:
	movq	_INTEL_OUTPUT_HDMI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_intel_crtc_has_type
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	movl	$100, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_msleep                         ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRANS_DDI_FUNC_ENABLE,4,2      ## @TRANS_DDI_FUNC_ENABLE
	.comm	_TGL_TRANS_DDI_PORT_MASK,4,2    ## @TGL_TRANS_DDI_PORT_MASK
	.comm	_TRANS_DDI_DP_VC_PAYLOAD_ALLOC,4,2 ## @TRANS_DDI_DP_VC_PAYLOAD_ALLOC
	.comm	_TRANS_DDI_PORT_MASK,4,2        ## @TRANS_DDI_PORT_MASK
	.comm	_QUIRK_INCREASE_DDI_DISABLED_TIME,4,2 ## @QUIRK_INCREASE_DDI_DISABLED_TIME
	.comm	_INTEL_OUTPUT_HDMI,4,2          ## @INTEL_OUTPUT_HDMI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Quirk Increase DDI disabled time\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_ddi_disable_transcoder_func ; -- Begin function intel_ddi_disable_transcoder_func
	.p2align	2
_intel_ddi_disable_transcoder_func:     ; @intel_ddi_disable_transcoder_func
	.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_intel_crtc
	ldr	w0, [x0]
	bl	_to_i915
	mov	x20, x0
	ldr	w0, [x19]
	bl	_TRANS_DDI_FUNC_CTL
	mov	x21, x0
	bl	_I915_READ
	mov	x22, x0
	mov	x0, x20
	bl	_INTEL_GEN
Lloh0:
	adrp	x8, _TRANS_DDI_FUNC_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRANS_DDI_FUNC_ENABLE@GOTPAGEOFF]
Lloh2:
	adrp	x9, _TGL_TRANS_DDI_PORT_MASK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TGL_TRANS_DDI_PORT_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x10, _TRANS_DDI_PORT_MASK@GOTPAGE
Lloh6:
	ldr	x10, [x10, _TRANS_DDI_PORT_MASK@GOTPAGEOFF]
	cmp	w0, #11
	csel	x9, x9, x10, gt
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh7:
	adrp	x9, _TRANS_DDI_DP_VC_PAYLOAD_ALLOC@GOTPAGE
Lloh8:
	ldr	x9, [x9, _TRANS_DDI_DP_VC_PAYLOAD_ALLOC@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w1, w22, w8
	mov	x0, x21
	bl	_I915_WRITE
	ldr	w8, [x20]
Lloh10:
	adrp	x9, _QUIRK_INCREASE_DDI_DISABLED_TIME@GOTPAGE
Lloh11:
	ldr	x9, [x9, _QUIRK_INCREASE_DDI_DISABLED_TIME@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
Lloh13:
	adrp	x8, _INTEL_OUTPUT_HDMI@GOTPAGE
Lloh14:
	ldr	x8, [x8, _INTEL_OUTPUT_HDMI@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_intel_crtc_has_type
	cbz	x0, LBB0_3
; %bb.2:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	w0, #100
	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	_msleep
LBB0_3:
	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	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_TRANS_DDI_FUNC_ENABLE,4,2      ; @TRANS_DDI_FUNC_ENABLE
	.comm	_TGL_TRANS_DDI_PORT_MASK,4,2    ; @TGL_TRANS_DDI_PORT_MASK
	.comm	_TRANS_DDI_DP_VC_PAYLOAD_ALLOC,4,2 ; @TRANS_DDI_DP_VC_PAYLOAD_ALLOC
	.comm	_TRANS_DDI_PORT_MASK,4,2        ; @TRANS_DDI_PORT_MASK
	.comm	_QUIRK_INCREASE_DDI_DISABLED_TIME,4,2 ; @QUIRK_INCREASE_DDI_DISABLED_TIME
	.comm	_INTEL_OUTPUT_HDMI,4,2          ; @INTEL_OUTPUT_HDMI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Quirk Increase DDI disabled time\n"

.subsections_via_symbols
