	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx2341x_s_ctrl
_cx2341x_s_ctrl:                        ## @cx2341x_s_ctrl
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_to_cxhdl
	movq	%rax, %r15
	movl	8(%rbx), %eax
	addl	$-128, %eax
	cmpl	$13, %eax
	ja	LBB0_3
## %bb.1:
	movq	(%rbx), %r8
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	_CX2341X_ENC_SET_FRAME_DROP_RATE@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_44
LBB0_4:
	movq	_CX2341X_ENC_MUTE_VIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	96(%r15), %rax
	movq	104(%r15), %rdx
	movl	(%rax), %ecx
	shll	$8, %ecx
	orl	(%rdx), %ecx
	movq	%r15, %rdi
	movl	$1, %edx
	jmp	LBB0_30
LBB0_5:
	movq	_CX2341X_ENC_SET_GOP_CLOSURE@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_6:
	movq	_CX2341X_ENC_SET_GOP_PROPERTIES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	152(%r15), %rax
	movq	160(%r15), %rcx
	movl	(%rcx), %ecx
	movl	(%rax), %r8d
	incl	%r8d
	jmp	LBB0_22
LBB0_7:
	movq	_CX2341X_ENC_SET_ASPECT_RATIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	incl	%r8d
	jmp	LBB0_29
LBB0_8:
	movq	120(%r15), %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_44
## %bb.9:
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_44
## %bb.10:
	movq	%r15, %rdi
	movq	%r8, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rcx                           ## TAILCALL
LBB0_11:
	movq	_CX2341X_ENC_SET_STREAM_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	_cx2341x_s_ctrl.mpeg_stream_type(%rip), %rax
	movl	(%rax,%r8,4), %ecx
	movq	%r15, %rdi
	movl	$1, %edx
	xorl	%eax, %eax
	callq	_cx2341x_hdl_api
	testl	%eax, %eax
	jne	LBB0_44
## %bb.12:
	movq	_CX2341X_ENC_SET_BIT_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	128(%r15), %rax
	movq	136(%r15), %rdx
	movl	(%rax), %ecx
	movq	144(%r15), %rax
	movl	(%rax), %r8d
	movslq	(%rdx), %rax
	imulq	$1374389535, %rax, %r9          ## imm = 0x51EB851F
	movq	%r9, %rax
	shrq	$63, %rax
	sarq	$39, %r9
	addl	%eax, %r9d
	movq	%r15, %rdi
	movl	$5, %edx
                                        ## kill: def $r9d killed $r9d killed $r9
	xorl	%eax, %eax
	pushq	$0
	pushq	$0
	callq	_cx2341x_hdl_api
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_44
## %bb.13:
	movq	112(%r15), %rax
	movq	128(%r15), %rdi
	movl	(%rax), %eax
	movq	_V4L2_MPEG_VIDEO_ENCODING_MPEG_1@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpl	(%rcx), %eax
	setne	%sil
	callq	_v4l2_ctrl_activate
	movq	128(%r15), %rax
	movq	136(%r15), %rdi
	movl	(%rax), %eax
	movq	_V4L2_MPEG_VIDEO_BITRATE_MODE_CBR@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpl	(%rcx), %eax
	setne	%sil
	callq	_v4l2_ctrl_activate
	movq	112(%r15), %rdi
	callq	_cx2341x_neq
	testl	%eax, %eax
	je	LBB0_43
## %bb.14:
	movq	120(%r15), %rax
	testq	%rax, %rax
	je	LBB0_43
## %bb.15:
	movq	24(%rax), %rcx
	movl	$0, %eax
	testq	%rcx, %rcx
	je	LBB0_44
## %bb.16:
	movq	112(%r15), %rax
	jmp	LBB0_42
LBB0_17:
	movq	_CX2341X_ENC_SET_DNR_FILTER_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	88(%r15), %rax
	movq	72(%r15), %rdx
	movq	80(%r15), %rcx
	movl	(%rcx), %ecx
	addl	%ecx, %ecx
	orl	(%rax), %ecx
	movl	(%rdx), %r8d
	movq	%r15, %rdi
	movl	$2, %edx
	xorl	%eax, %eax
	callq	_cx2341x_hdl_api
	testl	%eax, %eax
	jne	LBB0_44
