	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function resampler_basic_direct_single
_resampler_basic_direct_single:         ## @resampler_basic_direct_single
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %r10
	movq	16(%rdi), %rbx
	movl	(%r10,%rsi,4), %r14d
	movq	(%rbx,%rsi,8), %r15
	xorl	%eax, %eax
	cmpl	(%rcx), %r14d
	jge	LBB0_16
## %bb.1:
	movq	%r8, %r12
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	24(%rdi), %rax
	movl	36(%rdi), %esi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	48(%rdi), %rsi
	movq	%rsi, -152(%rbp)                ## 8-byte Spill
	movslq	32(%rdi), %rsi
	movq	%rsi, -144(%rbp)                ## 8-byte Spill
	movslq	(%rdi), %rsi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movslq	40(%rdi), %rdi
	movq	%rdi, -128(%rbp)                ## 8-byte Spill
	leaq	-1(%rsi), %rdi
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	shrq	$2, %rdi
	incq	%rdi
	movl	%edi, %ebx
	andl	$3, %ebx
	andq	$-4, %rdi
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	addq	$48, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	leaq	48(%rdx), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	shlq	$4, %rbx
	xorl	%r13d, %r13d
	movq	%r9, -168(%rbp)                 ## 8-byte Spill
	movq	%rcx, -160(%rbp)                ## 8-byte Spill
	movq	%rsi, -136(%rbp)                ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorps	%xmm0, %xmm0
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$15, %edi
	callq	_PSHR32
	leaq	1(%r13), %rax
	imulq	-144(%rbp), %r13                ## 8-byte Folded Reload
	addl	-44(%rbp), %r14d                ## 4-byte Folded Reload
	addq	-128(%rbp), %r15                ## 8-byte Folded Reload
	movq	-152(%rbp), %rdx                ## 8-byte Reload
	cmpq	%rdx, %r15
	movl	$0, %ecx
	cmovaeq	%rdx, %rcx
	sbbl	$-1, %r14d
	movss	%xmm0, (%r12,%r13,4)
	subq	%rcx, %r15
	movq	%rax, %r13
	movq	-160(%rbp), %rcx                ## 8-byte Reload
	cmpl	(%rcx), %r14d
	movq	-168(%rbp), %r9                 ## 8-byte Reload
	movq	-136(%rbp), %rsi                ## 8-byte Reload
	jge	LBB0_15
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
                                        ##     Child Loop BB0_12 Depth 2
	movslq	(%r9), %rax
	cmpq	%rax, %r13
	jge	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%esi, %esi
	jle	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rax
	imulq	%rsi, %rax
	movslq	%r14d, %r8
	cmpq	$12, -120(%rbp)                 ## 8-byte Folded Reload
	jae	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	xorps	%xmm0, %xmm0
	xorl	%edx, %edx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rsi
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%r8,4), %rdi
	xorps	%xmm0, %xmm0
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movups	-48(%rsi,%rdx,4), %xmm1
	movups	-32(%rsi,%rdx,4), %xmm2
	movups	-16(%rsi,%rdx,4), %xmm3
	movups	(%rsi,%rdx,4), %xmm4
	movups	-48(%rdi,%rdx,4), %xmm5
	mulps	%xmm1, %xmm5
	addps	%xmm0, %xmm5
	movups	-32(%rdi,%rdx,4), %xmm0
	mulps	%xmm2, %xmm0
	addps	%xmm5, %xmm0
	movups	-16(%rdi,%rdx,4), %xmm1
	mulps	%xmm3, %xmm1
	addps	%xmm0, %xmm1
	movups	(%rdi,%rdx,4), %xmm0
	mulps	%xmm4, %xmm0
	addps	%xmm1, %xmm0
	addq	$16, %rdx
	addq	$-4, %rcx
	jne	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, -112(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	addq	%rdx, %r8
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%r8,4), %rcx
	addq	%rdx, %rax
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rax,4), %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movups	(%rax,%rdx), %xmm1
	movups	(%rcx,%rdx), %xmm2
	mulps	%xmm1, %xmm2
	addps	%xmm2, %xmm0
	addq	$16, %rdx
	cmpq	%rdx, %rbx
	jne	LBB0_12
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movshdup	%xmm0, %xmm1                    ## xmm1 = xmm0[1,1,3,3]
	addss	%xmm0, %xmm1
	movaps	%xmm0, %xmm2
	unpckhpd	%xmm0, %xmm2                    ## xmm2 = xmm2[1],xmm0[1]
	addss	%xmm1, %xmm2
	shufps	$255, %xmm0, %xmm0              ## xmm0 = xmm0[3,3,3,3]
	addss	%xmm2, %xmm0
	jmp	LBB0_14
