	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda7432_s_ctrl
_tda7432_s_ctrl:                        ## @tda7432_s_ctrl
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_to_state
	movq	%rax, %r15
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_13
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	_maxvol@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	movl	$-630, %eax                     ## imm = 0xFD8A
	movl	$-829, %ecx                     ## imm = 0xFCC3
	cmovel	%eax, %ecx
	movl	4(%rbx), %eax
	cltd
	idivl	%ecx
	addl	$111, %eax
	movl	%eax, 4(%r15)
	movq	_loudness@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_TDA7432_LD_ON@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 4(%r15)
LBB0_4:
	movq	_TDA7432_VL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	jmp	LBB0_19
LBB0_5:
	movl	4(%rbx), %eax
	cmpl	$32767, %eax                    ## imm = 0x7FFF
	jg	LBB0_7
## %bb.6:
	movl	$32768, %ecx                    ## imm = 0x8000
	subl	%eax, %ecx
	imulq	$1040219137, %rcx, %rax         ## imm = 0x3E007C01
	shrq	$40, %rax
	movl	%eax, 8(%r15)
	movl	%eax, 12(%r15)
	movq	_TDA7432_ATTEN_0DB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movl	%eax, 20(%r15)
	jmp	LBB0_15
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_20
LBB0_12:
	movl	4(%rbx), %eax
	movl	%eax, %ecx
	sarl	$12, %ecx
	movl	%ecx, %edx
	andl	$15, %edx
	movl	$23, %edi
	subl	%edx, %edi
	cmpl	$32768, %eax                    ## imm = 0x8000
	cmovll	%ecx, %edi
	movl	%edi, 28(%r15)
	movq	_TDA7432_TN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%r15), %edx
	shll	$4, %edx
	orl	%edi, %edx
	orl	$16, %edx
	jmp	LBB0_18
LBB0_14:
	movl	4(%rbx), %eax
	movl	%eax, (%r15)
	jmp	LBB0_15
LBB0_10:
	movl	4(%rbx), %eax
	movl	%eax, %ecx
	sarl	$12, %ecx
	movl	%ecx, %esi
	andl	$15, %esi
	movl	$23, %edx
	subl	%esi, %edx
	cmpl	$32768, %eax                    ## imm = 0x8000
	cmovll	%ecx, %edx
	movl	%edx, 24(%r15)
	movq	_TDA7432_TN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$4, %edx
	orl	28(%r15), %edx
	orl	$16, %edx
	jmp	LBB0_18
LBB0_7:
	cmpl	$32770, %eax                    ## imm = 0x8002
	jb	LBB0_9
## %bb.8:
	addl	$-32768, %eax                   ## imm = 0x8000
	imulq	$1040219137, %rax, %rax         ## imm = 0x3E007C01
	shrq	$40, %rax
	movl	%eax, 20(%r15)
	movl	%eax, 16(%r15)
	movq	_TDA7432_ATTEN_0DB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movl	%eax, 12(%r15)
	jmp	LBB0_15
LBB0_9:
	movq	_TDA7432_ATTEN_0DB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movl	%eax, 12(%r15)
	movl	%eax, 20(%r15)
	movl	%eax, 16(%r15)
LBB0_15:
	cmpl	$0, (%r15)
	movq	_TDA7432_LF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	20(%r15), %edx
	je	LBB0_17
## %bb.16:
	movq	_TDA7432_MUTE@GOTPCREL(%rip), %rbx
	orl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_tda7432_write
	movq	_TDA7432_LR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	orl	16(%r15), %edx
	movq	%r14, %rdi
	callq	_tda7432_write
	movq	_TDA7432_RF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	orl	12(%r15), %edx
	movq	%r14, %rdi
	callq	_tda7432_write
	movq	_TDA7432_RR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	orl	8(%r15), %edx
	jmp	LBB0_18
LBB0_17:
	movq	%r14, %rdi
	callq	_tda7432_write
	movq	_TDA7432_LR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r15), %edx
	movq	%r14, %rdi
	callq	_tda7432_write
	movq	_TDA7432_RF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%r15), %edx
	movq	%r14, %rdi
	callq	_tda7432_write
	movq	_TDA7432_RR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r15), %edx
