	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_mdp_map_color_format
_mtk_mdp_map_color_format:              ## @mtk_mdp_map_color_format
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edi, %esi
	leal	-128(%rsi), %eax
	cmpl	$6, %eax
	jae	LBB0_1
## %bb.2:
	cltq
	leaq	l_switch.table.mtk_mdp_map_color_format(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_mtk_mdp_err
	movq	_MDP_COLOR_UNKNOWN@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MDP_COLOR_NV12,4,2             ## @MDP_COLOR_NV12
	.comm	_MDP_COLOR_420_MT21,4,2         ## @MDP_COLOR_420_MT21
	.comm	_MDP_COLOR_I420,4,2             ## @MDP_COLOR_I420
	.comm	_MDP_COLOR_YV12,4,2             ## @MDP_COLOR_YV12
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown format 0x%x"

	.comm	_MDP_COLOR_UNKNOWN,4,2          ## @MDP_COLOR_UNKNOWN
	.no_dead_strip	_mtk_mdp_map_color_format
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.mtk_mdp_map_color_format
l_switch.table.mtk_mdp_map_color_format:
	.quad	_MDP_COLOR_YV12
	.quad	_MDP_COLOR_I420
	.quad	_MDP_COLOR_I420
	.quad	_MDP_COLOR_NV12
	.quad	_MDP_COLOR_NV12
	.quad	_MDP_COLOR_420_MT21

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_mdp_map_color_format
_mtk_mdp_map_color_format:              ; @mtk_mdp_map_color_format
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	sub	w8, w0, #128
	cmp	w8, #6
	b.hs	LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, l_switch.table.mtk_mdp_map_color_format@PAGE
Lloh1:
	add	x9, x9, l_switch.table.mtk_mdp_map_color_format@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_3
LBB0_2:
	mov	x1, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_mtk_mdp_err
Lloh4:
	adrp	x8, _MDP_COLOR_UNKNOWN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MDP_COLOR_UNKNOWN@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_MDP_COLOR_NV12,4,2             ; @MDP_COLOR_NV12
	.comm	_MDP_COLOR_420_MT21,4,2         ; @MDP_COLOR_420_MT21
	.comm	_MDP_COLOR_I420,4,2             ; @MDP_COLOR_I420
	.comm	_MDP_COLOR_YV12,4,2             ; @MDP_COLOR_YV12
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown format 0x%x"

	.comm	_MDP_COLOR_UNKNOWN,4,2          ; @MDP_COLOR_UNKNOWN
	.no_dead_strip	_mtk_mdp_map_color_format
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.mtk_mdp_map_color_format
l_switch.table.mtk_mdp_map_color_format:
	.quad	_MDP_COLOR_YV12
	.quad	_MDP_COLOR_I420
	.quad	_MDP_COLOR_I420
	.quad	_MDP_COLOR_NV12
	.quad	_MDP_COLOR_NV12
	.quad	_MDP_COLOR_420_MT21

.subsections_via_symbols
