	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calc_vol
_calc_vol:                              ## @calc_vol
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movzbl	(%rdi), %r8d
	movl	%r8d, %eax
	notl	%eax
	xorl	%r9d, %r9d
	movl	$0, %ecx
	andq	$63, %rax
	je	LBB0_2
## %bb.1:
	cmpl	$127, %edx
	movl	$127, %ecx
	cmovll	%edx, %ecx
	imull	%esi, %ecx
	movslq	%ecx, %rcx
	imulq	$-2130574327, %rcx, %rdx        ## imm = 0x81020409
	shrq	$32, %rdx
	addl	%edx, %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	sarl	$6, %ecx
	addl	%edx, %ecx
	movq	_fm_volume_table@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movslq	%ecx, %rcx
	addl	(%rdx,%rcx,8), %eax
	movl	%eax, %ecx
LBB0_2:
	cmpl	$63, %ecx
	movl	$63, %eax
	cmovll	%ecx, %eax
	testl	%eax, %eax
	cmovgl	%eax, %r9d
	andb	$-64, %r8b
	orb	%r8b, %r9b
	xorb	$63, %r9b
	movb	%r9b, (%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fm_volume_table,8,3            ## @fm_volume_table
	.no_dead_strip	_calc_vol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calc_vol
_calc_vol:                              ; @calc_vol
	.cfi_startproc
; %bb.0:
	ldrb	w8, [x0]
	mvn	w9, w8
	ands	w9, w9, #0x3f
	b.eq	LBB0_2
; %bb.1:
	mov	w10, #127
	cmp	w2, #127
	csel	w10, w2, w10, lt
	mul	w10, w10, w1
	mov	w11, #1033
	movk	w11, #33026, lsl #16
	smull	x11, w10, w11
	lsr	x11, x11, #32
	add	w10, w11, w10
	asr	w11, w10, #6
	add	w10, w11, w10, lsr #31
Lloh0:
	adrp	x11, _fm_volume_table@GOTPAGE
Lloh1:
	ldr	x11, [x11, _fm_volume_table@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	ldr	x10, [x11, w10, sxtw #3]
	add	w9, w10, w9
LBB0_2:
	mov	w10, #63
	cmp	w9, #63
	csel	w9, w9, w10, lt
	cmp	w9, #0
	csel	w9, w9, wzr, gt
	and	w8, w8, #0xc0
	orr	w8, w8, w9
	eor	w8, w8, #0x3f
	strb	w8, [x0]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_fm_volume_table,8,3            ; @fm_volume_table
	.no_dead_strip	_calc_vol
.subsections_via_symbols
