	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sun4i_frontend_drm_format_to_input_sequence
_sun4i_frontend_drm_format_to_input_sequence: ## @sun4i_frontend_drm_format_to_input_sequence
	.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	%rsi, %r14
	movq	%rdi, %rbx
	callq	_drm_format_info_is_yuv_planar
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	$0, (%r14)
	jmp	LBB0_14
LBB0_2:
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$9, %eax
	ja	LBB0_6
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	movq	_SUN4I_FRONTEND_INPUT_FMT_DATA_PS_VU@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_5:
	movq	_SUN4I_FRONTEND_INPUT_FMT_DATA_PS_UV@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_15
LBB0_7:
	movq	_SUN4I_FRONTEND_INPUT_FMT_DATA_PS_YVYU@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_8:
	movq	_SUN4I_FRONTEND_INPUT_FMT_DATA_PS_YUYV@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_9:
	movq	_SUN4I_FRONTEND_INPUT_FMT_DATA_PS_XRGB@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_10:
	movq	_SUN4I_FRONTEND_INPUT_FMT_DATA_PS_VYUY@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_11:
	movq	_SUN4I_FRONTEND_INPUT_FMT_DATA_PS_UYVY@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_12:
	movq	_SUN4I_FRONTEND_INPUT_FMT_DATA_PS_BGRX@GOTPCREL(%rip), %rax
LBB0_13:
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_14:
	xorl	%eax, %eax
LBB0_15:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_SUN4I_FRONTEND_INPUT_FMT_DATA_PS_BGRX,8,3 ## @SUN4I_FRONTEND_INPUT_FMT_DATA_PS_BGRX
	.comm	_SUN4I_FRONTEND_INPUT_FMT_DATA_PS_UV,8,3 ## @SUN4I_FRONTEND_INPUT_FMT_DATA_PS_UV
	.comm	_SUN4I_FRONTEND_INPUT_FMT_DATA_PS_VU,8,3 ## @SUN4I_FRONTEND_INPUT_FMT_DATA_PS_VU
	.comm	_SUN4I_FRONTEND_INPUT_FMT_DATA_PS_UYVY,8,3 ## @SUN4I_FRONTEND_INPUT_FMT_DATA_PS_UYVY
	.comm	_SUN4I_FRONTEND_INPUT_FMT_DATA_PS_VYUY,8,3 ## @SUN4I_FRONTEND_INPUT_FMT_DATA_PS_VYUY
	.comm	_SUN4I_FRONTEND_INPUT_FMT_DATA_PS_XRGB,8,3 ## @SUN4I_FRONTEND_INPUT_FMT_DATA_PS_XRGB
	.comm	_SUN4I_FRONTEND_INPUT_FMT_DATA_PS_YUYV,8,3 ## @SUN4I_FRONTEND_INPUT_FMT_DATA_PS_YUYV
	.comm	_SUN4I_FRONTEND_INPUT_FMT_DATA_PS_YVYU,8,3 ## @SUN4I_FRONTEND_INPUT_FMT_DATA_PS_YVYU
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_sun4i_frontend_drm_format_to_input_sequence
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sun4i_frontend_drm_format_to_input_sequence
_sun4i_frontend_drm_format_to_input_sequence: ; @sun4i_frontend_drm_format_to_input_sequence
	.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, x1
	mov	x20, x0
	bl	_drm_format_info_is_yuv_planar
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #0
	str	xzr, [x19]
	b	LBB0_14
LBB0_2:
	ldr	w8, [x20]
	sub	w8, w8, #128
	cmp	w8, #9
	b.hi	LBB0_6
; %bb.3:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	mov	w0, #0
Lloh2:
	adrp	x8, _SUN4I_FRONTEND_INPUT_FMT_DATA_PS_VU@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SUN4I_FRONTEND_INPUT_FMT_DATA_PS_VU@GOTPAGEOFF]
	b	LBB0_13
LBB0_5:
	mov	w0, #0
