	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ironlake_disable_pch_transcoder
_ironlake_disable_pch_transcoder:       ## @ironlake_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_assert_fdi_tx_disabled
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_assert_fdi_rx_disabled
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_assert_pch_ports_disabled
	movl	%r14d, %edi
	callq	_PCH_TRANSCONF
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_I915_READ
	movq	_TRANS_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	%ebx, %edi
	callq	_I915_WRITE
	movq	_TRANS_STATE_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	$50, %ecx
	callq	_intel_de_wait_for_clear
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	%r14d, %edi
	callq	_pipe_name
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_ERROR
LBB0_2:
	movq	%r15, %rdi
	callq	_HAS_PCH_CPT
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movl	%r14d, %edi
	callq	_TRANS_CHICKEN2
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_I915_READ
	movq	_TRANS_CHICKEN2_TIMING_OVERRIDE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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 transcoder %c\n"

	.comm	_TRANS_CHICKEN2_TIMING_OVERRIDE,4,2 ## @TRANS_CHICKEN2_TIMING_OVERRIDE
	.no_dead_strip	_ironlake_disable_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_disable_pch_transcoder
_ironlake_disable_pch_transcoder:       ; @ironlake_disable_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	x19, x1
	mov	x20, x0
	bl	_assert_fdi_tx_disabled
	mov	x0, x20
	mov	x1, x19
	bl	_assert_fdi_rx_disabled
	mov	x0, x20
	mov	x1, x19
	bl	_assert_pch_ports_disabled
	mov	x0, x19
	bl	_PCH_TRANSCONF
	mov	x21, x0
	bl	_I915_READ
Lloh0:
	adrp	x8, _TRANS_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRANS_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bic	w1, w0, w8
	mov	x0, x21
	bl	_I915_WRITE
Lloh3:
	adrp	x8, _TRANS_STATE_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TRANS_STATE_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	w3, #50
	bl	_intel_de_wait_for_clear
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_pipe_name
	mov	x1, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
LBB0_2:
	mov	x0, x20
	bl	_HAS_PCH_CPT
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_TRANS_CHICKEN2
	mov	x19, x0
	bl	_I915_READ
Lloh8:
	adrp	x8, _TRANS_CHICKEN2_TIMING_OVERRIDE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TRANS_CHICKEN2_TIMING_OVERRIDE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	bic	w1, w0, w8
	mov	x0, x19
	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	_I915_WRITE
LBB0_4:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.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 transcoder %c\n"

	.comm	_TRANS_CHICKEN2_TIMING_OVERRIDE,4,2 ; @TRANS_CHICKEN2_TIMING_OVERRIDE
	.no_dead_strip	_ironlake_disable_pch_transcoder
.subsections_via_symbols
