	.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
	movl	%esi, %r15d
	movq	%rdi, %r13
	movq	16(%rdi), %rax
	movl	%esi, %ecx
	movq	(%rax,%rcx,8), %rbx
	movq	(%rdi), %r14
	movq	8(%rdi), %rax
	xorl	%edi, %edi
	cmpl	$5, (%rax)
	setl	%dil
	callq	_BUG_ON
	movq	%rbx, %rdi
	callq	_to_intel_crtc
	movl	(%rax), %r12d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_to_intel_crtc
	movq	%r13, %rdi
	movl	%r12d, %esi
	movq	%rax, %rdx
	callq	_assert_pch_pll_enabled
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_assert_fdi_tx_enabled
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_assert_fdi_rx_enabled
	movq	%r14, %rdi
	callq	_HAS_PCH_CPT
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	%r15d, %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	%r15d, %edi
	callq	_TRANSCONF
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, %r14d
	movl	%r15d, %edi
	callq	_PIPECONF
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, %r12d
	movq	(%r13), %rdi
	callq	_HAS_PCH_IBX
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_PIPECONF_BPC_MASK@GOTPCREL(%rip), %rax
	movl	%r12d, %ecx
	xorl	%r14d, %ecx
	andl	(%rax), %ecx
	xorl	%ecx, %r14d
LBB0_4:
	movq	_TRANS_INTERLACE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	notl	%ebx
	andl	%r14d, %ebx
	movq	_PIPECONF_INTERLACE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r12d, %eax
	movq	_PIPECONF_INTERLACED_ILK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.6:
	movq	(%r13), %rdi
	callq	_HAS_PCH_IBX
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	_INTEL_OUTPUT_SDVO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_intel_pipe_has_type
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_TRANS_LEGACY_INTERLACED_ILK@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_5:
	movq	_TRANS_PROGRESSIVE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_TRANS_INTERLACED@GOTPCREL(%rip), %rax
LBB0_10:
	orl	(%rax), %ebx
	movq	_TRANS_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movl	%r14d, %edi
	callq	_I915_READ
	movq	_TRANS_STATE_ENABLE@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%eax, %edi
	movl	$100, %esi
	callq	_wait_for
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_ERROR                      ## TAILCALL
LBB0_11:
	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	_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 %d\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	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x21, x0
	ldr	x8, [x0, #16]
	ldr	x20, [x8, w1, uxtw #3]
	ldp	x22, x8, [x0]
	ldr	w8, [x8]
	cmp	w8, #5
	cset	w0, lt
	bl	_BUG_ON
	mov	x0, x20
	bl	_to_intel_crtc
	ldr	w23, [x0]
	mov	x0, x20
	bl	_to_intel_crtc
	mov	x2, x0
	mov	x0, x21
	mov	x1, x23
	bl	_assert_pch_pll_enabled
	mov	x0, x21
	mov	x1, x19
	bl	_assert_fdi_tx_enabled
	mov	x0, x21
	mov	x1, x19
	bl	_assert_fdi_rx_enabled
	mov	x0, x22
	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	_TRANSCONF
	mov	x22, x0
	bl	_I915_READ
	mov	x23, x0
	mov	x0, x19
	bl	_PIPECONF
	bl	_I915_READ
	mov	x24, x0
	ldr	x0, [x21]
	bl	_HAS_PCH_IBX
	cbz	x0, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _PIPECONF_BPC_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PIPECONF_BPC_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	bic	w9, w23, w8
	and	w8, w8, w24
	orr	w23, w9, w8
LBB0_4:
Lloh6:
	adrp	x8, _TRANS_INTERLACE_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TRANS_INTERLACE_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	bic	w23, w23, w8
Lloh9:
	adrp	x8, _PIPECONF_INTERLACE_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PIPECONF_INTERLACE_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w8, w8, w24
Lloh12:
	adrp	x9, _PIPECONF_INTERLACED_ILK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PIPECONF_INTERLACED_ILK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.5:
	ldr	x0, [x21]
	bl	_HAS_PCH_IBX
	cbz	x0, LBB0_9
; %bb.6:
Lloh15:
	adrp	x8, _INTEL_OUTPUT_SDVO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _INTEL_OUTPUT_SDVO@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_intel_pipe_has_type
	cbz	x0, LBB0_9
; %bb.7:
Lloh18:
	adrp	x8, _TRANS_LEGACY_INTERLACED_ILK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TRANS_LEGACY_INTERLACED_ILK@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh20:
	adrp	x8, _TRANS_PROGRESSIVE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TRANS_PROGRESSIVE@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh22:
	adrp	x8, _TRANS_INTERLACED@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TRANS_INTERLACED@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	orr	w8, w8, w23
Lloh24:
	adrp	x9, _TRANS_ENABLE@GOTPAGE
Lloh25:
	ldr	x9, [x9, _TRANS_ENABLE@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x22
	bl	_I915_WRITE
	mov	x0, x22
	bl	_I915_READ
Lloh27:
	adrp	x8, _TRANS_STATE_ENABLE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _TRANS_STATE_ENABLE@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	and	w0, w8, w0
	mov	w1, #100
	bl	_wait_for
	cbz	x0, LBB0_12
; %bb.11:
Lloh30:
	adrp	x0, l_.str@PAGE
Lloh31:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_DRM_ERROR
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.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	_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 %d\n"

	.no_dead_strip	_ironlake_enable_pch_transcoder
.subsections_via_symbols
