	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5p_jpeg_controls_create
_s5p_jpeg_controls_create:              ## @s5p_jpeg_controls_create
	.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	%rdi, %r14
	leaq	8(%rdi), %r15
	movq	%r15, %rdi
	movl	$3, %esi
	callq	_v4l2_ctrl_handler_init
	movq	(%r14), %rax
	movq	_S5P_JPEG_ENCODE@GOTPCREL(%rip), %rcx
	movl	$-40, %r8d
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_V4L2_CID_JPEG_COMPRESSION_QUALITY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_S5P_JPEG_COMPR_QUAL_WORST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	_s5p_jpeg_ctrl_ops@GOTPCREL(%rip), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	movl	$3, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_JPEG_RESTART_INTERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	movl	$65535, %r8d                    ## imm = 0xFFFF
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	16(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_SJPEG_S5P@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$-7, %eax
	movl	$-40, %r8d
	cmovel	%eax, %r8d
LBB0_2:
	movq	_V4L2_CID_JPEG_CHROMA_SUBSAMPLING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_V4L2_JPEG_CHROMA_SUBSAMPLING_GRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_V4L2_JPEG_CHROMA_SUBSAMPLING_422@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_s5p_jpeg_ctrl_ops@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_v4l2_ctrl_new_std_menu
	movl	(%r15), %ebx
	testl	%ebx, %ebx
	je	LBB0_3
LBB0_6:
	movq	%r15, %rdi
	callq	_v4l2_ctrl_handler_free
	jmp	LBB0_7
LBB0_3:
	movq	(%r14), %rcx
	movq	_S5P_JPEG_DECODE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.4:
	movq	_V4L2_CTRL_FLAG_VOLATILE@GOTPCREL(%rip), %rcx
	movq	_V4L2_CTRL_FLAG_READ_ONLY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	orl	%edx, (%rax)
LBB0_5:
	movq	%r15, %rdi
	callq	_v4l2_ctrl_handler_setup
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_6
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S5P_JPEG_ENCODE,8,3            ## @S5P_JPEG_ENCODE
	.comm	_s5p_jpeg_ctrl_ops,4,2          ## @s5p_jpeg_ctrl_ops
	.comm	_V4L2_CID_JPEG_COMPRESSION_QUALITY,4,2 ## @V4L2_CID_JPEG_COMPRESSION_QUALITY
	.comm	_S5P_JPEG_COMPR_QUAL_WORST,4,2  ## @S5P_JPEG_COMPR_QUAL_WORST
	.comm	_V4L2_CID_JPEG_RESTART_INTERVAL,4,2 ## @V4L2_CID_JPEG_RESTART_INTERVAL
	.comm	_SJPEG_S5P,8,3                  ## @SJPEG_S5P
	.comm	_V4L2_CID_JPEG_CHROMA_SUBSAMPLING,4,2 ## @V4L2_CID_JPEG_CHROMA_SUBSAMPLING
	.comm	_V4L2_JPEG_CHROMA_SUBSAMPLING_GRAY,4,2 ## @V4L2_JPEG_CHROMA_SUBSAMPLING_GRAY
	.comm	_V4L2_JPEG_CHROMA_SUBSAMPLING_422,4,2 ## @V4L2_JPEG_CHROMA_SUBSAMPLING_422
	.comm	_S5P_JPEG_DECODE,8,3            ## @S5P_JPEG_DECODE
	.comm	_V4L2_CTRL_FLAG_VOLATILE,4,2    ## @V4L2_CTRL_FLAG_VOLATILE
	.comm	_V4L2_CTRL_FLAG_READ_ONLY,4,2   ## @V4L2_CTRL_FLAG_READ_ONLY
	.no_dead_strip	_s5p_jpeg_controls_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5p_jpeg_controls_create
_s5p_jpeg_controls_create:              ; @s5p_jpeg_controls_create
	.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	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	mov	w1, #3
	bl	_v4l2_ctrl_handler_init
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _S5P_JPEG_ENCODE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _S5P_JPEG_ENCODE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	mov	w21, #-40
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _V4L2_CID_JPEG_COMPRESSION_QUALITY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_CID_JPEG_COMPRESSION_QUALITY@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _S5P_JPEG_COMPR_QUAL_WORST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _S5P_JPEG_COMPR_QUAL_WORST@GOTPAGEOFF]
Lloh8:
	ldr	w6, [x8]
Lloh9:
	adrp	x22, _s5p_jpeg_ctrl_ops@GOTPAGE
