	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rockchip_rgb_encoder_atomic_check
_rockchip_rgb_encoder_atomic_check:     ## @rockchip_rgb_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	movq	%rsi, %rdi
	callq	_to_rockchip_crtc_state
	movq	(%rbx), %rcx
	cmpq	$0, 8(%rcx)
	je	LBB0_1
## %bb.2:
	movq	(%rcx), %rcx
	movl	(%rcx), %edx
	cmpl	$131, %edx
	jne	LBB0_3
## %bb.4:
	movq	_ROCKCHIP_OUT_MODE_P565@GOTPCREL(%rip), %rcx
	cmpl	$130, %edx
	je	LBB0_6
	jmp	LBB0_7
LBB0_1:
	movq	_ROCKCHIP_OUT_MODE_P888@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_3:
	movq	_ROCKCHIP_OUT_MODE_P888@GOTPCREL(%rip), %rcx
	cmpl	$130, %edx
	jne	LBB0_7
LBB0_6:
	movq	_ROCKCHIP_OUT_MODE_P666@GOTPCREL(%rip), %rcx
LBB0_7:
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	_DRM_MODE_CONNECTOR_LVDS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ROCKCHIP_OUT_MODE_P666,4,2     ## @ROCKCHIP_OUT_MODE_P666
	.comm	_ROCKCHIP_OUT_MODE_P565,4,2     ## @ROCKCHIP_OUT_MODE_P565
	.comm	_ROCKCHIP_OUT_MODE_P888,4,2     ## @ROCKCHIP_OUT_MODE_P888
	.comm	_DRM_MODE_CONNECTOR_LVDS,4,2    ## @DRM_MODE_CONNECTOR_LVDS
	.no_dead_strip	_rockchip_rgb_encoder_atomic_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rockchip_rgb_encoder_atomic_check
_rockchip_rgb_encoder_atomic_check:     ; @rockchip_rgb_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	x19, x2
	mov	x0, x1
	bl	_to_rockchip_crtc_state
	ldr	x9, [x19]
	ldr	x10, [x9, #8]
Lloh0:
	adrp	x8, _ROCKCHIP_OUT_MODE_P888@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ROCKCHIP_OUT_MODE_P888@GOTPAGEOFF]
	cbz	x10, LBB0_2
; %bb.1:
	ldr	x9, [x9]
	ldr	w9, [x9]
Lloh2:
	adrp	x10, _ROCKCHIP_OUT_MODE_P565@GOTPAGE
Lloh3:
	ldr	x10, [x10, _ROCKCHIP_OUT_MODE_P565@GOTPAGEOFF]
	cmp	w9, #131
	csel	x8, x10, x8, eq
Lloh4:
	adrp	x10, _ROCKCHIP_OUT_MODE_P666@GOTPAGE
Lloh5:
	ldr	x10, [x10, _ROCKCHIP_OUT_MODE_P666@GOTPAGEOFF]
	cmp	w9, #130
	csel	x8, x10, x8, eq
LBB0_2:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _DRM_MODE_CONNECTOR_LVDS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DRM_MODE_CONNECTOR_LVDS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x0]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ROCKCHIP_OUT_MODE_P666,4,2     ; @ROCKCHIP_OUT_MODE_P666
	.comm	_ROCKCHIP_OUT_MODE_P565,4,2     ; @ROCKCHIP_OUT_MODE_P565
	.comm	_ROCKCHIP_OUT_MODE_P888,4,2     ; @ROCKCHIP_OUT_MODE_P888
	.comm	_DRM_MODE_CONNECTOR_LVDS,4,2    ; @DRM_MODE_CONNECTOR_LVDS
	.no_dead_strip	_rockchip_rgb_encoder_atomic_check
.subsections_via_symbols
