	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_mipi_dsi_encoder_atomic_check
_dw_mipi_dsi_encoder_atomic_check:      ## @dw_mipi_dsi_encoder_atomic_check
	.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, %rbx
	movq	%rsi, %rdi
	callq	_to_rockchip_crtc_state
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_to_dsi
	movl	(%rax), %ecx
	addl	$-128, %ecx
	cmpl	$3, %ecx
	jae	LBB0_1
## %bb.2:
	movslq	%ecx, %rcx
	leaq	l_switch.table.dw_mipi_dsi_encoder_atomic_check(%rip), %rdx
	movq	(%rdx,%rcx,8), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%r14)
	movq	_DRM_MODE_CONNECTOR_DSI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%r14)
	xorl	%ecx, %ecx
	cmpq	$0, 8(%rax)
	je	LBB0_4
## %bb.3:
	movq	_ROCKCHIP_OUTPUT_DSI_DUAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	jmp	LBB0_4
LBB0_1:
	movl	$1, %edi
	callq	_WARN_ON
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
LBB0_4:
	movl	%ecx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ROCKCHIP_OUT_MODE_P888,4,2     ## @ROCKCHIP_OUT_MODE_P888
	.comm	_ROCKCHIP_OUT_MODE_P666,4,2     ## @ROCKCHIP_OUT_MODE_P666
	.comm	_ROCKCHIP_OUT_MODE_P565,4,2     ## @ROCKCHIP_OUT_MODE_P565
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DRM_MODE_CONNECTOR_DSI,4,2     ## @DRM_MODE_CONNECTOR_DSI
	.comm	_ROCKCHIP_OUTPUT_DSI_DUAL,4,2   ## @ROCKCHIP_OUTPUT_DSI_DUAL
	.no_dead_strip	_dw_mipi_dsi_encoder_atomic_check
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.dw_mipi_dsi_encoder_atomic_check
l_switch.table.dw_mipi_dsi_encoder_atomic_check:
	.quad	_ROCKCHIP_OUT_MODE_P888
	.quad	_ROCKCHIP_OUT_MODE_P666
	.quad	_ROCKCHIP_OUT_MODE_P565

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw_mipi_dsi_encoder_atomic_check
_dw_mipi_dsi_encoder_atomic_check:      ; @dw_mipi_dsi_encoder_atomic_check
	.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	x20, x0
	mov	x0, x1
	bl	_to_rockchip_crtc_state
	mov	x19, x0
	mov	x0, x20
	bl	_to_dsi
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hs	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, l_switch.table.dw_mipi_dsi_encoder_atomic_check@PAGE
Lloh1:
	add	x9, x9, l_switch.table.dw_mipi_dsi_encoder_atomic_check@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w8, [x8]
Lloh2:
	adrp	x9, _DRM_MODE_CONNECTOR_DSI@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DRM_MODE_CONNECTOR_DSI@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #4]
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_4
; %bb.2:
	mov	w0, #0
Lloh5:
	adrp	x8, _ROCKCHIP_OUTPUT_DSI_DUAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ROCKCHIP_OUTPUT_DSI_DUAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_5
LBB0_3:
	mov	w0, #1
	bl	_WARN_ON
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ROCKCHIP_OUT_MODE_P888,4,2     ; @ROCKCHIP_OUT_MODE_P888
	.comm	_ROCKCHIP_OUT_MODE_P666,4,2     ; @ROCKCHIP_OUT_MODE_P666
	.comm	_ROCKCHIP_OUT_MODE_P565,4,2     ; @ROCKCHIP_OUT_MODE_P565
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DRM_MODE_CONNECTOR_DSI,4,2     ; @DRM_MODE_CONNECTOR_DSI
	.comm	_ROCKCHIP_OUTPUT_DSI_DUAL,4,2   ; @ROCKCHIP_OUTPUT_DSI_DUAL
	.no_dead_strip	_dw_mipi_dsi_encoder_atomic_check
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.dw_mipi_dsi_encoder_atomic_check
l_switch.table.dw_mipi_dsi_encoder_atomic_check:
	.quad	_ROCKCHIP_OUT_MODE_P888
	.quad	_ROCKCHIP_OUT_MODE_P666
	.quad	_ROCKCHIP_OUT_MODE_P565

.subsections_via_symbols
