	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function interleaveBytes_c
_interleaveBytes_c:                     ## @interleaveBytes_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	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	testl	%r8d, %r8d
	jle	LBB0_20
## %bb.1:
	movslq	24(%rbp), %rax
	movslq	%r9d, %rdx
	movslq	16(%rbp), %rsi
	movl	%ecx, %r13d
	movq	%r13, %rdi
	addq	%r13, %rdi
	movq	%rdi, -112(%rbp)                ## 8-byte Spill
	movl	%r13d, %edi
	andl	$-4, %edi
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	addq	$-4, %rdi
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	shrq	$2, %rbx
	incq	%rbx
	movq	%rbx, %rdi
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	andq	$-2, %rbx
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	negq	%rdi
	movq	%rdi, -144(%rbp)                ## 8-byte Spill
	movq	%rdx, -128(%rbp)                ## 8-byte Spill
	leaq	(,%rdx,4), %r15
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	leaq	(,%rax,4), %r14
	movq	%rsi, -120(%rbp)                ## 8-byte Spill
	leaq	(,%rsi,4), %r12
	xorl	%r10d, %r10d
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	addq	%r14, %rdx
	addq	%r15, %rdi
	addq	%r12, %rsi
	incq	%r10
	cmpl	%r8d, %r10d
	je	LBB0_20
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
                                        ##     Child Loop BB0_18 Depth 2
	testl	%ecx, %ecx
	jle	LBB0_19
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$4, %ecx
	jae	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %r12
	movq	%r15, %r14
	movq	%r10, %r9
	imulq	-136(%rbp), %r9                 ## 8-byte Folded Reload
	addq	-112(%rbp), %r9                 ## 8-byte Folded Reload
	movq	%r10, %r11
	imulq	-128(%rbp), %r11                ## 8-byte Folded Reload
	addq	%r13, %r11
	movq	%r10, %rax
	imulq	-120(%rbp), %rax                ## 8-byte Folded Reload
	addq	%r13, %rax
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	leaq	(%rbx,%r9,4), %r9
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	leaq	(%rbx,%r11,4), %r11
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	leaq	(%rbx,%rax,4), %rax
	cmpq	%r11, %rdx
	setb	%r11b
	cmpq	%r9, %rdi
	setb	%r15b
	cmpq	%rax, %rdx
	setb	%bl
	cmpq	%r9, %rsi
	setb	%r9b
	testb	%r15b, %r11b
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$0, %eax
	andb	%r9b, %bl
	movq	%r14, %r15
	movq	%r12, %r14
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, -96(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %r11                 ## 8-byte Reload
	xorl	%r9d, %r9d
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsd	(%rdi,%r9,4), %xmm0             ## xmm0 = mem[0],zero
	movsd	8(%rdi,%r9,4), %xmm1            ## xmm1 = mem[0],zero
	movsd	(%rsi,%r9,4), %xmm2             ## xmm2 = mem[0],zero
	unpcklps	%xmm2, %xmm0                    ## xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
	movsd	8(%rsi,%r9,4), %xmm2            ## xmm2 = mem[0],zero
	unpcklps	%xmm2, %xmm1                    ## xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
	movups	%xmm0, (%rdx,%r9,8)
	movups	%xmm1, 16(%rdx,%r9,8)
	movsd	16(%rdi,%r9,4), %xmm0           ## xmm0 = mem[0],zero
	movsd	24(%rdi,%r9,4), %xmm1           ## xmm1 = mem[0],zero
	movsd	16(%rsi,%r9,4), %xmm2           ## xmm2 = mem[0],zero
	unpcklps	%xmm2, %xmm0                    ## xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
	movsd	24(%rsi,%r9,4), %xmm2           ## xmm2 = mem[0],zero
	unpcklps	%xmm2, %xmm1                    ## xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
	movups	%xmm0, 32(%rdx,%r9,8)
	movups	%xmm1, 48(%rdx,%r9,8)
	addq	$8, %r9
	addq	$-2, %r11
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, -88(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movsd	(%rdi,%r9,4), %xmm0             ## xmm0 = mem[0],zero
	movsd	8(%rdi,%r9,4), %xmm1            ## xmm1 = mem[0],zero
	movsd	(%rsi,%r9,4), %xmm2             ## xmm2 = mem[0],zero
	unpcklps	%xmm2, %xmm0                    ## xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
	movsd	8(%rsi,%r9,4), %xmm2            ## xmm2 = mem[0],zero
	unpcklps	%xmm2, %xmm1                    ## xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
	leaq	(,%r9,8), %rax
	orq	$20, %rax
	movups	%xmm0, (%rdx,%r9,8)
	movups	%xmm1, -4(%rdx,%rax)
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rax
	cmpq	%r13, %rbx
	je	LBB0_19
	jmp	LBB0_15
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	movq	%r14, %r15
	movq	%r12, %r14
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	testb	$1, %r13b
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rdi,%rax,4), %ebx
	movl	%ebx, (%rdx,%rax,8)
	movl	(%rsi,%rax,4), %ebx
	movl	%ebx, 4(%rdx,%rax,8)
	movq	%rax, %rbx
	orq	$1, %rbx
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	notq	%rax
	cmpq	-144(%rbp), %rax                ## 8-byte Folded Reload
	je	LBB0_19
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rdi,%rbx,4), %eax
	movl	%eax, (%rdx,%rbx,8)
	movl	(%rsi,%rbx,4), %eax
	movl	%eax, 4(%rdx,%rbx,8)
	movl	4(%rdi,%rbx,4), %eax
	movl	%eax, 8(%rdx,%rbx,8)
	movl	4(%rsi,%rbx,4), %eax
	movl	%eax, 12(%rdx,%rbx,8)
	addq	$2, %rbx
	cmpq	%rbx, %r13
	jne	LBB0_18
	jmp	LBB0_19
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r9d, %r9d
	testb	$1, -88(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_13
	jmp	LBB0_14
LBB0_20:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_interleaveBytes_c
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function interleaveBytes_c
_interleaveBytes_c:                     ; @interleaveBytes_c
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	.cfi_offset w19, -8
	.cfi_offset w20, -16
	.cfi_offset w21, -24
	.cfi_offset w22, -32
	.cfi_offset w23, -40
	.cfi_offset w24, -48
                                        ; kill: def $w7 killed $w7 def $x7
                                        ; kill: def $w6 killed $w6 def $x6
                                        ; kill: def $w5 killed $w5 def $x5
	cmp	w4, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x8, #0
	sxtw	x9, w7
	mov	w10, w3
	sxtw	x11, w5
	sxtw	x12, w6
	lsl	x13, x10, #1
	and	x14, x10, #0xfffffff8
	lsl	x15, x10, #2
	and	x15, x15, #0x3ffffffe0
	sbfiz	x16, x6, #2, #32
	add	x17, x2, #32
	mov	x6, x2
	sbfiz	x5, x5, #2, #32
	mov	x19, x0
	mov	x20, x1
	sbfiz	x7, x7, #2, #32
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x6, x6, x7
	add	x19, x19, x5
	add	x20, x20, x16
	add	x8, x8, #1
	add	x17, x17, x7
	cmp	w8, w4
	b.eq	LBB0_13
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;     Child Loop BB0_12 Depth 2
	cmp	w3, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w3, #8
	b.hs	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, #0
	b	LBB0_11
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, #0
	madd	x22, x8, x9, x13
	add	x23, x2, x22, lsl #2
	madd	x22, x8, x11, x10
	add	x24, x0, x22, lsl #2
	madd	x22, x8, x12, x10
	add	x22, x1, x22, lsl #2
	cmp	x6, x22
	ccmp	x20, x23, #2, lo
	cset	w22, lo
	cmp	x19, x23
	ccmp	x6, x24, #2, lo
	b.lo	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	tbnz	w22, #0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, #0
	mov	x22, x17
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x23, x19, x21
	add	x24, x20, x21
	ldp	q0, q2, [x23]
	ldp	q1, q3, [x24]
	sub	x23, x22, #32
	st2.4s	{ v0, v1 }, [x23]
	st2.4s	{ v2, v3 }, [x22]
	add	x21, x21, #32
	add	x22, x22, #64
	cmp	x15, x21
	b.ne	LBB0_9
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, x14
	cmp	x14, x10
	b.eq	LBB0_2
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x6, x21, lsl #3
LBB0_12:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x23, x21, #2
	ldr	w24, [x19, x23]
	str	w24, [x22]
	ldr	w23, [x20, x23]
	str	w23, [x22, #4]
	add	x21, x21, #1
	add	x22, x22, #8
	cmp	x10, x21
	b.ne	LBB0_12
	b	LBB0_2
LBB0_13:
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_interleaveBytes_c
.subsections_via_symbols
