	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx88_set_stereo                ## -- Begin function cx88_set_stereo
	.p2align	4, 0x90
_cx88_set_stereo:                       ## @cx88_set_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_UNSET@GOTPCREL(%rip), %rbx
	movq	(%rbx), %r15
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	movq	%rsi, (%rdi)
	jmp	LBB0_3
LBB0_2:
	cmpq	%r15, (%rdi)
	jne	LBB0_40
LBB0_3:
	movq	%rsi, 16(%rdi)
	movl	8(%rdi), %eax
	leal	-129(%rax), %ecx
	cmpl	$9, %ecx
	ja	LBB0_24
## %bb.4:
	movl	$659, %edx                      ## imm = 0x293
	btl	%ecx, %edx
	jae	LBB0_9
## %bb.5:
	cmpl	$1, 12(%rdi)
	jne	LBB0_14
## %bb.6:
	addq	$-139, %rsi
	cmpq	$4, %rsi
	ja	LBB0_24
## %bb.7:
	leaq	LJTI0_1(%rip), %rax
	movslq	(%rax,%rsi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_8:
	movq	_EN_NICAM_FORCE_STEREO@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_9:
	cmpl	$5, %ecx
	je	LBB0_17
## %bb.10:
	cmpl	$8, %ecx
	jne	LBB0_24
## %bb.11:
	addq	$-139, %rsi
	cmpq	$4, %rsi
	ja	LBB0_24
## %bb.12:
	leaq	LJTI0_2(%rip), %rax
	movslq	(%rax,%rsi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_13:
	movq	_EN_BTSC_FORCE_STEREO@GOTPCREL(%rip), %rax
	jmp	LBB0_37
LBB0_14:
	cmpl	$133, %eax
	je	LBB0_16
## %bb.15:
	cmpl	$130, %eax
	jne	LBB0_21
LBB0_16:
	movq	_EN_A2_FORCE_MONO1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_set_audio_standard_A2
	jmp	LBB0_24
LBB0_17:
	cmpq	$139, %rsi
	je	LBB0_29
## %bb.18:
	movq	%r15, %r14
	cmpq	$140, %rsi
	jne	LBB0_39
## %bb.19:
	movq	_EN_FMRADIO_FORCE_MONO@GOTPCREL(%rip), %rax
	jmp	LBB0_30
LBB0_20:
	movq	_EN_NICAM_FORCE_MONO1@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_21:
	movl	$63, %r14d
	addq	$-139, %rsi
	cmpq	$4, %rsi
	ja	LBB0_39
## %bb.22:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rsi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_23:
	movq	_EN_A2_FORCE_STEREO@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_26:
	movq	_EN_NICAM_FORCE_MONO2@GOTPCREL(%rip), %rax
LBB0_27:
	movl	(%rax), %esi
	callq	_set_audio_standard_NICAM
LBB0_24:
	movq	%r15, %r14
	cmpq	(%rbx), %r15
	je	LBB0_40
LBB0_42:
	movq	_AUD_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cx_read
	movl	%eax, %r12d
	movq	_AUD_CTL@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_cx_read
	movl	%eax, %ebx
	movq	_SHADOW_AUD_VOL_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cx_sread
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movl	%r12d, %ecx
	movl	%ebx, %r8d
	movl	%eax, %r9d
	callq	_dprintk
	movl	(%r13), %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cx_andor                       ## TAILCALL
LBB0_29:
	movq	_EN_FMRADIO_AUTO_STEREO@GOTPCREL(%rip), %rax
LBB0_30:
	movq	(%rax), %r15
	movl	$63, %r14d
	cmpq	(%rbx), %r15
	jne	LBB0_42
	jmp	LBB0_40
LBB0_31:
	movq	_EN_A2_FORCE_MONO1@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_34:
	movq	_EN_BTSC_FORCE_MONO@GOTPCREL(%rip), %rax
	jmp	LBB0_37
LBB0_35:
	movq	_EN_BTSC_FORCE_SAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %esi
	jmp	LBB0_38
LBB0_36:
	movq	_EN_BTSC_AUTO_STEREO@GOTPCREL(%rip), %rax
LBB0_37:
	movl	(%rax), %edx
	xorl	%esi, %esi
LBB0_38:
	callq	_set_audio_standard_BTSC
	movq	%r15, %r14
LBB0_39:
	cmpq	(%rbx), %r15
	jne	LBB0_42
LBB0_40:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_41:
	movq	_EN_A2_FORCE_MONO2@GOTPCREL(%rip), %rax
LBB0_32:
	movq	(%rax), %r15
	cmpq	(%rbx), %r15
	jne	LBB0_42
	jmp	LBB0_40
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_31, LBB0_31-LJTI0_0
.set L0_0_set_41, LBB0_41-LJTI0_0
LJTI0_0:
	.long	L0_0_set_23
	.long	L0_0_set_31
	.long	L0_0_set_41
	.long	L0_0_set_23
	.long	L0_0_set_31
.set L0_1_set_8, LBB0_8-LJTI0_1
.set L0_1_set_20, LBB0_20-LJTI0_1
.set L0_1_set_26, LBB0_26-LJTI0_1
LJTI0_1:
	.long	L0_1_set_8
	.long	L0_1_set_20
	.long	L0_1_set_26
	.long	L0_1_set_8
	.long	L0_1_set_20
.set L0_2_set_13, LBB0_13-LJTI0_2
.set L0_2_set_34, LBB0_34-LJTI0_2
.set L0_2_set_35, LBB0_35-LJTI0_2
.set L0_2_set_36, LBB0_36-LJTI0_2
LJTI0_2:
	.long	L0_2_set_13
	.long	L0_2_set_34
	.long	L0_2_set_35
	.long	L0_2_set_13
	.long	L0_2_set_36
	.end_data_region
                                        ## -- End function
	.comm	_UNSET,8,3                      ## @UNSET
	.comm	_EN_BTSC_FORCE_MONO,4,2         ## @EN_BTSC_FORCE_MONO
	.comm	_EN_BTSC_AUTO_STEREO,4,2        ## @EN_BTSC_AUTO_STEREO
	.comm	_EN_BTSC_FORCE_SAP,4,2          ## @EN_BTSC_FORCE_SAP
	.comm	_EN_BTSC_FORCE_STEREO,4,2       ## @EN_BTSC_FORCE_STEREO
	.comm	_EN_NICAM_FORCE_MONO1,4,2       ## @EN_NICAM_FORCE_MONO1
	.comm	_EN_NICAM_FORCE_MONO2,4,2       ## @EN_NICAM_FORCE_MONO2
	.comm	_EN_NICAM_FORCE_STEREO,4,2      ## @EN_NICAM_FORCE_STEREO
	.comm	_EN_A2_FORCE_MONO1,8,3          ## @EN_A2_FORCE_MONO1
	.comm	_EN_A2_FORCE_MONO2,8,3          ## @EN_A2_FORCE_MONO2
	.comm	_EN_A2_FORCE_STEREO,8,3         ## @EN_A2_FORCE_STEREO
	.comm	_EN_FMRADIO_FORCE_MONO,8,3      ## @EN_FMRADIO_FORCE_MONO
	.comm	_EN_FMRADIO_AUTO_STEREO,8,3     ## @EN_FMRADIO_AUTO_STEREO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cx88_set_stereo: mask 0x%x, ctl 0x%x [status=0x%x,ctl=0x%x,vol=0x%x]\n"

	.comm	_AUD_STATUS,4,2                 ## @AUD_STATUS
	.comm	_AUD_CTL,4,2                    ## @AUD_CTL
	.comm	_SHADOW_AUD_VOL_CTL,4,2         ## @SHADOW_AUD_VOL_CTL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx88_set_stereo                ; -- Begin function cx88_set_stereo
	.p2align	2
_cx88_set_stereo:                       ; @cx88_set_stereo
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x21, _UNSET@GOTPAGE
Lloh1:
	ldr	x21, [x21, _UNSET@GOTPAGEOFF]
	ldr	x19, [x21]
	cbz	w2, LBB0_2
; %bb.1:
	str	x1, [x0]
	b	LBB0_3
LBB0_2:
	ldr	x8, [x0]
	cmp	x8, x19
	b.ne	LBB0_38
LBB0_3:
	str	x1, [x0, #16]
	ldr	w8, [x0, #8]
	sub	w9, w8, #129
	cmp	w9, #9
	b.hi	LBB0_26
; %bb.4:
	mov	w10, #1
	lsl	w10, w10, w9
	mov	w11, #659
	tst	w10, w11
	b.eq	LBB0_9
; %bb.5:
	ldr	w9, [x0, #12]
	cmp	w9, #1
	b.ne	LBB0_14
; %bb.6:
	sub	x8, x1, #139
	cmp	x8, #4
	b.hi	LBB0_26
; %bb.7:
Lloh2:
	adrp	x9, lJTI0_1@PAGE
Lloh3:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_8
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_8:
Lloh4:
	adrp	x8, _EN_NICAM_FORCE_STEREO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EN_NICAM_FORCE_STEREO@GOTPAGEOFF]
	b	LBB0_25
LBB0_9:
	cmp	w9, #5
	b.eq	LBB0_17
; %bb.10:
	cmp	w9, #8
	b.ne	LBB0_26
; %bb.11:
	sub	x8, x1, #139
	cmp	x8, #4
	b.hi	LBB0_26
; %bb.12:
Lloh6:
	adrp	x9, lJTI0_2@PAGE
Lloh7:
	add	x9, x9, lJTI0_2@PAGEOFF
	adr	x10, LBB0_13
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_13:
Lloh8:
	adrp	x8, _EN_BTSC_FORCE_STEREO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EN_BTSC_FORCE_STEREO@GOTPAGEOFF]
	b	LBB0_32
LBB0_14:
	cmp	w8, #133
	b.eq	LBB0_16
; %bb.15:
	cmp	w8, #130
	b.ne	LBB0_21
LBB0_16:
Lloh10:
	adrp	x8, _EN_A2_FORCE_MONO1@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EN_A2_FORCE_MONO1@GOTPAGEOFF]
Lloh12:
	ldr	x1, [x8]
	bl	_set_audio_standard_A2
	mov	x20, x19
	b	LBB0_37
LBB0_17:
	cmp	x1, #139
	b.eq	LBB0_27
; %bb.18:
	mov	x20, x19
	cmp	x1, #140
	b.ne	LBB0_37
; %bb.19:
Lloh13:
	adrp	x8, _EN_FMRADIO_FORCE_MONO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EN_FMRADIO_FORCE_MONO@GOTPAGEOFF]
	b	LBB0_35
LBB0_20:
Lloh15:
	adrp	x8, _EN_NICAM_FORCE_MONO1@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EN_NICAM_FORCE_MONO1@GOTPAGEOFF]
	b	LBB0_25
