	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda8425_setmode
_tda8425_setmode:                       ## @tda8425_setmode
	.cfi_startproc
## %bb.0:
	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
	movq	_V4L2_TUNER_MODE_LANG1@GOTPCREL(%rip), %rcx
	testl	%esi, (%rcx)
	je	LBB0_3
## %bb.1:
	movq	_TDA8425_S1_ML_SOUND_A@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	movq	_V4L2_TUNER_MODE_LANG2@GOTPCREL(%rip), %rcx
	testl	%esi, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	_TDA8425_S1_ML_SOUND_B@GOTPCREL(%rip), %rcx
LBB0_2:
	orl	(%rcx), %edx
	movq	_TDA8425_S1_STEREO_PSEUDO@GOTPCREL(%rip), %rcx
LBB0_9:
	orl	(%rcx), %edx
LBB0_10:
	movl	%eax, %esi
	popq	%rbp
	jmp	_chip_write                     ## TAILCALL
LBB0_5:
	movq	_TDA8425_S1_ML_STEREO@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_V4L2_TUNER_MODE_MONO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%esi, %ecx
	je	LBB0_7
## %bb.6:
	movq	_TDA8425_S1_STEREO_MONO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_7:
	orl	%ecx, %edx
	movq	_V4L2_TUNER_MODE_STEREO@GOTPCREL(%rip), %rcx
	testl	%esi, (%rcx)
	je	LBB0_10
## %bb.8:
	movq	_TDA8425_S1_STEREO_SPATIAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_TDA8425_S1,4,2                 ## @TDA8425_S1
	.comm	_V4L2_TUNER_MODE_LANG1,4,2      ## @V4L2_TUNER_MODE_LANG1
	.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	_V4L2_TUNER_MODE_LANG2,4,2      ## @V4L2_TUNER_MODE_LANG2
	.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	_V4L2_TUNER_MODE_MONO,4,2       ## @V4L2_TUNER_MODE_MONO
	.comm	_TDA8425_S1_STEREO_MONO,4,2     ## @TDA8425_S1_STEREO_MONO
	.comm	_V4L2_TUNER_MODE_STEREO,4,2     ## @V4L2_TUNER_MODE_STEREO
	.comm	_TDA8425_S1_STEREO_SPATIAL,4,2  ## @TDA8425_S1_STEREO_SPATIAL
	.no_dead_strip	_tda8425_setmode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda8425_setmode
_tda8425_setmode:                       ; @tda8425_setmode
	.cfi_startproc
; %bb.0:
	mov	x8, x1
	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
	and	w9, w9, w10
Lloh3:
	adrp	x10, _V4L2_TUNER_MODE_LANG1@GOTPAGE
Lloh4:
	ldr	x10, [x10, _V4L2_TUNER_MODE_LANG1@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _TDA8425_S1_ML_SOUND_A@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TDA8425_S1_ML_SOUND_A@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh8:
	adrp	x10, _V4L2_TUNER_MODE_LANG2@GOTPAGE
Lloh9:
	ldr	x10, [x10, _V4L2_TUNER_MODE_LANG2@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_5
; %bb.3:
Lloh11:
	adrp	x8, _TDA8425_S1_ML_SOUND_B@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TDA8425_S1_ML_SOUND_B@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	orr	w8, w8, w9
Lloh13:
	adrp	x9, _TDA8425_S1_STEREO_PSEUDO@GOTPAGE
Lloh14:
	ldr	x9, [x9, _TDA8425_S1_STEREO_PSEUDO@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w2, w8, w9
	b	_chip_write
LBB0_5:
Lloh16:
	adrp	x10, _TDA8425_S1_ML_STEREO@GOTPAGE
Lloh17:
	ldr	x10, [x10, _TDA8425_S1_ML_STEREO@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
Lloh19:
	adrp	x11, _V4L2_TUNER_MODE_MONO@GOTPAGE
Lloh20:
	ldr	x11, [x11, _V4L2_TUNER_MODE_MONO@GOTPAGEOFF]
	orr	w9, w10, w9
Lloh21:
	ldr	w10, [x11]
Lloh22:
	adrp	x11, _TDA8425_S1_STEREO_MONO@GOTPAGE
Lloh23:
	ldr	x11, [x11, _TDA8425_S1_STEREO_MONO@GOTPAGEOFF]
Lloh24:
	ldr	w11, [x11]
	tst	w10, w8
	csel	w10, wzr, w11, eq
	orr	w2, w9, w10
Lloh25:
	adrp	x9, _V4L2_TUNER_MODE_STEREO@GOTPAGE
Lloh26:
	ldr	x9, [x9, _V4L2_TUNER_MODE_STEREO@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
Lloh28:
	adrp	x8, _TDA8425_S1_STEREO_SPATIAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _TDA8425_S1_STEREO_SPATIAL@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	orr	w2, w8, w2
LBB0_7:
	b	_chip_write
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_TDA8425_S1,4,2                 ; @TDA8425_S1
	.comm	_V4L2_TUNER_MODE_LANG1,4,2      ; @V4L2_TUNER_MODE_LANG1
	.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	_V4L2_TUNER_MODE_LANG2,4,2      ; @V4L2_TUNER_MODE_LANG2
	.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	_V4L2_TUNER_MODE_MONO,4,2       ; @V4L2_TUNER_MODE_MONO
	.comm	_TDA8425_S1_STEREO_MONO,4,2     ; @TDA8425_S1_STEREO_MONO
	.comm	_V4L2_TUNER_MODE_STEREO,4,2     ; @V4L2_TUNER_MODE_STEREO
	.comm	_TDA8425_S1_STEREO_SPATIAL,4,2  ; @TDA8425_S1_STEREO_SPATIAL
	.no_dead_strip	_tda8425_setmode
.subsections_via_symbols
