	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function process_c
LCPI0_0:
	.quad	0x4059000000000000              ## double 100
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_1:
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_process_c:                             ## @process_c
	.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
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movl	16(%rbp), %ecx
	testl	%ecx, %ecx
	jle	LBB0_14
## %bb.1:
	movl	(%rdi), %esi
	movl	%esi, %r13d
	shll	$12, %r13d
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	movsd	8(%rdi), %xmm1                  ## xmm1 = mem[0],zero
	mulsd	%xmm0, %xmm1
	addsd	%xmm0, %xmm1
	cvttsd2si	%xmm1, %ebx
	movl	%ebx, %edi
	shll	$9, %edi
	subl	%ebx, %edi
	movslq	%edi, %rdi
	imulq	$1374389535, %rdi, %rdi         ## imm = 0x51EB851F
	movq	%rdi, %rbx
	shrq	$63, %rbx
	sarq	$38, %rdi
	addl	%ebx, %edi
	shll	$7, %esi
	subl	%esi, %edi
	addl	$-128, %edi
	movslq	%r8d, %rax
	movslq	%edx, %rdx
	movl	%ecx, %ecx
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	movl	%r9d, %r14d
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	leaq	(,%rdx,4), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	leaq	(,%rax,4), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	%r14d, %eax
	andl	$-8, %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movd	%r13d, %xmm0
	pshufd	$0, %xmm0, %xmm2                ## xmm2 = xmm0[0,0,0,0]
	movd	%edi, %xmm0
	pshufd	$0, %xmm0, %xmm3                ## xmm3 = xmm0[0,0,0,0]
	movq	%r14, %rax
	negq	%rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	16(%rcx), %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	16(%rax), %r8
	leaq	(,%r14,4), %r10
	andq	$-32, %r10
	movdqa	LCPI0_1(%rip), %xmm8            ## xmm8 = [255,255,255,255]
	pxor	%xmm9, %xmm9
	leaq	4(%rax), %r12
	xorl	%r15d, %r15d
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	addq	%rdx, %rbx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, %r8
	addq	%rax, %r12
	addq	%rdx, %rcx
	cmpq	-120(%rbp), %r15                ## 8-byte Folded Reload
	je	LBB0_14
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##     Child Loop BB0_12 Depth 2
	testl	%r9d, %r9d
	jle	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$8, %r9d
	jb	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	imulq	%r15, %rsi
	addq	-56(%rbp), %rsi                 ## 8-byte Folded Reload
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	imulq	%r15, %r14
	addq	-48(%rbp), %r14                 ## 8-byte Folded Reload
	subq	%rsi, %r14
	movl	$0, %r11d
	cmpq	$32, %r14
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jb	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	-16(%rbx,%rsi), %xmm6
	movdqu	(%rbx,%rsi), %xmm7
	pmulld	%xmm2, %xmm6
	pmulld	%xmm2, %xmm7
	psrad	$12, %xmm6
	psrad	$12, %xmm7
	paddd	%xmm3, %xmm6
	paddd	%xmm3, %xmm7
	movdqa	%xmm6, %xmm0
	pminud	%xmm8, %xmm0
	pcmpeqd	%xmm6, %xmm0
	movdqa	%xmm7, %xmm1
	pminud	%xmm8, %xmm1
	pcmpeqd	%xmm7, %xmm1
	movdqa	%xmm6, %xmm4
	pcmpgtd	%xmm9, %xmm4
	movdqa	%xmm7, %xmm5
	pcmpgtd	%xmm9, %xmm5
	blendvps	%xmm0, %xmm6, %xmm4
	movdqa	%xmm1, %xmm0
	blendvps	%xmm0, %xmm7, %xmm5
	movups	%xmm4, -16(%r8,%rsi)
	movups	%xmm5, (%r8,%rsi)
	addq	$32, %rsi
	cmpq	%rsi, %r10
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	%rax, %r11
	cmpq	%r14, %rax
	je	LBB0_13
	jmp	LBB0_9
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r11d, %r11d
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r11, %rsi
	testb	$1, %r14b
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rsi
	imulq	-96(%rbp), %rsi                 ## 8-byte Folded Reload
	movq	%r15, %r14
	imulq	-88(%rbp), %r14                 ## 8-byte Folded Reload
	addq	%r11, %rsi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%rsi,4), %esi
	imull	%r13d, %esi
	sarl	$12, %esi
	addl	%edi, %esi
	movl	%r9d, %eax
	xorl	%r9d, %r9d
	testl	%esi, %esi
	setg	%r9b
	negl	%r9d
	cmpl	$256, %esi                      ## imm = 0x100
	cmovbl	%esi, %r9d
	addq	%r11, %r14
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%r9d, (%rdx,%r14,4)
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, %r9d
	movq	%r11, %rsi
	orq	$1, %rsi
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	notq	%r11
	cmpq	-112(%rbp), %r11                ## 8-byte Folded Reload
	je	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rcx,%rsi,4), %edx
	imull	%r13d, %edx
	sarl	$12, %edx
	addl	%edi, %edx
	xorl	%eax, %eax
	testl	%edx, %edx
	setg	%al
	negl	%eax
	cmpl	$256, %edx                      ## imm = 0x100
	cmovbl	%edx, %eax
	movl	%eax, -4(%r12,%rsi,4)
	movl	4(%rcx,%rsi,4), %eax
	imull	%r13d, %eax
	sarl	$12, %eax
	addl	%edi, %eax
	xorl	%edx, %edx
	testl	%eax, %eax
	setg	%dl
	negl	%edx
	cmpl	$256, %eax                      ## imm = 0x100
	cmovbl	%eax, %edx
	movl	%edx, (%r12,%rsi,4)
	addq	$2, %rsi
	cmpq	%rsi, %r14
	jne	LBB0_12
	jmp	LBB0_13
