	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pseudocolor_filter_16
_pseudocolor_filter_16:                 ## @pseudocolor_filter_16
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	testl	%edx, %edx
	jle	LBB0_20
## %bb.1:
	movq	40(%rbp), %r13
	movl	32(%rbp), %r10d
	movl	24(%rbp), %ebx
	movl	16(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movslq	%edx, %rdx
	movl	%ebx, %eax
	shrl	$31, %eax
	addl	%ebx, %eax
	sarl	%eax
	movslq	%eax, %r11
	movl	%r10d, %eax
	shrl	$31, %eax
	addl	%r10d, %eax
	sarl	%eax
	movslq	%eax, %r15
	movl	%esi, %r10d
	movq	%r10, -56(%rbp)                 ## 8-byte Spill
                                        ## kill: def $r10d killed $r10d killed $r10 def $r10
	andl	$-2, %r10d
	shlq	$3, %rdx
	shlq	$3, %r11
	shlq	$3, %r15
	xorl	%r12d, %r12d
	jmp	LBB0_2
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r8,%rax,8), %rbx
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, (%r9,%rax,8)
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	addq	%rdx, %rcx
	addq	%r11, %r8
	addq	%r15, %r9
	incl	%r12d
	cmpl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	je	LBB0_20
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	testl	%esi, %esi
	jle	LBB0_19
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	cmpl	$1, %esi
	jne	LBB0_4
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, -56(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rcx,%rax,8), %rbx
	cvttss2si	(%r13,%rbx,4), %ebx
	testl	%ebx, %ebx
	js	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%edi, %ebx
	jg	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %ebx
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	8(%r8,%rax,8), %rbx
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	%rbx, 8(%r9,%rax,8)
	addq	$2, %rax
	cmpq	%rax, %r10
	je	LBB0_13
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rcx,%rax,8), %rbx
	cvttss2si	(%r13,%rbx,4), %r14d
	testl	%r14d, %r14d
	js	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpl	%edi, %r14d
	jg	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	%r14d, %ebx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	(%r8,%rax,8), %rbx
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	%rbx, (%r9,%rax,8)
	movq	8(%rcx,%rax,8), %rbx
	cvttss2si	(%r13,%rbx,4), %ebx
	testl	%ebx, %ebx
	js	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpl	%edi, %ebx
	jg	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=2
	movl	%ebx, %ebx
	jmp	LBB0_12
LBB0_20:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pseudocolor_filter_16
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pseudocolor_filter_16
_pseudocolor_filter_16:                 ; @pseudocolor_filter_16
	.cfi_startproc
; %bb.0:
	cmp	w2, #1
	b.lt	LBB0_9
; %bb.1:
	mov	w8, #0
	ldr	w9, [sp]
	cmp	w6, #0
	cinc	w10, w6, lt
	asr	w12, w10, #1
	cmp	w7, #0
	cinc	w10, w7, lt
	asr	w10, w10, #1
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	mov	w13, w1
	sbfiz	x9, x9, #3, #32
	sbfiz	x10, x10, #3, #32
	ldr	x11, [sp, #8]
	sbfiz	x12, x12, #3, #32
	lsl	x13, x13, #3
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w8, #1
	add	x5, x5, x9
	add	x4, x4, x10
	add	x3, x3, x12
	cmp	w8, w2
	b.eq	LBB0_9
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	cmp	w1, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x14, #0
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	ldr	x15, [x4, x14]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	str	x15, [x5, x14]
	add	x14, x14, #8
	cmp	x13, x14
	b.eq	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x15, [x3, x14]
	ldr	s0, [x11, x15, lsl #2]
	fcvtzs	w15, s0
	tbnz	w15, #31, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	cmp	w15, w0
	b.le	LBB0_6
	b	LBB0_5
LBB0_9:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pseudocolor_filter_16
.subsections_via_symbols
