	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda9873_setaudmode
_tda9873_setaudmode:                    ## @tda9873_setaudmode
	.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
	movl	%esi, %r14d
	leaq	8(%rdi), %r15
	movq	(%rdi), %rax
	movq	_TDA9873_SW@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %r8
	movl	4(%rax,%r8,4), %r9d
	movq	_TDA9873_TR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	notl	%ebx
	andl	%r9d, %ebx
	movq	_TDA9873_INP_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	movq	_TDA9873_INTERNAL@GOTPCREL(%rip), %rcx
	movq	_debug@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.1:
	movq	%rdi, %r12
	incq	%r8
	leaq	L_.str.1(%rip), %rcx
	movl	$1, %edi
	movq	%r15, %rdx
                                        ## kill: def $r8d killed $r8d killed $r8
	xorl	%eax, %eax
	callq	_v4l2_dbg
	movl	(%r13), %esi
	leaq	L_.str.2(%rip), %rcx
	movl	$1, %edi
	movq	%r15, %rdx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_v4l2_dbg
	leal	-128(%r14), %eax
	cmpl	$4, %eax
	ja	LBB0_2
## %bb.4:
	cltq
	leaq	l_switch.table.tda9873_setaudmode(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	orl	(%rax), %ebx
	movq	_TDA9873_SW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_chip_write
	movl	(%r13), %esi
	leaq	L_.str.3(%rip), %rcx
	movl	$1, %edi
	movq	%r15, %rdx
	movl	%r14d, %r8d
	movl	%ebx, %r9d
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_v4l2_dbg                       ## TAILCALL
LBB0_3:
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	movq	%r15, %rdx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_v4l2_dbg                       ## TAILCALL
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TDA9873_SW,4,2                 ## @TDA9873_SW
	.comm	_TDA9873_TR_MASK,4,2            ## @TDA9873_TR_MASK
	.comm	_TDA9873_INP_MASK,4,2           ## @TDA9873_INP_MASK
	.comm	_TDA9873_INTERNAL,4,2           ## @TDA9873_INTERNAL
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tda9873_setaudmode(): external input\n"

L_.str.1:                               ## @.str.1
	.asciz	"tda9873_setaudmode(): chip->shadow.bytes[%d] = %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"tda9873_setaudmode(): sw_data  = %d\n"

	.comm	_TDA9873_TR_MONO,4,2            ## @TDA9873_TR_MONO
	.comm	_TDA9873_TR_STEREO,4,2          ## @TDA9873_TR_STEREO
	.comm	_TDA9873_TR_DUALA,4,2           ## @TDA9873_TR_DUALA
	.comm	_TDA9873_TR_DUALB,4,2           ## @TDA9873_TR_DUALB
	.comm	_TDA9873_TR_DUALAB,4,2          ## @TDA9873_TR_DUALAB
L_.str.3:                               ## @.str.3
	.asciz	"tda9873_setaudmode(): req. mode %d; chip_write: %d\n"

	.no_dead_strip	_tda9873_setaudmode
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.tda9873_setaudmode
l_switch.table.tda9873_setaudmode:
	.quad	_TDA9873_TR_STEREO
	.quad	_TDA9873_TR_MONO
	.quad	_TDA9873_TR_DUALB
	.quad	_TDA9873_TR_DUALAB
	.quad	_TDA9873_TR_DUALA

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda9873_setaudmode
_tda9873_setaudmode:                    ; @tda9873_setaudmode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x19], #8
Lloh0:
	adrp	x23, _TDA9873_SW@GOTPAGE
Lloh1:
	ldr	x23, [x23, _TDA9873_SW@GOTPAGEOFF]
	ldrsw	x9, [x23]
	add	x9, x9, #1
	ldr	w8, [x8, x9, lsl #2]
Lloh2:
	adrp	x10, _TDA9873_TR_MASK@GOTPAGE
Lloh3:
	ldr	x10, [x10, _TDA9873_TR_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	bic	w22, w8, w10
Lloh5:
	adrp	x10, _TDA9873_INP_MASK@GOTPAGE
Lloh6:
	ldr	x10, [x10, _TDA9873_INP_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
Lloh8:
	adrp	x11, _TDA9873_INTERNAL@GOTPAGE
Lloh9:
	ldr	x11, [x11, _TDA9873_INTERNAL@GOTPAGEOFF]
	and	w10, w22, w10
Lloh10:
	ldr	w11, [x11]
Lloh11:
	adrp	x24, _debug@GOTPAGE
Lloh12:
	ldr	x24, [x24, _debug@GOTPAGEOFF]
	ldr	w1, [x24]
	cmp	w10, w11
	b.ne	LBB0_4
; %bb.1:
	mov	x21, x0
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
	stp	x9, x8, [sp]
Lloh13:
	adrp	x3, l_.str.1@PAGE
Lloh14:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_v4l2_dbg
	ldr	w1, [x24]
	str	x22, [sp]
Lloh15:
	adrp	x3, l_.str.2@PAGE
Lloh16:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_v4l2_dbg
	sub	w8, w20, #128
	cmp	w8, #4
	b.hi	LBB0_3
; %bb.2:
Lloh17:
	adrp	x9, l_switch.table.tda9873_setaudmode@PAGE
Lloh18:
	add	x9, x9, l_switch.table.tda9873_setaudmode@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w8, [x8]
	orr	w22, w8, w22
	ldr	w1, [x23]
	mov	x0, x21
	mov	x2, x22
	bl	_chip_write
	ldr	w1, [x24]
	stp	x20, x22, [sp]
Lloh19:
	adrp	x3, l_.str.3@PAGE
Lloh20:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_v4l2_dbg
LBB0_3:
	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
	add	sp, sp, #80
	ret
LBB0_4:
Lloh21:
	adrp	x3, l_.str@PAGE
Lloh22:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	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
	add	sp, sp, #80
	b	_v4l2_dbg
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_TDA9873_SW,4,2                 ; @TDA9873_SW
	.comm	_TDA9873_TR_MASK,4,2            ; @TDA9873_TR_MASK
	.comm	_TDA9873_INP_MASK,4,2           ; @TDA9873_INP_MASK
	.comm	_TDA9873_INTERNAL,4,2           ; @TDA9873_INTERNAL
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tda9873_setaudmode(): external input\n"

l_.str.1:                               ; @.str.1
	.asciz	"tda9873_setaudmode(): chip->shadow.bytes[%d] = %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"tda9873_setaudmode(): sw_data  = %d\n"

	.comm	_TDA9873_TR_MONO,4,2            ; @TDA9873_TR_MONO
	.comm	_TDA9873_TR_STEREO,4,2          ; @TDA9873_TR_STEREO
	.comm	_TDA9873_TR_DUALA,4,2           ; @TDA9873_TR_DUALA
	.comm	_TDA9873_TR_DUALB,4,2           ; @TDA9873_TR_DUALB
	.comm	_TDA9873_TR_DUALAB,4,2          ; @TDA9873_TR_DUALAB
l_.str.3:                               ; @.str.3
	.asciz	"tda9873_setaudmode(): req. mode %d; chip_write: %d\n"

	.no_dead_strip	_tda9873_setaudmode
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.tda9873_setaudmode
l_switch.table.tda9873_setaudmode:
	.quad	_TDA9873_TR_STEREO
	.quad	_TDA9873_TR_MONO
	.quad	_TDA9873_TR_DUALB
	.quad	_TDA9873_TR_DUALAB
	.quad	_TDA9873_TR_DUALA

.subsections_via_symbols
