	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saa6752hs_queryctrl
_saa6752hs_queryctrl:                   ## @saa6752hs_queryctrl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	callq	_to_state
	movq	%rax, %r14
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$13, %eax
	ja	LBB0_25
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_12:
	movq	_V4L2_MPEG_VIDEO_ENCODING_MPEG_2@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_14:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$27000000, %edx                 ## imm = 0x19BFCC0
	movl	$1, %ecx
	movl	$8000000, %r8d                  ## imm = 0x7A1200
	callq	_v4l2_ctrl_query_fill
	testl	%eax, %eax
	jne	LBB0_26
## %bb.15:
	movl	4(%r14), %eax
	movq	_V4L2_MPEG_VIDEO_BITRATE_MODE_CBR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_16
## %bb.17:
	movq	_V4L2_CTRL_FLAG_INACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_26
LBB0_19:
	movq	_V4L2_MPEG_VIDEO_BITRATE_MODE_VBR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_V4L2_MPEG_VIDEO_BITRATE_MODE_CBR@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_20:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$27000000, %edx                 ## imm = 0x19BFCC0
	movl	$1, %ecx
	movl	$6000000, %r8d                  ## imm = 0x5B8D80
	jmp	LBB0_6
LBB0_13:
	movq	_V4L2_MPEG_VIDEO_ASPECT_4x3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_V4L2_MPEG_VIDEO_ASPECT_16x9@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_18:
	movq	_V4L2_MPEG_STREAM_TYPE_MPEG2_TS@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_23:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$16383, %edx                    ## imm = 0x3FFF
	movl	$1, %ecx
	movl	$256, %r8d                      ## imm = 0x100
	jmp	LBB0_6
LBB0_21:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$16383, %edx                    ## imm = 0x3FFF
	movl	$1, %ecx
	movl	$16, %r8d
	jmp	LBB0_6
LBB0_24:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$16383, %edx                    ## imm = 0x3FFF
	movl	$1, %ecx
	movl	$259, %r8d                      ## imm = 0x103
	jmp	LBB0_6
LBB0_22:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$16383, %edx                    ## imm = 0x3FFF
	movl	$1, %ecx
	movl	$260, %r8d                      ## imm = 0x104
	jmp	LBB0_6
LBB0_10:
	movq	_V4L2_MPEG_AUDIO_SAMPLING_FREQ_48000@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%edx, %esi
	movl	$1, %ecx
	movl	%edx, %r8d
	jmp	LBB0_6
LBB0_7:
	movq	_V4L2_MPEG_AUDIO_L2_BITRATE_256K@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_V4L2_MPEG_AUDIO_L2_BITRATE_384K@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_V4L2_MPEG_AUDIO_ENCODING_LAYER_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpl	$0, (%r14)
	movl	%esi, %edx
	je	LBB0_5
## %bb.3:
	movq	_V4L2_MPEG_AUDIO_ENCODING_AC3@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_8:
	cmpl	$0, (%r14)
	je	LBB0_25
## %bb.9:
	movq	_V4L2_MPEG_AUDIO_AC3_BITRATE_256K@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_V4L2_MPEG_AUDIO_AC3_BITRATE_384K@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %edx
LBB0_5:
	movq	%rbx, %rdi
	movl	$1, %ecx
	movl	%esi, %r8d
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_v4l2_ctrl_query_fill           ## TAILCALL
LBB0_25:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_26:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_16:
	xorl	%eax, %eax
	jmp	LBB0_26
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_14
	.long	L0_0_set_19
	.long	L0_0_set_20
	.long	L0_0_set_13
	.long	L0_0_set_18
	.long	L0_0_set_23
	.long	L0_0_set_21
	.long	L0_0_set_24
	.long	L0_0_set_22
	.long	L0_0_set_10
	.long	L0_0_set_7
	.long	L0_0_set_2
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_V4L2_MPEG_AUDIO_ENCODING_LAYER_2,4,2 ## @V4L2_MPEG_AUDIO_ENCODING_LAYER_2
	.comm	_V4L2_MPEG_AUDIO_ENCODING_AC3,4,2 ## @V4L2_MPEG_AUDIO_ENCODING_AC3
	.comm	_V4L2_MPEG_AUDIO_L2_BITRATE_256K,4,2 ## @V4L2_MPEG_AUDIO_L2_BITRATE_256K
	.comm	_V4L2_MPEG_AUDIO_L2_BITRATE_384K,4,2 ## @V4L2_MPEG_AUDIO_L2_BITRATE_384K
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_MPEG_AUDIO_AC3_BITRATE_256K,4,2 ## @V4L2_MPEG_AUDIO_AC3_BITRATE_256K
	.comm	_V4L2_MPEG_AUDIO_AC3_BITRATE_384K,4,2 ## @V4L2_MPEG_AUDIO_AC3_BITRATE_384K
	.comm	_V4L2_MPEG_AUDIO_SAMPLING_FREQ_48000,4,2 ## @V4L2_MPEG_AUDIO_SAMPLING_FREQ_48000
	.comm	_V4L2_MPEG_VIDEO_ENCODING_MPEG_2,4,2 ## @V4L2_MPEG_VIDEO_ENCODING_MPEG_2
	.comm	_V4L2_MPEG_VIDEO_ASPECT_4x3,4,2 ## @V4L2_MPEG_VIDEO_ASPECT_4x3
	.comm	_V4L2_MPEG_VIDEO_ASPECT_16x9,4,2 ## @V4L2_MPEG_VIDEO_ASPECT_16x9
	.comm	_V4L2_MPEG_VIDEO_BITRATE_MODE_CBR,4,2 ## @V4L2_MPEG_VIDEO_BITRATE_MODE_CBR
	.comm	_V4L2_CTRL_FLAG_INACTIVE,4,2    ## @V4L2_CTRL_FLAG_INACTIVE
	.comm	_V4L2_MPEG_STREAM_TYPE_MPEG2_TS,4,2 ## @V4L2_MPEG_STREAM_TYPE_MPEG2_TS
	.comm	_V4L2_MPEG_VIDEO_BITRATE_MODE_VBR,4,2 ## @V4L2_MPEG_VIDEO_BITRATE_MODE_VBR
	.no_dead_strip	_saa6752hs_queryctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function saa6752hs_queryctrl
