	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_tea6330t_put_master_volume
_snd_tea6330t_put_master_volume:        ## @snd_tea6330t_put_master_volume
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_snd_kcontrol_chip
	movq	%rax, %r15
	movq	(%r14), %rax
	movslq	(%rax), %rbx
	imulq	$780903145, %rbx, %rcx          ## imm = 0x2E8BA2E9
	movq	%rcx, %rdx
	shrq	$63, %rdx
	shrq	$35, %rcx
	addl	%edx, %ecx
	imull	$44, %ecx, %ecx
	subl	%ecx, %ebx
	addb	$20, %bl
	movslq	4(%rax), %r12
	imulq	$780903145, %r12, %rax          ## imm = 0x2E8BA2E9
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$35, %rax
	addl	%ecx, %eax
	imull	$44, %eax, %eax
	subl	%eax, %r12d
	addb	$20, %r12b
	movl	16(%r15), %edi
	callq	_snd_i2c_lock
	movl	$1, %r14d
	cmpb	(%r15), %bl
	jne	LBB0_2
## %bb.1:
	xorl	%r14d, %r14d
	cmpb	1(%r15), %r12b
	setne	%r14b
LBB0_2:
	movb	%bl, (%r15)
	movb	%r12b, 1(%r15)
	movq	8(%r15), %rax
	movq	_TEA6330T_SADDR_VOLUME_LEFT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpb	$0, (%rax,%rcx)
	je	LBB0_3
## %bb.5:
	movb	%cl, -35(%rbp)
	movb	(%r15), %dl
	movb	%dl, (%rax,%rcx)
	movb	%dl, -34(%rbp)
	movq	8(%r15), %rax
	movq	_TEA6330T_SADDR_VOLUME_RIGHT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpb	$0, (%rax,%rcx)
	je	LBB0_6
## %bb.7:
	movb	1(%r15), %r12b
	movl	$2, %edx
	jmp	LBB0_8
LBB0_3:
	movq	_TEA6330T_SADDR_VOLUME_RIGHT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpb	$0, (%rax,%rcx)
	je	LBB0_10
## %bb.4:
	movb	%cl, -35(%rbp)
	movl	$1, %edx
LBB0_8:
	movb	%r12b, (%rax,%rcx)
	movl	%edx, %eax
	incl	%edx
	movb	%r12b, -35(%rbp,%rax)
	jmp	LBB0_9
LBB0_6:
	movl	$2, %edx
LBB0_9:
	movl	20(%r15), %edi
	leaq	-35(%rbp), %rsi
	callq	_snd_i2c_sendbytes
	testl	%eax, %eax
	cmovsl	%eax, %r14d
LBB0_10:
	movl	16(%r15), %edi
	callq	_snd_i2c_unlock
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TEA6330T_SADDR_VOLUME_LEFT,8,3 ## @TEA6330T_SADDR_VOLUME_LEFT
	.comm	_TEA6330T_SADDR_VOLUME_RIGHT,8,3 ## @TEA6330T_SADDR_VOLUME_RIGHT
	.no_dead_strip	_snd_tea6330t_put_master_volume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_tea6330t_put_master_volume
_snd_tea6330t_put_master_volume:        ; @snd_tea6330t_put_master_volume
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	bl	_snd_kcontrol_chip
	mov	x19, x0
	ldr	x8, [x20]
	mov	w9, #41705
	movk	w9, #11915, lsl #16
	ldpsw	x10, x8, [x8]
	mul	x11, x10, x9
	lsr	x12, x11, #63
	asr	x11, x11, #35
	add	w11, w11, w12
	mov	w12, #44
	msub	w10, w11, w12, w10
	add	w22, w10, #20
	mul	x9, x8, x9
	lsr	x10, x9, #63
	asr	x9, x9, #35
	add	w9, w9, w10
	msub	w8, w9, w12, w8
	add	w21, w8, #20
	ldr	w0, [x0, #16]
	bl	_snd_i2c_lock
	ldrb	w8, [x19]
	cmp	w8, w22, uxtb
	b.ne	LBB0_2
; %bb.1:
	ldrb	w8, [x19, #1]
	cmp	w8, w21, uxtb
	cset	w20, ne
	b	LBB0_3
LBB0_2:
	mov	w20, #1
LBB0_3:
	strb	w22, [x19]
	strb	w21, [x19, #1]
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _TEA6330T_SADDR_VOLUME_LEFT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TEA6330T_SADDR_VOLUME_LEFT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldrb	w10, [x8, x9]
	cbz	w10, LBB0_6
; %bb.4:
	strb	w9, [sp, #13]
	ldrb	w10, [x19]
	strb	w10, [x8, x9]
	strb	w10, [sp, #14]
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _TEA6330T_SADDR_VOLUME_RIGHT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TEA6330T_SADDR_VOLUME_RIGHT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldrb	w10, [x8, x9]
	cbz	w10, LBB0_9
; %bb.5:
	ldrb	w21, [x19, #1]
	mov	w10, #2
	b	LBB0_8
LBB0_6:
Lloh6:
	adrp	x9, _TEA6330T_SADDR_VOLUME_RIGHT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TEA6330T_SADDR_VOLUME_RIGHT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldrb	w10, [x8, x9]
	cbz	w10, LBB0_11
; %bb.7:
	strb	w9, [sp, #13]
	mov	w10, #1
LBB0_8:
	strb	w21, [x8, x9]
	add	w2, w10, #1
	add	x8, sp, #13
	strb	w21, [x8, w10, uxtw]
	b	LBB0_10
LBB0_9:
	mov	w2, #2
LBB0_10:
	ldr	w0, [x19, #20]
	add	x1, sp, #13
	bl	_snd_i2c_sendbytes
	cmp	w0, #0
	csel	w20, w0, w20, lt
LBB0_11:
	ldr	w0, [x19, #16]
	bl	_snd_i2c_unlock
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_TEA6330T_SADDR_VOLUME_LEFT,8,3 ; @TEA6330T_SADDR_VOLUME_LEFT
	.comm	_TEA6330T_SADDR_VOLUME_RIGHT,8,3 ; @TEA6330T_SADDR_VOLUME_RIGHT
	.no_dead_strip	_snd_tea6330t_put_master_volume
.subsections_via_symbols
