	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_to_intel_crtc
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_intel_ddi_get_crtc_encoder
	movl	(%r15), %r14d
	movl	(%rax), %eax
	movq	_INTEL_OUTPUT_DISPLAYPORT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_3
## %bb.1:
	movq	_INTEL_OUTPUT_EDP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_3
## %bb.2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_TRANS_MSA_SYNC_CLK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	4(%r15), %edx
	leal	-18(%rdx), %eax
	rorl	%eax
	cmpl	$9, %eax
	ja	LBB0_6
## %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_10
LBB0_6:
	movq	_TRANS_MSA_8_BPC@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_WARN
	jmp	LBB0_11
LBB0_7:
	movq	_TRANS_MSA_8_BPC@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movq	_TRANS_MSA_10_BPC@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_TRANS_MSA_12_BPC@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %ebx
LBB0_11:
	orl	%r12d, %ebx
	movl	%r14d, %edi
	callq	_TRANS_MSA_MISC
	movl	%eax, %edi
	movl	%ebx, %esi
	popq	%rbx
	popq	%r12
	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_6, LBB0_6-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
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_INTEL_OUTPUT_DISPLAYPORT,4,2   ## @INTEL_OUTPUT_DISPLAYPORT
	.comm	_INTEL_OUTPUT_EDP,4,2           ## @INTEL_OUTPUT_EDP
	.comm	_TRANS_MSA_SYNC_CLK,4,2         ## @TRANS_MSA_SYNC_CLK
	.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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d bpp unsupported by DDI function\n"

.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	x19, x0
	bl	_to_intel_crtc
	mov	x20, x0
	mov	x0, x19
	bl	_intel_ddi_get_crtc_encoder
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _INTEL_OUTPUT_DISPLAYPORT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INTEL_OUTPUT_DISPLAYPORT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _INTEL_OUTPUT_EDP@GOTPAGE
Lloh4:
	ldr	x10, [x10, _INTEL_OUTPUT_EDP@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_4
; %bb.1:
Lloh6:
	adrp	x8, _TRANS_MSA_SYNC_CLK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TRANS_MSA_SYNC_CLK@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	ldp	w19, w2, [x20]
	sub	w8, w2, #18
	ror	w8, w8, #1
	cmp	w8, #9
	b.hi	LBB0_5
; %bb.2:
Lloh9:
	adrp	x9, lJTI0_0@PAGE
Lloh10:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
Lloh11:
	adrp	x8, _TRANS_MSA_6_BPC@GOTPAGE
Lloh12:
	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:
Lloh13:
	adrp	x8, _TRANS_MSA_8_BPC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TRANS_MSA_8_BPC@GOTPAGEOFF]
Lloh15:
	ldr	w20, [x8]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_WARN
	b	LBB0_10
LBB0_6:
Lloh18:
	adrp	x8, _TRANS_MSA_8_BPC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TRANS_MSA_8_BPC@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh20:
	adrp	x8, _TRANS_MSA_10_BPC@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TRANS_MSA_10_BPC@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh22:
	adrp	x8, _TRANS_MSA_12_BPC@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TRANS_MSA_12_BPC@GOTPAGEOFF]
LBB0_9:
	ldr	w20, [x8]
LBB0_10:
	orr	w20, w20, w21
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.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	_INTEL_OUTPUT_DISPLAYPORT,4,2   ; @INTEL_OUTPUT_DISPLAYPORT
	.comm	_INTEL_OUTPUT_EDP,4,2           ; @INTEL_OUTPUT_EDP
	.comm	_TRANS_MSA_SYNC_CLK,4,2         ; @TRANS_MSA_SYNC_CLK
	.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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d bpp unsupported by DDI function\n"

.subsections_via_symbols
