	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rockchip_dp_get_modes
_rockchip_dp_get_modes:                 ## @rockchip_dp_get_modes
	.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	_DRM_COLOR_FORMAT_YCRCB444@GOTPCREL(%rip), %rax
	movq	_DRM_COLOR_FORMAT_YCRCB422@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	testl	%ebx, (%rsi)
	je	LBB0_2
## %bb.1:
	movq	%rsi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	notl	%ebx
	andl	(%r14), %ebx
	movl	%ebx, (%r14)
	movq	_DRM_COLOR_FORMAT_RGB444@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%ebx, (%r14)
	movl	$8, 4(%r14)
LBB0_2:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_COLOR_FORMAT_YCRCB444,4,2  ## @DRM_COLOR_FORMAT_YCRCB444
	.comm	_DRM_COLOR_FORMAT_YCRCB422,4,2  ## @DRM_COLOR_FORMAT_YCRCB422
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Swapping display color format from YUV to RGB\n"

	.comm	_DRM_COLOR_FORMAT_RGB444,4,2    ## @DRM_COLOR_FORMAT_RGB444
	.no_dead_strip	_rockchip_dp_get_modes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rockchip_dp_get_modes
_rockchip_dp_get_modes:                 ; @rockchip_dp_get_modes
	.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
Lloh0:
	adrp	x8, _DRM_COLOR_FORMAT_YCRCB444@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_COLOR_FORMAT_YCRCB444@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DRM_COLOR_FORMAT_YCRCB422@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DRM_COLOR_FORMAT_YCRCB422@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w20, w9, w8
	ldr	w8, [x1]
	tst	w8, w20
	b.eq	LBB0_2
; %bb.1:
	mov	x19, x1
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	w8, [x19]
	bic	w8, w8, w20
Lloh8:
	adrp	x9, _DRM_COLOR_FORMAT_RGB444@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DRM_COLOR_FORMAT_RGB444@GOTPAGEOFF]
	mov	w10, #8
	stp	w8, w10, [x19]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_COLOR_FORMAT_YCRCB444,4,2  ; @DRM_COLOR_FORMAT_YCRCB444
	.comm	_DRM_COLOR_FORMAT_YCRCB422,4,2  ; @DRM_COLOR_FORMAT_YCRCB422
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Swapping display color format from YUV to RGB\n"

	.comm	_DRM_COLOR_FORMAT_RGB444,4,2    ; @DRM_COLOR_FORMAT_RGB444
	.no_dead_strip	_rockchip_dp_get_modes
.subsections_via_symbols
