	.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
	movl	%edx, %r8d
	cmpl	%ecx, %edx
	jge	LBB0_19
## %bb.1:
	testl	%ecx, %ecx
	jle	LBB0_2
## %bb.15:
	movl	%ecx, %r10d
	shrl	%r10d
	movl	%ecx, %r11d
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	xorl	%edx, %edx
	xorl	%r14d, %r14d
	xorl	%r9d, %r9d
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	incq	%rbx
	cmpq	%rbx, %r11
	je	LBB0_3
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	addl	(%rsi,%rbx,4), %edx
	incl	%r14d
	subl	%r8d, %r10d
	jns	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	%edx, %eax
	cltd
	idivl	%r14d
	movslq	%r9d, %rdx
	incl	%r9d
	movl	%eax, (%rdi,%rdx,4)
	addl	%ecx, %r10d
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	jmp	LBB0_18
LBB0_19:
	testl	%r8d, %r8d
	jle	LBB0_27
## %bb.20:
	movl	%r8d, %r9d
	xorl	%edx, %edx
	cmpl	$1, %r8d
	jne	LBB0_22
## %bb.21:
	xorl	%r11d, %r11d
	testb	$1, %r9b
	jne	LBB0_26
	jmp	LBB0_27
LBB0_2:
	xorl	%r9d, %r9d
	xorl	%eax, %eax
LBB0_3:
	cmpl	%r8d, %r9d
	jge	LBB0_27
## %bb.4:
	movslq	%r9d, %rcx
	movslq	%r8d, %r11
	movq	%r11, %r9
	subq	%rcx, %r9
	cmpq	$8, %r9
	jb	LBB0_14
## %bb.5:
	movq	%r9, %r8
	andq	$-8, %r8
	movd	%eax, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%r8), %rdx
	movq	%rdx, %rbx
	shrq	$3, %rbx
	incq	%rbx
	movl	%ebx, %r10d
	andl	$3, %r10d
	cmpq	$24, %rdx
	jae	LBB0_7
## %bb.6:
	xorl	%esi, %esi
	jmp	LBB0_9
LBB0_22:
	movl	%r8d, %eax
	shrl	%eax
	movl	%r9d, %r10d
	andl	$-2, %r10d
	xorl	%r11d, %r11d
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movl	%edx, %ebx
	movl	(%rsi,%rbx,4), %ebx
	movl	%ebx, (%rdi,%r11,4)
	subl	%ecx, %eax
	movl	%eax, %ebx
	sarl	$31, %ebx
	andl	%r8d, %ebx
	addl	%eax, %ebx
                                        ## kill: def $eax killed $eax def $rax
	shrl	$31, %eax
	addl	%edx, %eax
	movl	(%rsi,%rax,4), %edx
	movl	%edx, 4(%rdi,%r11,4)
	subl	%ecx, %ebx
	movl	%ebx, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	movl	%ebx, %eax
	sarl	$31, %eax
	andl	%r8d, %eax
	addl	%ebx, %eax
	addq	$2, %r11
	cmpq	%r11, %r10
	jne	LBB0_23
## %bb.24:
	movl	%edx, %edx
	testb	$1, %r9b
	je	LBB0_27
LBB0_26:
	movl	(%rsi,%rdx,4), %eax
	movl	%eax, (%rdi,%r11,4)
	jmp	LBB0_27
LBB0_7:
	andq	$-4, %rbx
	leaq	(%rdi,%rcx,4), %rdx
	addq	$112, %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, -112(%rdx,%rsi,4)
	movdqu	%xmm0, -96(%rdx,%rsi,4)
	movdqu	%xmm0, -80(%rdx,%rsi,4)
	movdqu	%xmm0, -64(%rdx,%rsi,4)
	movdqu	%xmm0, -48(%rdx,%rsi,4)
	movdqu	%xmm0, -32(%rdx,%rsi,4)
	movdqu	%xmm0, -16(%rdx,%rsi,4)
	movdqu	%xmm0, (%rdx,%rsi,4)
	addq	$32, %rsi
	addq	$-4, %rbx
	jne	LBB0_8
LBB0_9:
	testq	%r10, %r10
	je	LBB0_12
## %bb.10:
	addq	%rcx, %rsi
	leaq	(%rdi,%rsi,4), %rdx
	addq	$16, %rdx
	shlq	$5, %r10
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, -16(%rdx,%rsi)
	movdqu	%xmm0, (%rdx,%rsi)
	addq	$32, %rsi
	cmpq	%rsi, %r10
	jne	LBB0_11
LBB0_12:
	cmpq	%r8, %r9
	je	LBB0_27
## %bb.13:
	addq	%r8, %rcx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	%eax, (%rdi,%rcx,4)
	incq	%rcx
	cmpq	%rcx, %r11
	jne	LBB0_14
LBB0_27:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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:
                                        ; kill: def $w2 killed $w2 def $x2
	cmp	w2, w3
	b.ge	LBB0_6
; %bb.1:
	cmp	w3, #1
	b.lt	LBB0_9
; %bb.2:
	mov	w8, #0
	mov	w13, #0
	mov	w12, #0
	mov	w9, #0
	lsr	w10, w3, #1
	mov	w11, w3
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x1, x1, #4
	subs	x11, x11, #1
	b.eq	LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w14, [x1]
	add	w13, w14, w13
	add	w12, w12, #1
	subs	w10, w10, w2
	b.pl	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sdiv	w8, w13, w12
	str	w8, [x0, w9, sxtw #2]
	add	w9, w9, #1
	add	w10, w10, w3
                                        ; kill: def $w9 killed $w9 def $x9
	mov	w12, #0
	mov	w13, #0
	b	LBB0_3
LBB0_6:
	cmp	w2, #1
	b.lt	LBB0_17
; %bb.7:
	mov	w8, #0
	lsr	w10, w2, #1
	mov	w9, w2
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x1, w8, uxtw #2]
	str	w11, [x0], #4
	sub	w11, w10, w3
	and	w10, w2, w11, asr #31
	add	w10, w10, w11
	add	w8, w8, w11, lsr #31
	subs	x9, x9, #1
	b.ne	LBB0_8
	b	LBB0_17
LBB0_9:
	mov	w9, #0
	mov	w8, #0
LBB0_10:
	cmp	w9, w2
	b.ge	LBB0_17
; %bb.11:
	sxtw	x13, w9
	sxtw	x9, w2
	sub	x11, x9, x13
	mov	x10, x13
	cmp	x11, #16
	b.lo	LBB0_15
; %bb.12:
	and	x12, x11, #0xfffffffffffffff0
	add	x10, x12, x13
	dup.4s	v0, w8
	add	x13, x0, x13, lsl #2
	add	x13, x13, #32
	mov	x14, x12
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	stp	q0, q0, [x13, #-32]
	stp	q0, q0, [x13], #64
	subs	x14, x14, #16
	b.ne	LBB0_13
; %bb.14:
	cmp	x11, x12
	b.eq	LBB0_17
LBB0_15:
	add	x11, x0, x10, lsl #2
	sub	x9, x9, x10
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	str	w8, [x11], #4
	subs	x9, x9, #1
	b.ne	LBB0_16
LBB0_17:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_resample
.subsections_via_symbols
