	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_speex_resampler_init_frac      ## -- Begin function speex_resampler_init_frac
	.p2align	4, 0x90
_speex_resampler_init_frac:             ## @speex_resampler_init_frac
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	16(%rbp), %rbx
	cmpl	$11, %r9d
	jb	LBB0_3
## %bb.1:
	xorl	%r13d, %r13d
	testq	%rbx, %rbx
	je	LBB0_20
## %bb.2:
	movq	_RESAMPLER_ERR_INVALID_ARG@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_3:
	movl	%r9d, %r14d
	movl	%edi, %r15d
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%r8d, -56(%rbp)                 ## 4-byte Spill
	movl	$136, %edi
	callq	_speex_alloc
	movq	%rax, %r13
	movl	$0, (%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 96(%rax)
	movups	%xmm0, 112(%rax)
	movq	$0, 128(%rax)
	movabsq	$4575657225703391231, %rax      ## imm = 0x3F800000FFFFFFFF
	movq	%rax, 4(%r13)
	movups	%xmm0, 56(%r13)
	movups	%xmm0, 72(%r13)
	movq	$0, 88(%r13)
	movl	%r15d, 12(%r13)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 16(%r13)
	movl	$160, 24(%r13)
	leal	(,%r15,4), %r12d
	movl	%r12d, %edi
	callq	_speex_alloc
	movq	%rax, 48(%r13)
	movl	%r12d, %edi
	callq	_speex_alloc
	movq	%rax, 32(%r13)
	movl	%r12d, %edi
	callq	_speex_alloc
	movq	%rax, 40(%r13)
	testl	%r15d, %r15d
	jle	LBB0_17
## %bb.4:
	movq	32(%r13), %rcx
	movq	48(%r13), %rdx
	movl	%r15d, %r9d
	xorl	%edi, %edi
	cmpl	$4, %r15d
	jb	LBB0_13
## %bb.5:
	movq	%rax, %rsi
	subq	%rcx, %rsi
	cmpq	$16, %rsi
	jb	LBB0_13
## %bb.6:
	movl	%r9d, %edi
	andl	$-4, %edi
	leaq	-4(%rdi), %rsi
	movq	%rsi, %r8
	shrq	$2, %r8
	incq	%r8
	movq	%rbx, %r10
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.8:
	movq	%r8, %rbx
	andq	$-2, %rbx
	xorl	%esi, %esi
	xorps	%xmm0, %xmm0
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movups	%xmm0, (%rdx,%rsi,8)
	movups	%xmm0, 16(%rdx,%rsi,8)
	movups	%xmm0, (%rcx,%rsi,4)
	movups	%xmm0, (%rax,%rsi,4)
	movups	%xmm0, 32(%rdx,%rsi,8)
	movups	%xmm0, 48(%rdx,%rsi,8)
	movups	%xmm0, 16(%rcx,%rsi,4)
	movups	%xmm0, 16(%rax,%rsi,4)
	addq	$8, %rsi
	addq	$-2, %rbx
	jne	LBB0_9
	jmp	LBB0_10
LBB0_7:
	xorl	%esi, %esi
LBB0_10:
	testb	$1, %r8b
	movq	%r10, %rbx
	je	LBB0_12
## %bb.11:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rdx,%rsi,8)
	movups	%xmm0, 16(%rdx,%rsi,8)
	movups	%xmm0, (%rcx,%rsi,4)
	movups	%xmm0, (%rax,%rsi,4)
LBB0_12:
	cmpq	%r9, %rdi
	je	LBB0_17
LBB0_13:
	movq	%rdi, %rsi
	notq	%rsi
	testb	$1, %r9b
	je	LBB0_15
## %bb.14:
	movq	$0, (%rdx,%rdi,8)
	movl	$0, (%rcx,%rdi,4)
	movl	$0, (%rax,%rdi,4)
	orq	$1, %rdi
LBB0_15:
	addq	%r9, %rsi
	je	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	$0, (%rdx,%rdi,8)
	movl	$0, (%rcx,%rdi,4)
	movl	$0, (%rax,%rdi,4)
	movq	$0, 8(%rdx,%rdi,8)
	movl	$0, 4(%rcx,%rdi,4)
	movl	$0, 4(%rax,%rdi,4)
	addq	$2, %rdi
	cmpq	%rdi, %r9
	jne	LBB0_16
LBB0_17:
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_speex_resampler_set_quality
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	callq	_speex_resampler_set_rate_frac
	movq	%r13, %rdi
	callq	_update_filter
	movl	$1, (%r13)
	testq	%rbx, %rbx
	je	LBB0_20
## %bb.18:
	movq	_RESAMPLER_ERR_SUCCESS@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_20:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RESAMPLER_ERR_INVALID_ARG,4,2  ## @RESAMPLER_ERR_INVALID_ARG
	.comm	_RESAMPLER_ERR_SUCCESS,4,2      ## @RESAMPLER_ERR_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_speex_resampler_init_frac      ; -- Begin function speex_resampler_init_frac
	.p2align	2
_speex_resampler_init_frac:             ; @speex_resampler_init_frac
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x6
	cmp	w5, #11
	b.lo	LBB0_3
; %bb.1:
	mov	x20, #0
	cbz	x19, LBB0_14
; %bb.2:
Lloh0:
	adrp	x8, _RESAMPLER_ERR_INVALID_ARG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RESAMPLER_ERR_INVALID_ARG@GOTPAGEOFF]
	b	LBB0_13