Lloh4:
	adrp	x8, _SUN4I_FRONTEND_INPUT_FMT_DATA_PS_UV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SUN4I_FRONTEND_INPUT_FMT_DATA_PS_UV@GOTPAGEOFF]
	b	LBB0_13
LBB0_6:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_7:
	mov	w0, #0
Lloh9:
	adrp	x8, _SUN4I_FRONTEND_INPUT_FMT_DATA_PS_YVYU@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SUN4I_FRONTEND_INPUT_FMT_DATA_PS_YVYU@GOTPAGEOFF]
	b	LBB0_13
LBB0_8:
	mov	w0, #0
Lloh11:
	adrp	x8, _SUN4I_FRONTEND_INPUT_FMT_DATA_PS_YUYV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SUN4I_FRONTEND_INPUT_FMT_DATA_PS_YUYV@GOTPAGEOFF]
	b	LBB0_13
LBB0_9:
	mov	w0, #0
Lloh13:
	adrp	x8, _SUN4I_FRONTEND_INPUT_FMT_DATA_PS_XRGB@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SUN4I_FRONTEND_INPUT_FMT_DATA_PS_XRGB@GOTPAGEOFF]
	b	LBB0_13
LBB0_10:
	mov	w0, #0
Lloh15:
	adrp	x8, _SUN4I_FRONTEND_INPUT_FMT_DATA_PS_VYUY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SUN4I_FRONTEND_INPUT_FMT_DATA_PS_VYUY@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
	mov	w0, #0
Lloh17:
	adrp	x8, _SUN4I_FRONTEND_INPUT_FMT_DATA_PS_UYVY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SUN4I_FRONTEND_INPUT_FMT_DATA_PS_UYVY@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
	mov	w0, #0
Lloh19:
	adrp	x8, _SUN4I_FRONTEND_INPUT_FMT_DATA_PS_BGRX@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SUN4I_FRONTEND_INPUT_FMT_DATA_PS_BGRX@GOTPAGEOFF]
LBB0_13:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_14:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_11-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_5-LBB0_4)>>2
	.byte	(LBB0_5-LBB0_4)>>2
	.byte	(LBB0_12-LBB0_4)>>2
                                        ; -- End function
	.comm	_SUN4I_FRONTEND_INPUT_FMT_DATA_PS_BGRX,8,3 ; @SUN4I_FRONTEND_INPUT_FMT_DATA_PS_BGRX
	.comm	_SUN4I_FRONTEND_INPUT_FMT_DATA_PS_UV,8,3 ; @SUN4I_FRONTEND_INPUT_FMT_DATA_PS_UV
	.comm	_SUN4I_FRONTEND_INPUT_FMT_DATA_PS_VU,8,3 ; @SUN4I_FRONTEND_INPUT_FMT_DATA_PS_VU
	.comm	_SUN4I_FRONTEND_INPUT_FMT_DATA_PS_UYVY,8,3 ; @SUN4I_FRONTEND_INPUT_FMT_DATA_PS_UYVY
	.comm	_SUN4I_FRONTEND_INPUT_FMT_DATA_PS_VYUY,8,3 ; @SUN4I_FRONTEND_INPUT_FMT_DATA_PS_VYUY
	.comm	_SUN4I_FRONTEND_INPUT_FMT_DATA_PS_XRGB,8,3 ; @SUN4I_FRONTEND_INPUT_FMT_DATA_PS_XRGB
	.comm	_SUN4I_FRONTEND_INPUT_FMT_DATA_PS_YUYV,8,3 ; @SUN4I_FRONTEND_INPUT_FMT_DATA_PS_YUYV
	.comm	_SUN4I_FRONTEND_INPUT_FMT_DATA_PS_YVYU,8,3 ; @SUN4I_FRONTEND_INPUT_FMT_DATA_PS_YVYU
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_sun4i_frontend_drm_format_to_input_sequence
.subsections_via_symbols
