	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function rackmeter_calc_sample
LCPI0_0:
	.long	127                             ## 0x7f
	.long	127                             ## 0x7f
	.long	127                             ## 0x7f
	.long	127                             ## 0x7f
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_rackmeter_calc_sample:                 ## @rackmeter_calc_sample
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movdqu	(%rax), %xmm0
	movdqu	16(%rax), %xmm1
	movdqu	32(%rax), %xmm2
	movdqu	48(%rax), %xmm3
	movdqa	LCPI0_0(%rip), %xmm4            ## xmm4 = [127,127,127,127]
	pcmpgtd	%xmm4, %xmm3
	pcmpgtd	%xmm4, %xmm2
	packssdw	%xmm3, %xmm2
	pcmpgtd	%xmm4, %xmm1
	pcmpgtd	%xmm4, %xmm0
	packssdw	%xmm1, %xmm0
	packsswb	%xmm2, %xmm0
	pmovmskb	%xmm0, %eax
	movl	%eax, %ecx
	andl	$256, %ecx                      ## imm = 0x100
	movl	%eax, %edx
	shll	$7, %edx
	andl	$16384, %edx                    ## imm = 0x4000
	movl	%eax, %esi
	andl	$127, %esi
	shll	$9, %esi
	shrl	$2, %esi
	orl	%edx, %esi
	shll	$7, %ecx
	orl	%esi, %ecx
	shrl	$2, %ecx
	movl	%eax, %edx
	andl	$1536, %edx                     ## imm = 0x600
	shll	$5, %edx
	orl	%ecx, %edx
	shrl	$2, %edx
	movl	%eax, %ecx
	andl	$6144, %ecx                     ## imm = 0x1800
	shll	$3, %ecx
	orl	%edx, %ecx
	sarl	$2, %ecx
	movl	%eax, %edx
	andl	$24576, %edx                    ## imm = 0x6000
	addl	%edx, %edx
	orl	%ecx, %edx
	sarl	%edx
	orl	%edx, %eax
	shll	$17, %edx
	sarl	$15, %eax
	orl	%edx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rackmeter_calc_sample
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rackmeter_calc_sample
_rackmeter_calc_sample:                 ; @rackmeter_calc_sample
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldp	w9, w10, [x8]
	cmp	w9, #127
	cset	w9, gt
	lsl	w9, w9, #9
	cmp	w10, #127
	cset	w10, gt
	bfi	w9, w10, #10, #1
	ldp	w10, w11, [x8, #8]
	cmp	w10, #127
	cset	w10, gt
	bfi	w9, w10, #11, #1
	cmp	w11, #127
	cset	w10, gt
	bfi	w9, w10, #12, #1
	ldp	w10, w11, [x8, #16]
	cmp	w10, #127
	cset	w10, gt
	bfi	w9, w10, #13, #1
	cmp	w11, #127
	cset	w10, gt
	bfi	w9, w10, #14, #1
	ldp	w10, w11, [x8, #24]
	cmp	w10, #127
	cset	w10, gt
	orr	w9, w9, w10, lsl #15
	cmp	w11, #127
	cset	w10, gt
	asr	w9, w9, #2
	orr	w9, w9, w10, lsl #14
	ldp	w10, w11, [x8, #32]
	cmp	w10, #127
	cset	w10, gt
	orr	w9, w9, w10, lsl #15
	cmp	w11, #127
	cset	w10, gt
	asr	w9, w9, #2
	orr	w9, w9, w10, lsl #14
	ldp	w10, w11, [x8, #40]
	cmp	w10, #127
	cset	w10, gt
	orr	w9, w9, w10, lsl #15
	cmp	w11, #127
	cset	w10, gt
	asr	w9, w9, #2
	orr	w9, w9, w10, lsl #14
	ldp	w10, w11, [x8, #48]
	cmp	w10, #127
	cset	w10, gt
	orr	w9, w9, w10, lsl #15
	cmp	w11, #127
	cset	w10, gt
	asr	w9, w9, #2
	orr	w9, w9, w10, lsl #14
	ldp	w10, w8, [x8, #56]
	cmp	w10, #127
	cset	w10, gt
	orr	w9, w9, w10, lsl #15
	asr	w9, w9, #1
	mov	w10, #127
	mov	w11, #32768
	cmp	w8, #127
	csel	w8, w11, w10, gt
	orr	w8, w8, w9
	lsl	w9, w9, #17
	orr	w0, w9, w8, asr #15
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rackmeter_calc_sample
.subsections_via_symbols
