	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function vx_get_audio_vu_meter
LCPI0_0:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
LCPI0_1:
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
LCPI0_2:
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
LCPI0_3:
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_vx_get_audio_vu_meter:                 ## @vx_get_audio_vu_meter
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_VX_STAT_IS_STALE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_22:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rcx, %r14
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	_CMD_AUDIO_VU_PIC_METER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdi
	callq	_vx_init_rmh
	movq	_VU_METER_CHANNELS@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	leal	(%rax,%rax), %ecx
	addl	%ecx, -64(%rbp)
	testl	%r12d, %r12d
	je	LBB0_3
## %bb.4:
	movq	_COMMAND_RECORD_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %r8
	orl	%eax, (%r8)
	movl	(%r13), %eax
	jmp	LBB0_5
LBB0_3:
	movq	-56(%rbp), %r8
LBB0_5:
	movl	$0, 4(%r8)
	testl	%eax, %eax
	jle	LBB0_17
## %bb.6:
	xorl	%esi, %esi
	movl	$0, %edx
	cmpl	$8, %eax
	jb	LBB0_14
## %bb.7:
	movl	%eax, %edx
	andl	$-8, %edx
	movd	%ebx, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leal	-8(%rdx), %edi
	movl	%edi, %esi
	shrl	$3, %esi
	incl	%esi
	testl	%edi, %edi
	je	LBB0_8
## %bb.9:
	movl	%esi, %edi
	andl	$-2, %edi
	leal	4(%rbx), %ecx
	movd	%ecx, %xmm1
	pshufd	$0, %xmm1, %xmm7                ## xmm7 = xmm1[0,0,0,0]
	movdqa	LCPI0_0(%rip), %xmm6            ## xmm6 = [0,1,2,3]
	pxor	%xmm1, %xmm1
	movdqa	LCPI0_1(%rip), %xmm5            ## xmm5 = [1065353216,1065353216,1065353216,1065353216]
	movdqa	LCPI0_2(%rip), %xmm8            ## xmm8 = [8,8,8,8]
	movdqa	LCPI0_3(%rip), %xmm9            ## xmm9 = [16,16,16,16]
	pxor	%xmm3, %xmm3
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm6, %xmm2
	paddd	%xmm0, %xmm2
	movdqa	%xmm7, %xmm4
	paddd	%xmm6, %xmm4
	pslld	$23, %xmm2
	paddd	%xmm5, %xmm2
	cvttps2dq	%xmm2, %xmm2
	por	%xmm1, %xmm2
	pslld	$23, %xmm4
	paddd	%xmm5, %xmm4
	cvttps2dq	%xmm4, %xmm4
	por	%xmm3, %xmm4
	movdqa	%xmm6, %xmm1
	paddd	%xmm8, %xmm1
	movdqa	%xmm7, %xmm3
	paddd	%xmm1, %xmm3
	paddd	%xmm0, %xmm1
	pslld	$23, %xmm1
	paddd	%xmm5, %xmm1
	cvttps2dq	%xmm1, %xmm1
	por	%xmm2, %xmm1
	pslld	$23, %xmm3
	paddd	%xmm5, %xmm3
	cvttps2dq	%xmm3, %xmm3
	por	%xmm4, %xmm3
	paddd	%xmm9, %xmm6
	addl	$-2, %edi
	jne	LBB0_10
## %bb.11:
	testb	$1, %sil
	je	LBB0_13
LBB0_12:
	paddd	%xmm6, %xmm0
	leal	4(%rbx), %ecx
	movd	%ecx, %xmm2
	pshufd	$0, %xmm2, %xmm2                ## xmm2 = xmm2[0,0,0,0]
	paddd	%xmm6, %xmm2
	pslld	$23, %xmm0
	movdqa	LCPI0_1(%rip), %xmm4            ## xmm4 = [1065353216,1065353216,1065353216,1065353216]
	paddd	%xmm4, %xmm0
	cvttps2dq	%xmm0, %xmm0
	por	%xmm0, %xmm1
	pslld	$23, %xmm2
	paddd	%xmm4, %xmm2
	cvttps2dq	%xmm2, %xmm0
	por	%xmm0, %xmm3
LBB0_13:
	por	%xmm3, %xmm1
	pshufd	$238, %xmm1, %xmm0              ## xmm0 = xmm1[2,3,2,3]
	por	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	por	%xmm0, %xmm1
	movd	%xmm1, %esi
	cmpl	%edx, %eax
	je	LBB0_16
LBB0_14:
	subl	%edx, %eax
	addl	%ebx, %edx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	btsl	%edx, %esi
	incl	%edx
	decl	%eax
	jne	LBB0_15
LBB0_16:
	movl	%esi, 4(%r8)
LBB0_17:
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdi
	callq	_vx_send_msg
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_22
## %bb.18:
	cmpl	$0, (%r13)
	jle	LBB0_19
## %bb.20:
	movq	-48(%rbp), %rcx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx), %edi
	leal	(%r8,%rsi), %edx
	xorl	%ebx, %ebx
	btl	%edx, %edi
	setb	%bl
	movl	%ebx, (%r14)
	movl	4(%rcx,%rsi,4), %edx
	movl	%edx, 4(%r14)
	movl	8(%rcx,%rsi,4), %edx
	addq	$2, %rsi
	movl	%edx, 8(%r14)
	movslq	(%r13), %rdx
	addq	%rdx, %rdx
	addq	$12, %r14
	cmpq	%rdx, %rsi
	jl	LBB0_21
	jmp	LBB0_22
LBB0_19:
	xorl	%eax, %eax
	jmp	LBB0_22
