	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ironlake_enable_pch_transcoder
_ironlake_enable_pch_transcoder:        ## @ironlake_enable_pch_transcoder
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	callq	_to_intel_crtc
	movq	%rax, %r14
	movl	4(%rax), %edi
	callq	_to_i915
	movq	%rax, %r13
	movl	(%r14), %r14d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %esi
	movq	%rax, %rdi
	callq	_assert_shared_dpll_enabled
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_assert_fdi_tx_enabled
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_assert_fdi_rx_enabled
	movq	%r13, %rdi
	callq	_HAS_PCH_CPT
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	%r14d, %edi
	callq	_TRANS_CHICKEN2
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_I915_READ
	movq	_TRANS_CHICKEN2_TIMING_OVERRIDE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
LBB0_2:
	movl	%r14d, %edi
	callq	_PCH_TRANSCONF
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_PIPECONF
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, %r15d
	movq	%r13, %rdi
	callq	_HAS_PCH_IBX
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	_PIPECONF_BPC_MASK@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	notl	%eax
	andl	%eax, %ebx
	movq	_INTEL_OUTPUT_HDMI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_intel_crtc_has_type
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_PIPECONF_8BPC@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	jmp	LBB0_6
LBB0_5:
	movl	(%r12), %eax
	andl	%r15d, %eax
	orl	%eax, %ebx
LBB0_6:
	movq	_PIPECONF_INTERLACE_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	movq	_TRANS_INTERLACE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	notl	%r12d
	andl	%ebx, %r12d
	movq	_PIPECONF_INTERLACED_ILK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_7
## %bb.8:
	movq	%r13, %rdi
	callq	_HAS_PCH_IBX
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	_INTEL_OUTPUT_SDVO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_intel_crtc_has_type
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_TRANS_LEGACY_INTERLACED_ILK@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_7:
	movq	_TRANS_PROGRESSIVE@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	movq	_TRANS_INTERLACED@GOTPCREL(%rip), %rax
