	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lpt_enable_pch_transcoder
_lpt_enable_pch_transcoder:             ## @lpt_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_assert_fdi_tx_enabled
	movq	_PIPE_A@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_assert_fdi_rx_enabled
	movl	(%r12), %edi
	callq	_TRANS_CHICKEN2
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, %ebx
	movq	_TRANS_CHICKEN2_TIMING_OVERRIDE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	(%r12), %edi
	callq	_TRANS_CHICKEN2
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movq	_TRANS_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r15d, %edi
	callq	_PIPECONF
	movl	%eax, %edi
	callq	_I915_READ
	movq	_PIPECONF_INTERLACE_MASK_HSW@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_PIPECONF_INTERLACED_ILK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_1
## %bb.2:
	movq	_TRANS_INTERLACED@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_TRANS_PROGRESSIVE@GOTPCREL(%rip), %rax
LBB0_3:
	orl	(%rax), %ebx
	movq	_LPT_TRANSCONF@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movl	(%r15), %esi
	movq	_TRANS_STATE_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$100, %ecx
	callq	_intel_de_wait_for_set
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	leaq	L_.str(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_ERROR                      ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PIPE_A,4,2                     ## @PIPE_A
	.comm	_TRANS_CHICKEN2_TIMING_OVERRIDE,4,2 ## @TRANS_CHICKEN2_TIMING_OVERRIDE
	.comm	_TRANS_ENABLE,4,2               ## @TRANS_ENABLE
	.comm	_PIPECONF_INTERLACE_MASK_HSW,4,2 ## @PIPECONF_INTERLACE_MASK_HSW
	.comm	_PIPECONF_INTERLACED_ILK,4,2    ## @PIPECONF_INTERLACED_ILK
	.comm	_TRANS_INTERLACED,4,2           ## @TRANS_INTERLACED
	.comm	_TRANS_PROGRESSIVE,4,2          ## @TRANS_PROGRESSIVE
	.comm	_LPT_TRANSCONF,4,2              ## @LPT_TRANSCONF
	.comm	_TRANS_STATE_ENABLE,4,2         ## @TRANS_STATE_ENABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to enable PCH transcoder\n"

	.no_dead_strip	_lpt_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 lpt_enable_pch_transcoder
_lpt_enable_pch_transcoder:             ; @lpt_enable_pch_transcoder
	.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	x20, x1
	mov	x19, x0
	bl	_assert_fdi_tx_enabled
Lloh0:
	adrp	x22, _PIPE_A@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PIPE_A@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_assert_fdi_rx_enabled
	ldr	w0, [x22]
	bl	_TRANS_CHICKEN2
	bl	_I915_READ
Lloh2:
	adrp	x8, _TRANS_CHICKEN2_TIMING_OVERRIDE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TRANS_CHICKEN2_TIMING_OVERRIDE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w21, w8, w0
	ldr	w0, [x22]
	bl	_TRANS_CHICKEN2
	mov	x1, x21
	bl	_I915_WRITE
Lloh5:
	adrp	x8, _TRANS_ENABLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TRANS_ENABLE@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_PIPECONF
	bl	_I915_READ
Lloh8:
	adrp	x8, _PIPECONF_INTERLACE_MASK_HSW@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PIPECONF_INTERLACE_MASK_HSW@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh11:
	adrp	x9, _PIPECONF_INTERLACED_ILK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PIPECONF_INTERLACED_ILK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _TRANS_INTERLACED@GOTPAGE
Lloh15:
	ldr	x10, [x10, _TRANS_INTERLACED@GOTPAGEOFF]
Lloh16:
	adrp	x11, _TRANS_PROGRESSIVE@GOTPAGE
Lloh17:
	ldr	x11, [x11, _TRANS_PROGRESSIVE@GOTPAGEOFF]
	cmp	w8, w9
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
	orr	w1, w8, w21
Lloh18:
	adrp	x20, _LPT_TRANSCONF@GOTPAGE
Lloh19:
	ldr	x20, [x20, _LPT_TRANSCONF@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_I915_WRITE
	ldr	w1, [x20]
Lloh20:
	adrp	x8, _TRANS_STATE_ENABLE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TRANS_STATE_ENABLE@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #100
	bl	_intel_de_wait_for_set
	cbz	x0, LBB0_2
; %bb.1:
Lloh23:
	adrp	x0, l_.str@PAGE
Lloh24:
	add	x0, x0, l_.str@PAGEOFF
	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	_DRM_ERROR
LBB0_2:
	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	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_PIPE_A,4,2                     ; @PIPE_A
	.comm	_TRANS_CHICKEN2_TIMING_OVERRIDE,4,2 ; @TRANS_CHICKEN2_TIMING_OVERRIDE
	.comm	_TRANS_ENABLE,4,2               ; @TRANS_ENABLE
	.comm	_PIPECONF_INTERLACE_MASK_HSW,4,2 ; @PIPECONF_INTERLACE_MASK_HSW
	.comm	_PIPECONF_INTERLACED_ILK,4,2    ; @PIPECONF_INTERLACED_ILK
	.comm	_TRANS_INTERLACED,4,2           ; @TRANS_INTERLACED
	.comm	_TRANS_PROGRESSIVE,4,2          ; @TRANS_PROGRESSIVE
	.comm	_LPT_TRANSCONF,4,2              ; @LPT_TRANSCONF
	.comm	_TRANS_STATE_ENABLE,4,2         ; @TRANS_STATE_ENABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to enable PCH transcoder\n"

	.no_dead_strip	_lpt_enable_pch_transcoder
.subsections_via_symbols
