	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5p_jpeg_adjust_subs_ctrl
_s5p_jpeg_adjust_subs_ctrl:             ## @s5p_jpeg_adjust_subs_ctrl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	addl	$-128, %ecx
	cmpl	$3, %ecx
	ja	LBB0_7
## %bb.1:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	(%rdi), %rcx
	movl	4(%rcx), %edx
	movq	_V4L2_PIX_FMT_RGB32@GOTPCREL(%rip), %rdi
	cmpl	(%rdi), %edx
	jne	LBB0_8
## %bb.3:
	movl	$0, (%rsi)
	jmp	LBB0_8
LBB0_4:
	movq	(%rdi), %rcx
	movl	4(%rcx), %edx
	movq	_V4L2_PIX_FMT_GREY@GOTPCREL(%rip), %rdi
	cmpl	(%rdi), %edx
	je	LBB0_8
## %bb.5:
	movl	(%rsi), %edx
	movq	_V4L2_JPEG_CHROMA_SUBSAMPLING_GRAY@GOTPCREL(%rip), %rdi
	cmpl	(%rdi), %edx
	jne	LBB0_8
## %bb.6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_7:
	movq	(%rdi), %rcx
LBB0_8:
	movl	(%rcx), %ecx
	cmpl	(%rsi), %ecx
	jle	LBB0_10
## %bb.9:
	movl	%ecx, (%rsi)
LBB0_10:
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_V4L2_PIX_FMT_RGB32,4,2         ## @V4L2_PIX_FMT_RGB32
	.comm	_V4L2_PIX_FMT_GREY,4,2          ## @V4L2_PIX_FMT_GREY
	.comm	_V4L2_JPEG_CHROMA_SUBSAMPLING_GRAY,4,2 ## @V4L2_JPEG_CHROMA_SUBSAMPLING_GRAY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_s5p_jpeg_adjust_subs_ctrl
.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_subs_ctrl
_s5p_jpeg_adjust_subs_ctrl:             ; @s5p_jpeg_adjust_subs_ctrl
	.cfi_startproc
; %bb.0:
	mov	x8, x0
	ldr	x9, [x0, #8]
	ldr	x9, [x9]
	ldr	w9, [x9]
	sub	w9, w9, #128
	cmp	w9, #3
	b.hi	LBB0_7
; %bb.1:
	mov	w0, #0
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
	ldr	x8, [x8]
	ldr	w9, [x8, #4]
Lloh2:
	adrp	x10, _V4L2_PIX_FMT_RGB32@GOTPAGE
Lloh3:
	ldr	x10, [x10, _V4L2_PIX_FMT_RGB32@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_8
; %bb.3:
	str	wzr, [x1]
	b	LBB0_8
LBB0_4:
	ldr	x8, [x8]
	ldr	w9, [x8, #4]
Lloh5:
	adrp	x10, _V4L2_PIX_FMT_GREY@GOTPAGE
Lloh6:
	ldr	x10, [x10, _V4L2_PIX_FMT_GREY@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	cmp	w9, w10
	b.eq	LBB0_8
; %bb.5:
	ldr	w9, [x1]
Lloh8:
	adrp	x10, _V4L2_JPEG_CHROMA_SUBSAMPLING_GRAY@GOTPAGE
Lloh9:
	ldr	x10, [x10, _V4L2_JPEG_CHROMA_SUBSAMPLING_GRAY@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_8
; %bb.6:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_7:
	ldr	x8, [x8]
LBB0_8:
	ldr	w8, [x8]
	ldr	w9, [x1]
	cmp	w8, w9
	b.le	LBB0_11
; %bb.9:
	mov	w0, #0
	str	w8, [x1]
LBB0_10:
	ret
LBB0_11:
	mov	w0, #0
	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
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_V4L2_PIX_FMT_RGB32,4,2         ; @V4L2_PIX_FMT_RGB32
	.comm	_V4L2_PIX_FMT_GREY,4,2          ; @V4L2_PIX_FMT_GREY
	.comm	_V4L2_JPEG_CHROMA_SUBSAMPLING_GRAY,4,2 ; @V4L2_JPEG_CHROMA_SUBSAMPLING_GRAY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_s5p_jpeg_adjust_subs_ctrl
.subsections_via_symbols
