	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rct_int
_rct_int:                               ## @rct_int
	.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
                                        ## kill: def $ecx killed $ecx def $rcx
	testl	%ecx, %ecx
	jle	LBB0_18
## %bb.1:
	leal	-1(%rcx), %r9d
	xorl	%r8d, %r8d
	cmpl	$3, %r9d
	jae	LBB0_2
LBB0_13:
	movl	%ecx, %ebx
	subl	%r8d, %ebx
	movl	%r8d, %r11d
	notl	%r11d
	testb	$1, %bl
	je	LBB0_15
## %bb.14:
	movl	(%rdi), %ebx
	movl	(%rdx), %r9d
	movl	(%rsi), %r10d
	leal	(%r10,%r9), %eax
	sarl	$2, %eax
	subl	%eax, %ebx
	addl	%ebx, %r9d
	addl	%ebx, %r10d
	movl	%r9d, (%rdi)
	addq	$4, %rdi
	movl	%ebx, (%rsi)
	addq	$4, %rsi
	movl	%r10d, (%rdx)
	addq	$4, %rdx
	incl	%r8d
LBB0_15:
	addl	%ecx, %r11d
	je	LBB0_18
## %bb.16:
	subl	%r8d, %ecx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdi,%rax,4), %r10d
	movl	(%rdx,%rax,4), %r8d
	movl	(%rsi,%rax,4), %r9d
	leal	(%r9,%r8), %ebx
	sarl	$2, %ebx
	subl	%ebx, %r10d
	addl	%r10d, %r8d
	addl	%r10d, %r9d
	movl	%r8d, (%rdi,%rax,4)
	movl	%r10d, (%rsi,%rax,4)
	movl	%r9d, (%rdx,%rax,4)
	movl	4(%rdi,%rax,4), %r10d
	movl	4(%rdx,%rax,4), %r8d
	movl	4(%rsi,%rax,4), %r9d
	leal	(%r9,%r8), %ebx
	sarl	$2, %ebx
	subl	%ebx, %r10d
	addl	%r10d, %r8d
	addl	%r10d, %r9d
	movl	%r8d, 4(%rdi,%rax,4)
	movl	%r10d, 4(%rsi,%rax,4)
	movl	%r9d, 4(%rdx,%rax,4)
	addq	$2, %rax
	cmpl	%eax, %ecx
	jne	LBB0_17
	jmp	LBB0_18
LBB0_2:
	leaq	(%rsi,%r9,4), %r13
	addq	$4, %r13
	cmpq	%rdi, %r13
	seta	%r14b
	leaq	(%rdi,%r9,4), %rax
	addq	$4, %rax
	cmpq	%rsi, %rax
	seta	%r12b
	leaq	(%rdx,%r9,4), %rbx
	addq	$4, %rbx
	cmpq	%rdi, %rbx
	seta	%r15b
	cmpq	%rdx, %rax
	seta	%r11b
	cmpq	%rsi, %rbx
	seta	%r10b
	cmpq	%rdx, %r13
	seta	%bl
	testb	%r12b, %r14b
	jne	LBB0_13
## %bb.3:
	andb	%r11b, %r15b
	jne	LBB0_13
## %bb.4:
	andb	%bl, %r10b
	jne	LBB0_13
## %bb.5:
	incq	%r9
	movq	%r9, %r8
	andq	$-4, %r8
	leaq	-4(%r8), %rax
	movq	%rax, %r10
	shrq	$2, %r10
	incq	%r10
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%r10, %r11
	andq	$-2, %r11
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdi,%rax,4), %xmm0
	movdqu	(%rdx,%rax,4), %xmm1
	movdqu	(%rsi,%rax,4), %xmm2
	movdqa	%xmm2, %xmm3
	paddd	%xmm1, %xmm3
	psrad	$2, %xmm3
	psubd	%xmm3, %xmm0
	paddd	%xmm0, %xmm1
	paddd	%xmm0, %xmm2
	movdqu	%xmm1, (%rdi,%rax,4)
	movdqu	%xmm0, (%rsi,%rax,4)
	movdqu	%xmm2, (%rdx,%rax,4)
	movdqu	16(%rdi,%rax,4), %xmm0
	movdqu	16(%rdx,%rax,4), %xmm1
	movdqu	16(%rsi,%rax,4), %xmm2
	movdqa	%xmm2, %xmm3
	paddd	%xmm1, %xmm3
	psrad	$2, %xmm3
	psubd	%xmm3, %xmm0
	paddd	%xmm0, %xmm1
	paddd	%xmm0, %xmm2
	movdqu	%xmm1, 16(%rdi,%rax,4)
	movdqu	%xmm0, 16(%rsi,%rax,4)
	movdqu	%xmm2, 16(%rdx,%rax,4)
	addq	$8, %rax
	addq	$-2, %r11
	jne	LBB0_8
