	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saa7164_try_ctrl
_saa7164_try_ctrl:                      ## @saa7164_try_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	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	movl	(%rdi), %ecx
	addl	$-128, %ecx
	cmpl	$7, %ecx
	ja	LBB0_8
## %bb.1:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_2:
	movl	4(%rdi), %ecx
	movq	_ENCODER_MIN_BITRATE@GOTPCREL(%rip), %rdx
	movq	_ENCODER_MAX_BITRATE@GOTPCREL(%rip), %rsi
	jmp	LBB0_7
LBB0_3:
	xorl	%ecx, %ecx
	cmpl	$256, 4(%rdi)                   ## imm = 0x100
	jmp	LBB0_12
LBB0_4:
	movl	4(%rdi), %ecx
	decl	%ecx
	xorl	%edx, %edx
	cmpl	$3, %ecx
	cmovbl	%edx, %eax
	popq	%rbp
	retq
LBB0_5:
	movl	4(%rdi), %ecx
	movq	_V4L2_MPEG_VIDEO_BITRATE_MODE_VBR@GOTPCREL(%rip), %rdx
	movq	_V4L2_MPEG_VIDEO_BITRATE_MODE_CBR@GOTPCREL(%rip), %rsi
	jmp	LBB0_10
LBB0_6:
	movl	4(%rdi), %ecx
	movq	_V4L2_MPEG_VIDEO_ASPECT_1x1@GOTPCREL(%rip), %rdx
	movq	_V4L2_MPEG_VIDEO_ASPECT_221x100@GOTPCREL(%rip), %rsi
LBB0_7:
	xorl	%edi, %edi
	cmpl	(%rsi), %ecx
	cmovgl	%eax, %edi
	cmpl	(%rdx), %ecx
	cmovgel	%edi, %eax
LBB0_8:
	popq	%rbp
	retq
LBB0_9:
	movl	4(%rdi), %ecx
	movq	_V4L2_MPEG_STREAM_TYPE_MPEG2_PS@GOTPCREL(%rip), %rdx
	movq	_V4L2_MPEG_STREAM_TYPE_MPEG2_TS@GOTPCREL(%rip), %rsi
LBB0_10:
	xorl	%edi, %edi
	cmpl	(%rsi), %ecx
	cmovel	%edi, %eax
	cmpl	(%rdx), %ecx
	cmovel	%edi, %eax
	popq	%rbp
	retq
LBB0_11:
	xorl	%ecx, %ecx
	cmpl	$2, 4(%rdi)
LBB0_12:
	cmovbl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_9
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENCODER_MIN_BITRATE,4,2        ## @ENCODER_MIN_BITRATE
	.comm	_ENCODER_MAX_BITRATE,4,2        ## @ENCODER_MAX_BITRATE
	.comm	_V4L2_MPEG_STREAM_TYPE_MPEG2_PS,4,2 ## @V4L2_MPEG_STREAM_TYPE_MPEG2_PS
	.comm	_V4L2_MPEG_STREAM_TYPE_MPEG2_TS,4,2 ## @V4L2_MPEG_STREAM_TYPE_MPEG2_TS
	.comm	_V4L2_MPEG_VIDEO_ASPECT_1x1,4,2 ## @V4L2_MPEG_VIDEO_ASPECT_1x1
	.comm	_V4L2_MPEG_VIDEO_ASPECT_221x100,4,2 ## @V4L2_MPEG_VIDEO_ASPECT_221x100
	.comm	_V4L2_MPEG_VIDEO_BITRATE_MODE_VBR,4,2 ## @V4L2_MPEG_VIDEO_BITRATE_MODE_VBR
	.comm	_V4L2_MPEG_VIDEO_BITRATE_MODE_CBR,4,2 ## @V4L2_MPEG_VIDEO_BITRATE_MODE_CBR
	.no_dead_strip	_saa7164_try_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function saa7164_try_ctrl
_saa7164_try_ctrl:                      ; @saa7164_try_ctrl
	.cfi_startproc
; %bb.0:
	mov	x8, x0
Lloh0:
	adrp	x9, _EINVAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	neg	w0, w9
	ldr	w9, [x8]
	sub	w9, w9, #128
	cmp	w9, #7
	b.hi	LBB0_8
