	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saa717x_s_tuner
_saa717x_s_tuner:                       ## @saa717x_s_tuner
	.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	%rsi, %r15
	movq	%rdi, %r12
	callq	_to_state
	movq	%rax, %r14
	movl	$-129, %eax
	addl	(%r15), %eax
	cmpl	$2, %eax
	ja	LBB0_1
## %bb.2:
	cltq
	leaq	l_switch.table.saa717x_s_tuner(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_TUNER_AUDIO_STEREO@GOTPCREL(%rip), %rax
LBB0_3:
	movslq	(%rax), %rbx
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	l_reltable.saa717x_s_tuner(%rip), %rax
	movslq	(%rax,%rbx,4), %r8
	addq	%rax, %r8
	leaq	L_.str.4(%rip), %rcx
	movl	$1, %edi
	movq	%r12, %rdx
	callq	_v4l2_dbg
	movl	%ebx, (%r14)
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_set_audio_mode
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MONO"

L_.str.1:                               ## @.str.1
	.asciz	"STEREO"

L_.str.2:                               ## @.str.2
	.asciz	"LANG1"

L_.str.3:                               ## @.str.3
	.asciz	"LANG2/SAP"

	.section	__TEXT,__const
	.p2align	2                               ## @reltable.saa717x_s_tuner
l_reltable.saa717x_s_tuner:
	.long	L_.str-l_reltable.saa717x_s_tuner
	.long	L_.str.1-l_reltable.saa717x_s_tuner
	.long	L_.str.2-l_reltable.saa717x_s_tuner
	.long	L_.str.3-l_reltable.saa717x_s_tuner

	.comm	_TUNER_AUDIO_STEREO,4,2         ## @TUNER_AUDIO_STEREO
	.comm	_TUNER_AUDIO_MONO,4,2           ## @TUNER_AUDIO_MONO
	.comm	_TUNER_AUDIO_LANG2,4,2          ## @TUNER_AUDIO_LANG2
	.comm	_TUNER_AUDIO_LANG1,4,2          ## @TUNER_AUDIO_LANG1
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str.4:                               ## @.str.4
	.asciz	"change audio mode to %s\n"

	.no_dead_strip	_saa717x_s_tuner
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.saa717x_s_tuner
l_switch.table.saa717x_s_tuner:
	.quad	_TUNER_AUDIO_MONO
	.quad	_TUNER_AUDIO_LANG2
	.quad	_TUNER_AUDIO_LANG1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function saa717x_s_tuner
_saa717x_s_tuner:                       ; @saa717x_s_tuner
	.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	x21, x1
	mov	x19, x0
	bl	_to_state
	mov	x20, x0
	ldr	w8, [x21]
	sub	w8, w8, #129
	cmp	w8, #2
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, l_switch.table.saa717x_s_tuner@PAGE
Lloh1:
	add	x9, x9, l_switch.table.saa717x_s_tuner@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, _TUNER_AUDIO_STEREO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TUNER_AUDIO_STEREO@GOTPAGEOFF]
LBB0_3:
Lloh4:
	adrp	x9, _debug@GOTPAGE
Lloh5:
	ldr	x9, [x9, _debug@GOTPAGEOFF]
	ldrsw	x21, [x8]
Lloh6:
	ldr	w1, [x9]
Lloh7:
	adrp	x8, l___const.saa717x_s_tuner.mes@PAGE
Lloh8:
	add	x8, x8, l___const.saa717x_s_tuner.mes@PAGEOFF
	ldr	x4, [x8, x21, lsl #3]
Lloh9:
	adrp	x3, l_.str.4@PAGE
Lloh10:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_v4l2_dbg
	str	w21, [x20]
	mov	x0, x19
	mov	x1, x21
	bl	_set_audio_mode
	mov	w0, #0
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MONO"

l_.str.1:                               ; @.str.1
	.asciz	"STEREO"

l_.str.2:                               ; @.str.2
	.asciz	"LANG1"

l_.str.3:                               ; @.str.3
	.asciz	"LANG2/SAP"

	.section	__DATA,__const
	.p2align	3                               ; @__const.saa717x_s_tuner.mes
l___const.saa717x_s_tuner.mes:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2
	.quad	l_.str.3

	.comm	_TUNER_AUDIO_STEREO,4,2         ; @TUNER_AUDIO_STEREO
	.comm	_TUNER_AUDIO_MONO,4,2           ; @TUNER_AUDIO_MONO
	.comm	_TUNER_AUDIO_LANG2,4,2          ; @TUNER_AUDIO_LANG2
	.comm	_TUNER_AUDIO_LANG1,4,2          ; @TUNER_AUDIO_LANG1
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str.4:                               ; @.str.4
	.asciz	"change audio mode to %s\n"

	.no_dead_strip	_saa717x_s_tuner
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.saa717x_s_tuner
l_switch.table.saa717x_s_tuner:
	.quad	_TUNER_AUDIO_MONO
	.quad	_TUNER_AUDIO_LANG2
	.quad	_TUNER_AUDIO_LANG1

.subsections_via_symbols