LBB0_14:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_process_c
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_c
_process_c:                             ; @process_c
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	.cfi_offset w19, -8
	.cfi_offset w20, -16
	.cfi_offset w21, -24
	.cfi_offset w22, -32
                                        ; kill: def $w4 killed $w4 def $x4
                                        ; kill: def $w2 killed $w2 def $x2
	cmp	w6, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x8, #0
	mov	x9, #0
	mov	x10, #0
	ldr	w12, [x0]
	ldr	d0, [x0, #8]
	mov	x11, #4636737291354636288
	fmov	d1, x11
	fmadd	d0, d0, d1, d1
	fcvtzs	w13, d0
	lsl	w11, w12, #12
	lsl	w14, w13, #9
	sub	w13, w14, w13
	mov	w14, #34079
	movk	w14, #20971, lsl #16
	smull	x13, w13, w14
	lsr	x14, x13, #32
	lsr	x13, x13, #63
	add	w13, w13, w14, asr #6
	sub	w12, w13, w12, lsl #7
	sub	w12, w12, #128
	sxtw	x13, w4
	sxtw	x14, w2
	mov	w15, w6
	mov	w16, w5
	sbfiz	x17, x2, #2, #32
	sbfiz	x0, x4, #2, #32
	dup.4s	v0, w11
	and	x2, x16, #0xfffffff0
	dup.4s	v1, w12
	add	x4, x1, #32
	add	x6, x3, #32
	movi.4s	v2, #1, lsl #8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #1
	add	x4, x4, x17
	add	x6, x6, x0
	add	x9, x9, x14
	add	x8, x8, x13
	cmp	x10, x15
	b.eq	LBB0_11
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_10 Depth 2
	cmp	w5, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x20, #0
	cmp	w5, #16
	b.lo	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	madd	x7, x0, x10, x3
	madd	x19, x17, x10, x1
	sub	x7, x19, x7
	cmp	x7, #64
	b.lo	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x7, x6
	mov	x19, x4
	mov	x20, x2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q3, q4, [x7, #-32]
	ldp	q5, q6, [x7], #64
	mul.4s	v3, v0, v3
	mul.4s	v4, v0, v4
	mul.4s	v5, v0, v5
	mul.4s	v6, v0, v6
	mov.16b	v7, v1
	ssra.4s	v7, v3, #12
	mov.16b	v3, v1
	ssra.4s	v3, v4, #12
	mov.16b	v4, v1
	ssra.4s	v4, v5, #12
	mov.16b	v5, v1
	ssra.4s	v5, v6, #12
	cmhi.4s	v6, v2, v7
	cmhi.4s	v16, v2, v3
	cmhi.4s	v17, v2, v4
	cmhi.4s	v18, v2, v5
	cmgt.4s	v19, v7, #0
	cmgt.4s	v20, v3, #0
	cmgt.4s	v21, v4, #0
	cmgt.4s	v22, v5, #0
	bsl.16b	v6, v7, v19
	bif.16b	v3, v20, v16
	bif.16b	v4, v21, v17
	stp	q6, q3, [x19, #-32]
	mov.16b	v3, v18
	bsl.16b	v3, v5, v22
	stp	q4, q3, [x19], #64
	subs	x20, x20, #16
	b.ne	LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x20, x2
	cmp	x2, x16
	b.eq	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x7, x20, x9
	add	x7, x1, x7, lsl #2
	add	x19, x20, x8
	add	x19, x3, x19, lsl #2
	sub	x20, x16, x20
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w21, [x19], #4
	mul	w21, w11, w21
	add	w21, w12, w21, asr #12
	cmp	w21, #0
	csetm	w22, gt
	cmp	w21, #256
	csel	w21, w21, w22, lo
	str	w21, [x7], #4
	subs	x20, x20, #1
	b.ne	LBB0_10
	b	LBB0_2
LBB0_11:
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_process_c
.subsections_via_symbols