LBB0_21:
	sub	x8, x1, #139
	cmp	x8, #4
	b.hi	LBB0_36
; %bb.22:
Lloh17:
	adrp	x9, lJTI0_0@PAGE
Lloh18:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_23
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_23:
Lloh19:
	adrp	x8, _EN_A2_FORCE_STEREO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EN_A2_FORCE_STEREO@GOTPAGEOFF]
	b	LBB0_35
LBB0_24:
Lloh21:
	adrp	x8, _EN_NICAM_FORCE_MONO2@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EN_NICAM_FORCE_MONO2@GOTPAGEOFF]
LBB0_25:
	ldr	w1, [x8]
	bl	_set_audio_standard_NICAM
LBB0_26:
	mov	x20, x19
	b	LBB0_37
LBB0_27:
Lloh23:
	adrp	x8, _EN_FMRADIO_AUTO_STEREO@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EN_FMRADIO_AUTO_STEREO@GOTPAGEOFF]
	b	LBB0_35
LBB0_28:
Lloh25:
	adrp	x8, _EN_A2_FORCE_MONO1@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EN_A2_FORCE_MONO1@GOTPAGEOFF]
	b	LBB0_35
LBB0_29:
Lloh27:
	adrp	x8, _EN_BTSC_FORCE_MONO@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EN_BTSC_FORCE_MONO@GOTPAGEOFF]
	b	LBB0_32
