	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_ddi_set_pipe_settings    ## -- Begin function intel_ddi_set_pipe_settings
	.p2align	4, 0x90
_intel_ddi_set_pipe_settings:           ## @intel_ddi_set_pipe_settings
	.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
	movq	%rdi, %rbx
	movl	24(%rdi), %edi
	callq	_to_intel_crtc
	movl	(%rax), %edi
	callq	_to_i915
	movl	(%rbx), %r14d
	movq	%rbx, %rdi
	callq	_intel_crtc_has_dp_encoder
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movl	%r14d, %edi
	callq	_transcoder_is_dsi
	movl	%eax, %edi
	callq	_WARN_ON
	movq	_TRANS_MSA_SYNC_CLK@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	cmpq	$0, 16(%rbx)
	je	LBB0_3
## %bb.2:
	movq	_TRANS_MSA_CEA_RANGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
LBB0_3:
	orl	(%rax), %r15d
	movl	4(%rbx), %edi
	leal	-18(%rdi), %eax
	rorl	%eax
	cmpl	$9, %eax
	ja	LBB0_7
## %bb.4:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_5:
	movq	_TRANS_MSA_6_BPC@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_MISSING_CASE
	jmp	LBB0_12
LBB0_8:
	movq	_TRANS_MSA_8_BPC@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	movq	_TRANS_MSA_10_BPC@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	movq	_TRANS_MSA_12_BPC@GOTPCREL(%rip), %rax
LBB0_11:
	orl	(%rax), %r15d
LBB0_12:
	movq	8(%rbx), %rcx
	movq	_INTEL_OUTPUT_FORMAT_YCBCR444@GOTPCREL(%rip), %rdx
	movq	_TRANS_MSA_SAMPLING_444@GOTPCREL(%rip), %rax
	movq	_TRANS_MSA_CLRSP_YCBCR@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ebx
	orl	(%rax), %ebx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	cmovnel	%eax, %ebx
	orl	%r15d, %ebx
	movq	_INTEL_OUTPUT_FORMAT_YCBCR420@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_14
## %bb.13:
	movq	_TRANS_MSA_USE_VSC_SDP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_14:
	orl	%eax, %ebx
	movl	%r14d, %edi
	callq	_TRANS_MSA_MISC
	movl	%eax, %edi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_TRANS_MSA_SYNC_CLK,4,2         ## @TRANS_MSA_SYNC_CLK
	.comm	_TRANS_MSA_CEA_RANGE,4,2        ## @TRANS_MSA_CEA_RANGE
	.comm	_TRANS_MSA_6_BPC,4,2            ## @TRANS_MSA_6_BPC
	.comm	_TRANS_MSA_8_BPC,4,2            ## @TRANS_MSA_8_BPC
	.comm	_TRANS_MSA_10_BPC,4,2           ## @TRANS_MSA_10_BPC
	.comm	_TRANS_MSA_12_BPC,4,2           ## @TRANS_MSA_12_BPC
	.comm	_INTEL_OUTPUT_FORMAT_YCBCR444,8,3 ## @INTEL_OUTPUT_FORMAT_YCBCR444
	.comm	_TRANS_MSA_SAMPLING_444,4,2     ## @TRANS_MSA_SAMPLING_444
	.comm	_TRANS_MSA_CLRSP_YCBCR,4,2      ## @TRANS_MSA_CLRSP_YCBCR
	.comm	_INTEL_OUTPUT_FORMAT_YCBCR420,8,3 ## @INTEL_OUTPUT_FORMAT_YCBCR420
	.comm	_TRANS_MSA_USE_VSC_SDP,4,2      ## @TRANS_MSA_USE_VSC_SDP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_ddi_set_pipe_settings    ; -- Begin function intel_ddi_set_pipe_settings
	.p2align	2