## %bb.18:
	movq	48(%r15), %rdi
	movq	88(%r15), %rax
	movl	(%rax), %eax
	movq	_V4L2_MPEG_CX2341X_VIDEO_SPATIAL_FILTER_MODE_AUTO@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpl	(%rcx), %eax
	setne	%bl
	movl	%ebx, %esi
	callq	_v4l2_ctrl_activate
	movq	64(%r15), %rdi
	movl	%ebx, %esi
	callq	_v4l2_ctrl_activate
	movq	56(%r15), %rdi
	movl	%ebx, %esi
	callq	_v4l2_ctrl_activate
	movq	40(%r15), %rdi
	movq	80(%r15), %rax
	movl	(%rax), %eax
	movq	_V4L2_MPEG_CX2341X_VIDEO_TEMPORAL_FILTER_MODE_AUTO@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpl	(%rcx), %eax
	setne	%sil
	callq	_v4l2_ctrl_activate
	movq	32(%r15), %rdi
	movq	72(%r15), %rax
	movl	(%rax), %eax
	movq	_V4L2_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE_OFF@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpl	(%rcx), %eax
	setne	%bl
	movl	%ebx, %esi
	callq	_v4l2_ctrl_activate
	movq	24(%r15), %rdi
	movl	%ebx, %esi
	callq	_v4l2_ctrl_activate
	movq	16(%r15), %rdi
	movl	%ebx, %esi
	callq	_v4l2_ctrl_activate
	movq	8(%r15), %rdi
	movl	%ebx, %esi
	callq	_v4l2_ctrl_activate
LBB0_43:
	xorl	%eax, %eax
	jmp	LBB0_44
LBB0_19:
	movq	_CX2341X_ENC_SET_DNR_FILTER_PROPS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	40(%r15), %rax
	movq	48(%r15), %rcx
	jmp	LBB0_21
LBB0_20:
	movq	_CX2341X_ENC_SET_SPATIAL_FILTER_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	56(%r15), %rax
	movq	64(%r15), %rcx
LBB0_21:
	movl	(%rcx), %ecx
	movl	(%rax), %r8d
LBB0_22:
	movq	%r15, %rdi
	movl	$2, %edx
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cx2341x_hdl_api                ## TAILCALL
LBB0_23:
	movq	_CX2341X_ENC_SET_CORING_LEVELS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	32(%r15), %rax
	movl	(%rax), %ecx
	movq	24(%r15), %rax
	movl	(%rax), %r8d
	movq	8(%r15), %rax
	movq	16(%r15), %rdx
	movl	(%rdx), %r9d
	movl	(%rax), %ebx
	subq	$8, %rsp
	movq	%r15, %rdi
	movl	$4, %edx
	xorl	%eax, %eax
	pushq	%rbx
	callq	_cx2341x_hdl_api
	addq	$16, %rsp
	jmp	LBB0_44
LBB0_24:
	movq	_CX2341X_ENC_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$2, %edx
	movl	$7, %ecx
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cx2341x_hdl_api                ## TAILCALL
LBB0_25:
	movq	168(%r15), %rax
	movq	176(%r15), %rcx
	movl	(%rax), %eax
	shll	$8, %eax
	orl	(%rcx), %eax
	movq	184(%r15), %rcx
	movl	(%rcx), %ecx
	shll	$10, %ecx
	movq	224(%r15), %rdx
	movl	(%rdx), %edx
	shll	$14, %edx
	orl	%ecx, %edx
	movq	216(%r15), %rcx
	movl	(%rcx), %ecx
	movq	_V4L2_MPEG_AUDIO_EMPHASIS_CCITT_J17@GOTPCREL(%rip), %rsi
	movl	%ecx, %edi
	shll	$12, %edi
	cmpl	(%rsi), %ecx
	movl	$12288, %r14d                   ## imm = 0x3000
	cmovnel	%edi, %r14d
	orl	%edx, %r14d
	orl	%eax, %r14d
	movq	208(%r15), %rax
	movl	(%rax), %eax
	movq	_V4L2_MPEG_AUDIO_ENCODING_AC3@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	jne	LBB0_31
## %bb.26:
	movq	_V4L2_MPEG_AUDIO_ENCODING_LAYER_2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$2, %eax
	movl	$12, %ecx
	subl	%eax, %ecx
	movq	200(%r15), %rax
	movl	(%rax), %edx
	shll	$4, %edx
	orl	%ecx, %edx
	movq	_CX2341X_AUDIO_ENCODING_METHOD_AC3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$28, %eax
	orl	%edx, %eax
	jmp	LBB0_32
