	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function celt_deinterleave_hadamard
_celt_deinterleave_hadamard:            ## @celt_deinterleave_hadamard
	.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
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	leal	-2(%rcx), %ebx
	testl	%r8d, %r8d
	movl	$30, %eax
	cmovnel	%ebx, %eax
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	testl	%ecx, %ecx
	jle	LBB0_20
## %bb.1:
	movq	_ff_celt_hadamard_order@GOTPCREL(%rip), %rcx
	cltq
	shlq	$2, %rax
	addq	(%rcx), %rax
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, %edi
	movl	%edx, %r13d
	movl	%r13d, %eax
	andl	$-8, %eax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	addq	$-8, %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	%rax, %rsi
	shrq	$3, %rsi
	incq	%rsi
	cmpl	$8, %edx
	setae	%al
	cmpl	$1, %ecx
	sete	%cl
	andb	%al, %cl
	movb	%cl, -41(%rbp)                  ## 1-byte Spill
	movq	%rsi, %rax
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	andq	$-2, %rsi
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	%r13, %rax
	negq	%rax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	movq	%rdi, %r9
	shlq	$5, %r9
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	16(%rax), %r15
	movq	%rdi, %rax
	shlq	$6, %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	48(%rcx), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	4(%rcx), %rax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	leaq	(,%rdi,8), %r11
	movq	%rdi, %rsi
	leaq	(,%rdi,4), %rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%r10d, %r10d
	movl	%edx, -68(%rbp)                 ## 4-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r10
	addq	$4, %r15
	addq	$4, %r14
	cmpq	%rsi, %r10
	je	LBB0_20
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
                                        ##     Child Loop BB0_18 Depth 2
	testl	%edx, %edx
	jle	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-160(%rbp), %rax                ## 8-byte Reload
	movslq	(%rax,%r10,4), %rax
	movslq	%edx, %r12
	imulq	%rax, %r12
	cmpb	$0, -41(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r10,4), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%r12,4), %rcx
	subq	%rax, %rcx
	cmpq	$32, %rcx
	jae	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ebx, %ebx
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rax
	testb	$1, %r13b
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rax
	imulq	%rsi, %rax
	addq	%r10, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movss	(%rcx,%rax,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	leaq	(%rbx,%r12), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movss	%xmm0, (%rcx,%rax,4)
	movq	%rbx, %rax
	orq	$1, %rax
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	notq	%rbx
	cmpq	-152(%rbp), %rbx                ## 8-byte Folded Reload
	je	LBB0_2
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-144(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%r12,4), %rbx
	movq	%rsi, %r8
	imulq	%rax, %r8
	addq	%r10, %r8
	leaq	1(%rax), %rdi
	imulq	-136(%rbp), %rdi                ## 8-byte Folded Reload
	addq	%r14, %rdi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movss	(%rcx,%r8,4), %xmm0             ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -4(%rbx,%rax,4)
	movss	(%rcx,%rdi), %xmm0              ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, (%rbx,%rax,4)
	addq	$2, %rax
	addq	%r11, %rcx
	cmpq	%rax, %r13
	jne	LBB0_18
	jmp	LBB0_2
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, -120(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_19
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r12,4), %rax
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movq	%r15, %rbx
	xorl	%r8d, %r8d
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movups	-16(%rbx), %xmm0
	movups	(%rbx), %xmm1
	movups	%xmm0, -48(%rax,%r8,4)
	movups	%xmm1, -32(%rax,%r8,4)
	movups	-16(%rbx,%r9), %xmm0
	movups	(%rbx,%r9), %xmm1
	movups	%xmm0, -16(%rax,%r8,4)
	movups	%xmm1, (%rax,%r8,4)
	addq	$16, %r8
	addq	%rcx, %rbx
	addq	$-2, %rdi
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	testb	$1, -112(%rbp)                  ## 1-byte Folded Reload
	je	LBB0_13
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r8, %rax
	imulq	%rsi, %rax
	addq	%r10, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movups	(%rcx,%rax,4), %xmm0
	movups	16(%rcx,%rax,4), %xmm1
	addq	%r12, %r8
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movups	%xmm0, (%rax,%r8,4)
	movups	%xmm1, 16(%rax,%r8,4)
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movq	%rax, %rbx
	cmpq	%r13, %rax
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	je	LBB0_2
	jmp	LBB0_14
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r8d, %r8d
	testb	$1, -112(%rbp)                  ## 1-byte Folded Reload
	jne	LBB0_12
	jmp	LBB0_13
LBB0_20:
	imull	-80(%rbp), %edx                 ## 4-byte Folded Reload
	shll	$2, %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memcpy                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_celt_hadamard_order,8,3     ## @ff_celt_hadamard_order
	.no_dead_strip	_celt_deinterleave_hadamard
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function celt_deinterleave_hadamard
_celt_deinterleave_hadamard:            ; @celt_deinterleave_hadamard
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	.cfi_offset w19, -8
	.cfi_offset w20, -16
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x8, x1
	mov	x1, x0
	sub	w9, w3, #2
	mov	w10, #30
	cmp	w4, #0
	csel	w10, w10, w9, eq
	cmp	w3, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x9, #0
Lloh0:
	adrp	x11, _ff_celt_hadamard_order@GOTPAGE
Lloh1:
	ldr	x11, [x11, _ff_celt_hadamard_order@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	add	x10, x11, w10, sxtw #2
	mov	w11, w3
	mov	w12, w2
	cmp	w2, #15
	ccmp	w3, #1, #0, hi
	cset	w13, eq
	and	x14, x12, #0xfffffff0
	lsl	x15, x11, #6
	add	x16, x1, #32
	add	x17, x8, #32
	lsl	x0, x11, #2
	sxtw	x4, w2
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	add	x17, x17, #4
	cmp	x9, x11
	b.eq	LBB0_12
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
                                        ;     Child Loop BB0_8 Depth 2
	cmp	w2, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrsw	x5, [x10, x9, lsl #2]
	mul	x5, x5, x4
	cbz	w13, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x6, x8, x9, lsl #2
	add	x7, x1, x5, lsl #2
	sub	x6, x7, x6
	cmp	x6, #64
	b.hs	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x7, #0
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x5, x7, x5
	add	x5, x1, x5, lsl #2
	madd	x6, x11, x7, x9
	add	x6, x8, x6, lsl #2
	sub	x7, x12, x7
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	s0, [x6]
	str	s0, [x5], #4
	add	x6, x6, x0
	subs	x7, x7, #1
	b.ne	LBB0_8
	b	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x6, x16, x5, lsl #2
	mov	x7, x17
	mov	x19, x14
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q0, q1, [x7, #-32]
	ldp	q2, q3, [x7]
	stp	q0, q1, [x6, #-32]
	stp	q2, q3, [x6], #64
	add	x7, x7, x15
	subs	x19, x19, #16
	b.ne	LBB0_10
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x7, x14
	cmp	x14, x12
	b.eq	LBB0_2
	b	LBB0_7
LBB0_12:
	mul	w9, w2, w3
	lsl	w2, w9, #2
	mov	x0, x8
	ldp	x20, x19, [sp], #16             ; 16-byte Folded Reload
	b	_memcpy
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_celt_hadamard_order,8,3     ; @ff_celt_hadamard_order
	.no_dead_strip	_celt_deinterleave_hadamard
.subsections_via_symbols
