	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx88_get_stereo                ## -- Begin function cx88_get_stereo
	.p2align	4, 0x90
_cx88_get_stereo:                       ## @cx88_get_stereo
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_AUD_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cx_read
	movl	%eax, %ebx
	andl	$3, %eax
	movl	%eax, %edx
	cmpl	%ebx, (%r14)
	je	LBB0_2
## %bb.1:
	movl	%ebx, %eax
	shrl	$2, %eax
	andl	$3, %eax
	leaq	_reltable.cx88_get_stereo(%rip), %rcx
	movslq	(%rcx,%rdx,4), %r12
	addq	%rcx, %r12
	leaq	_reltable.cx88_get_stereo.9(%rip), %rcx
	movslq	(%rcx,%rax,4), %r13
	addq	%rcx, %r13
	movq	_aud_ctl_names@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_AUD_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	callq	_cx_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$63, %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax,4), %r8d
	leaq	L_.str.8(%rip), %rdi
	movl	%ebx, %esi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	_dprintk
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
LBB0_2:
	movl	%ebx, (%r14)
	movq	_V4L2_TUNER_CAP_STEREO@GOTPCREL(%rip), %rax
	movq	_V4L2_TUNER_CAP_SAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_V4L2_TUNER_CAP_LANG1@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_V4L2_TUNER_CAP_LANG2@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%r15)
	movq	_UNSET@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movl	%eax, 16(%r15)
	movq	_V4L2_TUNER_MODE_MONO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rdx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_3:
	movq	_V4L2_TUNER_MODE_STEREO@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_V4L2_TUNER_MODE_LANG2@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_V4L2_TUNER_MODE_SAP@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %rax
LBB0_7:
	movq	%rax, 8(%r15)
	movl	4(%r14), %eax
	leal	-135(%rax), %ecx
	cmpl	$4, %ecx
	jae	LBB0_8
LBB0_9:
	cmpl	$0, 8(%r14)
	jne	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	callq	_cx88_dsp_detect_stereo_sap
	movl	%eax, 16(%r15)
	cmpl	(%rbx), %eax
	je	LBB0_11
	jmp	LBB0_13
LBB0_8:
	cmpl	$129, %eax
	je	LBB0_9
LBB0_11:
	movq	_V4L2_TUNER_SUB_MONO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	8(%r15), %rcx
	movq	_V4L2_TUNER_MODE_STEREO@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_13
## %bb.12:
	movq	_V4L2_TUNER_SUB_STEREO@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 16(%r15)
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_7
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.cx88_get_stereo
_reltable.cx88_get_stereo:
	.long	L_.str-_reltable.cx88_get_stereo
	.long	L_.str.1-_reltable.cx88_get_stereo
	.long	L_.str.2-_reltable.cx88_get_stereo
	.long	L_.str.3-_reltable.cx88_get_stereo

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stereo"

L_.str.1:                               ## @.str.1
	.asciz	"dual mono"

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

L_.str.3:                               ## @.str.3
	.asciz	"sap"

	.section	__TEXT,__const
	.p2align	2                               ## @reltable.cx88_get_stereo.9
_reltable.cx88_get_stereo.9:
	.long	L_.str.4-_reltable.cx88_get_stereo.9
	.long	L_.str.5-_reltable.cx88_get_stereo.9
	.long	L_.str.6-_reltable.cx88_get_stereo.9
	.long	L_.str.7-_reltable.cx88_get_stereo.9

	.section	__TEXT,__cstring,cstring_literals
L_.str.4:                               ## @.str.4
	.asciz	"no pilot"

L_.str.5:                               ## @.str.5
	.asciz	"pilot c1"

L_.str.6:                               ## @.str.6
	.asciz	"pilot c2"

L_.str.7:                               ## @.str.7
	.asciz	"?"

	.comm	_AUD_STATUS,4,2                 ## @AUD_STATUS