_intel_ddi_set_pipe_settings:           ; @intel_ddi_set_pipe_settings
	.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, x0
	ldr	w0, [x0, #24]
	bl	_to_intel_crtc
	ldr	w0, [x0]
	bl	_to_i915
	ldr	w19, [x20]
	mov	x0, x20
	bl	_intel_crtc_has_dp_encoder
	cbz	w0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_transcoder_is_dsi
	bl	_WARN_ON
Lloh0:
	adrp	x8, _TRANS_MSA_SYNC_CLK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRANS_MSA_SYNC_CLK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x20, #16]
Lloh3:
	adrp	x10, _TRANS_MSA_CEA_RANGE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _TRANS_MSA_CEA_RANGE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w21, w9, w8
	ldr	w0, [x20, #4]
	sub	w8, w0, #18
	ror	w8, w8, #1
	cmp	w8, #9
	b.hi	LBB0_5
; %bb.2:
Lloh6:
	adrp	x9, lJTI0_0@PAGE
Lloh7:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
Lloh8:
	adrp	x8, _TRANS_MSA_6_BPC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TRANS_MSA_6_BPC@GOTPAGEOFF]
	b	LBB0_9
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
LBB0_5:
	bl	_MISSING_CASE
	b	LBB0_10
LBB0_6:
Lloh10:
	adrp	x8, _TRANS_MSA_8_BPC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TRANS_MSA_8_BPC@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh12:
	adrp	x8, _TRANS_MSA_10_BPC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TRANS_MSA_10_BPC@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh14:
	adrp	x8, _TRANS_MSA_12_BPC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TRANS_MSA_12_BPC@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	orr	w21, w8, w21
LBB0_10:
	ldr	x8, [x20, #8]
Lloh16:
	adrp	x9, _INTEL_OUTPUT_FORMAT_YCBCR444@GOTPAGE
Lloh17:
	ldr	x9, [x9, _INTEL_OUTPUT_FORMAT_YCBCR444@GOTPAGEOFF]
Lloh18:
	adrp	x10, _TRANS_MSA_SAMPLING_444@GOTPAGE
Lloh19:
	ldr	x10, [x10, _TRANS_MSA_SAMPLING_444@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
Lloh21:
	ldr	w10, [x10]
Lloh22:
	adrp	x11, _TRANS_MSA_CLRSP_YCBCR@GOTPAGE
Lloh23:
	ldr	x11, [x11, _TRANS_MSA_CLRSP_YCBCR@GOTPAGEOFF]
Lloh24:
	ldr	w11, [x11]
	orr	w10, w11, w10
	cmp	x8, x9
	csel	w9, w10, wzr, eq
	orr	w9, w9, w21
Lloh25:
	adrp	x10, _INTEL_OUTPUT_FORMAT_YCBCR420@GOTPAGE
Lloh26:
	ldr	x10, [x10, _INTEL_OUTPUT_FORMAT_YCBCR420@GOTPAGEOFF]
Lloh27:
	ldr	x10, [x10]
Lloh28:
	adrp	x11, _TRANS_MSA_USE_VSC_SDP@GOTPAGE
Lloh29:
	ldr	x11, [x11, _TRANS_MSA_USE_VSC_SDP@GOTPAGEOFF]
Lloh30:
	ldr	w11, [x11]
	cmp	x8, x10
	csel	w8, w11, wzr, eq
	orr	w20, w9, w8
	mov	x0, x19
	bl	_TRANS_MSA_MISC
	mov	x1, x20
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh20
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
                                        ; -- End function
	.comm	_TRANS_MSA_SYNC_CLK,4,2         ; @TRANS_MSA_SYNC_CLK
	.comm	_TRANS_MSA_CEA_RANGE,4,2        ; @TRANS_MSA_CEA_RANGE
	.comm	_TRANS_MSA_6_BPC,4,2            ; @TRANS_MSA_6_BPC
	.comm	_TRANS_MSA_8_BPC,4,2            ; @TRANS_MSA_8_BPC
	.comm	_TRANS_MSA_10_BPC,4,2           ; @TRANS_MSA_10_BPC
	.comm	_TRANS_MSA_12_BPC,4,2           ; @TRANS_MSA_12_BPC
	.comm	_INTEL_OUTPUT_FORMAT_YCBCR444,8,3 ; @INTEL_OUTPUT_FORMAT_YCBCR444
	.comm	_TRANS_MSA_SAMPLING_444,4,2     ; @TRANS_MSA_SAMPLING_444
	.comm	_TRANS_MSA_CLRSP_YCBCR,4,2      ; @TRANS_MSA_CLRSP_YCBCR
	.comm	_INTEL_OUTPUT_FORMAT_YCBCR420,8,3 ; @INTEL_OUTPUT_FORMAT_YCBCR420
	.comm	_TRANS_MSA_USE_VSC_SDP,4,2      ; @TRANS_MSA_USE_VSC_SDP
.subsections_via_symbols
