	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function speex_resampler_magic
_speex_resampler_magic:                 ## @speex_resampler_magic
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rcx, -64(%rbp)
	movq	(%rdi), %rax
	movq	(%rax,%rsi,8), %rax
	movq	%rax, -56(%rbp)
	movq	8(%rdi), %r13
	movq	32(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movslq	16(%rdi), %r12
	movq	(%rdx), %rcx
	leaq	-56(%rbp), %rdx
	leaq	-64(%rbp), %r8
	callq	_speex_resampler_process_native
	movq	-56(%rbp), %r10
	movq	(%r15), %rcx
	movq	(%rcx,%rbx,8), %rax
	movq	%rax, %rsi
	subq	%r10, %rsi
	movq	%rsi, (%rcx,%rbx,8)
	je	LBB0_13
## %bb.1:
	imulq	%rbx, %r13
	decq	%r12
	movq	-56(%rbp), %rdx
	cmpq	$8, %rsi
	jb	LBB0_2
## %bb.3:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%r13,4), %rbx
	leaq	(%rbx,%r12,4), %rcx
	leaq	(%rdx,%r12), %rdi
	leaq	(%rbx,%rdi,4), %rdi
	subq	%rdi, %rcx
	cmpq	$32, %rcx
	jae	LBB0_5
LBB0_2:
	xorl	%r11d, %r11d
LBB0_11:
	subq	%r11, %rax
	subq	%r10, %rax
	leaq	(%r11,%r13), %rcx
	addq	%r12, %rcx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	leaq	(%rsi,%rcx,4), %rcx
	addq	%r11, %rdx
	addq	%r13, %rdx
	addq	%r12, %rdx
	leaq	(%rsi,%rdx,4), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rsi,4), %edi
	movl	%edi, (%rcx,%rsi,4)
	incq	%rsi
	cmpq	%rsi, %rax
	jne	LBB0_12
LBB0_13:
	movq	-64(%rbp), %rax
	movq	24(%r15), %rcx
	imulq	%rax, %rcx
	shlq	$2, %rcx
	addq	%rcx, (%r14)
                                        ## kill: def $eax killed $eax killed $rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rsi, %r11
	andq	$-8, %r11
	leaq	-8(%r11), %rcx
	movq	%rcx, %r9
	shrq	$3, %r9
	incq	%r9
	testq	%rcx, %rcx
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_14
## %bb.6:
	movq	%r9, %rcx
	andq	$-2, %rcx
	leaq	(%r12,%r13), %rdi
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	leaq	(%r8,%rdi,4), %rdi
	leaq	(%rdx,%r13), %rbx
	addq	%r12, %rbx
	leaq	(%r8,%rbx,4), %r8
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movups	(%r8,%rbx,4), %xmm0
	movups	16(%r8,%rbx,4), %xmm1
	movups	%xmm0, (%rdi,%rbx,4)
	movups	%xmm1, 16(%rdi,%rbx,4)
	movups	32(%r8,%rbx,4), %xmm0
	movups	48(%r8,%rbx,4), %xmm1
	movups	%xmm0, 32(%rdi,%rbx,4)
	movups	%xmm1, 48(%rdi,%rbx,4)
	addq	$16, %rbx
	addq	$-2, %rcx
	jne	LBB0_7
## %bb.8:
	testb	$1, %r9b
	je	LBB0_10
LBB0_9:
	addq	%r12, %rbx
	leaq	(%rdx,%rbx), %rcx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movups	(%rdi,%rcx,4), %xmm0
	movups	16(%rdi,%rcx,4), %xmm1
	movups	%xmm0, (%rdi,%rbx,4)
	movups	%xmm1, 16(%rdi,%rbx,4)
LBB0_10:
	cmpq	%r11, %rsi
	je	LBB0_13
	jmp	LBB0_11
LBB0_14:
	xorl	%ebx, %ebx
	testb	$1, %r9b
	jne	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_speex_resampler_magic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function speex_resampler_magic
_speex_resampler_magic:                 ; @speex_resampler_magic
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	str	x3, [sp, #8]
	lsl	x25, x1, #3
	ldp	x8, x23, [x0]
	ldr	x8, [x8, x25]
	str	x8, [sp]
	ldr	x22, [x0, #32]
	ldrsw	x24, [x0, #16]
	ldr	x3, [x2]
	mov	x2, sp
	add	x4, sp, #8
	bl	_speex_resampler_process_native
	ldr	x9, [sp]
	ldr	x8, [x20]
	ldr	x11, [x8, x25]
	subs	x13, x11, x9
	str	x13, [x8, x25]
	b.eq	LBB0_6
; %bb.1:
	mul	x8, x23, x21
	sub	x10, x24, #1
	ldr	x12, [sp]
	cmp	x13, #16
	b.lo	LBB0_3
; %bb.2:
	add	x14, x22, x8, lsl #2
	add	x15, x14, x10, lsl #2
	add	x16, x12, x10
	add	x14, x14, x16, lsl #2
	sub	x14, x15, x14
	cmp	x14, #64
	b.hs	LBB0_7
LBB0_3:
	mov	x14, #0
LBB0_4:
	add	x9, x14, x9
	sub	x9, x9, x11
	add	x11, x14, x8
	add	x11, x11, x10
	add	x11, x22, x11, lsl #2
	add	x12, x14, x12
	add	x8, x12, x8
	add	x8, x8, x10
	add	x8, x22, x8, lsl #2
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x8], #4
	str	w10, [x11], #4
	adds	x9, x9, #1
	b.lo	LBB0_5
LBB0_6:
	ldr	x0, [sp, #8]
	ldr	x8, [x20, #24]
	mul	x8, x8, x0
	ldr	x9, [x19]
	add	x8, x9, x8, lsl #2
	str	x8, [x19]
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_7:
	and	x14, x13, #0xfffffffffffffff0
	add	x15, x12, x8
	add	x15, x15, x10
	add	x15, x22, x15, lsl #2
	add	x15, x15, #32
	add	x16, x8, x10
	add	x16, x22, x16, lsl #2
	add	x16, x16, #32
	mov	x17, x14
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x15, #-32]
	ldp	q2, q3, [x15], #64
	stp	q0, q1, [x16, #-32]
	stp	q2, q3, [x16], #64
	subs	x17, x17, #16
	b.ne	LBB0_8
; %bb.9:
	cmp	x13, x14
	b.eq	LBB0_6
	b	LBB0_4
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_speex_resampler_magic
.subsections_via_symbols