LBB0_3:
	movq	%r13, %rax
LBB0_15:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	8(%rdx), %r10
	movq	16(%rdx), %rbx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
LBB0_16:
	movl	%r14d, (%r10,%rsi,4)
	movq	%r15, (%rbx,%rsi,8)
                                        ## kill: def $eax killed $eax killed $rax
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_resampler_basic_direct_single
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function resampler_basic_direct_single
_resampler_basic_direct_single:         ; @resampler_basic_direct_single
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	ldp	x8, x9, [x0, #8]
	ldr	w25, [x8, x1, lsl #2]
	ldr	x24, [x9, x1, lsl #3]
	ldr	w10, [x3]
	cmp	w25, w10
	b.ge	LBB0_9
; %bb.1:
	mov	x23, x3
	stp	x0, x1, [sp, #8]                ; 16-byte Folded Spill
	mov	x22, #0
	ldr	x8, [x0, #24]
	ldr	x26, [x0, #48]
	ldp	w28, w9, [x0, #32]
                                        ; kill: def $w28 killed $w28 def $x28
	sxtw	x28, w28
	str	w9, [sp, #44]                   ; 4-byte Folded Spill
	ldrsw	x19, [x0]
	ldrsw	x20, [x0, #40]
	add	x9, x8, #8
	add	x8, x2, #8
	stp	x8, x9, [sp, #24]               ; 16-byte Folded Spill
	mov	x21, x4
	mov	x27, x5
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	movi	d0, #0000000000000000
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #15
	bl	_PSHR32
	add	x0, x22, #1
	mul	x8, x22, x28
	mov	x9, x21
	str	s0, [x21, x8, lsl #2]
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	add	w8, w25, w8
	add	x9, x24, x20
	cmp	x9, x26
	csel	x10, xzr, x26, lo
	cinc	w25, w8, hs
	sub	x24, x9, x10
	ldr	w8, [x23]
	mov	x22, x0
	cmp	w25, w8
	mov	x5, x27
	b.ge	LBB0_11
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldrsw	x8, [x5]
	cmp	x22, x8
	b.ge	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w19, #1
	b.lt	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, #0
	sxtw	x10, w25
	mul	x9, x24, x19
	ldr	x11, [sp, #32]                  ; 8-byte Folded Reload
	add	x9, x11, x9, lsl #2
	ldr	x11, [sp, #24]                  ; 8-byte Folded Reload
	add	x10, x11, x10, lsl #2
	movi	d0, #0000000000000000
	movi	d1, #0000000000000000
	movi	d2, #0000000000000000
	movi	d3, #0000000000000000
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	s4, s5, [x9, #-8]
	ldp	s6, s7, [x10, #-8]
	fmadd	s3, s4, s6, s3
	fmadd	s2, s5, s7, s2
	ldp	s4, s5, [x9], #16
	ldp	s6, s7, [x10], #16
	fmadd	s1, s4, s6, s1
	fmadd	s0, s5, s7, s0
	add	x8, x8, #4
	cmp	x8, x19
	b.lt	LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	fadd	s2, s3, s2
	fadd	s1, s2, s1
	fadd	s0, s1, s0
	b	LBB0_3
LBB0_9:
	mov	w0, #0
	b	LBB0_12
LBB0_10:
	mov	x0, x22
LBB0_11:
	ldp	x9, x1, [sp, #8]                ; 16-byte Folded Reload
	ldp	x8, x9, [x9, #8]
LBB0_12:
	str	w25, [x8, x1, lsl #2]
	str	x24, [x9, x1, lsl #3]
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_resampler_basic_direct_single
.subsections_via_symbols