LBB0_18:
	movq	%r14, %rdi
LBB0_19:
	callq	_tda7432_write
	xorl	%eax, %eax
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_12
	.long	L0_0_set_14
	.long	L0_0_set_10
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_maxvol,4,2                     ## @maxvol
	.comm	_loudness,4,2                   ## @loudness
	.comm	_TDA7432_LD_ON,4,2              ## @TDA7432_LD_ON
	.comm	_TDA7432_VL,4,2                 ## @TDA7432_VL
	.comm	_TDA7432_ATTEN_0DB,8,3          ## @TDA7432_ATTEN_0DB
	.comm	_TDA7432_TN,4,2                 ## @TDA7432_TN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TDA7432_LF,4,2                 ## @TDA7432_LF
	.comm	_TDA7432_MUTE,4,2               ## @TDA7432_MUTE
	.comm	_TDA7432_LR,4,2                 ## @TDA7432_LR
	.comm	_TDA7432_RF,4,2                 ## @TDA7432_RF
	.comm	_TDA7432_RR,4,2                 ## @TDA7432_RR
	.no_dead_strip	_tda7432_s_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda7432_s_ctrl
_tda7432_s_ctrl:                        ; @tda7432_s_ctrl
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x19, x0
	bl	_to_state
	ldr	w8, [x21]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_7
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _maxvol@GOTPAGE
Lloh3:
	ldr	x8, [x8, _maxvol@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x21, #4]
	mov	w10, #-829
	mov	w11, #-630
	cmp	w8, #0
	csel	w8, w11, w10, eq
	sdiv	w8, w9, w8
	add	w2, w8, #111
	str	w2, [x20, #4]
Lloh5:
	adrp	x8, _loudness@GOTPAGE
Lloh6:
	ldr	x8, [x8, _loudness@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cbz	w8, LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _TDA7432_LD_ON@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TDA7432_LD_ON@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	orr	w2, w2, w8
	str	w2, [x20, #4]
LBB0_4:
Lloh11:
	adrp	x8, _TDA7432_VL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TDA7432_VL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	b	LBB0_18
LBB0_5:
	ldr	w9, [x21, #4]
	subs	w8, w9, #8, lsl #12             ; =32768
	b.ge	LBB0_11
; %bb.6:
	mov	w8, #32768
	sub	w8, w8, w9
	mov	w9, #31745
	movk	w9, #15872, lsl #16
	umull	x8, w8, w9
	lsr	x8, x8, #40
	stp	w8, w8, [x20, #8]
Lloh14:
	adrp	x8, _TDA7432_ATTEN_0DB@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TDA7432_ATTEN_0DB@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	b	LBB0_14
LBB0_7:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_19
LBB0_8:
	ldr	w8, [x21, #4]
	asr	w9, w8, #12
	and	w10, w9, #0xf
	mov	w11, #23
	sub	w10, w11, w10
	cmp	w8, #8, lsl #12                 ; =32768
	csel	w8, w10, w9, ge
	str	w8, [x20, #28]
Lloh20:
	adrp	x9, _TDA7432_TN@GOTPAGE
Lloh21:
	ldr	x9, [x9, _TDA7432_TN@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x9]
	ldr	w9, [x20, #24]
	orr	w8, w8, w9, lsl #4
	orr	w2, w8, #0x10
	b	LBB0_18
LBB0_9:
	ldr	w8, [x21, #4]
	str	w8, [x20]
	b	LBB0_15
LBB0_10:
	ldr	w8, [x21, #4]
	asr	w9, w8, #12
	and	w10, w9, #0xf
	mov	w11, #23
	sub	w10, w11, w10
	cmp	w8, #8, lsl #12                 ; =32768
	csel	w8, w10, w9, ge
	str	w8, [x20, #24]
Lloh23:
	adrp	x9, _TDA7432_TN@GOTPAGE
Lloh24:
	ldr	x9, [x9, _TDA7432_TN@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x9]
	ldr	w9, [x20, #28]
	orr	w8, w9, w8, lsl #4
	orr	w2, w8, #0x10
	b	LBB0_18
LBB0_11:
	mov	w10, #32770
	cmp	w9, w10
	b.lo	LBB0_13
; %bb.12:
	mov	w9, #31745
	movk	w9, #15872, lsl #16
	umull	x8, w8, w9
	lsr	x8, x8, #40
	stp	w8, w8, [x20, #16]
Lloh26:
	adrp	x8, _TDA7432_ATTEN_0DB@GOTPAGE
Lloh27:
	ldr	x8, [x8, _TDA7432_ATTEN_0DB@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	stp	w8, w8, [x20, #8]
	b	LBB0_15
LBB0_13:
Lloh29:
	adrp	x8, _TDA7432_ATTEN_0DB@GOTPAGE
Lloh30:
	ldr	x8, [x8, _TDA7432_ATTEN_0DB@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	stp	w8, w8, [x20, #8]
LBB0_14:
	stp	w8, w8, [x20, #16]
LBB0_15:
	ldr	w8, [x20]
Lloh32:
	adrp	x9, _TDA7432_LF@GOTPAGE
Lloh33:
	ldr	x9, [x9, _TDA7432_LF@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x9]
	ldr	w2, [x20, #20]
	cbz	w8, LBB0_17
; %bb.16:
Lloh35:
	adrp	x21, _TDA7432_MUTE@GOTPAGE
Lloh36:
	ldr	x21, [x21, _TDA7432_MUTE@GOTPAGEOFF]
	ldr	w8, [x21]
	orr	w2, w8, w2
	mov	x0, x19
	bl	_tda7432_write
Lloh37:
	adrp	x8, _TDA7432_LR@GOTPAGE
Lloh38:
	ldr	x8, [x8, _TDA7432_LR@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	ldr	w8, [x20, #16]
	ldr	w9, [x21]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_tda7432_write
Lloh40:
	adrp	x8, _TDA7432_RF@GOTPAGE
Lloh41:
	ldr	x8, [x8, _TDA7432_RF@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	ldr	w8, [x20, #12]
	ldr	w9, [x21]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_tda7432_write
Lloh43:
	adrp	x8, _TDA7432_RR@GOTPAGE
Lloh44:
	ldr	x8, [x8, _TDA7432_RR@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	ldr	w8, [x20, #8]
	ldr	w9, [x21]
	orr	w2, w9, w8
	b	LBB0_18
LBB0_17:
	mov	x0, x19
	bl	_tda7432_write
Lloh46:
	adrp	x8, _TDA7432_LR@GOTPAGE
Lloh47:
	ldr	x8, [x8, _TDA7432_LR@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
	ldr	w2, [x20, #16]
	mov	x0, x19
	bl	_tda7432_write
Lloh49:
	adrp	x8, _TDA7432_RF@GOTPAGE
Lloh50:
	ldr	x8, [x8, _TDA7432_RF@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	ldr	w2, [x20, #12]
	mov	x0, x19
	bl	_tda7432_write
Lloh52:
	adrp	x8, _TDA7432_RR@GOTPAGE
Lloh53:
	ldr	x8, [x8, _TDA7432_RR@GOTPAGEOFF]
Lloh54:
	ldr	w1, [x8]
	ldr	w2, [x20, #8]
LBB0_18:
	mov	x0, x19
	bl	_tda7432_write
	mov	w0, #0
LBB0_19:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
                                        ; -- End function
	.comm	_maxvol,4,2                     ; @maxvol
	.comm	_loudness,4,2                   ; @loudness
	.comm	_TDA7432_LD_ON,4,2              ; @TDA7432_LD_ON
	.comm	_TDA7432_VL,4,2                 ; @TDA7432_VL
	.comm	_TDA7432_ATTEN_0DB,8,3          ; @TDA7432_ATTEN_0DB
	.comm	_TDA7432_TN,4,2                 ; @TDA7432_TN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TDA7432_LF,4,2                 ; @TDA7432_LF
	.comm	_TDA7432_MUTE,4,2               ; @TDA7432_MUTE
	.comm	_TDA7432_LR,4,2                 ; @TDA7432_LR
	.comm	_TDA7432_RF,4,2                 ; @TDA7432_RF
	.comm	_TDA7432_RR,4,2                 ; @TDA7432_RR
	.no_dead_strip	_tda7432_s_ctrl
.subsections_via_symbols