LBB0_12:
	orl	(%rax), %r12d
	movq	_TRANS_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	movl	%r12d, %esi
	callq	_I915_WRITE
	movq	_TRANS_STATE_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	$100, %ecx
	callq	_intel_de_wait_for_set
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movl	%r14d, %edi
	callq	_pipe_name
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_ERROR                      ## TAILCALL
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRANS_CHICKEN2_TIMING_OVERRIDE,4,2 ## @TRANS_CHICKEN2_TIMING_OVERRIDE
	.comm	_PIPECONF_BPC_MASK,4,2          ## @PIPECONF_BPC_MASK
	.comm	_INTEL_OUTPUT_HDMI,4,2          ## @INTEL_OUTPUT_HDMI
	.comm	_PIPECONF_8BPC,4,2              ## @PIPECONF_8BPC
	.comm	_TRANS_INTERLACE_MASK,4,2       ## @TRANS_INTERLACE_MASK
	.comm	_PIPECONF_INTERLACE_MASK,4,2    ## @PIPECONF_INTERLACE_MASK
	.comm	_PIPECONF_INTERLACED_ILK,4,2    ## @PIPECONF_INTERLACED_ILK
	.comm	_INTEL_OUTPUT_SDVO,4,2          ## @INTEL_OUTPUT_SDVO
	.comm	_TRANS_LEGACY_INTERLACED_ILK,4,2 ## @TRANS_LEGACY_INTERLACED_ILK
	.comm	_TRANS_INTERLACED,4,2           ## @TRANS_INTERLACED
	.comm	_TRANS_PROGRESSIVE,4,2          ## @TRANS_PROGRESSIVE
	.comm	_TRANS_ENABLE,4,2               ## @TRANS_ENABLE
	.comm	_TRANS_STATE_ENABLE,4,2         ## @TRANS_STATE_ENABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to enable transcoder %c\n"

	.no_dead_strip	_ironlake_enable_pch_transcoder
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ironlake_enable_pch_transcoder
_ironlake_enable_pch_transcoder:        ; @ironlake_enable_pch_transcoder
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x0
	ldr	w0, [x0, #4]
	bl	_to_intel_crtc
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_to_i915
	mov	x20, x0
	ldr	w19, [x19]
	ldr	w1, [x21]
	bl	_assert_shared_dpll_enabled
	mov	x0, x20
	mov	x1, x19
	bl	_assert_fdi_tx_enabled
	mov	x0, x20
	mov	x1, x19
	bl	_assert_fdi_rx_enabled
	mov	x0, x20
	bl	_HAS_PCH_CPT
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_TRANS_CHICKEN2
	mov	x22, x0
	bl	_I915_READ
Lloh0:
	adrp	x8, _TRANS_CHICKEN2_TIMING_OVERRIDE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRANS_CHICKEN2_TIMING_OVERRIDE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w1, w8, w0
	mov	x0, x22
	bl	_I915_WRITE
LBB0_2:
	mov	x0, x19
	bl	_PCH_TRANSCONF
	mov	x22, x0
	bl	_I915_READ
	mov	x24, x0
	mov	x0, x19
	bl	_PIPECONF
	bl	_I915_READ
	mov	x23, x0
	mov	x0, x20
	bl	_HAS_PCH_IBX
	cbz	x0, LBB0_7
; %bb.3:
Lloh3:
	adrp	x25, _PIPECONF_BPC_MASK@GOTPAGE
Lloh4:
	ldr	x25, [x25, _PIPECONF_BPC_MASK@GOTPAGEOFF]
	ldr	w8, [x25]
	bic	w24, w24, w8
Lloh5:
	adrp	x8, _INTEL_OUTPUT_HDMI@GOTPAGE
Lloh6:
	ldr	x8, [x8, _INTEL_OUTPUT_HDMI@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_intel_crtc_has_type
	cbz	x0, LBB0_5
; %bb.4:
Lloh8:
	adrp	x8, _PIPECONF_8BPC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PIPECONF_8BPC@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	b	LBB0_6
LBB0_5:
	ldr	w8, [x25]
	and	w8, w8, w23
LBB0_6:
	orr	w24, w8, w24
LBB0_7:
Lloh11:
	adrp	x8, _TRANS_INTERLACE_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TRANS_INTERLACE_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	bic	w24, w24, w8
Lloh14:
	adrp	x8, _PIPECONF_INTERLACE_MASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PIPECONF_INTERLACE_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	and	w8, w8, w23
Lloh17:
	adrp	x9, _PIPECONF_INTERLACED_ILK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _PIPECONF_INTERLACED_ILK@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.8:
	mov	x0, x20
	bl	_HAS_PCH_IBX
	cbz	x0, LBB0_12
; %bb.9:
Lloh20:
	adrp	x8, _INTEL_OUTPUT_SDVO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _INTEL_OUTPUT_SDVO@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_intel_crtc_has_type
	cbz	x0, LBB0_12
; %bb.10:
Lloh23:
	adrp	x8, _TRANS_LEGACY_INTERLACED_ILK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TRANS_LEGACY_INTERLACED_ILK@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
Lloh25:
	adrp	x8, _TRANS_PROGRESSIVE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _TRANS_PROGRESSIVE@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh27:
	adrp	x8, _TRANS_INTERLACED@GOTPAGE
Lloh28:
	ldr	x8, [x8, _TRANS_INTERLACED@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	orr	w8, w8, w24
Lloh29:
	adrp	x9, _TRANS_ENABLE@GOTPAGE
Lloh30:
	ldr	x9, [x9, _TRANS_ENABLE@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x22
	bl	_I915_WRITE
Lloh32:
	adrp	x8, _TRANS_STATE_ENABLE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _TRANS_STATE_ENABLE@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x22
	mov	w3, #100
	bl	_intel_de_wait_for_set
	cbz	x0, LBB0_15
; %bb.14:
	mov	x0, x19
	bl	_pipe_name
	mov	x1, x0
Lloh35:
	adrp	x0, l_.str@PAGE
Lloh36:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_DRM_ERROR
LBB0_15:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_TRANS_CHICKEN2_TIMING_OVERRIDE,4,2 ; @TRANS_CHICKEN2_TIMING_OVERRIDE
	.comm	_PIPECONF_BPC_MASK,4,2          ; @PIPECONF_BPC_MASK
	.comm	_INTEL_OUTPUT_HDMI,4,2          ; @INTEL_OUTPUT_HDMI
	.comm	_PIPECONF_8BPC,4,2              ; @PIPECONF_8BPC
	.comm	_TRANS_INTERLACE_MASK,4,2       ; @TRANS_INTERLACE_MASK
	.comm	_PIPECONF_INTERLACE_MASK,4,2    ; @PIPECONF_INTERLACE_MASK
	.comm	_PIPECONF_INTERLACED_ILK,4,2    ; @PIPECONF_INTERLACED_ILK
	.comm	_INTEL_OUTPUT_SDVO,4,2          ; @INTEL_OUTPUT_SDVO
	.comm	_TRANS_LEGACY_INTERLACED_ILK,4,2 ; @TRANS_LEGACY_INTERLACED_ILK
	.comm	_TRANS_INTERLACED,4,2           ; @TRANS_INTERLACED
	.comm	_TRANS_PROGRESSIVE,4,2          ; @TRANS_PROGRESSIVE
	.comm	_TRANS_ENABLE,4,2               ; @TRANS_ENABLE
	.comm	_TRANS_STATE_ENABLE,4,2         ; @TRANS_STATE_ENABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to enable transcoder %c\n"

	.no_dead_strip	_ironlake_enable_pch_transcoder
.subsections_via_symbols
