	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function video_mode_to_dss_mode
_video_mode_to_dss_mode:                ## @video_mode_to_dss_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	8(%rdi), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_8
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	_OMAP_DSS_COLOR_YUV2@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_4:
	movq	_OMAP_DSS_COLOR_RGB16@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_5:
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movq	_OMAP_DSS_VIDEO1@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_11
## %bb.6:
	movq	_OMAP_DSS_COLOR_RGB24U@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_7:
	movq	_OMAP_DSS_COLOR_RGB24P@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_9:
	movq	_OMAP_DSS_COLOR_UYVY@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_10:
	movq	_OMAP_DSS_COLOR_RGBX32@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_11:
	movq	_OMAP_DSS_COLOR_ARGB32@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_9
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_OMAP_DSS_COLOR_YUV2,4,2        ## @OMAP_DSS_COLOR_YUV2
	.comm	_OMAP_DSS_COLOR_UYVY,4,2        ## @OMAP_DSS_COLOR_UYVY
	.comm	_OMAP_DSS_COLOR_RGB16,4,2       ## @OMAP_DSS_COLOR_RGB16
	.comm	_OMAP_DSS_COLOR_RGB24P,4,2      ## @OMAP_DSS_COLOR_RGB24P
	.comm	_OMAP_DSS_VIDEO1,4,2            ## @OMAP_DSS_VIDEO1
	.comm	_OMAP_DSS_COLOR_RGB24U,4,2      ## @OMAP_DSS_COLOR_RGB24U
	.comm	_OMAP_DSS_COLOR_ARGB32,4,2      ## @OMAP_DSS_COLOR_ARGB32
	.comm	_OMAP_DSS_COLOR_RGBX32,4,2      ## @OMAP_DSS_COLOR_RGBX32
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_video_mode_to_dss_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function video_mode_to_dss_mode
_video_mode_to_dss_mode:                ; @video_mode_to_dss_mode
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0, #8]
	sub	w8, w8, #128
	cmp	w8, #5
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _OMAP_DSS_COLOR_YUV2@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OMAP_DSS_COLOR_YUV2@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ret
LBB0_3:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_4:
Lloh8:
	adrp	x8, _OMAP_DSS_COLOR_UYVY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OMAP_DSS_COLOR_UYVY@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ret
LBB0_5:
Lloh11:
	adrp	x8, _OMAP_DSS_COLOR_RGB16@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OMAP_DSS_COLOR_RGB16@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ret
LBB0_6:
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _OMAP_DSS_VIDEO1@GOTPAGE
Lloh15:
	ldr	x9, [x9, _OMAP_DSS_VIDEO1@GOTPAGEOFF]
Lloh16:
	adrp	x10, _OMAP_DSS_COLOR_RGB24U@GOTPAGE
Lloh17:
	ldr	x10, [x10, _OMAP_DSS_COLOR_RGB24U@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
Lloh19:
	adrp	x11, _OMAP_DSS_COLOR_ARGB32@GOTPAGE
Lloh20:
	ldr	x11, [x11, _OMAP_DSS_COLOR_ARGB32@GOTPAGEOFF]
	cmp	w8, w9
	csel	x8, x10, x11, eq
	ldr	w0, [x8]
	ret
LBB0_7:
Lloh21:
	adrp	x8, _OMAP_DSS_COLOR_RGB24P@GOTPAGE
Lloh22:
	ldr	x8, [x8, _OMAP_DSS_COLOR_RGB24P@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	ret
LBB0_8:
Lloh24:
	adrp	x8, _OMAP_DSS_COLOR_RGBX32@GOTPAGE
Lloh25:
	ldr	x8, [x8, _OMAP_DSS_COLOR_RGBX32@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
                                        ; -- End function
	.comm	_OMAP_DSS_COLOR_YUV2,4,2        ; @OMAP_DSS_COLOR_YUV2
	.comm	_OMAP_DSS_COLOR_UYVY,4,2        ; @OMAP_DSS_COLOR_UYVY
	.comm	_OMAP_DSS_COLOR_RGB16,4,2       ; @OMAP_DSS_COLOR_RGB16
	.comm	_OMAP_DSS_COLOR_RGB24P,4,2      ; @OMAP_DSS_COLOR_RGB24P
	.comm	_OMAP_DSS_VIDEO1,4,2            ; @OMAP_DSS_VIDEO1
	.comm	_OMAP_DSS_COLOR_RGB24U,4,2      ; @OMAP_DSS_COLOR_RGB24U
	.comm	_OMAP_DSS_COLOR_ARGB32,4,2      ; @OMAP_DSS_COLOR_ARGB32
	.comm	_OMAP_DSS_COLOR_RGBX32,4,2      ; @OMAP_DSS_COLOR_RGBX32
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_video_mode_to_dss_mode
.subsections_via_symbols
