	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saa6752hs_querymenu
_saa6752hs_querymenu:                   ## @saa6752hs_querymenu
	.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	%rsi, %r15
	movq	%rdi, %rbx
	callq	_to_state
	movq	%rax, %r14
	movl	(%r15), %eax
	movl	%eax, -32(%rbp)
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_saa6752hs_queryctrl
	testl	%eax, %eax
	jne	LBB0_11
## %bb.1:
	movl	(%r15), %eax
	cmpl	$137, %eax
	je	LBB0_6
## %bb.2:
	cmpl	$136, %eax
	je	LBB0_9
## %bb.3:
	cmpl	$135, %eax
	jne	LBB0_10
## %bb.4:
	leaq	_saa6752hs_querymenu.mpeg_audio_l2_bitrate(%rip), %rsi
	jmp	LBB0_5
LBB0_6:
	cmpl	$0, (%r14)
	je	LBB0_7
## %bb.8:
	leaq	_saa6752hs_querymenu.mpeg_audio_ac3_bitrate(%rip), %rsi
	jmp	LBB0_5
LBB0_9:
	cmpl	$0, (%r14)
	leaq	_saa6752hs_querymenu.mpeg_audio_encoding(%rip), %rax
	leaq	_saa6752hs_querymenu.mpeg_audio_ac3_encoding(%rip), %rsi
	cmoveq	%rax, %rsi
LBB0_5:
	movq	%r15, %rdi
	callq	_v4l2_ctrl_query_menu_valid_items
	jmp	LBB0_11
LBB0_10:
	leaq	-32(%rbp), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_v4l2_ctrl_query_menu
	jmp	LBB0_11
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @saa6752hs_querymenu.mpeg_audio_encoding
_saa6752hs_querymenu.mpeg_audio_encoding:
	.long	130                             ## 0x82
	.long	134                             ## 0x86

	.p2align	2                               ## @saa6752hs_querymenu.mpeg_audio_ac3_encoding
_saa6752hs_querymenu.mpeg_audio_ac3_encoding:
	.long	130                             ## 0x82
	.long	131                             ## 0x83
	.long	134                             ## 0x86

	.p2align	2                               ## @saa6752hs_querymenu.mpeg_audio_l2_bitrate
_saa6752hs_querymenu.mpeg_audio_l2_bitrate:
	.long	129                             ## 0x81
	.long	128                             ## 0x80
	.long	134                             ## 0x86

	.p2align	2                               ## @saa6752hs_querymenu.mpeg_audio_ac3_bitrate
_saa6752hs_querymenu.mpeg_audio_ac3_bitrate:
	.long	133                             ## 0x85
	.long	132                             ## 0x84
	.long	134                             ## 0x86

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_saa6752hs_querymenu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function saa6752hs_querymenu
_saa6752hs_querymenu:                   ; @saa6752hs_querymenu
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	mov	x21, x0
	bl	_to_state
	mov	x20, x0
	ldr	w8, [x19]
	str	w8, [sp, #8]
	add	x1, sp, #8
	mov	x0, x21
	bl	_saa6752hs_queryctrl
	cbnz	w0, LBB0_11
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #137
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #136
	b.eq	LBB0_7
; %bb.3:
	cmp	w8, #135
	b.ne	LBB0_9
; %bb.4:
Lloh0:
	adrp	x1, _saa6752hs_querymenu.mpeg_audio_l2_bitrate@PAGE
Lloh1:
	add	x1, x1, _saa6752hs_querymenu.mpeg_audio_l2_bitrate@PAGEOFF
	b	LBB0_8
LBB0_5:
	ldr	w8, [x20]
	cbz	w8, LBB0_10
; %bb.6:
Lloh2:
	adrp	x1, _saa6752hs_querymenu.mpeg_audio_ac3_bitrate@PAGE
Lloh3:
	add	x1, x1, _saa6752hs_querymenu.mpeg_audio_ac3_bitrate@PAGEOFF
	b	LBB0_8
LBB0_7:
	ldr	w8, [x20]
Lloh4:
	adrp	x9, _saa6752hs_querymenu.mpeg_audio_ac3_encoding@PAGE
Lloh5:
	add	x9, x9, _saa6752hs_querymenu.mpeg_audio_ac3_encoding@PAGEOFF
Lloh6:
	adrp	x10, _saa6752hs_querymenu.mpeg_audio_encoding@PAGE
Lloh7:
	add	x10, x10, _saa6752hs_querymenu.mpeg_audio_encoding@PAGEOFF
	cmp	w8, #0
	csel	x1, x10, x9, eq
LBB0_8:
	mov	x0, x19
	bl	_v4l2_ctrl_query_menu_valid_items
	b	LBB0_11
LBB0_9:
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, #0
	bl	_v4l2_ctrl_query_menu
	b	LBB0_11
LBB0_10:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @saa6752hs_querymenu.mpeg_audio_encoding
_saa6752hs_querymenu.mpeg_audio_encoding:
	.long	130                             ; 0x82
	.long	134                             ; 0x86

	.p2align	2                               ; @saa6752hs_querymenu.mpeg_audio_ac3_encoding
_saa6752hs_querymenu.mpeg_audio_ac3_encoding:
	.long	130                             ; 0x82
	.long	131                             ; 0x83
	.long	134                             ; 0x86

	.p2align	2                               ; @saa6752hs_querymenu.mpeg_audio_l2_bitrate
_saa6752hs_querymenu.mpeg_audio_l2_bitrate:
	.long	129                             ; 0x81
	.long	128                             ; 0x80
	.long	134                             ; 0x86

	.p2align	2                               ; @saa6752hs_querymenu.mpeg_audio_ac3_bitrate
_saa6752hs_querymenu.mpeg_audio_ac3_bitrate:
	.long	133                             ; 0x85
	.long	132                             ; 0x84
	.long	134                             ; 0x86

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_saa6752hs_querymenu
.subsections_via_symbols
