	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_winfast2000_audio              ## -- Begin function winfast2000_audio
	.p2align	4, 0x90
_winfast2000_audio:                     ## @winfast2000_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_4
## %bb.1:
	movl	(%rsi), %eax
	movq	_V4L2_TUNER_MODE_MONO@GOTPCREL(%rip), %rcx
	movq	_V4L2_TUNER_MODE_LANG1@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	xorl	%ecx, %ecx
	testl	%eax, %edx
	movl	$4325376, %edx                  ## imm = 0x420000
	cmoveq	%rcx, %rdx
	movq	_V4L2_TUNER_MODE_LANG2@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movl	$4259840, %ecx                  ## imm = 0x410000
	cmoveq	%rdx, %rcx
	movq	_V4L2_TUNER_MODE_STEREO@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	movl	$131072, %esi                   ## imm = 0x20000
	cmoveq	%rcx, %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.2:
	movq	%rdi, %rbx
	movl	$4390912, %edi                  ## imm = 0x430000
	callq	_gpio_bits
	movq	_bttv_gpio@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_bttv_gpio_tracking             ## TAILCALL
LBB0_4:
	movq	_V4L2_TUNER_MODE_MONO@GOTPCREL(%rip), %rax
	movq	_V4L2_TUNER_MODE_STEREO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_V4L2_TUNER_MODE_LANG1@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_V4L2_TUNER_MODE_LANG2@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%rsi)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_TUNER_MODE_MONO,4,2       ## @V4L2_TUNER_MODE_MONO
	.comm	_V4L2_TUNER_MODE_LANG1,4,2      ## @V4L2_TUNER_MODE_LANG1
	.comm	_V4L2_TUNER_MODE_LANG2,4,2      ## @V4L2_TUNER_MODE_LANG2
	.comm	_V4L2_TUNER_MODE_STEREO,4,2     ## @V4L2_TUNER_MODE_STEREO
	.comm	_bttv_gpio,8,3                  ## @bttv_gpio
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"winfast2000"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_winfast2000_audio              ; -- Begin function winfast2000_audio
	.p2align	2
_winfast2000_audio:                     ; @winfast2000_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_4
; %bb.1:
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _V4L2_TUNER_MODE_MONO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_TUNER_MODE_MONO@GOTPAGEOFF]
Lloh2:
	adrp	x10, _V4L2_TUNER_MODE_LANG1@GOTPAGE
Lloh3:
	ldr	x10, [x10, _V4L2_TUNER_MODE_LANG1@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	mov	w9, #4325376
	csel	x9, xzr, x9, eq
Lloh6:
	adrp	x10, _V4L2_TUNER_MODE_LANG2@GOTPAGE
Lloh7:
	ldr	x10, [x10, _V4L2_TUNER_MODE_LANG2@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w8
	mov	w10, #4259840
	csel	x9, x9, x10, eq
Lloh9:
	adrp	x10, _V4L2_TUNER_MODE_STEREO@GOTPAGE
Lloh10:
	ldr	x10, [x10, _V4L2_TUNER_MODE_STEREO@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	tst	w10, w8
	mov	w8, #131072
	csel	x1, x9, x8, eq
	cbz	x1, LBB0_5
; %bb.2:
	mov	x19, x0
	mov	w0, #4390912
	bl	_gpio_bits
Lloh12:
	adrp	x8, _bttv_gpio@GOTPAGE
Lloh13:
	ldr	x8, [x8, _bttv_gpio@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.3:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	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_4:
Lloh17:
	adrp	x8, _V4L2_TUNER_MODE_MONO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _V4L2_TUNER_MODE_MONO@GOTPAGEOFF]
Lloh19:
	adrp	x9, _V4L2_TUNER_MODE_STEREO@GOTPAGE
Lloh20:
	ldr	x9, [x9, _V4L2_TUNER_MODE_STEREO@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh23:
	adrp	x9, _V4L2_TUNER_MODE_LANG1@GOTPAGE
Lloh24:
	ldr	x9, [x9, _V4L2_TUNER_MODE_LANG1@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh26:
	adrp	x9, _V4L2_TUNER_MODE_LANG2@GOTPAGE
Lloh27:
	ldr	x9, [x9, _V4L2_TUNER_MODE_LANG2@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x1]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_TUNER_MODE_MONO,4,2       ; @V4L2_TUNER_MODE_MONO
	.comm	_V4L2_TUNER_MODE_LANG1,4,2      ; @V4L2_TUNER_MODE_LANG1
	.comm	_V4L2_TUNER_MODE_LANG2,4,2      ; @V4L2_TUNER_MODE_LANG2
	.comm	_V4L2_TUNER_MODE_STEREO,4,2     ; @V4L2_TUNER_MODE_STEREO
	.comm	_bttv_gpio,8,3                  ; @bttv_gpio
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"winfast2000"

.subsections_via_symbols