L_.str.8:                               ## @.str.8
	.asciz	"AUD_STATUS: 0x%x [%s/%s] ctl=%s\n"

	.comm	_aud_ctl_names,8,3              ## @aud_ctl_names
	.comm	_AUD_CTL,4,2                    ## @AUD_CTL
	.comm	_V4L2_TUNER_CAP_STEREO,4,2      ## @V4L2_TUNER_CAP_STEREO
	.comm	_V4L2_TUNER_CAP_SAP,4,2         ## @V4L2_TUNER_CAP_SAP
	.comm	_V4L2_TUNER_CAP_LANG1,4,2       ## @V4L2_TUNER_CAP_LANG1
	.comm	_V4L2_TUNER_CAP_LANG2,4,2       ## @V4L2_TUNER_CAP_LANG2
	.comm	_UNSET,4,2                      ## @UNSET
	.comm	_V4L2_TUNER_MODE_MONO,8,3       ## @V4L2_TUNER_MODE_MONO
	.comm	_V4L2_TUNER_MODE_STEREO,8,3     ## @V4L2_TUNER_MODE_STEREO
	.comm	_V4L2_TUNER_MODE_LANG2,8,3      ## @V4L2_TUNER_MODE_LANG2
	.comm	_V4L2_TUNER_MODE_SAP,8,3        ## @V4L2_TUNER_MODE_SAP
	.comm	_V4L2_TUNER_SUB_MONO,4,2        ## @V4L2_TUNER_SUB_MONO
	.comm	_V4L2_TUNER_SUB_STEREO,4,2      ## @V4L2_TUNER_SUB_STEREO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx88_get_stereo                ; -- Begin function cx88_get_stereo
	.p2align	2
_cx88_get_stereo:                       ; @cx88_get_stereo
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _AUD_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AUD_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cx_read
	mov	x21, x0
	and	w24, w0, #0x3
	ldr	w8, [x20]
	cmp	w8, w0
	b.eq	LBB0_2
; %bb.1:
	ubfx	w8, w21, #2, #2
Lloh3:
	adrp	x9, _cx88_get_stereo.m@PAGE
