	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mix8
_mix8:                                  ## @mix8
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%edx, %edx
	je	LBB0_7
## %bb.1:
	movq	_num_pokeys@GOTPCREL(%rip), %r8
	xorl	%eax, %eax
	cmpl	$2, (%r8)
	sete	%al
	leaq	8(,%rax,8), %r8
	movl	%edx, %r9d
	xorl	%r10d, %r10d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	leal	255(%rdx), %eax
	testw	%dx, %dx
	cmovnsl	%edx, %eax
	cwtl
	sarl	$8, %eax
	subl	$-128, %eax
	movzwl	%ax, %eax
	movq	%rax, (%rdi)
	addq	%r8, %rdi
	incq	%r10
	cmpl	%r10d, %r9d
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%r10,4), %edx
	imull	%ecx, %edx
	leal	127(%rdx), %eax
	testl	%edx, %edx
	cmovnsl	%edx, %eax
	sarl	$7, %eax
	movl	(%rdi), %edx
	shll	$8, %edx
	addl	%eax, %edx
	addl	$-32768, %edx                   ## imm = 0x8000
	cmpl	$32767, %edx                    ## imm = 0x7FFF
	jl	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$32767, %edx                    ## imm = 0x7FFF
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$-32767, %edx                   ## imm = 0x8001
	jge	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$-32768, %edx                   ## imm = 0x8000
	jmp	LBB0_6
LBB0_7:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_num_pokeys,4,2                 ## @num_pokeys
	.no_dead_strip	_mix8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mix8
_mix8:                                  ; @mix8
	.cfi_startproc
; %bb.0:
	cbz	w2, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _num_pokeys@GOTPAGE
Lloh1:
	ldr	x8, [x8, _num_pokeys@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #2
	mov	w8, #8
	mov	w9, #16
	csel	x8, x9, x8, eq
	mov	w9, #32767
	mov	w10, #-32768
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x1], #4
	mul	w11, w11, w3
	add	w12, w11, #127
	cmp	w11, #0
	csel	w11, w12, w11, lt
	asr	w11, w11, #7
	ldr	w12, [x0]
	add	w11, w11, w12, lsl #8
	sub	w11, w11, #8, lsl #12           ; =32768
	cmp	w11, w9
	csel	w11, w11, w9, lt
	cmn	w11, #8, lsl #12                ; =32768
	csel	w11, w11, w10, gt
	lsr	w12, w11, #23
	add	w11, w11, w12, uxtb
	sxth	w11, w11
	lsr	w11, w11, #8
	add	w11, w11, #128
	and	x11, x11, #0xffff
	str	x11, [x0]
	add	x0, x0, x8
	sub	w2, w2, #1
	cbnz	w2, LBB0_2
LBB0_3:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_num_pokeys,4,2                 ; @num_pokeys
	.no_dead_strip	_mix8
.subsections_via_symbols