LBB0_8:
	movdqa	LCPI0_0(%rip), %xmm6            ## xmm6 = [0,1,2,3]
	pxor	%xmm1, %xmm1
	pxor	%xmm3, %xmm3
	testb	$1, %sil
	jne	LBB0_12
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_VX_STAT_IS_STALE,4,2           ## @VX_STAT_IS_STALE
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_CMD_AUDIO_VU_PIC_METER,4,2     ## @CMD_AUDIO_VU_PIC_METER
	.comm	_VU_METER_CHANNELS,4,2          ## @VU_METER_CHANNELS
	.comm	_COMMAND_RECORD_MASK,4,2        ## @COMMAND_RECORD_MASK
	.no_dead_strip	_vx_get_audio_vu_meter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function vx_get_audio_vu_meter
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_vx_get_audio_vu_meter:                 ; @vx_get_audio_vu_meter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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 w23, -56
	.cfi_offset w24, -64
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _VX_STAT_IS_STALE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VX_STAT_IS_STALE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EBUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_19
LBB0_2:
	mov	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
Lloh6:
	adrp	x8, _CMD_AUDIO_VU_PIC_METER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CMD_AUDIO_VU_PIC_METER@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_vx_init_rmh
Lloh9:
	adrp	x23, _VU_METER_CHANNELS@GOTPAGE
Lloh10:
	ldr	x23, [x23, _VU_METER_CHANNELS@GOTPAGEOFF]
	ldr	w9, [x23]
	ldr	w8, [sp, #8]
	add	w8, w8, w9, lsl #1
	str	w8, [sp, #8]
	cbz	w22, LBB0_4
; %bb.3:
Lloh11:
	adrp	x8, _COMMAND_RECORD_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _COMMAND_RECORD_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x8]
	ldr	x8, [sp, #16]
	ldr	w10, [x8]
	orr	w9, w10, w9
	str	w9, [x8]
	ldr	w9, [x23]
	b	LBB0_5
LBB0_4:
	ldr	x8, [sp, #16]
LBB0_5:
	str	wzr, [x8, #4]
	cmp	w9, #1
	b.lt	LBB0_14
; %bb.6:
	cmp	w9, #16
	b.hs	LBB0_8
; %bb.7:
	mov	w11, #0
	mov	w10, #0
	b	LBB0_11
LBB0_8:
	and	w10, w9, #0xfffffff0
	dup.4s	v0, w20
	add	w11, w20, #4
	dup.4s	v1, w11
	add	w11, w20, #8
	dup.4s	v2, w11
	add	w11, w20, #12
	dup.4s	v4, w11
Lloh14:
	adrp	x11, lCPI0_0@PAGE
Lloh15:
	ldr	q5, [x11, lCPI0_0@PAGEOFF]
	movi.2d	v3, #0000000000000000
	movi.4s	v6, #1
	movi.4s	v7, #16
	mov	x11, x10
	movi.2d	v16, #0000000000000000
	movi.2d	v17, #0000000000000000
	movi.2d	v18, #0000000000000000
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add.4s	v19, v5, v0
	add.4s	v20, v1, v5
	add.4s	v21, v2, v5
	add.4s	v22, v4, v5
	ushl.4s	v19, v6, v19
	ushl.4s	v20, v6, v20
	ushl.4s	v21, v6, v21
	ushl.4s	v22, v6, v22
	orr.16b	v3, v3, v19
	orr.16b	v16, v16, v20
	orr.16b	v17, v17, v21
	orr.16b	v18, v18, v22
	add.4s	v5, v5, v7
	subs	w11, w11, #16
	b.ne	LBB0_9
; %bb.10:
	orr.16b	v0, v16, v3
	orr.16b	v0, v17, v0
	orr.16b	v0, v18, v0
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	fmov	w11, s0
	mov.s	w12, v0[1]
	orr	w11, w11, w12
	cmp	w9, w10
	b.eq	LBB0_13
LBB0_11:
	sub	w9, w9, w10
	add	w10, w10, w20
	mov	w12, #1
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	lsl	w13, w12, w10
	orr	w11, w11, w13
	add	w10, w10, #1
	subs	w9, w9, #1
	b.ne	LBB0_12
LBB0_13:
	str	w11, [x8, #4]
LBB0_14:
	add	x1, sp, #8
	mov	x0, x21
	bl	_vx_send_msg
	tbnz	w0, #31, LBB0_19
; %bb.15:
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.16:
	mov	x8, #0
	ldr	x9, [sp, #24]
	mov	w10, w20
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9]
	add	w12, w10, w8
	lsr	w11, w11, w12
	and	w11, w11, #0x1
	str	w11, [x19]
	add	x11, x9, x8, lsl #2
	ldr	w12, [x11, #4]
	str	w12, [x19, #4]
	add	x8, x8, #2
	ldr	w11, [x11, #8]
	str	w11, [x19, #8]
	ldrsw	x11, [x23]
	add	x19, x19, #12
	cmp	x8, x11, lsl #1
	b.lt	LBB0_17
LBB0_18:
	mov	w0, #0
LBB0_19:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdr	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_VX_STAT_IS_STALE,4,2           ; @VX_STAT_IS_STALE
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_CMD_AUDIO_VU_PIC_METER,4,2     ; @CMD_AUDIO_VU_PIC_METER
	.comm	_VU_METER_CHANNELS,4,2          ; @VU_METER_CHANNELS
	.comm	_COMMAND_RECORD_MASK,4,2        ; @COMMAND_RECORD_MASK
	.no_dead_strip	_vx_get_audio_vu_meter
.subsections_via_symbols