Lloh10:
	ldr	x22, [x22, _s5p_jpeg_ctrl_ops@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x22
	mov	w3, #0
	mov	w4, #3
	mov	w5, #1
	bl	_v4l2_ctrl_new_std
Lloh11:
	adrp	x8, _V4L2_CID_JPEG_RESTART_INTERVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _V4L2_CID_JPEG_RESTART_INTERVAL@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	w3, #0
	mov	w4, #65535
	mov	w5, #1
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh14:
	adrp	x9, _SJPEG_S5P@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SJPEG_S5P@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	mov	w8, #-7
	csel	w21, w8, w21, eq
LBB0_2:
Lloh17:
	adrp	x8, _V4L2_CID_JPEG_CHROMA_SUBSAMPLING@GOTPAGE
Lloh18:
	ldr	x8, [x8, _V4L2_CID_JPEG_CHROMA_SUBSAMPLING@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
Lloh20:
	adrp	x8, _V4L2_JPEG_CHROMA_SUBSAMPLING_GRAY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _V4L2_JPEG_CHROMA_SUBSAMPLING_GRAY@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
Lloh23:
	adrp	x8, _V4L2_JPEG_CHROMA_SUBSAMPLING_422@GOTPAGE
Lloh24:
	ldr	x8, [x8, _V4L2_JPEG_CHROMA_SUBSAMPLING_422@GOTPAGEOFF]
Lloh25:
	ldr	w5, [x8]
Lloh26:
	adrp	x1, _s5p_jpeg_ctrl_ops@GOTPAGE
Lloh27:
	ldr	x1, [x1, _s5p_jpeg_ctrl_ops@GOTPAGEOFF]
	mov	x0, x19
	mov	x4, x21
	bl	_v4l2_ctrl_new_std_menu
	ldr	w21, [x19]
	cbz	w21, LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_v4l2_ctrl_handler_free
	b	LBB0_7
LBB0_4:
	ldr	x8, [x20]
Lloh28:
	adrp	x9, _S5P_JPEG_DECODE@GOTPAGE
Lloh29:
	ldr	x9, [x9, _S5P_JPEG_DECODE@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
Lloh31:
	adrp	x8, _V4L2_CTRL_FLAG_VOLATILE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _V4L2_CTRL_FLAG_VOLATILE@GOTPAGEOFF]
Lloh33:
	adrp	x9, _V4L2_CTRL_FLAG_READ_ONLY@GOTPAGE
Lloh34:
	ldr	x9, [x9, _V4L2_CTRL_FLAG_READ_ONLY@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
Lloh36:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x0]
	orr	w8, w8, w9
	str	w8, [x0]
LBB0_6:
	mov	x0, x19
	bl	_v4l2_ctrl_handler_setup
	mov	x21, x0
	tbnz	w0, #31, LBB0_3
LBB0_7:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_S5P_JPEG_ENCODE,8,3            ; @S5P_JPEG_ENCODE
	.comm	_s5p_jpeg_ctrl_ops,4,2          ; @s5p_jpeg_ctrl_ops
	.comm	_V4L2_CID_JPEG_COMPRESSION_QUALITY,4,2 ; @V4L2_CID_JPEG_COMPRESSION_QUALITY
	.comm	_S5P_JPEG_COMPR_QUAL_WORST,4,2  ; @S5P_JPEG_COMPR_QUAL_WORST
	.comm	_V4L2_CID_JPEG_RESTART_INTERVAL,4,2 ; @V4L2_CID_JPEG_RESTART_INTERVAL
	.comm	_SJPEG_S5P,8,3                  ; @SJPEG_S5P
	.comm	_V4L2_CID_JPEG_CHROMA_SUBSAMPLING,4,2 ; @V4L2_CID_JPEG_CHROMA_SUBSAMPLING
	.comm	_V4L2_JPEG_CHROMA_SUBSAMPLING_GRAY,4,2 ; @V4L2_JPEG_CHROMA_SUBSAMPLING_GRAY
	.comm	_V4L2_JPEG_CHROMA_SUBSAMPLING_422,4,2 ; @V4L2_JPEG_CHROMA_SUBSAMPLING_422
	.comm	_S5P_JPEG_DECODE,8,3            ; @S5P_JPEG_DECODE
	.comm	_V4L2_CTRL_FLAG_VOLATILE,4,2    ; @V4L2_CTRL_FLAG_VOLATILE
	.comm	_V4L2_CTRL_FLAG_READ_ONLY,4,2   ; @V4L2_CTRL_FLAG_READ_ONLY
	.no_dead_strip	_s5p_jpeg_controls_create
.subsections_via_symbols
