	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function set_volume
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
LCPI0_1:
	.quad	0x3f70000000000000              ## double 0.00390625
LCPI0_2:
	.quad	0x4034000000000000              ## double 20
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_set_volume:                            ## @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
	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	%rdi, %r14
	movq	(%rdi), %rbx
	movl	36(%rbx), %edi
	movq	8(%rbx), %rsi
	xorl	%edx, %edx
	callq	_av_expr_eval
	movl	%eax, (%rbx)
	movl	%eax, %edi
	callq	_isnan
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	16(%rbx), %rax
	movq	_EVAL_MODE_ONCE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.7:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_1:
	movl	(%rbx), %r15d
	jmp	LBB0_4
LBB0_3:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movl	$0, (%rbx)
LBB0_4:
	movq	8(%rbx), %rax
	movq	_VAR_VOLUME@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%r15d, (%rax,%rcx,4)
	movq	_AV_LOG_VERBOSE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_VAR_N@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ecx
	movq	_VAR_T@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rax,%rdx,4), %r8d
	movq	_VAR_PTS@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rax,%rdx,4), %r9d
	movq	_precision_str@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	24(%rbx), %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, (%rsp)
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movq	24(%rbx), %rax
	movq	_PRECISION_FIXED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movl	(%rbx), %eax
	shll	$8, %eax
	cvtsi2sd	%eax, %xmm0
	addsd	LCPI0_0(%rip), %xmm0
	cvttsd2si	%xmm0, %ecx
	movl	%ecx, 32(%rbx)
	cvttpd2dq	%xmm0, %xmm0
	cvtdq2pd	%xmm0, %xmm0
	mulsd	LCPI0_1(%rip), %xmm0
	cvttsd2si	%xmm0, %eax
	movl	%eax, (%rbx)
	movl	(%r15), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_6:
	movl	(%r15), %r15d
	movl	(%rbx), %r12d
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r12d, %xmm0
	callq	_log10
	mulsd	LCPI0_2(%rip), %xmm0
	leaq	L_.str.4(%rip), %rdx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r12d, %ecx
	movb	$1, %al
	callq	_av_log
	movq	%rbx, %rdi
	callq	_volume_init
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EVAL_MODE_ONCE,8,3             ## @EVAL_MODE_ONCE
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid value NaN for volume\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"Invalid value NaN for volume, setting to 0\n"

	.comm	_VAR_VOLUME,8,3                 ## @VAR_VOLUME
	.comm	_AV_LOG_VERBOSE,4,2             ## @AV_LOG_VERBOSE
L_.str.2:                               ## @.str.2
	.asciz	"n:%f t:%f pts:%f precision:%s "

	.comm	_VAR_N,8,3                      ## @VAR_N
	.comm	_VAR_T,8,3                      ## @VAR_T
	.comm	_VAR_PTS,8,3                    ## @VAR_PTS
	.comm	_precision_str,8,3              ## @precision_str
	.comm	_PRECISION_FIXED,8,3            ## @PRECISION_FIXED
L_.str.3:                               ## @.str.3
	.asciz	"volume_i:%d/255 "

L_.str.4:                               ## @.str.4
	.asciz	"volume:%f volume_dB:%f\n"

	.no_dead_strip	_set_volume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_volume