_saa6752hs_queryctrl:                   ; @saa6752hs_queryctrl
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_to_state
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #13
	b.hi	LBB0_24
; %bb.1:
	mov	x20, x0
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, _V4L2_MPEG_VIDEO_ENCODING_MPEG_2@GOTPAGE
Lloh3:
	ldr	x8, [x8, _V4L2_MPEG_VIDEO_ENCODING_MPEG_2@GOTPAGEOFF]
	b	LBB0_15
LBB0_3:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #64704
	movk	w2, #411, lsl #16
	mov	w3, #1
	mov	w4, #4608
	movk	w4, #122, lsl #16
	bl	_v4l2_ctrl_query_fill
	cbnz	w0, LBB0_25
; %bb.4:
	ldr	w8, [x20, #4]
Lloh4:
	adrp	x9, _V4L2_MPEG_VIDEO_BITRATE_MODE_CBR@GOTPAGE
Lloh5:
	ldr	x9, [x9, _V4L2_MPEG_VIDEO_BITRATE_MODE_CBR@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_26
; %bb.5:
	mov	w0, #0
Lloh7:
	adrp	x8, _V4L2_CTRL_FLAG_INACTIVE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _V4L2_CTRL_FLAG_INACTIVE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
	b	LBB0_25
LBB0_6:
Lloh10:
	adrp	x8, _V4L2_MPEG_VIDEO_BITRATE_MODE_VBR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _V4L2_MPEG_VIDEO_BITRATE_MODE_VBR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _V4L2_MPEG_VIDEO_BITRATE_MODE_CBR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _V4L2_MPEG_VIDEO_BITRATE_MODE_CBR@GOTPAGEOFF]
	b	LBB0_20
LBB0_7:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #64704
	movk	w2, #411, lsl #16
	mov	w3, #1
	mov	w4, #36224
	movk	w4, #91, lsl #16
	b	LBB0_23
LBB0_8:
Lloh15:
	adrp	x8, _V4L2_MPEG_VIDEO_ASPECT_4x3@GOTPAGE
Lloh16:
	ldr	x8, [x8, _V4L2_MPEG_VIDEO_ASPECT_4x3@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _V4L2_MPEG_VIDEO_ASPECT_16x9@GOTPAGE
Lloh19:
	ldr	x8, [x8, _V4L2_MPEG_VIDEO_ASPECT_16x9@GOTPAGEOFF]
	b	LBB0_20
LBB0_9:
Lloh20:
	adrp	x8, _V4L2_MPEG_STREAM_TYPE_MPEG2_TS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _V4L2_MPEG_STREAM_TYPE_MPEG2_TS@GOTPAGEOFF]
	b	LBB0_15
LBB0_10:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #16383
	mov	w3, #1
	mov	w4, #256
	b	LBB0_23
LBB0_11:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #16383
	mov	w3, #1
	mov	w4, #16
	b	LBB0_23
LBB0_12:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #16383
	mov	w3, #1
	mov	w4, #259
	b	LBB0_23
LBB0_13:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #16383
	mov	w3, #1
	mov	w4, #260
	b	LBB0_23
LBB0_14:
Lloh22:
	adrp	x8, _V4L2_MPEG_AUDIO_SAMPLING_FREQ_48000@GOTPAGE
Lloh23:
	ldr	x8, [x8, _V4L2_MPEG_AUDIO_SAMPLING_FREQ_48000@GOTPAGEOFF]
LBB0_15:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x1
	b	LBB0_22
LBB0_16:
Lloh24:
	adrp	x8, _V4L2_MPEG_AUDIO_L2_BITRATE_256K@GOTPAGE
Lloh25:
	ldr	x8, [x8, _V4L2_MPEG_AUDIO_L2_BITRATE_256K@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _V4L2_MPEG_AUDIO_L2_BITRATE_384K@GOTPAGE
Lloh28:
	ldr	x8, [x8, _V4L2_MPEG_AUDIO_L2_BITRATE_384K@GOTPAGEOFF]
	b	LBB0_20
LBB0_17:
Lloh29:
	adrp	x8, _V4L2_MPEG_AUDIO_ENCODING_LAYER_2@GOTPAGE
Lloh30:
	ldr	x8, [x8, _V4L2_MPEG_AUDIO_ENCODING_LAYER_2@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	ldr	w8, [x20]
Lloh32:
	adrp	x9, _V4L2_MPEG_AUDIO_ENCODING_AC3@GOTPAGE
Lloh33:
	ldr	x9, [x9, _V4L2_MPEG_AUDIO_ENCODING_AC3@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	cmp	w8, #0
	csel	w2, w1, w9, eq
	b	LBB0_21
LBB0_18:
	ldr	w8, [x20]
	cbz	w8, LBB0_24
; %bb.19:
Lloh35:
	adrp	x8, _V4L2_MPEG_AUDIO_AC3_BITRATE_256K@GOTPAGE
Lloh36:
	ldr	x8, [x8, _V4L2_MPEG_AUDIO_AC3_BITRATE_256K@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
Lloh38:
	adrp	x8, _V4L2_MPEG_AUDIO_AC3_BITRATE_384K@GOTPAGE
Lloh39:
	ldr	x8, [x8, _V4L2_MPEG_AUDIO_AC3_BITRATE_384K@GOTPAGEOFF]
LBB0_20:
	ldr	w2, [x8]
LBB0_21:
	mov	x0, x19
LBB0_22:
	mov	w3, #1
	mov	x4, x1
LBB0_23:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_v4l2_ctrl_query_fill
LBB0_24:
Lloh40:
	adrp	x8, _EINVAL@GOTPAGE
Lloh41:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_25:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_26:
	mov	w0, #0
	b	LBB0_25
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_16-LBB0_2)>>2
	.byte	(LBB0_17-LBB0_2)>>2
	.byte	(LBB0_18-LBB0_2)>>2
                                        ; -- End function
	.comm	_V4L2_MPEG_AUDIO_ENCODING_LAYER_2,4,2 ; @V4L2_MPEG_AUDIO_ENCODING_LAYER_2
	.comm	_V4L2_MPEG_AUDIO_ENCODING_AC3,4,2 ; @V4L2_MPEG_AUDIO_ENCODING_AC3
	.comm	_V4L2_MPEG_AUDIO_L2_BITRATE_256K,4,2 ; @V4L2_MPEG_AUDIO_L2_BITRATE_256K
	.comm	_V4L2_MPEG_AUDIO_L2_BITRATE_384K,4,2 ; @V4L2_MPEG_AUDIO_L2_BITRATE_384K
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_MPEG_AUDIO_AC3_BITRATE_256K,4,2 ; @V4L2_MPEG_AUDIO_AC3_BITRATE_256K
	.comm	_V4L2_MPEG_AUDIO_AC3_BITRATE_384K,4,2 ; @V4L2_MPEG_AUDIO_AC3_BITRATE_384K
	.comm	_V4L2_MPEG_AUDIO_SAMPLING_FREQ_48000,4,2 ; @V4L2_MPEG_AUDIO_SAMPLING_FREQ_48000
	.comm	_V4L2_MPEG_VIDEO_ENCODING_MPEG_2,4,2 ; @V4L2_MPEG_VIDEO_ENCODING_MPEG_2
	.comm	_V4L2_MPEG_VIDEO_ASPECT_4x3,4,2 ; @V4L2_MPEG_VIDEO_ASPECT_4x3
	.comm	_V4L2_MPEG_VIDEO_ASPECT_16x9,4,2 ; @V4L2_MPEG_VIDEO_ASPECT_16x9
	.comm	_V4L2_MPEG_VIDEO_BITRATE_MODE_CBR,4,2 ; @V4L2_MPEG_VIDEO_BITRATE_MODE_CBR
	.comm	_V4L2_CTRL_FLAG_INACTIVE,4,2    ; @V4L2_CTRL_FLAG_INACTIVE
	.comm	_V4L2_MPEG_STREAM_TYPE_MPEG2_TS,4,2 ; @V4L2_MPEG_STREAM_TYPE_MPEG2_TS
	.comm	_V4L2_MPEG_VIDEO_BITRATE_MODE_VBR,4,2 ; @V4L2_MPEG_VIDEO_BITRATE_MODE_VBR
	.no_dead_strip	_saa6752hs_queryctrl
.subsections_via_symbols
