	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda8425_setaudmode
_tda8425_setaudmode:                    ## @tda8425_setaudmode
	.cfi_startproc
## %bb.0:
	addl	$-128, %esi
	cmpl	$4, %esi
	ja	LBB0_1
## %bb.2:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rcx
	movq	_TDA8425_S1@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movl	$225, %edx
	andl	4(%rcx,%rax,4), %edx
	movslq	%esi, %rcx
	leaq	l_switch.table.tda8425_setaudmode(%rip), %rsi
	movq	(%rsi,%rcx,8), %r8
	leaq	l_switch.table.tda8425_setaudmode.1(%rip), %rsi
	movq	(%rsi,%rcx,8), %rcx
	orl	(%r8), %edx
	orl	(%rcx), %edx
	movl	%eax, %esi
	popq	%rbp
	jmp	_chip_write                     ## TAILCALL
LBB0_1:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TDA8425_S1,4,2                 ## @TDA8425_S1
	.comm	_TDA8425_S1_ML_SOUND_A,4,2      ## @TDA8425_S1_ML_SOUND_A
	.comm	_TDA8425_S1_STEREO_PSEUDO,4,2   ## @TDA8425_S1_STEREO_PSEUDO
	.comm	_TDA8425_S1_ML_SOUND_B,4,2      ## @TDA8425_S1_ML_SOUND_B
	.comm	_TDA8425_S1_ML_STEREO,4,2       ## @TDA8425_S1_ML_STEREO
	.comm	_TDA8425_S1_STEREO_LINEAR,4,2   ## @TDA8425_S1_STEREO_LINEAR
	.comm	_TDA8425_S1_STEREO_MONO,4,2     ## @TDA8425_S1_STEREO_MONO
	.comm	_TDA8425_S1_STEREO_SPATIAL,4,2  ## @TDA8425_S1_STEREO_SPATIAL
	.no_dead_strip	_tda8425_setaudmode
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.tda8425_setaudmode
l_switch.table.tda8425_setaudmode:
	.quad	_TDA8425_S1_ML_STEREO
	.quad	_TDA8425_S1_ML_STEREO
	.quad	_TDA8425_S1_ML_SOUND_B
	.quad	_TDA8425_S1_ML_STEREO
	.quad	_TDA8425_S1_ML_SOUND_A

	.p2align	3                               ## @switch.table.tda8425_setaudmode.1
l_switch.table.tda8425_setaudmode.1:
	.quad	_TDA8425_S1_STEREO_SPATIAL
	.quad	_TDA8425_S1_STEREO_MONO
	.quad	_TDA8425_S1_STEREO_PSEUDO
	.quad	_TDA8425_S1_STEREO_LINEAR
	.quad	_TDA8425_S1_STEREO_PSEUDO

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda8425_setaudmode
_tda8425_setaudmode:                    ; @tda8425_setaudmode
	.cfi_startproc
; %bb.0:
	sub	w8, w1, #128
	cmp	w8, #4
	b.hi	LBB0_2
; %bb.1:
	ldr	x9, [x0]
Lloh0:
	adrp	x10, _TDA8425_S1@GOTPAGE
Lloh1:
	ldr	x10, [x10, _TDA8425_S1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x10]
	add	w10, w1, #1
	ldr	w9, [x9, w10, sxtw #2]
	mov	w10, #225
	sbfiz	x8, x8, #3, #32
Lloh3:
	adrp	x11, l_switch.table.tda8425_setaudmode@PAGE
Lloh4:
	add	x11, x11, l_switch.table.tda8425_setaudmode@PAGEOFF
	ldr	x11, [x11, x8]
	and	w9, w9, w10
Lloh5:
	adrp	x10, l_switch.table.tda8425_setaudmode.1@PAGE
Lloh6:
	add	x10, x10, l_switch.table.tda8425_setaudmode.1@PAGEOFF
	ldr	x8, [x10, x8]
	ldr	w10, [x11]
	orr	w9, w10, w9
	ldr	w8, [x8]
	orr	w2, w9, w8
	b	_chip_write
LBB0_2:
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TDA8425_S1,4,2                 ; @TDA8425_S1
	.comm	_TDA8425_S1_ML_SOUND_A,4,2      ; @TDA8425_S1_ML_SOUND_A
	.comm	_TDA8425_S1_STEREO_PSEUDO,4,2   ; @TDA8425_S1_STEREO_PSEUDO
	.comm	_TDA8425_S1_ML_SOUND_B,4,2      ; @TDA8425_S1_ML_SOUND_B
	.comm	_TDA8425_S1_ML_STEREO,4,2       ; @TDA8425_S1_ML_STEREO
	.comm	_TDA8425_S1_STEREO_LINEAR,4,2   ; @TDA8425_S1_STEREO_LINEAR
	.comm	_TDA8425_S1_STEREO_MONO,4,2     ; @TDA8425_S1_STEREO_MONO
	.comm	_TDA8425_S1_STEREO_SPATIAL,4,2  ; @TDA8425_S1_STEREO_SPATIAL
	.no_dead_strip	_tda8425_setaudmode
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.tda8425_setaudmode
l_switch.table.tda8425_setaudmode:
	.quad	_TDA8425_S1_ML_STEREO
	.quad	_TDA8425_S1_ML_STEREO
	.quad	_TDA8425_S1_ML_SOUND_B
	.quad	_TDA8425_S1_ML_STEREO
	.quad	_TDA8425_S1_ML_SOUND_A

	.p2align	3                               ; @switch.table.tda8425_setaudmode.1
l_switch.table.tda8425_setaudmode.1:
	.quad	_TDA8425_S1_STEREO_SPATIAL
	.quad	_TDA8425_S1_STEREO_MONO
	.quad	_TDA8425_S1_STEREO_PSEUDO
	.quad	_TDA8425_S1_STEREO_LINEAR
	.quad	_TDA8425_S1_STEREO_PSEUDO

.subsections_via_symbols