; %bb.1:
Lloh3:
	adrp	x10, lJTI0_0@PAGE
Lloh4:
	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	w8, [x8, #4]
Lloh5:
	adrp	x9, _ENCODER_MIN_BITRATE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ENCODER_MIN_BITRATE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _ENCODER_MAX_BITRATE@GOTPAGE
Lloh9:
	ldr	x10, [x10, _ENCODER_MAX_BITRATE@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
	ldr	w8, [x8, #4]
	cmp	w8, #256
	csel	w0, wzr, w0, lo
	ret
LBB0_4:
	ldr	w8, [x8, #4]
	sub	w8, w8, #1
	cmp	w8, #3
	csel	w0, wzr, w0, lo
	ret
LBB0_5:
	ldr	w8, [x8, #4]
Lloh10:
	adrp	x9, _V4L2_MPEG_VIDEO_BITRATE_MODE_VBR@GOTPAGE
Lloh11:
	ldr	x9, [x9, _V4L2_MPEG_VIDEO_BITRATE_MODE_VBR@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
Lloh13:
	adrp	x10, _V4L2_MPEG_VIDEO_BITRATE_MODE_CBR@GOTPAGE
Lloh14:
	ldr	x10, [x10, _V4L2_MPEG_VIDEO_BITRATE_MODE_CBR@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
	ldr	w8, [x8, #4]
Lloh15:
	adrp	x9, _V4L2_MPEG_VIDEO_ASPECT_1x1@GOTPAGE
Lloh16:
	ldr	x9, [x9, _V4L2_MPEG_VIDEO_ASPECT_1x1@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _V4L2_MPEG_VIDEO_ASPECT_221x100@GOTPAGE
Lloh19:
	ldr	x10, [x10, _V4L2_MPEG_VIDEO_ASPECT_221x100@GOTPAGEOFF]
LBB0_7:
	ldr	w10, [x10]
	cmp	w8, w10
	ccmp	w8, w9, #8, le
	csel	w0, w0, wzr, lt
LBB0_8:
	ret
LBB0_9:
	ldr	w8, [x8, #4]
Lloh20:
	adrp	x9, _V4L2_MPEG_STREAM_TYPE_MPEG2_PS@GOTPAGE
Lloh21:
	ldr	x9, [x9, _V4L2_MPEG_STREAM_TYPE_MPEG2_PS@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
Lloh23:
	adrp	x10, _V4L2_MPEG_STREAM_TYPE_MPEG2_TS@GOTPAGE
Lloh24:
	ldr	x10, [x10, _V4L2_MPEG_STREAM_TYPE_MPEG2_TS@GOTPAGEOFF]
LBB0_10:
	ldr	w10, [x10]
	cmp	w8, w10
	ccmp	w8, w9, #4, ne
	csel	w0, wzr, w0, eq
	ret
LBB0_11:
	ldr	w8, [x8, #4]
	cmp	w8, #2
	csel	w0, wzr, w0, lo
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENCODER_MIN_BITRATE,4,2        ; @ENCODER_MIN_BITRATE
	.comm	_ENCODER_MAX_BITRATE,4,2        ; @ENCODER_MAX_BITRATE
	.comm	_V4L2_MPEG_STREAM_TYPE_MPEG2_PS,4,2 ; @V4L2_MPEG_STREAM_TYPE_MPEG2_PS
	.comm	_V4L2_MPEG_STREAM_TYPE_MPEG2_TS,4,2 ; @V4L2_MPEG_STREAM_TYPE_MPEG2_TS
	.comm	_V4L2_MPEG_VIDEO_ASPECT_1x1,4,2 ; @V4L2_MPEG_VIDEO_ASPECT_1x1
	.comm	_V4L2_MPEG_VIDEO_ASPECT_221x100,4,2 ; @V4L2_MPEG_VIDEO_ASPECT_221x100
	.comm	_V4L2_MPEG_VIDEO_BITRATE_MODE_VBR,4,2 ; @V4L2_MPEG_VIDEO_BITRATE_MODE_VBR
	.comm	_V4L2_MPEG_VIDEO_BITRATE_MODE_CBR,4,2 ; @V4L2_MPEG_VIDEO_BITRATE_MODE_CBR
	.no_dead_strip	_saa7164_try_ctrl
.subsections_via_symbols
