	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_avermedia_tv_stereo_audio      ## -- Begin function avermedia_tv_stereo_audio
	.p2align	4, 0x90
_avermedia_tv_stereo_audio:             ## @avermedia_tv_stereo_audio
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testl	%edx, %edx
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movl	(%rsi), %eax
	xorl	%ecx, %ecx
	cmpl	$128, %eax
	sete	%cl
	addl	%ecx, %ecx
	cmpl	$129, %eax
	movl	$1, %edi
	cmovnel	%ecx, %edi
	movq	_BT848_GPIO_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$-4, %esi
	callq	_btaor
	movq	_bttv_gpio@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_bttv_gpio_tracking             ## TAILCALL
LBB0_1:
	movq	_V4L2_TUNER_MODE_LANG1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsi)
	movq	_V4L2_TUNER_SUB_MONO@GOTPCREL(%rip), %rax
	movq	_V4L2_TUNER_SUB_STEREO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_V4L2_TUNER_SUB_LANG1@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_V4L2_TUNER_SUB_LANG2@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 4(%rsi)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_TUNER_MODE_LANG1,4,2      ## @V4L2_TUNER_MODE_LANG1
	.comm	_V4L2_TUNER_SUB_MONO,4,2        ## @V4L2_TUNER_SUB_MONO
	.comm	_V4L2_TUNER_SUB_STEREO,4,2      ## @V4L2_TUNER_SUB_STEREO
	.comm	_V4L2_TUNER_SUB_LANG1,4,2       ## @V4L2_TUNER_SUB_LANG1
	.comm	_V4L2_TUNER_SUB_LANG2,4,2       ## @V4L2_TUNER_SUB_LANG2
	.comm	_BT848_GPIO_DATA,4,2            ## @BT848_GPIO_DATA
	.comm	_bttv_gpio,8,3                  ## @bttv_gpio
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"avermedia"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_avermedia_tv_stereo_audio      ; -- Begin function avermedia_tv_stereo_audio
	.p2align	2
_avermedia_tv_stereo_audio:             ; @avermedia_tv_stereo_audio
	.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
	cbz	w2, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	w8, [x1]
	cmp	w8, #128
	cset	w9, eq
	lsl	w9, w9, #1
	cmp	w8, #129
	csinc	w0, w9, wzr, ne
Lloh0:
	adrp	x8, _BT848_GPIO_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BT848_GPIO_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #-4
	bl	_btaor
Lloh3:
	adrp	x8, _bttv_gpio@GOTPAGE
Lloh4:
	ldr	x8, [x8, _bttv_gpio@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.2:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_bttv_gpio_tracking
LBB0_3:
Lloh8:
	adrp	x8, _V4L2_TUNER_MODE_LANG1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _V4L2_TUNER_MODE_LANG1@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x1]
Lloh11:
	adrp	x8, _V4L2_TUNER_SUB_MONO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _V4L2_TUNER_SUB_MONO@GOTPAGEOFF]
Lloh13:
	adrp	x9, _V4L2_TUNER_SUB_STEREO@GOTPAGE
Lloh14:
	ldr	x9, [x9, _V4L2_TUNER_SUB_STEREO@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh17:
	adrp	x9, _V4L2_TUNER_SUB_LANG1@GOTPAGE
Lloh18:
	ldr	x9, [x9, _V4L2_TUNER_SUB_LANG1@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh20:
	adrp	x9, _V4L2_TUNER_SUB_LANG2@GOTPAGE
Lloh21:
	ldr	x9, [x9, _V4L2_TUNER_SUB_LANG2@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x1, #4]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_TUNER_MODE_LANG1,4,2      ; @V4L2_TUNER_MODE_LANG1
	.comm	_V4L2_TUNER_SUB_MONO,4,2        ; @V4L2_TUNER_SUB_MONO
	.comm	_V4L2_TUNER_SUB_STEREO,4,2      ; @V4L2_TUNER_SUB_STEREO
	.comm	_V4L2_TUNER_SUB_LANG1,4,2       ; @V4L2_TUNER_SUB_LANG1
	.comm	_V4L2_TUNER_SUB_LANG2,4,2       ; @V4L2_TUNER_SUB_LANG2
	.comm	_BT848_GPIO_DATA,4,2            ; @BT848_GPIO_DATA
	.comm	_bttv_gpio,8,3                  ; @bttv_gpio
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"avermedia"

.subsections_via_symbols
