	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function resample
_resample:                              ## @resample
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
                                        ## kill: def $r8d killed $r8d def $r8
	movl	%edx, %r10d
	movl	%edx, %r11d
	xorl	%eax, %eax
	subl	%r9d, %r11d
	jle	LBB0_4
## %bb.1:
	cmpl	$4, %r8d
	jl	LBB0_20
## %bb.2:
	shrl	$2, %r8d
	xorl	%esi, %esi
	cmpl	$1, %r8d
	jne	LBB0_15
## %bb.3:
                                        ## implicit-def: $eax
	xorl	%r11d, %r11d
	jmp	LBB0_17
LBB0_4:
	cmpl	$4, %r8d
	jl	LBB0_20
## %bb.5:
	addl	%r10d, %r10d
	shrl	$2, %r8d
	movl	%r10d, %edx
	subl	%r9d, %edx
	cmpl	$1, %r8d
	jne	LBB0_7
## %bb.6:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
LBB0_13:
	testb	$1, %r8b
	je	LBB0_19
## %bb.14:
	movl	%eax, %esi
	movl	(%rdi,%rsi,4), %esi
	movl	%esi, (%rcx,%r14,4)
	notl	%edx
	shrl	$31, %edx
	addl	%edx, %eax
	jmp	LBB0_19
LBB0_15:
	movl	%r8d, %ebx
	andl	$-2, %ebx
	leal	(%r10,%r10), %r14d
	xorl	%r11d, %r11d
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	%esi, %eax
	cltd
	idivl	%r9d
	cltq
	movl	(%rdi,%rax,4), %eax
	movl	%eax, (%rcx,%r11,4)
	leal	(%r10,%rsi), %eax
	cltd
	idivl	%r9d
	movslq	%eax, %rdx
	movl	(%rdi,%rdx,4), %edx
	movl	%edx, 4(%rcx,%r11,4)
	addq	$2, %r11
	addl	%r14d, %esi
	cmpq	%r11, %rbx
	jne	LBB0_16
LBB0_17:
	testb	$1, %r8b
	je	LBB0_19
## %bb.18:
	imull	%r11d, %r10d
	movl	%r10d, %eax
	cltd
	idivl	%r9d
	movslq	%eax, %rdx
	movl	(%rdi,%rdx,4), %edx
	movl	%edx, (%rcx,%r11,4)
LBB0_19:
	shll	$2, %eax
LBB0_20:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	addl	%r11d, %r11d
	movl	%r8d, %r9d
	andl	$-2, %r9d
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	addl	%ebx, %eax
	addl	%esi, %edx
	addq	$2, %r14
	cmpq	%r14, %r9
	je	LBB0_13
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %esi
	movl	(%rdi,%rsi,4), %esi
	movl	%esi, (%rcx,%r14,4)
	movl	%edx, %ebx
	notl	%ebx
	shrl	$31, %ebx
	addl	%eax, %ebx
	movl	%r10d, %esi
	testl	%edx, %edx
	js	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	%r11d, %esi
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	addl	%edx, %esi
	movl	(%rdi,%rbx,4), %eax
	movl	%eax, 4(%rcx,%r14,4)
	movl	%esi, %eax
	notl	%eax
	shrl	$31, %eax
	movl	%r10d, %edx
	testl	%esi, %esi
	js	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%r11d, %edx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_RESAMPLER_SPEEX,8,3            ## @RESAMPLER_SPEEX
	.comm	_RESAMPLER_SRC,8,3              ## @RESAMPLER_SRC
	.comm	_Resample,8,3                   ## @Resample
	.comm	_ResampleQuality,4,2            ## @ResampleQuality
	.comm	__dest,8,3                      ## @_dest
	.comm	__dest_len,4,2                  ## @_dest_len
	.comm	__src,8,3                       ## @_src
	.comm	__src_len,4,2                   ## @_src_len
	.comm	_error,4,2                      ## @error
	.comm	_spx_state,8,3                  ## @spx_state
	.comm	_src_data,40,3                  ## @src_data
	.comm	_src_state,8,3                  ## @src_state
	.no_dead_strip	_resample
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function resample
_resample:                              ; @resample
	.cfi_startproc
; %bb.0:
	subs	w10, w2, w5
	b.le	LBB0_5
; %bb.1:
	cmp	w4, #4
	b.lt	LBB0_9
; %bb.2:
	mov	w8, #0
	lsr	w9, w4, #2
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sdiv	w10, w8, w5
	ldr	w11, [x0, w10, sxtw #2]
	str	w11, [x3], #4
	add	w8, w8, w2
	subs	x9, x9, #1
	b.ne	LBB0_3
; %bb.4:
	lsl	w0, w10, #2
	ret
LBB0_5:
	cmp	w4, #4
	b.lt	LBB0_9
; %bb.6:
	mov	w8, #0
	lsl	w9, w2, #1
	lsl	w10, w10, #1
	lsr	w11, w4, #2
	sub	w12, w9, w5
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x0, w8, uxtw #2]
	str	w13, [x3], #4
	mvn	w13, w12
	add	w8, w8, w13, lsr #31
	cmp	w12, #0
	csel	w13, w9, w10, lt
	add	w12, w13, w12
	subs	x11, x11, #1
	b.ne	LBB0_7
; %bb.8:
	lsl	w0, w8, #2
	ret
LBB0_9:
	mov	w0, #0
	ret
	.cfi_endproc
                                        ; -- End function
	.comm	_RESAMPLER_SPEEX,8,3            ; @RESAMPLER_SPEEX
	.comm	_RESAMPLER_SRC,8,3              ; @RESAMPLER_SRC
	.comm	_Resample,8,3                   ; @Resample
	.comm	_ResampleQuality,4,2            ; @ResampleQuality
	.comm	__dest,8,3                      ; @_dest
	.comm	__dest_len,4,2                  ; @_dest_len
	.comm	__src,8,3                       ; @_src
	.comm	__src_len,4,2                   ; @_src_len
	.comm	_error,4,2                      ; @error
	.comm	_spx_state,8,3                  ; @spx_state
	.comm	_src_data,40,3                  ; @src_data
	.comm	_src_state,8,3                  ; @src_state
	.no_dead_strip	_resample
.subsections_via_symbols