Lloh4:
	add	x9, x9, _cx88_get_stereo.m@PAGEOFF
	ldr	x22, [x9, w24, uxtw #3]
Lloh5:
	adrp	x9, _cx88_get_stereo.p@PAGE
Lloh6:
	add	x9, x9, _cx88_get_stereo.p@PAGEOFF
	ldr	x23, [x9, w8, uxtw #3]
Lloh7:
	adrp	x8, _aud_ctl_names@GOTPAGE
Lloh8:
	ldr	x8, [x8, _aud_ctl_names@GOTPAGEOFF]
Lloh9:
	ldr	x25, [x8]
Lloh10:
	adrp	x8, _AUD_CTL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AUD_CTL@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_cx_read
	and	w8, w0, #0x3f
	ldr	w4, [x25, w8, uxtw #2]
Lloh13:
	adrp	x0, l_.str.8@PAGE
Lloh14:
	add	x0, x0, l_.str.8@PAGEOFF
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	bl	_dprintk
LBB0_2:
	str	w21, [x20]
Lloh15:
	adrp	x8, _V4L2_TUNER_CAP_STEREO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _V4L2_TUNER_CAP_STEREO@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _V4L2_TUNER_CAP_SAP@GOTPAGE
Lloh19:
	ldr	x9, [x9, _V4L2_TUNER_CAP_SAP@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh21:
	adrp	x9, _V4L2_TUNER_CAP_LANG1@GOTPAGE
Lloh22:
	ldr	x9, [x9, _V4L2_TUNER_CAP_LANG1@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh24:
	adrp	x9, _V4L2_TUNER_CAP_LANG2@GOTPAGE
Lloh25:
	ldr	x9, [x9, _V4L2_TUNER_CAP_LANG2@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh27:
	adrp	x21, _UNSET@GOTPAGE
Lloh28:
	ldr	x21, [x21, _UNSET@GOTPAGEOFF]
	str	w8, [x19]
	ldr	w8, [x21]
	str	w8, [x19, #16]
Lloh29:
	adrp	x8, _V4L2_TUNER_MODE_MONO@GOTPAGE
Lloh30:
	ldr	x8, [x8, _V4L2_TUNER_MODE_MONO@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
Lloh32:
	adrp	x9, lJTI0_0@PAGE
Lloh33:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x24]
	add	x10, x10, x11, lsl #2
Lloh34:
	adrp	x22, _V4L2_TUNER_MODE_STEREO@GOTPAGE
Lloh35:
	ldr	x22, [x22, _V4L2_TUNER_MODE_STEREO@GOTPAGEOFF]
	br	x10
LBB0_3:
	ldr	x8, [x22]
	b	LBB0_7
LBB0_4:
Lloh36:
	adrp	x8, _V4L2_TUNER_MODE_LANG2@GOTPAGE
Lloh37:
	ldr	x8, [x8, _V4L2_TUNER_MODE_LANG2@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh38:
	adrp	x8, _V4L2_TUNER_MODE_SAP@GOTPAGE
Lloh39:
	ldr	x8, [x8, _V4L2_TUNER_MODE_SAP@GOTPAGEOFF]
LBB0_6:
	ldr	x8, [x8]
LBB0_7:
	str	x8, [x19, #8]
	ldr	w8, [x20, #4]
	sub	w9, w8, #135
	cmp	w9, #4
	b.hs	LBB0_10
LBB0_8:
	ldr	w8, [x20, #8]
	cbnz	w8, LBB0_11
; %bb.9:
	mov	x0, x20
	bl	_cx88_dsp_detect_stereo_sap
	str	w0, [x19, #16]
	ldr	w8, [x21]
	cmp	w0, w8
	b.eq	LBB0_11
	b	LBB0_13
LBB0_10:
	cmp	w8, #129
	b.eq	LBB0_8
LBB0_11:
Lloh40:
	adrp	x8, _V4L2_TUNER_SUB_MONO@GOTPAGE
Lloh41:
	ldr	x8, [x8, _V4L2_TUNER_SUB_MONO@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	ldr	x9, [x19, #8]
	ldr	x10, [x22]
	cmp	x9, x10
	b.ne	LBB0_13
; %bb.12:
Lloh43:
	adrp	x9, _V4L2_TUNER_SUB_STEREO@GOTPAGE
Lloh44:
	ldr	x9, [x9, _V4L2_TUNER_SUB_STEREO@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #16]
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
                                        ; -- End function
	.section	__DATA,__const
	.p2align	3                               ; @cx88_get_stereo.m
_cx88_get_stereo.m:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2
	.quad	l_.str.3

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stereo"

l_.str.1:                               ; @.str.1
	.asciz	"dual mono"

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

l_.str.3:                               ; @.str.3
	.asciz	"sap"

	.section	__DATA,__const
	.p2align	3                               ; @cx88_get_stereo.p
_cx88_get_stereo.p:
	.quad	l_.str.4
	.quad	l_.str.5
	.quad	l_.str.6
	.quad	l_.str.7

	.section	__TEXT,__cstring,cstring_literals
l_.str.4:                               ; @.str.4
	.asciz	"no pilot"

l_.str.5:                               ; @.str.5
	.asciz	"pilot c1"

l_.str.6:                               ; @.str.6
	.asciz	"pilot c2"

l_.str.7:                               ; @.str.7
	.asciz	"?"

	.comm	_AUD_STATUS,4,2                 ; @AUD_STATUS
l_.str.8:                               ; @.str.8
	.asciz	"AUD_STATUS: 0x%x [%s/%s] ctl=%s\n"

	.comm	_aud_ctl_names,8,3              ; @aud_ctl_names
	.comm	_AUD_CTL,4,2                    ; @AUD_CTL
	.comm	_V4L2_TUNER_CAP_STEREO,4,2      ; @V4L2_TUNER_CAP_STEREO
	.comm	_V4L2_TUNER_CAP_SAP,4,2         ; @V4L2_TUNER_CAP_SAP
	.comm	_V4L2_TUNER_CAP_LANG1,4,2       ; @V4L2_TUNER_CAP_LANG1
	.comm	_V4L2_TUNER_CAP_LANG2,4,2       ; @V4L2_TUNER_CAP_LANG2
	.comm	_UNSET,4,2                      ; @UNSET
	.comm	_V4L2_TUNER_MODE_MONO,8,3       ; @V4L2_TUNER_MODE_MONO
	.comm	_V4L2_TUNER_MODE_STEREO,8,3     ; @V4L2_TUNER_MODE_STEREO
	.comm	_V4L2_TUNER_MODE_LANG2,8,3      ; @V4L2_TUNER_MODE_LANG2
	.comm	_V4L2_TUNER_MODE_SAP,8,3        ; @V4L2_TUNER_MODE_SAP
	.comm	_V4L2_TUNER_SUB_MONO,4,2        ; @V4L2_TUNER_SUB_MONO
	.comm	_V4L2_TUNER_SUB_STEREO,4,2      ; @V4L2_TUNER_SUB_STEREO
.subsections_via_symbols