## %bb.9:
	testb	$1, %r10b
	je	LBB0_11
LBB0_10:
	movdqu	(%rdi,%rax,4), %xmm0
	movdqu	(%rdx,%rax,4), %xmm1
	movdqu	(%rsi,%rax,4), %xmm2
	movdqa	%xmm2, %xmm3
	paddd	%xmm1, %xmm3
	psrad	$2, %xmm3
	psubd	%xmm3, %xmm0
	paddd	%xmm0, %xmm1
	paddd	%xmm0, %xmm2
	movdqu	%xmm1, (%rdi,%rax,4)
	movdqu	%xmm0, (%rsi,%rax,4)
	movdqu	%xmm2, (%rdx,%rax,4)
LBB0_11:
	cmpq	%r8, %r9
	jne	LBB0_12
LBB0_18:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	leaq	(%rdi,%r8,4), %rdi
	leaq	(%rsi,%r8,4), %rsi
	leaq	(%rdx,%r8,4), %rdx
	jmp	LBB0_13
LBB0_6:
	xorl	%eax, %eax
	testb	$1, %r10b
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rct_int
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rct_int
_rct_int:                               ; @rct_int
	.cfi_startproc
; %bb.0:
	subs	w9, w3, #1
	b.lt	LBB0_11
; %bb.1:
	cmp	w9, #3
	b.hs	LBB0_3
; %bb.2:
	mov	w8, #0
	b	LBB0_9
LBB0_3:
	mov	w8, #0
	lsl	x10, x9, #2
	add	x10, x10, #4
	add	x12, x1, x10
	add	x13, x2, x10
	cmp	x13, x0
	add	x14, x0, x10
	ccmp	x14, x2, #0, hi
	cset	w11, hi
	cmp	x13, x1
	ccmp	x12, x2, #0, hi
	cset	w10, hi
	cmp	x14, x1
	ccmp	x12, x0, #0, hi
	b.hi	LBB0_9
; %bb.4:
	tbnz	w11, #0, LBB0_9
; %bb.5:
	tbnz	w10, #0, LBB0_9
; %bb.6:
	add	x9, x9, #1
	and	x8, x9, #0x1fffffffc
	lsl	x12, x8, #2
	add	x10, x0, x12
	add	x11, x1, x12
	add	x12, x2, x12
	mov	x13, x8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	q0, [x0]
	ldr	q1, [x2]
	ldr	q2, [x1]
	add.4s	v3, v2, v1
	sshr.4s	v3, v3, #2
	sub.4s	v0, v0, v3
	add.4s	v1, v0, v1
	str	q1, [x0], #16
	add.4s	v1, v0, v2
	str	q0, [x1], #16
	str	q1, [x2], #16
	subs	x13, x13, #4
	b.ne	LBB0_7
; %bb.8:
	mov	x0, x10
	mov	x1, x11
	mov	x2, x12
	cmp	x9, x8
	b.eq	LBB0_11
LBB0_9:
	sub	w8, w3, w8
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x0]
	ldr	w10, [x2]
	ldr	w11, [x1]
	add	w12, w11, w10
	sub	w9, w9, w12, asr #2
	add	w10, w9, w10
	str	w10, [x0], #4
	add	w10, w9, w11
	str	w9, [x1], #4
	str	w10, [x2], #4
	subs	w8, w8, #1
	b.ne	LBB0_10
LBB0_11:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rct_int
.subsections_via_symbols