LBB0_3:
	mov	x25, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x26, x0
	mov	w0, #136
	bl	_speex_alloc
	mov	x20, x0
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x0, #96]
	str	xzr, [x0, #128]
	movi	d1, #0xffffffff00000000
	str	d1, [x0]
	stur	q0, [x0, #56]
	stur	q0, [x0, #72]
	str	xzr, [x0, #88]
	mov	w8, #1065353216
	stp	w8, w26, [x0, #8]
	movi.2s	v0, #1
	mov	w8, #160
	str	w8, [x0, #24]
	lsl	w27, w26, #2
	str	d0, [x0, #16]
	mov	x0, x27
	bl	_speex_alloc
	str	x0, [x20, #48]
	mov	x0, x27
	bl	_speex_alloc
	str	x0, [x20, #32]
	mov	x0, x27
	bl	_speex_alloc
	str	x0, [x20, #40]
	cmp	w26, #1
	b.lt	LBB0_11
; %bb.4:
	mov	x8, #0
	ldr	x10, [x20, #48]
	ldr	x11, [x20, #32]
	mov	w9, w26
	cmp	w26, #8
	b.lo	LBB0_9
; %bb.5:
	sub	x12, x0, x11
	cmp	x12, #32
	b.lo	LBB0_9
; %bb.6:
	and	x8, x9, #0xfffffff8
	add	x12, x0, #16
	add	x13, x10, #32
	add	x14, x11, #16
	movi.2d	v0, #0000000000000000
	mov	x15, x8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	stp	q0, q0, [x13, #-32]
	stur	d0, [x14, #-16]
	stur	d0, [x14, #-8]
	str	d0, [x14]
	str	d0, [x14, #8]
	stur	d0, [x12, #-16]
	stur	d0, [x12, #-8]
	str	d0, [x12]
	str	d0, [x12, #8]
	add	x12, x12, #32
	stp	q0, q0, [x13], #64
	add	x14, x14, #32
	subs	x15, x15, #8
	b.ne	LBB0_7
; %bb.8:
	cmp	x8, x9
	b.eq	LBB0_11
LBB0_9:
	lsl	x13, x8, #2
	add	x12, x0, x13
	add	x11, x11, x13
	add	x10, x10, x8, lsl #3
	sub	x8, x9, x8
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	str	xzr, [x10], #8
	str	wzr, [x11], #4
	str	wzr, [x12], #4
	subs	x8, x8, #1
	b.ne	LBB0_10
LBB0_11:
	mov	x0, x20
	mov	x1, x25
	bl	_speex_resampler_set_quality
	mov	x0, x20
	mov	x1, x24
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	bl	_speex_resampler_set_rate_frac
	mov	x0, x20
	bl	_update_filter
	mov	w8, #1
	str	w8, [x20]
	cbz	x19, LBB0_14
; %bb.12:
Lloh2:
	adrp	x8, _RESAMPLER_ERR_SUCCESS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RESAMPLER_ERR_SUCCESS@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_14:
	mov	x0, x20
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_RESAMPLER_ERR_INVALID_ARG,4,2  ; @RESAMPLER_ERR_INVALID_ARG
	.comm	_RESAMPLER_ERR_SUCCESS,4,2      ; @RESAMPLER_ERR_SUCCESS
.subsections_via_symbols
