	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atombios_set_mst_encoder_crtc_source ## -- Begin function atombios_set_mst_encoder_crtc_source
	.p2align	4, 0x90
_atombios_set_mst_encoder_crtc_source:  ## @atombios_set_mst_encoder_crtc_source
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	8(%rdi), %rax
	movq	(%rax), %r12
	movl	(%rdi), %edi
	callq	_to_radeon_crtc
	movq	%rax, %r15
	movq	_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SelectCRTC_Source@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetIndexIntoMasterTable
	movl	%eax, %r14d
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movl	(%r12), %edi
	leaq	-56(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	movl	%r14d, %esi
	callq	_atom_parse_cmd_header
	testl	%eax, %eax
	je	LBB0_15
## %bb.1:
	movl	-56(%rbp), %esi
	cmpl	$1, %esi
	je	LBB0_4
## %bb.2:
	movl	-52(%rbp), %edx
	cmpl	$2, %edx
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
LBB0_4:
	movl	(%r15), %eax
	movl	%eax, -40(%rbp)
	movq	_ATOM_ENCODER_MODE_DP_MST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	cmpl	$6, %ebx
	ja	LBB0_14
## %bb.5:
	movl	%ebx, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	movq	_ASIC_INT_DIG1_ENCODER_ID@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_7:
	movq	_ASIC_INT_DIG2_ENCODER_ID@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_8:
	movq	_ASIC_INT_DIG3_ENCODER_ID@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_9:
	movq	_ASIC_INT_DIG4_ENCODER_ID@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_10:
	movq	_ASIC_INT_DIG5_ENCODER_ID@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_11:
	movq	_ASIC_INT_DIG6_ENCODER_ID@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_12:
	movq	_ASIC_INT_DIG7_ENCODER_ID@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
LBB0_14:
	movl	(%r12), %edi
	leaq	-48(%rbp), %rdx
	movl	%r14d, %esi
	callq	_atom_execute_table
LBB0_15:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.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
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_COMMAND,4,2                    ## @COMMAND
	.comm	_SelectCRTC_Source,4,2          ## @SelectCRTC_Source
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown table for MST %d, %d\n"

	.comm	_ATOM_ENCODER_MODE_DP_MST,4,2   ## @ATOM_ENCODER_MODE_DP_MST
	.comm	_ASIC_INT_DIG1_ENCODER_ID,4,2   ## @ASIC_INT_DIG1_ENCODER_ID
	.comm	_ASIC_INT_DIG2_ENCODER_ID,4,2   ## @ASIC_INT_DIG2_ENCODER_ID
	.comm	_ASIC_INT_DIG3_ENCODER_ID,4,2   ## @ASIC_INT_DIG3_ENCODER_ID
	.comm	_ASIC_INT_DIG4_ENCODER_ID,4,2   ## @ASIC_INT_DIG4_ENCODER_ID
	.comm	_ASIC_INT_DIG5_ENCODER_ID,4,2   ## @ASIC_INT_DIG5_ENCODER_ID
	.comm	_ASIC_INT_DIG6_ENCODER_ID,4,2   ## @ASIC_INT_DIG6_ENCODER_ID
	.comm	_ASIC_INT_DIG7_ENCODER_ID,4,2   ## @ASIC_INT_DIG7_ENCODER_ID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atombios_set_mst_encoder_crtc_source ; -- Begin function atombios_set_mst_encoder_crtc_source
	.p2align	2
_atombios_set_mst_encoder_crtc_source:  ; @atombios_set_mst_encoder_crtc_source
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x8, [x0, #8]
	ldr	x22, [x8]
	ldr	w0, [x0]
	bl	_to_radeon_crtc
	mov	x21, x0
Lloh0:
	adrp	x8, _COMMAND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COMMAND@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _SelectCRTC_Source@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SelectCRTC_Source@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_GetIndexIntoMasterTable
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	ldr	w0, [x22]
	add	x2, sp, #28
	add	x3, sp, #24
	mov	x1, x19
	bl	_atom_parse_cmd_header
	cbz	w0, LBB0_14
; %bb.1:
	ldp	w2, w1, [sp, #24]
	cmp	w1, #1
	ccmp	w2, #2, #4, ne
	b.eq	LBB0_3
; %bb.2:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
LBB0_3:
	ldr	w8, [x21]
Lloh8:
	adrp	x9, _ATOM_ENCODER_MODE_DP_MST@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ATOM_ENCODER_MODE_DP_MST@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #12]
	cmp	w20, #6
	b.hi	LBB0_13
; %bb.4:
	mov	w8, w20
Lloh11:
	adrp	x9, lJTI0_0@PAGE
Lloh12:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
Lloh13:
	adrp	x8, _ASIC_INT_DIG1_ENCODER_ID@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ASIC_INT_DIG1_ENCODER_ID@GOTPAGEOFF]
	b	LBB0_12
LBB0_6:
Lloh15:
	adrp	x8, _ASIC_INT_DIG2_ENCODER_ID@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ASIC_INT_DIG2_ENCODER_ID@GOTPAGEOFF]
	b	LBB0_12
LBB0_7:
Lloh17:
	adrp	x8, _ASIC_INT_DIG3_ENCODER_ID@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ASIC_INT_DIG3_ENCODER_ID@GOTPAGEOFF]
	b	LBB0_12
LBB0_8:
Lloh19:
	adrp	x8, _ASIC_INT_DIG4_ENCODER_ID@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ASIC_INT_DIG4_ENCODER_ID@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
Lloh21:
	adrp	x8, _ASIC_INT_DIG5_ENCODER_ID@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ASIC_INT_DIG5_ENCODER_ID@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh23:
	adrp	x8, _ASIC_INT_DIG6_ENCODER_ID@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ASIC_INT_DIG6_ENCODER_ID@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh25:
	adrp	x8, _ASIC_INT_DIG7_ENCODER_ID@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ASIC_INT_DIG7_ENCODER_ID@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	str	w8, [sp, #8]
LBB0_13:
	ldr	w0, [x22]
	add	x2, sp, #8
	mov	x1, x19
	bl	_atom_execute_table
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_8-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
                                        ; -- End function
	.comm	_COMMAND,4,2                    ; @COMMAND
	.comm	_SelectCRTC_Source,4,2          ; @SelectCRTC_Source
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown table for MST %d, %d\n"

	.comm	_ATOM_ENCODER_MODE_DP_MST,4,2   ; @ATOM_ENCODER_MODE_DP_MST
	.comm	_ASIC_INT_DIG1_ENCODER_ID,4,2   ; @ASIC_INT_DIG1_ENCODER_ID
	.comm	_ASIC_INT_DIG2_ENCODER_ID,4,2   ; @ASIC_INT_DIG2_ENCODER_ID
	.comm	_ASIC_INT_DIG3_ENCODER_ID,4,2   ; @ASIC_INT_DIG3_ENCODER_ID
	.comm	_ASIC_INT_DIG4_ENCODER_ID,4,2   ; @ASIC_INT_DIG4_ENCODER_ID
	.comm	_ASIC_INT_DIG5_ENCODER_ID,4,2   ; @ASIC_INT_DIG5_ENCODER_ID
	.comm	_ASIC_INT_DIG6_ENCODER_ID,4,2   ; @ASIC_INT_DIG6_ENCODER_ID
	.comm	_ASIC_INT_DIG7_ENCODER_ID,4,2   ; @ASIC_INT_DIG7_ENCODER_ID
.subsections_via_symbols