LBB0_27:
	movq	_CX2341X_ENC_MUTE_AUDIO@GOTPCREL(%rip), %rax
LBB0_28:
	movl	(%rax), %esi
LBB0_29:
	movq	%r15, %rdi
	movl	$1, %edx
	movl	%r8d, %ecx
LBB0_30:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cx2341x_hdl_api                ## TAILCALL
LBB0_31:
	shll	$2, %eax
	movl	$12, %ecx
	subl	%eax, %ecx
	movq	192(%r15), %rax
	movl	(%rax), %eax
	shll	$4, %eax
	addl	$16, %eax
	orl	%ecx, %eax
LBB0_32:
	orl	%eax, %r14d
	movq	_CX2341X_ENC_SET_AUDIO_PROPERTIES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_cx2341x_hdl_api
	testl	%eax, %eax
	je	LBB0_33
LBB0_44:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_33:
	movl	%r14d, (%r15)
	movq	200(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_35
## %bb.34:
	movq	208(%r15), %rax
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	cmpl	(%r12), %eax
	setne	%bl
	sete	%sil
	callq	_v4l2_ctrl_activate
	movq	192(%r15), %rdi
	movl	%ebx, %esi
	callq	_v4l2_ctrl_activate
LBB0_35:
	movq	168(%r15), %rax
	movq	184(%r15), %rdi
	movl	(%rax), %eax
	movq	_V4L2_MPEG_AUDIO_MODE_JOINT_STEREO@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpl	(%rcx), %eax
	sete	%sil
	callq	_v4l2_ctrl_activate
	movq	176(%r15), %rdi
	callq	_cx2341x_neq
	testl	%eax, %eax
	je	LBB0_38
## %bb.36:
	movq	120(%r15), %rax
	testq	%rax, %rax
	je	LBB0_38
## %bb.37:
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_38
## %bb.45:
	movq	176(%r15), %rcx
	movl	(%rcx), %esi
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_38:
	movq	168(%r15), %rdi
	callq	_cx2341x_neq
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	je	LBB0_44
## %bb.39:
	movq	120(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_44
## %bb.40:
	movq	16(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_44
## %bb.41:
	movq	168(%r15), %rax
LBB0_42:
	movl	(%rax), %esi
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rcx                           ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_11
	.long	L0_0_set_17
	.long	L0_0_set_19
	.long	L0_0_set_20
	.long	L0_0_set_23
	.long	L0_0_set_24
	.long	L0_0_set_25
	.long	L0_0_set_27
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @cx2341x_s_ctrl.mpeg_stream_type
_cx2341x_s_ctrl.mpeg_stream_type:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	14                              ## 0xe
	.long	11                              ## 0xb
	.long	12                              ## 0xc

	.comm	_CX2341X_ENC_SET_ASPECT_RATIO,4,2 ## @CX2341X_ENC_SET_ASPECT_RATIO
	.comm	_CX2341X_ENC_SET_GOP_CLOSURE,4,2 ## @CX2341X_ENC_SET_GOP_CLOSURE
	.comm	_CX2341X_ENC_MUTE_AUDIO,4,2     ## @CX2341X_ENC_MUTE_AUDIO
	.comm	_CX2341X_ENC_SET_FRAME_DROP_RATE,4,2 ## @CX2341X_ENC_SET_FRAME_DROP_RATE
	.comm	_CX2341X_ENC_MISC,4,2           ## @CX2341X_ENC_MISC
	.comm	_V4L2_MPEG_AUDIO_EMPHASIS_CCITT_J17,4,2 ## @V4L2_MPEG_AUDIO_EMPHASIS_CCITT_J17
	.comm	_V4L2_MPEG_AUDIO_ENCODING_AC3,4,2 ## @V4L2_MPEG_AUDIO_ENCODING_AC3
	.comm	_V4L2_MPEG_AUDIO_ENCODING_LAYER_2,4,2 ## @V4L2_MPEG_AUDIO_ENCODING_LAYER_2
	.comm	_CX2341X_AUDIO_ENCODING_METHOD_AC3,4,2 ## @CX2341X_AUDIO_ENCODING_METHOD_AC3
	.comm	_CX2341X_ENC_SET_AUDIO_PROPERTIES,4,2 ## @CX2341X_ENC_SET_AUDIO_PROPERTIES
	.comm	_V4L2_MPEG_AUDIO_MODE_JOINT_STEREO,4,2 ## @V4L2_MPEG_AUDIO_MODE_JOINT_STEREO
	.comm	_CX2341X_ENC_SET_GOP_PROPERTIES,4,2 ## @CX2341X_ENC_SET_GOP_PROPERTIES
	.comm	_CX2341X_ENC_SET_STREAM_TYPE,4,2 ## @CX2341X_ENC_SET_STREAM_TYPE
	.comm	_CX2341X_ENC_SET_BIT_RATE,4,2   ## @CX2341X_ENC_SET_BIT_RATE
	.comm	_V4L2_MPEG_VIDEO_ENCODING_MPEG_1,4,2 ## @V4L2_MPEG_VIDEO_ENCODING_MPEG_1
	.comm	_V4L2_MPEG_VIDEO_BITRATE_MODE_CBR,4,2 ## @V4L2_MPEG_VIDEO_BITRATE_MODE_CBR
	.comm	_CX2341X_ENC_MUTE_VIDEO,4,2     ## @CX2341X_ENC_MUTE_VIDEO
	.comm	_CX2341X_ENC_SET_DNR_FILTER_MODE,4,2 ## @CX2341X_ENC_SET_DNR_FILTER_MODE
	.comm	_V4L2_MPEG_CX2341X_VIDEO_SPATIAL_FILTER_MODE_AUTO,4,2 ## @V4L2_MPEG_CX2341X_VIDEO_SPATIAL_FILTER_MODE_AUTO
	.comm	_V4L2_MPEG_CX2341X_VIDEO_TEMPORAL_FILTER_MODE_AUTO,4,2 ## @V4L2_MPEG_CX2341X_VIDEO_TEMPORAL_FILTER_MODE_AUTO
	.comm	_V4L2_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE_OFF,4,2 ## @V4L2_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE_OFF
	.comm	_CX2341X_ENC_SET_SPATIAL_FILTER_TYPE,4,2 ## @CX2341X_ENC_SET_SPATIAL_FILTER_TYPE
	.comm	_CX2341X_ENC_SET_DNR_FILTER_PROPS,4,2 ## @CX2341X_ENC_SET_DNR_FILTER_PROPS
	.comm	_CX2341X_ENC_SET_CORING_LEVELS,4,2 ## @CX2341X_ENC_SET_CORING_LEVELS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_cx2341x_s_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx2341x_s_ctrl
_cx2341x_s_ctrl:                        ; @cx2341x_s_ctrl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	bl	_to_cxhdl
	ldr	w8, [x20, #8]
	sub	w8, w8, #128
	cmp	w8, #13
	b.hi	LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x3, [x20]
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _CX2341X_ENC_SET_FRAME_DROP_RATE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CX2341X_ENC_SET_FRAME_DROP_RATE@GOTPAGEOFF]
	b	LBB0_30
LBB0_3:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_34
LBB0_4:
Lloh7:
	adrp	x8, _CX2341X_ENC_MUTE_VIDEO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CX2341X_ENC_MUTE_VIDEO@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldp	x9, x8, [x19, #96]
	ldr	w8, [x8]
	ldr	w9, [x9]
	orr	w3, w8, w9, lsl #8
	b	LBB0_8
LBB0_5:
Lloh10:
	adrp	x8, _CX2341X_ENC_SET_GOP_CLOSURE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CX2341X_ENC_SET_GOP_CLOSURE@GOTPAGEOFF]
	b	LBB0_30
LBB0_6:
Lloh12:
	adrp	x8, _CX2341X_ENC_SET_GOP_PROPERTIES@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CX2341X_ENC_SET_GOP_PROPERTIES@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldp	x9, x8, [x19, #152]
	ldr	w3, [x8]
	ldr	w8, [x9]
	add	w8, w8, #1
	b	LBB0_24
LBB0_7:
Lloh15:
	adrp	x8, _CX2341X_ENC_SET_ASPECT_RATIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CX2341X_ENC_SET_ASPECT_RATIO@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	add	w3, w3, #1
LBB0_8:
	mov	x0, x19
	mov	w2, #1
	b	LBB0_31
LBB0_9:
	ldr	x8, [x19, #120]
	cbz	x8, LBB0_20
; %bb.10:
	ldr	x2, [x8]
	cbz	x2, LBB0_20
; %bb.11:
	mov	x0, x19
	mov	x1, x3
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	br	x2
LBB0_12:
Lloh18:
	adrp	x8, _CX2341X_ENC_SET_STREAM_TYPE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CX2341X_ENC_SET_STREAM_TYPE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _cx2341x_s_ctrl.mpeg_stream_type@PAGE
Lloh22:
	add	x8, x8, _cx2341x_s_ctrl.mpeg_stream_type@PAGEOFF
	ldr	w3, [x8, x3, lsl #2]
	mov	x0, x19
	mov	w2, #1
	bl	_cx2341x_hdl_api
	cbnz	w0, LBB0_34
; %bb.13:
Lloh23:
	adrp	x8, _CX2341X_ENC_SET_BIT_RATE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CX2341X_ENC_SET_BIT_RATE@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	ldp	x8, x9, [x19, #128]
	ldr	w3, [x8]
	ldr	x8, [x19, #144]
	ldrsw	x9, [x9]
	mov	w10, #34079
	movk	w10, #20971, lsl #16
	mul	x9, x9, x10
	lsr	x10, x9, #63
	asr	x9, x9, #39
	add	w9, w9, w10
	ldr	w8, [x8]
	stp	xzr, xzr, [sp, #16]
	stp	x8, x9, [sp]
	mov	x0, x19
	mov	w2, #5
	bl	_cx2341x_hdl_api
	cbnz	w0, LBB0_34
; %bb.14:
	ldr	x0, [x19, #128]
	ldr	x8, [x19, #112]
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _V4L2_MPEG_VIDEO_ENCODING_MPEG_1@GOTPAGE
Lloh27:
	ldr	x9, [x9, _V4L2_MPEG_VIDEO_ENCODING_MPEG_1@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w1, ne
	bl	_v4l2_ctrl_activate
	ldp	x8, x0, [x19, #128]
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _V4L2_MPEG_VIDEO_BITRATE_MODE_CBR@GOTPAGE
Lloh30:
	ldr	x9, [x9, _V4L2_MPEG_VIDEO_BITRATE_MODE_CBR@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w1, ne
	bl	_v4l2_ctrl_activate
	ldr	x0, [x19, #112]
	bl	_cx2341x_neq
	cbz	w0, LBB0_34
; %bb.15:
	ldr	x8, [x19, #120]
	cbz	x8, LBB0_20
; %bb.16:
	ldr	x2, [x8, #24]
	cbz	x2, LBB0_20
; %bb.17:
	ldr	x8, [x19, #112]
	b	LBB0_45
LBB0_18:
Lloh32:
	adrp	x8, _CX2341X_ENC_SET_DNR_FILTER_MODE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _CX2341X_ENC_SET_DNR_FILTER_MODE@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	ldp	x9, x8, [x19, #80]
	ldr	w8, [x8]
	ldr	x10, [x19, #72]
	ldr	w9, [x9]
	orr	w3, w8, w9, lsl #1
	ldr	w8, [x10]
	str	x8, [sp]
	mov	x0, x19
	mov	w2, #2
	bl	_cx2341x_hdl_api
	cbnz	w0, LBB0_34
; %bb.19:
	ldr	x8, [x19, #88]
	ldr	w8, [x8]
Lloh35:
	adrp	x9, _V4L2_MPEG_CX2341X_VIDEO_SPATIAL_FILTER_MODE_AUTO@GOTPAGE
Lloh36:
	ldr	x9, [x9, _V4L2_MPEG_CX2341X_VIDEO_SPATIAL_FILTER_MODE_AUTO@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w20, ne
	ldr	x0, [x19, #48]
	mov	x1, x20
	bl	_v4l2_ctrl_activate
	ldr	x0, [x19, #64]
	mov	x1, x20
	bl	_v4l2_ctrl_activate
	ldr	x0, [x19, #56]
	mov	x1, x20
	bl	_v4l2_ctrl_activate
	ldr	x8, [x19, #80]
	ldr	w8, [x8]
Lloh38:
	adrp	x9, _V4L2_MPEG_CX2341X_VIDEO_TEMPORAL_FILTER_MODE_AUTO@GOTPAGE
Lloh39:
	ldr	x9, [x9, _V4L2_MPEG_CX2341X_VIDEO_TEMPORAL_FILTER_MODE_AUTO@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w1, ne
	ldr	x0, [x19, #40]
	bl	_v4l2_ctrl_activate
	ldr	x8, [x19, #72]
	ldr	w8, [x8]
Lloh41:
	adrp	x9, _V4L2_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE_OFF@GOTPAGE
Lloh42:
	ldr	x9, [x9, _V4L2_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE_OFF@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w20, ne
	ldr	x0, [x19, #32]
	mov	x1, x20
	bl	_v4l2_ctrl_activate
	ldr	x0, [x19, #24]
	mov	x1, x20
	bl	_v4l2_ctrl_activate
	ldr	x0, [x19, #16]
	mov	x1, x20
	bl	_v4l2_ctrl_activate
	ldr	x0, [x19, #8]
	mov	x1, x20
	bl	_v4l2_ctrl_activate
LBB0_20:
	mov	w0, #0
	b	LBB0_34
LBB0_21:
Lloh44:
	adrp	x8, _CX2341X_ENC_SET_DNR_FILTER_PROPS@GOTPAGE
Lloh45:
	ldr	x8, [x8, _CX2341X_ENC_SET_DNR_FILTER_PROPS@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	ldp	x9, x8, [x19, #40]
	b	LBB0_23
LBB0_22:
Lloh47:
	adrp	x8, _CX2341X_ENC_SET_SPATIAL_FILTER_TYPE@GOTPAGE
Lloh48:
	ldr	x8, [x8, _CX2341X_ENC_SET_SPATIAL_FILTER_TYPE@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
	ldp	x9, x8, [x19, #56]
LBB0_23:
	ldr	w3, [x8]
	ldr	w8, [x9]
LBB0_24:
	str	x8, [sp]
	mov	x0, x19
	mov	w2, #2
	bl	_cx2341x_hdl_api
	b	LBB0_34
LBB0_25:
Lloh50:
	adrp	x8, _CX2341X_ENC_SET_CORING_LEVELS@GOTPAGE
Lloh51:
	ldr	x8, [x8, _CX2341X_ENC_SET_CORING_LEVELS@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
	ldp	x9, x8, [x19, #24]
	ldr	w3, [x8]
	ldp	x10, x8, [x19, #8]
	ldr	w9, [x9]
	ldr	w8, [x8]
	ldr	w10, [x10]
	stp	x8, x10, [sp, #8]
	str	x9, [sp]
	mov	x0, x19
	mov	w2, #4
	bl	_cx2341x_hdl_api
	b	LBB0_34
LBB0_26:
Lloh53:
	adrp	x8, _CX2341X_ENC_MISC@GOTPAGE
Lloh54:
	ldr	x8, [x8, _CX2341X_ENC_MISC@GOTPAGEOFF]
Lloh55:
	ldr	w1, [x8]
	str	x3, [sp]
	mov	x0, x19
	mov	w2, #2
	mov	w3, #7
	bl	_cx2341x_hdl_api
	b	LBB0_34
LBB0_27:
	ldp	x9, x8, [x19, #168]
	ldr	w8, [x8]
	ldr	w9, [x9]
	orr	w8, w8, w9, lsl #8
	ldr	x9, [x19, #184]
	ldr	w9, [x9]
	orr	w8, w8, w9, lsl #10
	ldp	x10, x9, [x19, #216]
	ldr	w9, [x9]
	orr	w8, w8, w9, lsl #14
Lloh56:
	adrp	x9, _V4L2_MPEG_AUDIO_EMPHASIS_CCITT_J17@GOTPAGE
Lloh57:
	ldr	x9, [x9, _V4L2_MPEG_AUDIO_EMPHASIS_CCITT_J17@GOTPAGEOFF]
	ldr	x11, [x19, #208]
	ldr	w10, [x10]
Lloh58:
	ldr	w9, [x9]
	lsl	w12, w10, #12
	mov	w13, #12288
	cmp	w10, w9
	csel	w9, w13, w12, eq
	orr	w8, w8, w9
	ldr	w9, [x11]
Lloh59:
	adrp	x21, _V4L2_MPEG_AUDIO_ENCODING_AC3@GOTPAGE
Lloh60:
	ldr	x21, [x21, _V4L2_MPEG_AUDIO_ENCODING_AC3@GOTPAGEOFF]
	ldr	w10, [x21]
	cmp	w9, w10
	b.ne	LBB0_32
; %bb.28:
Lloh61:
	adrp	x9, _V4L2_MPEG_AUDIO_ENCODING_LAYER_2@GOTPAGE
Lloh62:
	ldr	x9, [x9, _V4L2_MPEG_AUDIO_ENCODING_LAYER_2@GOTPAGEOFF]
Lloh63:
	ldr	w9, [x9]
	mov	w10, #12
	sub	w9, w10, w9, lsl #2
	ldr	x10, [x19, #200]
	ldr	w10, [x10]
	orr	w9, w9, w10, lsl #4
Lloh64:
	adrp	x10, _CX2341X_AUDIO_ENCODING_METHOD_AC3@GOTPAGE
Lloh65:
	ldr	x10, [x10, _CX2341X_AUDIO_ENCODING_METHOD_AC3@GOTPAGEOFF]
Lloh66:
	ldr	w10, [x10]
	orr	w9, w9, w10, lsl #28
	b	LBB0_33
LBB0_29:
Lloh67:
	adrp	x8, _CX2341X_ENC_MUTE_AUDIO@GOTPAGE
Lloh68:
	ldr	x8, [x8, _CX2341X_ENC_MUTE_AUDIO@GOTPAGEOFF]
LBB0_30:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
                                        ; kill: def $w3 killed $w3 killed $x3
LBB0_31:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_cx2341x_hdl_api
LBB0_32:
	mov	w10, #12
	sub	w9, w10, w9, lsl #2
	ldr	x10, [x19, #192]
	ldr	w10, [x10]
	lsl	w10, w10, #4
	add	w10, w10, #16
	orr	w9, w10, w9
LBB0_33:
	orr	w20, w8, w9
Lloh69:
	adrp	x8, _CX2341X_ENC_SET_AUDIO_PROPERTIES@GOTPAGE
Lloh70:
	ldr	x8, [x8, _CX2341X_ENC_SET_AUDIO_PROPERTIES@GOTPAGEOFF]
Lloh71:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	mov	x3, x20
	bl	_cx2341x_hdl_api
	cbz	w0, LBB0_35
LBB0_34:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_35:
	str	w20, [x19]
	ldr	x0, [x19, #200]
	cbz	x0, LBB0_37
; %bb.36:
	ldr	x8, [x19, #208]
	ldr	w8, [x8]
	ldr	w9, [x21]
	cmp	w8, w9
	cset	w20, ne
	cset	w1, eq
	bl	_v4l2_ctrl_activate
	ldr	x0, [x19, #192]
	mov	x1, x20
	bl	_v4l2_ctrl_activate
LBB0_37:
	ldr	x0, [x19, #184]
	ldr	x8, [x19, #168]
	ldr	w8, [x8]
Lloh72:
	adrp	x9, _V4L2_MPEG_AUDIO_MODE_JOINT_STEREO@GOTPAGE
Lloh73:
	ldr	x9, [x9, _V4L2_MPEG_AUDIO_MODE_JOINT_STEREO@GOTPAGEOFF]
Lloh74:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w1, eq
	bl	_v4l2_ctrl_activate
	ldr	x0, [x19, #176]
	bl	_cx2341x_neq
	cbz	w0, LBB0_41
; %bb.38:
	ldr	x8, [x19, #120]
	cbz	x8, LBB0_41
; %bb.39:
	ldr	x2, [x8, #8]
	cbz	x2, LBB0_41
; %bb.40:
	ldr	x8, [x19, #176]
	b	LBB0_45
LBB0_41:
	ldr	x0, [x19, #168]
	bl	_cx2341x_neq
	cbz	w0, LBB0_34
; %bb.42:
	ldr	x8, [x19, #120]
	cbz	x8, LBB0_20
; %bb.43:
	ldr	x2, [x8, #16]
	cbz	x2, LBB0_20
; %bb.44:
	ldr	x8, [x19, #168]
LBB0_45:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	br	x2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_18-LBB0_2)>>2
	.byte	(LBB0_21-LBB0_2)>>2
	.byte	(LBB0_22-LBB0_2)>>2
	.byte	(LBB0_25-LBB0_2)>>2
	.byte	(LBB0_26-LBB0_2)>>2
	.byte	(LBB0_27-LBB0_2)>>2
	.byte	(LBB0_29-LBB0_2)>>2
                                        ; -- End function
	.p2align	2                               ; @cx2341x_s_ctrl.mpeg_stream_type
_cx2341x_s_ctrl.mpeg_stream_type:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	14                              ; 0xe
	.long	11                              ; 0xb
	.long	12                              ; 0xc

	.comm	_CX2341X_ENC_SET_ASPECT_RATIO,4,2 ; @CX2341X_ENC_SET_ASPECT_RATIO
	.comm	_CX2341X_ENC_SET_GOP_CLOSURE,4,2 ; @CX2341X_ENC_SET_GOP_CLOSURE
	.comm	_CX2341X_ENC_MUTE_AUDIO,4,2     ; @CX2341X_ENC_MUTE_AUDIO
	.comm	_CX2341X_ENC_SET_FRAME_DROP_RATE,4,2 ; @CX2341X_ENC_SET_FRAME_DROP_RATE
	.comm	_CX2341X_ENC_MISC,4,2           ; @CX2341X_ENC_MISC
	.comm	_V4L2_MPEG_AUDIO_EMPHASIS_CCITT_J17,4,2 ; @V4L2_MPEG_AUDIO_EMPHASIS_CCITT_J17
	.comm	_V4L2_MPEG_AUDIO_ENCODING_AC3,4,2 ; @V4L2_MPEG_AUDIO_ENCODING_AC3
	.comm	_V4L2_MPEG_AUDIO_ENCODING_LAYER_2,4,2 ; @V4L2_MPEG_AUDIO_ENCODING_LAYER_2
	.comm	_CX2341X_AUDIO_ENCODING_METHOD_AC3,4,2 ; @CX2341X_AUDIO_ENCODING_METHOD_AC3
	.comm	_CX2341X_ENC_SET_AUDIO_PROPERTIES,4,2 ; @CX2341X_ENC_SET_AUDIO_PROPERTIES
	.comm	_V4L2_MPEG_AUDIO_MODE_JOINT_STEREO,4,2 ; @V4L2_MPEG_AUDIO_MODE_JOINT_STEREO
	.comm	_CX2341X_ENC_SET_GOP_PROPERTIES,4,2 ; @CX2341X_ENC_SET_GOP_PROPERTIES
	.comm	_CX2341X_ENC_SET_STREAM_TYPE,4,2 ; @CX2341X_ENC_SET_STREAM_TYPE
	.comm	_CX2341X_ENC_SET_BIT_RATE,4,2   ; @CX2341X_ENC_SET_BIT_RATE
	.comm	_V4L2_MPEG_VIDEO_ENCODING_MPEG_1,4,2 ; @V4L2_MPEG_VIDEO_ENCODING_MPEG_1
	.comm	_V4L2_MPEG_VIDEO_BITRATE_MODE_CBR,4,2 ; @V4L2_MPEG_VIDEO_BITRATE_MODE_CBR
	.comm	_CX2341X_ENC_MUTE_VIDEO,4,2     ; @CX2341X_ENC_MUTE_VIDEO
	.comm	_CX2341X_ENC_SET_DNR_FILTER_MODE,4,2 ; @CX2341X_ENC_SET_DNR_FILTER_MODE
	.comm	_V4L2_MPEG_CX2341X_VIDEO_SPATIAL_FILTER_MODE_AUTO,4,2 ; @V4L2_MPEG_CX2341X_VIDEO_SPATIAL_FILTER_MODE_AUTO
	.comm	_V4L2_MPEG_CX2341X_VIDEO_TEMPORAL_FILTER_MODE_AUTO,4,2 ; @V4L2_MPEG_CX2341X_VIDEO_TEMPORAL_FILTER_MODE_AUTO
	.comm	_V4L2_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE_OFF,4,2 ; @V4L2_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE_OFF
	.comm	_CX2341X_ENC_SET_SPATIAL_FILTER_TYPE,4,2 ; @CX2341X_ENC_SET_SPATIAL_FILTER_TYPE
	.comm	_CX2341X_ENC_SET_DNR_FILTER_PROPS,4,2 ; @CX2341X_ENC_SET_DNR_FILTER_PROPS
	.comm	_CX2341X_ENC_SET_CORING_LEVELS,4,2 ; @CX2341X_ENC_SET_CORING_LEVELS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_cx2341x_s_ctrl
.subsections_via_symbols
