	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_tea6330t_put_master_switch
_snd_tea6330t_put_master_switch:        ## @snd_tea6330t_put_master_switch
	.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, %r14
	callq	_snd_kcontrol_chip
	movq	%rax, %r15
	movq	(%r14), %rax
	movl	(%rax), %r14d
	movl	4(%rax), %ebx
	movl	12(%r15), %edi
	callq	_snd_i2c_lock
	movq	(%r15), %rdx
	movq	_TEA6330T_SADDR_VOLUME_LEFT@GOTPCREL(%rip), %r8
	movq	(%r8), %rdi
	movq	_TEA6330T_SADDR_VOLUME_RIGHT@GOTPCREL(%rip), %r9
	movq	(%r9), %rcx
	testb	$1, %r14b
	jne	LBB0_2
## %bb.1:
	xorl	%esi, %esi
	jmp	LBB0_3
LBB0_2:
	movb	8(%r15), %sil
LBB0_3:
	movb	(%rdx,%rdi), %al
	movb	(%rdx,%rcx), %cl
	movb	%sil, (%rdx,%rdi)
	testb	$1, %bl
	jne	LBB0_5
## %bb.4:
	xorl	%edx, %edx
	jmp	LBB0_6
LBB0_5:
	movb	9(%r15), %dl
LBB0_6:
	testb	%al, %al
	setne	%al
	xorb	%al, %r14b
	testb	%cl, %cl
	setne	%al
	xorb	%al, %bl
	orb	%r14b, %bl
	movzbl	%bl, %r14d
	andl	$1, %r14d
	movq	(%r15), %rax
	movq	(%r9), %rcx
	movb	%dl, (%rax,%rcx)
	movq	(%r8), %rax
	movb	%al, -27(%rbp)
	movq	(%r15), %rcx
	movb	(%rcx,%rax), %al
	movb	%al, -26(%rbp)
	movq	(%r9), %rax
	movb	(%rcx,%rax), %al
	movb	%al, -25(%rbp)
	movl	16(%r15), %edi
	leaq	-27(%rbp), %rsi
	movl	$3, %edx
	callq	_snd_i2c_sendbytes
	movl	%eax, %ebx
	testl	%eax, %eax
	cmovnsl	%r14d, %ebx
	movl	12(%r15), %edi
	callq	_snd_i2c_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	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_switch
.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_switch
_snd_tea6330t_put_master_switch:        ; @snd_tea6330t_put_master_switch
	.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]
	ldp	w21, w20, [x8]
	ldr	w0, [x0, #12]
	bl	_snd_i2c_lock
	ldr	x10, [x19]
Lloh0:
	adrp	x9, _TEA6330T_SADDR_VOLUME_LEFT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TEA6330T_SADDR_VOLUME_LEFT@GOTPAGEOFF]
	ldr	x11, [x9]
Lloh2:
	adrp	x8, _TEA6330T_SADDR_VOLUME_RIGHT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TEA6330T_SADDR_VOLUME_RIGHT@GOTPAGEOFF]
	ldr	x12, [x8]
	tbnz	w21, #0, LBB0_2
; %bb.1:
	mov	w14, #0
	b	LBB0_3
LBB0_2:
	ldrb	w14, [x19, #8]
LBB0_3:
	ldrb	w13, [x10, x11]
	ldrb	w12, [x10, x12]
	strb	w14, [x10, x11]
	tbnz	w20, #0, LBB0_5
; %bb.4:
	mov	w10, #0
	b	LBB0_6
LBB0_5:
	ldrb	w10, [x19, #9]
LBB0_6:
	cmp	w13, #0
	cset	w11, ne
	eor	w11, w21, w11
	cmp	w12, #0
	cset	w12, ne
	eor	w12, w20, w12
	orr	w11, w11, w12
	ldr	x12, [x19]
	ldr	x13, [x8]
	strb	w10, [x12, x13]
	and	w20, w11, #0x1
	ldr	x9, [x9]
	strb	w9, [sp, #13]
	ldr	x10, [x19]
	ldrb	w9, [x10, x9]
	strb	w9, [sp, #14]
	ldr	x8, [x8]
	ldrb	w8, [x10, x8]
	strb	w8, [sp, #15]
	ldr	w0, [x19, #16]
	add	x1, sp, #13
	mov	w2, #3
	bl	_snd_i2c_sendbytes
	cmp	w0, #0
	csel	w20, w0, w20, lt
	ldr	w0, [x19, #12]
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.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_switch
.subsections_via_symbols
