	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tas_set_mixer
_tas_set_mixer:                         ## @tas_set_mixer
	.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	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	(%rdi), %rax
	movq	_tas_gaintable@GOTPCREL(%rip), %r12
	movl	(%rax), %ecx
	cmpl	$177, %ecx
	movl	$177, %ebx
	cmovgel	%ebx, %ecx
	movq	(%r12), %rdx
	movslq	%ecx, %rcx
	movl	(%rdx,%rcx,4), %ecx
	movl	%ecx, %esi
	sarl	$16, %esi
	movl	%esi, -80(%rbp)
	movl	%ecx, %esi
	sarl	$8, %esi
	movl	%esi, -76(%rbp)
	movl	%ecx, -72(%rbp)
	movl	4(%rax), %ecx
	cmpl	$177, %ecx
	cmovgel	%ebx, %ecx
	movslq	%ecx, %rcx
	movl	(%rdx,%rcx,4), %ecx
	movl	%ecx, %esi
	sarl	$16, %esi
	movl	%esi, -68(%rbp)
	movl	%ecx, %esi
	sarl	$8, %esi
	movl	%esi, -64(%rbp)
	movl	%ecx, -60(%rbp)
	movl	8(%rax), %eax
	cmpl	$177, %eax
	cmovgel	%ebx, %eax
	cltq
	movl	(%rdx,%rax,4), %eax
	movl	%eax, %ecx
	sarl	$16, %ecx
	movl	%ecx, -56(%rbp)
	movl	%eax, %ecx
	sarl	$8, %ecx
	movl	%ecx, -52(%rbp)
	movl	%eax, -48(%rbp)
	movq	_TAS_REG_LMIX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %r14
	movl	$9, %edx
	movq	%r14, %rcx
	callq	_tas_write_reg
	movq	8(%r15), %rax
	movl	(%rax), %ecx
	cmpl	$177, %ecx
	cmovgel	%ebx, %ecx
	movq	(%r12), %rdx
	movslq	%ecx, %rcx
	movl	(%rdx,%rcx,4), %ecx
	movl	%ecx, %esi
	sarl	$16, %esi
	movl	%esi, -80(%rbp)
	movl	%ecx, %esi
	sarl	$8, %esi
	movl	%esi, -76(%rbp)
	movl	%ecx, -72(%rbp)
	movl	4(%rax), %ecx
	cmpl	$177, %ecx
	cmovgel	%ebx, %ecx
	movslq	%ecx, %rcx
	movl	(%rdx,%rcx,4), %ecx
	movl	%ecx, %esi
	sarl	$16, %esi
	movl	%esi, -68(%rbp)
	movl	%ecx, %esi
	sarl	$8, %esi
	movl	%esi, -64(%rbp)
	movl	%ecx, -60(%rbp)
	movl	8(%rax), %eax
	cmpl	$177, %eax
	cmovll	%eax, %ebx
	movslq	%ebx, %rax
	movl	(%rdx,%rax,4), %eax
	movl	%eax, %ecx
	sarl	$16, %ecx
	movl	%ecx, -56(%rbp)
	movl	%eax, %ecx
	sarl	$8, %ecx
	movl	%ecx, -52(%rbp)
	movl	%eax, -48(%rbp)
	movq	_TAS_REG_RMIX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$9, %edx
	movq	%r14, %rcx
	callq	_tas_write_reg
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_tas_gaintable,8,3              ## @tas_gaintable
	.comm	_TAS_REG_LMIX,4,2               ## @TAS_REG_LMIX
	.comm	_TAS_REG_RMIX,4,2               ## @TAS_REG_RMIX
	.no_dead_strip	_tas_set_mixer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function tas_set_mixer
lCPI0_0:
	.long	4294967280                      ; 0xfffffff0
	.long	4294967288                      ; 0xfffffff8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_tas_set_mixer:                         ; @tas_set_mixer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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 b8, -56
	.cfi_offset b9, -64
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x8, [x0]
Lloh3:
	adrp	x20, _tas_gaintable@GOTPAGE
Lloh4:
	ldr	x20, [x20, _tas_gaintable@GOTPAGEOFF]
	ldr	x9, [x20]
	ldr	w10, [x8]
	mov	w21, #177
	cmp	w10, #177
	csel	w10, w10, w21, lt
	ldr	w10, [x9, w10, sxtw #2]
	dup.2s	v0, w10
Lloh5:
	adrp	x11, lCPI0_0@PAGE
Lloh6:
	ldr	d8, [x11, lCPI0_0@PAGEOFF]
	sshl.2s	v0, v0, v8
	str	d0, [sp]
	str	w10, [sp, #8]
	ldr	w10, [x8, #4]
	cmp	w10, #177
	csel	w10, w10, w21, lt
	ldr	w10, [x9, w10, sxtw #2]
	dup.2s	v0, w10
	sshl.2s	v0, v0, v8
	stur	d0, [sp, #12]
	str	w10, [sp, #20]
	ldr	w8, [x8, #8]
	cmp	w8, #177
	csel	w8, w8, w21, lt
	ldr	w8, [x9, w8, sxtw #2]
	dup.2s	v0, w8
	sshl.2s	v0, v0, v8
	str	d0, [sp, #24]
	str	w8, [sp, #32]
Lloh7:
	adrp	x8, _TAS_REG_LMIX@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TAS_REG_LMIX@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x3, sp
	mov	w2, #9
	bl	_tas_write_reg
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	ldr	w10, [x8]
	cmp	w10, #177
	csel	w10, w10, w21, lt
	ldr	w10, [x9, w10, sxtw #2]
	dup.2s	v0, w10
	sshl.2s	v0, v0, v8
	str	d0, [sp]
	str	w10, [sp, #8]
	ldr	w10, [x8, #4]
	cmp	w10, #177
	csel	w10, w10, w21, lt
	ldr	w10, [x9, w10, sxtw #2]
	dup.2s	v0, w10
	sshl.2s	v0, v0, v8
	stur	d0, [sp, #12]
	str	w10, [sp, #20]
	ldr	w8, [x8, #8]
	cmp	w8, #177
	csel	w8, w8, w21, lt
	ldr	w8, [x9, w8, sxtw #2]
	dup.2s	v0, w8
	sshl.2s	v0, v0, v8
	str	d0, [sp, #24]
	str	w8, [sp, #32]
Lloh10:
	adrp	x8, _TAS_REG_RMIX@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TAS_REG_RMIX@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x3, sp
	mov	x0, x19
	mov	w2, #9
	bl	_tas_write_reg
	ldr	x8, [sp, #40]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_tas_gaintable,8,3              ; @tas_gaintable
	.comm	_TAS_REG_LMIX,4,2               ; @TAS_REG_LMIX
	.comm	_TAS_REG_RMIX,4,2               ; @TAS_REG_RMIX
	.no_dead_strip	_tas_set_mixer
.subsections_via_symbols
