	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lpt_disable_pch_transcoder     ## -- Begin function lpt_disable_pch_transcoder
	.p2align	4, 0x90
_lpt_disable_pch_transcoder:            ## @lpt_disable_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_LPT_TRANSCONF@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_I915_READ
	movq	_TRANS_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%rbx), %edi
	callq	_I915_WRITE
	movl	(%rbx), %esi
	movq	_TRANS_STATE_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$50, %ecx
	callq	_intel_de_wait_for_clear
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
LBB0_2:
	movq	_PIPE_A@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_TRANS_CHICKEN2
	movl	%eax, %edi
	callq	_I915_READ
	movq	_TRANS_CHICKEN2_TIMING_OVERRIDE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	(%r14), %edi
	callq	_TRANS_CHICKEN2
	movl	%eax, %edi
	movl	%ebx, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LPT_TRANSCONF,4,2              ## @LPT_TRANSCONF
	.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 disable PCH transcoder\n"

	.comm	_PIPE_A,4,2                     ## @PIPE_A
	.comm	_TRANS_CHICKEN2_TIMING_OVERRIDE,4,2 ## @TRANS_CHICKEN2_TIMING_OVERRIDE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lpt_disable_pch_transcoder     ; -- Begin function lpt_disable_pch_transcoder
	.p2align	2
_lpt_disable_pch_transcoder:            ; @lpt_disable_pch_transcoder
	.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
Lloh0:
	adrp	x20, _LPT_TRANSCONF@GOTPAGE
Lloh1:
	ldr	x20, [x20, _LPT_TRANSCONF@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_I915_READ
Lloh2:
	adrp	x8, _TRANS_ENABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TRANS_ENABLE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w1, w0, w8
	ldr	w0, [x20]
	bl	_I915_WRITE
	ldr	w1, [x20]
Lloh5:
	adrp	x8, _TRANS_STATE_ENABLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TRANS_STATE_ENABLE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #50
	bl	_intel_de_wait_for_clear
	cbz	x0, LBB0_2
; %bb.1:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
LBB0_2:
Lloh10:
	adrp	x20, _PIPE_A@GOTPAGE
Lloh11:
	ldr	x20, [x20, _PIPE_A@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_TRANS_CHICKEN2
	bl	_I915_READ
Lloh12:
	adrp	x8, _TRANS_CHICKEN2_TIMING_OVERRIDE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TRANS_CHICKEN2_TIMING_OVERRIDE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	bic	w19, w0, w8
	ldr	w0, [x20]
	bl	_TRANS_CHICKEN2
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_I915_WRITE
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_LPT_TRANSCONF,4,2              ; @LPT_TRANSCONF
	.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 disable PCH transcoder\n"

	.comm	_PIPE_A,4,2                     ; @PIPE_A
	.comm	_TRANS_CHICKEN2_TIMING_OVERRIDE,4,2 ; @TRANS_CHICKEN2_TIMING_OVERRIDE
.subsections_via_symbols
