	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function butterflies_fixed_c
_butterflies_fixed_c:                   ## @butterflies_fixed_c
	.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
	jle	LBB0_16
## %bb.1:
	movl	%edx, %r9d
	cmpl	$8, %edx
	jb	LBB0_2
## %bb.3:
	leaq	(%rsi,%r9,4), %rax
	cmpq	%rdi, %rax
	jbe	LBB0_6
## %bb.4:
	leaq	(%rdi,%r9,4), %rax
	cmpq	%rsi, %rax
	jbe	LBB0_6
LBB0_2:
	xorl	%r11d, %r11d
LBB0_12:
	movq	%r11, %rax
	notq	%rax
	testb	$1, %r9b
	je	LBB0_14
## %bb.13:
	movl	(%rdi,%r11,4), %r8d
	movl	(%rsi,%r11,4), %edx
	movl	%r8d, %r10d
	subl	%edx, %r10d
	addl	%r8d, %edx
	movl	%edx, (%rdi,%r11,4)
	movl	%r10d, (%rsi,%r11,4)
	orq	$1, %r11
LBB0_14:
	addq	%r9, %rax
	je	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdi,%r11,4), %ecx
	movl	(%rsi,%r11,4), %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	addl	%ecx, %edx
	movl	%edx, (%rdi,%r11,4)
	movl	%eax, (%rsi,%r11,4)
	movl	4(%rdi,%r11,4), %eax
	movl	4(%rsi,%r11,4), %ecx
	movl	%eax, %edx
	subl	%ecx, %edx
	addl	%eax, %ecx
	movl	%ecx, 4(%rdi,%r11,4)
	movl	%edx, 4(%rsi,%r11,4)
	addq	$2, %r11
	cmpq	%r11, %r9
	jne	LBB0_15
	jmp	LBB0_16
LBB0_6:
	movl	%r9d, %r11d
	andl	$-8, %r11d
	leaq	-8(%r11), %rax
	movq	%rax, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rax, %rax
	je	LBB0_17
## %bb.7:
	movq	%r8, %rax
	andq	$-2, %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdi,%rdx,4), %xmm0
	movdqu	16(%rdi,%rdx,4), %xmm1
	movdqu	(%rsi,%rdx,4), %xmm2
	movdqu	16(%rsi,%rdx,4), %xmm3
	movdqa	%xmm0, %xmm4
	psubd	%xmm2, %xmm4
	movdqa	%xmm1, %xmm5
	psubd	%xmm3, %xmm5
	paddd	%xmm0, %xmm2
	paddd	%xmm1, %xmm3
	movdqu	%xmm2, (%rdi,%rdx,4)
	movdqu	%xmm3, 16(%rdi,%rdx,4)
	movdqu	%xmm4, (%rsi,%rdx,4)
	movdqu	%xmm5, 16(%rsi,%rdx,4)
	movdqu	32(%rdi,%rdx,4), %xmm0
	movdqu	48(%rdi,%rdx,4), %xmm1
	movdqu	32(%rsi,%rdx,4), %xmm2
	movdqu	48(%rsi,%rdx,4), %xmm3
	movdqa	%xmm0, %xmm4
	psubd	%xmm2, %xmm4
	movdqa	%xmm1, %xmm5
	psubd	%xmm3, %xmm5
	paddd	%xmm0, %xmm2
	paddd	%xmm1, %xmm3
	movdqu	%xmm2, 32(%rdi,%rdx,4)
	movdqu	%xmm3, 48(%rdi,%rdx,4)
	movdqu	%xmm4, 32(%rsi,%rdx,4)
	movdqu	%xmm5, 48(%rsi,%rdx,4)
	addq	$16, %rdx
	addq	$-2, %rax
	jne	LBB0_8
## %bb.9:
	testb	$1, %r8b
	je	LBB0_11
LBB0_10:
	movdqu	(%rdi,%rdx,4), %xmm0
	movdqu	16(%rdi,%rdx,4), %xmm1
	movdqu	(%rsi,%rdx,4), %xmm2
	movdqu	16(%rsi,%rdx,4), %xmm3
	movdqa	%xmm0, %xmm4
	psubd	%xmm2, %xmm4
	movdqa	%xmm1, %xmm5
	psubd	%xmm3, %xmm5
	paddd	%xmm0, %xmm2
	paddd	%xmm1, %xmm3
	movdqu	%xmm2, (%rdi,%rdx,4)
	movdqu	%xmm3, 16(%rdi,%rdx,4)
	movdqu	%xmm4, (%rsi,%rdx,4)
	movdqu	%xmm5, 16(%rsi,%rdx,4)
LBB0_11:
	cmpq	%r9, %r11
	jne	LBB0_12
LBB0_16:
	popq	%rbp
	retq
LBB0_17:
	xorl	%edx, %edx
	testb	$1, %r8b
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_butterflies_fixed_c
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function butterflies_fixed_c
_butterflies_fixed_c:                   ; @butterflies_fixed_c
	.cfi_startproc
; %bb.0:
	cmp	w2, #1
	b.lt	LBB0_9
; %bb.1:
	mov	w8, w2
	cmp	w2, #8
	b.lo	LBB0_6
; %bb.2:
	lsl	x9, x8, #2
	add	x10, x0, x9
	add	x9, x1, x9
	cmp	x9, x0
	ccmp	x10, x1, #0, hi
	b.hi	LBB0_6
; %bb.3:
	and	x9, x8, #0xfffffff8
	add	x10, x0, #16
	add	x11, x1, #16
	mov	x12, x9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x10, #-16]
	ldp	q2, q3, [x11, #-16]
	sub.4s	v4, v0, v2
	sub.4s	v5, v1, v3
	add.4s	v0, v2, v0
	add.4s	v1, v3, v1
	stp	q0, q1, [x10, #-16]
	stp	q4, q5, [x11, #-16]
	add	x10, x10, #32
	add	x11, x11, #32
	subs	x12, x12, #8
	b.ne	LBB0_4
; %bb.5:
	cmp	x9, x8
	b.ne	LBB0_7
	b	LBB0_9
LBB0_6:
	mov	x9, #0
LBB0_7:
	lsl	x11, x9, #2
	add	x10, x1, x11
	add	x11, x0, x11
	sub	x8, x8, x9
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x11]
	ldr	w12, [x10]
	sub	w13, w9, w12
	add	w9, w12, w9
	str	w9, [x11], #4
	str	w13, [x10], #4
	subs	x8, x8, #1
	b.ne	LBB0_8
LBB0_9:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_butterflies_fixed_c
.subsections_via_symbols
