	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5p_jpeg_adjust_fourcc_to_subsampling
_s5p_jpeg_adjust_fourcc_to_subsampling: ## @s5p_jpeg_adjust_fourcc_to_subsampling
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	cmpl	$128, (%rcx)
	je	LBB0_7
## %bb.1:
	movq	%rcx, %rbx
	movl	%esi, %edi
	callq	_s5p_jpeg_get_dwngrd_sch_id_by_fourcc
	testl	%eax, %eax
	js	LBB0_2
## %bb.4:
	movl	%eax, %r15d
	movl	(%rbx), %eax
	cmpl	$130, %eax
	je	LBB0_9
## %bb.5:
	cmpl	$129, %eax
	je	LBB0_12
## %bb.6:
	cmpl	$128, %eax
LBB0_7:
	movq	_V4L2_PIX_FMT_GREY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	movl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_9:
	movq	_subs420_fourcc_dwngrd_schema@GOTPCREL(%rip), %rbx
	jmp	LBB0_10
LBB0_12:
	movq	_subs422_fourcc_dwngrd_schema@GOTPCREL(%rip), %rbx
LBB0_10:
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r15d
	jge	LBB0_2
## %bb.11:
	movq	(%rbx), %rax
	movl	%r15d, %ecx
	movl	(%rax,%rcx,4), %eax
	jmp	LBB0_8
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_PIX_FMT_GREY,4,2          ## @V4L2_PIX_FMT_GREY
	.comm	_subs420_fourcc_dwngrd_schema,8,3 ## @subs420_fourcc_dwngrd_schema
	.comm	_subs422_fourcc_dwngrd_schema,8,3 ## @subs422_fourcc_dwngrd_schema
	.no_dead_strip	_s5p_jpeg_adjust_fourcc_to_subsampling
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5p_jpeg_adjust_fourcc_to_subsampling
_s5p_jpeg_adjust_fourcc_to_subsampling: ; @s5p_jpeg_adjust_fourcc_to_subsampling
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	ldr	w8, [x3]
	cmp	w8, #128
	b.eq	LBB0_5
; %bb.1:
	mov	x21, x3
	mov	x0, x1
	bl	_s5p_jpeg_get_dwngrd_sch_id_by_fourcc
	tbnz	w0, #31, LBB0_10
; %bb.2:
	mov	x20, x0
	ldr	w8, [x21]
	cmp	w8, #130
	b.eq	LBB0_6
; %bb.3:
	cmp	w8, #129
	b.eq	LBB0_7
; %bb.4:
	cmp	w8, #128
LBB0_5:
	mov	w0, #0
Lloh0:
	adrp	x8, _V4L2_PIX_FMT_GREY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_PIX_FMT_GREY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_11
LBB0_6:
Lloh3:
	adrp	x21, _subs420_fourcc_dwngrd_schema@GOTPAGE
Lloh4:
	ldr	x21, [x21, _subs420_fourcc_dwngrd_schema@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh5:
	adrp	x21, _subs422_fourcc_dwngrd_schema@GOTPAGE
Lloh6:
	ldr	x21, [x21, _subs422_fourcc_dwngrd_schema@GOTPAGEOFF]
LBB0_8:
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w20, w0
	b.ge	LBB0_10
; %bb.9:
	mov	w0, #0
	ldr	x8, [x21]
	ldr	w8, [x8, w20, uxtw #2]
	str	w8, [x19]
	b	LBB0_11
LBB0_10:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_PIX_FMT_GREY,4,2          ; @V4L2_PIX_FMT_GREY
	.comm	_subs420_fourcc_dwngrd_schema,8,3 ; @subs420_fourcc_dwngrd_schema
	.comm	_subs422_fourcc_dwngrd_schema,8,3 ; @subs422_fourcc_dwngrd_schema
	.no_dead_strip	_s5p_jpeg_adjust_fourcc_to_subsampling
.subsections_via_symbols