LBB0_30:
Lloh29:
	adrp	x8, _EN_BTSC_FORCE_SAP@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EN_BTSC_FORCE_SAP@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	mov	w1, #1
	b	LBB0_33
LBB0_31:
Lloh32:
	adrp	x8, _EN_BTSC_AUTO_STEREO@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EN_BTSC_AUTO_STEREO@GOTPAGEOFF]
LBB0_32:
	ldr	w2, [x8]
	mov	w1, #0
LBB0_33:
	bl	_set_audio_standard_BTSC
	mov	x20, x19
	b	LBB0_37
LBB0_34:
Lloh34:
	adrp	x8, _EN_A2_FORCE_MONO2@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EN_A2_FORCE_MONO2@GOTPAGEOFF]
LBB0_35:
	ldr	x19, [x8]
LBB0_36:
	mov	w20, #63
LBB0_37:
	ldr	x8, [x21]
	cmp	x19, x8
	b.ne	LBB0_39
LBB0_38:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_39:
Lloh36:
	adrp	x8, _AUD_STATUS@GOTPAGE
Lloh37:
	ldr	x8, [x8, _AUD_STATUS@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	bl	_cx_read
	mov	x21, x0
Lloh39:
	adrp	x23, _AUD_CTL@GOTPAGE
Lloh40:
	ldr	x23, [x23, _AUD_CTL@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_cx_read
	mov	x22, x0
Lloh41:
	adrp	x8, _SHADOW_AUD_VOL_CTL@GOTPAGE
Lloh42:
	ldr	x8, [x8, _SHADOW_AUD_VOL_CTL@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	bl	_cx_sread
	mov	x5, x0
Lloh44:
	adrp	x0, l_.str@PAGE
Lloh45:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	mov	x3, x21
	mov	x4, x22
	bl	_dprintk
	ldr	w0, [x23]
	mov	x1, x20
	mov	x2, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_cx_andor
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_23-LBB0_23)>>2
	.byte	(LBB0_28-LBB0_23)>>2
	.byte	(LBB0_34-LBB0_23)>>2
	.byte	(LBB0_23-LBB0_23)>>2
	.byte	(LBB0_28-LBB0_23)>>2
lJTI0_1:
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_20-LBB0_8)>>2
	.byte	(LBB0_24-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_20-LBB0_8)>>2
lJTI0_2:
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_29-LBB0_13)>>2
	.byte	(LBB0_30-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_31-LBB0_13)>>2
                                        ; -- End function
	.comm	_UNSET,8,3                      ; @UNSET
	.comm	_EN_BTSC_FORCE_MONO,4,2         ; @EN_BTSC_FORCE_MONO
	.comm	_EN_BTSC_AUTO_STEREO,4,2        ; @EN_BTSC_AUTO_STEREO
	.comm	_EN_BTSC_FORCE_SAP,4,2          ; @EN_BTSC_FORCE_SAP
	.comm	_EN_BTSC_FORCE_STEREO,4,2       ; @EN_BTSC_FORCE_STEREO
	.comm	_EN_NICAM_FORCE_MONO1,4,2       ; @EN_NICAM_FORCE_MONO1
	.comm	_EN_NICAM_FORCE_MONO2,4,2       ; @EN_NICAM_FORCE_MONO2
	.comm	_EN_NICAM_FORCE_STEREO,4,2      ; @EN_NICAM_FORCE_STEREO
	.comm	_EN_A2_FORCE_MONO1,8,3          ; @EN_A2_FORCE_MONO1
	.comm	_EN_A2_FORCE_MONO2,8,3          ; @EN_A2_FORCE_MONO2
	.comm	_EN_A2_FORCE_STEREO,8,3         ; @EN_A2_FORCE_STEREO
	.comm	_EN_FMRADIO_FORCE_MONO,8,3      ; @EN_FMRADIO_FORCE_MONO
	.comm	_EN_FMRADIO_AUTO_STEREO,8,3     ; @EN_FMRADIO_AUTO_STEREO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cx88_set_stereo: mask 0x%x, ctl 0x%x [status=0x%x,ctl=0x%x,vol=0x%x]\n"

	.comm	_AUD_STATUS,4,2                 ; @AUD_STATUS
	.comm	_AUD_CTL,4,2                    ; @AUD_CTL
	.comm	_SHADOW_AUD_VOL_CTL,4,2         ; @SHADOW_AUD_VOL_CTL
.subsections_via_symbols
