	.file	"extr_jpeg-core.c_s5p_jpeg_adjust_fourcc_to_subsampling.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	s5p_jpeg_adjust_fourcc_to_subsampling, @function
s5p_jpeg_adjust_fourcc_to_subsampling:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	DWORD PTR [rcx], 128
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	jne	.L16
.L6:
	mov	eax, DWORD PTR V4L2_PIX_FMT_GREY[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	DWORD PTR 0[rbp], eax
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	edi, esi
	mov	rbx, rcx
	call	s5p_jpeg_get_dwngrd_sch_id_by_fourcc@PLT
	movsx	r12, eax
	test	r12d, r12d
	js	.L14
	mov	eax, DWORD PTR [rbx]
	cmp	eax, 130
	je	.L5
	jg	.L6
	cmp	eax, 128
	je	.L6
	cmp	eax, 129
	jne	.L6
	mov	rdi, QWORD PTR subs422_fourcc_dwngrd_schema[rip]
	call	ARRAY_SIZE@PLT
	cmp	eax, r12d
	jle	.L14
	mov	rax, QWORD PTR subs422_fourcc_dwngrd_schema[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR [rax+r12*4]
	mov	DWORD PTR 0[rbp], eax
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rdi, QWORD PTR subs420_fourcc_dwngrd_schema[rip]
	call	ARRAY_SIZE@PLT
	cmp	eax, r12d
	jg	.L8
.L14:
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rax, QWORD PTR subs420_fourcc_dwngrd_schema[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR [rax+r12*4]
	mov	DWORD PTR 0[rbp], eax
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	s5p_jpeg_adjust_fourcc_to_subsampling, .-s5p_jpeg_adjust_fourcc_to_subsampling
	.comm	subs422_fourcc_dwngrd_schema,8,8
	.comm	subs420_fourcc_dwngrd_schema,8,8
	.comm	V4L2_PIX_FMT_GREY,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_jpeg-core.c_s5p_jpeg_adjust_fourcc_to_subsampling.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	s5p_jpeg_adjust_fourcc_to_subsampling, %function
s5p_jpeg_adjust_fourcc_to_subsampling:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r3
	ldr	r3, [r3]
	mov	r6, r2
	cmp	r3, #128
	bne	.L20
.L2:
	ldr	r3, .L21
	mov	r0, #0
	ldr	r3, [r3]
	str	r3, [r6]
	pop	{r4, r5, r6, pc}
.L20:
	mov	r0, r1
	bl	s5p_jpeg_get_dwngrd_sch_id_by_fourcc
	subs	r5, r0, #0
	blt	.L18
	ldr	r3, [r4]
	cmp	r3, #130
	beq	.L5
	bgt	.L6
	cmp	r3, #128
	beq	.L2
	cmp	r3, #129
	bne	.L6
	ldr	r4, .L21+4
	ldr	r0, [r4]
	bl	ARRAY_SIZE
	cmp	r0, r5
	ble	.L18
.L9:
	ldr	r3, [r4]
	mov	r0, #0
	ldr	r3, [r3, r5, lsl #2]
	str	r3, [r6]
	pop	{r4, r5, r6, pc}
.L5:
	ldr	r4, .L21+8
	ldr	r0, [r4]
	bl	ARRAY_SIZE
	cmp	r0, r5
	bgt	.L9
.L18:
	ldr	r3, .L21+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L6:
	ldr	r3, .L21
	mov	r0, #0
	ldr	r3, [r3]
	str	r3, [r6]
	pop	{r4, r5, r6, pc}
.L22:
	.align	2
.L21:
	.word	V4L2_PIX_FMT_GREY
	.word	subs422_fourcc_dwngrd_schema
	.word	subs420_fourcc_dwngrd_schema
	.word	EINVAL
	.size	s5p_jpeg_adjust_fourcc_to_subsampling, .-s5p_jpeg_adjust_fourcc_to_subsampling
	.comm	subs422_fourcc_dwngrd_schema,4,4
	.comm	subs420_fourcc_dwngrd_schema,4,4
	.comm	V4L2_PIX_FMT_GREY,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
