	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tas_set_volume
_tas_set_volume:                        ## @tas_set_volume
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$32, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	movl	(%rdi), %eax
	cmpl	$177, %eax
	movl	$177, %ecx
	cmovgel	%ecx, %eax
	movl	4(%rdi), %edx
	cmpl	$177, %edx
	cmovll	%edx, %ecx
	xorl	%r8d, %r8d
	cmpq	$0, 16(%rdi)
	movq	_tas_gaintable@GOTPCREL(%rip), %rsi
	movq	(%rsi), %r9
	cltq
	cmovneq	%r8, %rax
	movl	(%r9,%rax,4), %eax
	movl	%eax, %edx
	sarl	$20, %edx
	movl	%eax, %esi
	sarl	$12, %esi
	sarl	$4, %eax
	cmpq	$0, 8(%rdi)
	movl	%edx, -32(%rbp)
	movl	%esi, -28(%rbp)
	movl	%eax, -24(%rbp)
	movslq	%ecx, %rax
	cmovneq	%r8, %rax
	movl	(%r9,%rax,4), %eax
	movl	%eax, %ecx
	sarl	$20, %ecx
	movl	%ecx, -20(%rbp)
	movl	%eax, %ecx
	sarl	$12, %ecx
	movl	%ecx, -16(%rbp)
	sarl	$4, %eax
	movl	%eax, -12(%rbp)
	movq	_TAS_REG_VOL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rcx
	movl	$6, %edx
	callq	_tas_write_reg
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-8(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$32, %rsp
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_tas_gaintable,8,3              ## @tas_gaintable
	.comm	_TAS_REG_VOL,4,2                ## @TAS_REG_VOL
	.no_dead_strip	_tas_set_volume
.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_volume
lCPI0_0:
	.long	4294967276                      ; 0xffffffec
	.long	4294967284                      ; 0xfffffff4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_tas_set_volume:                        ; @tas_set_volume
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
Lloh3:
	adrp	x8, _tas_gaintable@GOTPAGE
Lloh4:
	ldr	x8, [x8, _tas_gaintable@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	d0, [x0]
	movi.2s	v1, #177
	smin.2s	v0, v0, v1
	ldur	q1, [x0, #8]
	ext.16b	v1, v1, v1, #8
	cmeq.2d	v1, v1, #0
	xtn.2s	v1, v1
	and.8b	v0, v0, v1
	mov.s	w9, v0[1]
	fmov	w10, s0
	ldr	w10, [x8, w10, sxtw #2]
Lloh6:
	adrp	x11, lCPI0_0@PAGE
Lloh7:
	ldr	d0, [x11, lCPI0_0@PAGEOFF]
	dup.2s	v1, w10
	sshl.2s	v1, v1, v0
	str	d1, [sp]
	asr	w10, w10, #4
	str	w10, [sp, #8]
	ldr	w8, [x8, w9, sxtw #2]
	dup.2s	v1, w8
	sshl.2s	v0, v1, v0
	stur	d0, [sp, #12]
	asr	w8, w8, #4
	str	w8, [sp, #20]
Lloh8:
	adrp	x8, _TAS_REG_VOL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TAS_REG_VOL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x3, sp
	mov	w2, #6
	bl	_tas_write_reg
	ldur	x8, [x29, #-8]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_tas_gaintable,8,3              ; @tas_gaintable
	.comm	_TAS_REG_VOL,4,2                ; @TAS_REG_VOL
	.no_dead_strip	_tas_set_volume
.subsections_via_symbols
