	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mix
_mix:                                   ## @mix
	.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:
	movl	%edx, %r9d
	xorl	%r10d, %r10d
	movq	_num_pokeys@GOTPCREL(%rip), %r8
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, (%rdi)
	xorl	%eax, %eax
	cmpl	$2, (%r8)
	sete	%al
	leaq	(%rdi,%rax,4), %rdi
	addq	$4, %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
	addl	(%rdi), %eax
	cmpl	$32767, %eax                    ## imm = 0x7FFF
	jl	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$32767, %eax                    ## imm = 0x7FFF
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$-32767, %eax                   ## imm = 0x8001
	jge	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$-32768, %eax                   ## imm = 0x8000
	jmp	LBB0_6
LBB0_7:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_num_pokeys,4,2                 ## @num_pokeys
	.no_dead_strip	_mix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mix
_mix:                                   ; @mix
	.cfi_startproc
; %bb.0:
	cbz	w2, LBB0_3
; %bb.1:
	mov	w8, #32767
	mov	w9, #-32768
Lloh0:
	adrp	x10, _num_pokeys@GOTPAGE
Lloh1:
	ldr	x10, [x10, _num_pokeys@GOTPAGEOFF]
	mov	w11, #4
	mov	w12, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x1], #4
	mul	w13, w13, w3
	add	w14, w13, #127
	cmp	w13, #0
	csel	w13, w14, w13, lt
	ldr	w14, [x0]
	add	w13, w14, w13, asr #7
	cmp	w13, w8
	csel	w13, w13, w8, lt
	cmn	w13, #8, lsl #12                ; =32768
	csel	w13, w13, w9, gt
	str	w13, [x0]
	ldr	w13, [x10]
	cmp	w13, #2
	csel	x13, x12, x11, eq
	add	x0, x0, x13
	sub	w2, w2, #1
	cbnz	w2, LBB0_2
LBB0_3:
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_num_pokeys,4,2                 ; @num_pokeys
	.no_dead_strip	_mix
.subsections_via_symbols