_set_volume:                            ; @set_volume
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	ldr	x20, [x0]
	ldr	w0, [x20, #36]
	ldr	x1, [x20, #8]
	mov	x2, #0
	bl	_av_expr_eval
	str	w0, [x20]
	bl	_isnan
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x20, #16]
Lloh0:
	adrp	x9, _EVAL_MODE_ONCE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EVAL_MODE_ONCE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_AVERROR
LBB0_3:
	ldr	w8, [x20]
	b	LBB0_5
LBB0_4:
Lloh11:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_av_log
	mov	w8, #0
	str	wzr, [x20]
LBB0_5:
	ldr	x9, [x20, #8]
Lloh16:
	adrp	x10, _VAR_VOLUME@GOTPAGE
Lloh17:
	ldr	x10, [x10, _VAR_VOLUME@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
	str	w8, [x9, x10, lsl #2]
Lloh19:
	adrp	x21, _AV_LOG_VERBOSE@GOTPAGE
Lloh20:
	ldr	x21, [x21, _AV_LOG_VERBOSE@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh21:
	adrp	x8, _VAR_N@GOTPAGE
Lloh22:
	ldr	x8, [x8, _VAR_N@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
Lloh24:
	adrp	x10, _VAR_T@GOTPAGE
Lloh25:
	ldr	x10, [x10, _VAR_T@GOTPAGEOFF]
Lloh26:
	ldr	x10, [x10]
Lloh27:
	adrp	x11, _VAR_PTS@GOTPAGE
Lloh28:
	ldr	x11, [x11, _VAR_PTS@GOTPAGEOFF]
Lloh29:
	ldr	x11, [x11]
Lloh30:
	adrp	x12, _precision_str@GOTPAGE
Lloh31:
	ldr	x12, [x12, _precision_str@GOTPAGEOFF]
Lloh32:
	ldr	x12, [x12]
	ldr	x13, [x20, #24]
	ldr	w8, [x9, x8, lsl #2]
	ldr	w10, [x9, x10, lsl #2]
	ldr	w9, [x9, x11, lsl #2]
	ldr	w11, [x12, x13, lsl #2]
	stp	x9, x11, [sp, #16]
	stp	x8, x10, [sp]
Lloh33:
	adrp	x2, l_.str.2@PAGE
Lloh34:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_av_log
	ldr	x8, [x20, #24]
Lloh35:
	adrp	x9, _PRECISION_FIXED@GOTPAGE
Lloh36:
	ldr	x9, [x9, _PRECISION_FIXED@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	ldr	w8, [x20]
	lsl	w8, w8, #8
	scvtf	d0, w8
	fmov	d1, #0.50000000
	fadd	d0, d0, d1
	fcvtzs	w8, d0
	str	w8, [x20, #32]
	scvtf	d0, w8
	mov	x9, #4571153621781053440
	fmov	d1, x9
	fmul	d0, d0, d1
	fcvtzs	w9, d0
	str	w9, [x20]
	ldr	w1, [x21]
	str	x8, [sp]
Lloh38:
	adrp	x2, l_.str.3@PAGE
Lloh39:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_av_log
LBB0_7:
	ldr	w21, [x21]
	ldr	w22, [x20]
	scvtf	d0, w22
	bl	_log10
	fmov	d1, #20.00000000
	fmul	d0, d0, d1
	str	x22, [sp]
	str	d0, [sp, #8]
Lloh40:
	adrp	x2, l_.str.4@PAGE
Lloh41:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	bl	_av_log
	mov	x0, x20
	bl	_volume_init
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_EVAL_MODE_ONCE,8,3             ; @EVAL_MODE_ONCE
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid value NaN for volume\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"Invalid value NaN for volume, setting to 0\n"

	.comm	_VAR_VOLUME,8,3                 ; @VAR_VOLUME
	.comm	_AV_LOG_VERBOSE,4,2             ; @AV_LOG_VERBOSE
l_.str.2:                               ; @.str.2
	.asciz	"n:%f t:%f pts:%f precision:%s "

	.comm	_VAR_N,8,3                      ; @VAR_N
	.comm	_VAR_T,8,3                      ; @VAR_T
	.comm	_VAR_PTS,8,3                    ; @VAR_PTS
	.comm	_precision_str,8,3              ; @precision_str
	.comm	_PRECISION_FIXED,8,3            ; @PRECISION_FIXED
l_.str.3:                               ; @.str.3
	.asciz	"volume_i:%d/255 "

l_.str.4:                               ; @.str.4
	.asciz	"volume:%f volume_dB:%f\n"

	.no_dead_strip	_set_volume
.subsections_via_symbols
