	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_resam_all
_read_resam_all:                        ## @read_resam_all
	.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	(%rdi), %r11d
	movslq	4(%rdi), %r9
	movsd	8(%rdi), %xmm0                  ## xmm0 = mem[0],zero
	cmpl	%r9d, %r11d
	jne	LBB0_2
## %bb.1:
	movq	_filter_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	mulsd	(%rax), %xmm0
	jmp	LBB0_17
LBB0_2:
	xorpd	%xmm1, %xmm1
	cmpl	%r11d, %r9d
	jge	LBB0_10
## %bb.3:
	movq	_filter_size@GOTPCREL(%rip), %rax
	movslq	(%rax), %r8
	cmpl	%r8d, %r11d
	jge	LBB0_9
## %bb.4:
	movslq	%r11d, %rdx
	movq	16(%rdi), %r10
	movq	24(%rdi), %r14
	movq	_filter_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	32(%rdi), %rsi
	movl	%r8d, %ebx
	subl	%r11d, %ebx
	movq	%rdx, %r11
	notq	%r11
	testb	$1, %bl
	jne	LBB0_6
## %bb.5:
	xorpd	%xmm1, %xmm1
	addq	%r8, %r11
	jne	LBB0_8
	jmp	LBB0_9
LBB0_6:
	movsd	(%r10,%rdx,8), %xmm2            ## xmm2 = mem[0],zero
	subsd	%xmm2, %xmm0
	movq	%r14, %rbx
	subq	(%rsi,%rdx,8), %rbx
	mulsd	(%rax,%rbx,8), %xmm0
	xorpd	%xmm1, %xmm1
	addsd	%xmm0, %xmm1
	incq	%rdx
	movapd	%xmm2, %xmm0
	addq	%r8, %r11
	je	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movapd	%xmm0, %xmm2
	movsd	(%r10,%rdx,8), %xmm3            ## xmm3 = mem[0],zero
	movsd	8(%r10,%rdx,8), %xmm0           ## xmm0 = mem[0],zero
	movq	%r14, %rcx
	subq	(%rsi,%rdx,8), %rcx
	subsd	%xmm3, %xmm2
	mulsd	(%rax,%rcx,8), %xmm2
	subsd	%xmm0, %xmm3
	movq	%r14, %rcx
	subq	8(%rsi,%rdx,8), %rcx
	mulsd	(%rax,%rcx,8), %xmm3
	addsd	%xmm1, %xmm2
	movapd	%xmm3, %xmm1
	addsd	%xmm2, %xmm1
	addq	$2, %rdx
	cmpq	%rdx, %r8
	jne	LBB0_8
LBB0_9:
	xorl	%r11d, %r11d
LBB0_10:
	cmpl	%r9d, %r11d
	jge	LBB0_11
## %bb.12:
	movq	16(%rdi), %rdx
	movq	24(%rdi), %rbx
	movq	_filter_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	32(%rdi), %rax
	movslq	%r11d, %rdi
	movl	%r9d, %esi
	subl	%r11d, %esi
	movq	%rdi, %r8
	notq	%r8
	testb	$1, %sil
	je	LBB0_14
## %bb.13:
	movsd	(%rdx,%rdi,8), %xmm2            ## xmm2 = mem[0],zero
	subsd	%xmm2, %xmm0
	movq	%rbx, %rsi
	subq	(%rax,%rdi,8), %rsi
	mulsd	(%rcx,%rsi,8), %xmm0
	addsd	%xmm0, %xmm1
	incq	%rdi
	movapd	%xmm2, %xmm0
LBB0_14:
	addq	%r9, %r8
	je	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movapd	%xmm0, %xmm2
	movsd	(%rdx,%rdi,8), %xmm3            ## xmm3 = mem[0],zero
	movsd	8(%rdx,%rdi,8), %xmm0           ## xmm0 = mem[0],zero
	movq	%rbx, %rsi
	subq	(%rax,%rdi,8), %rsi
	subsd	%xmm3, %xmm2
	mulsd	(%rcx,%rsi,8), %xmm2
	subsd	%xmm0, %xmm3
	movq	%rbx, %rsi
	subq	8(%rax,%rdi,8), %rsi
	mulsd	(%rcx,%rsi,8), %xmm3
	addsd	%xmm1, %xmm2
	movapd	%xmm3, %xmm1
	addsd	%xmm2, %xmm1
	addq	$2, %rdi
	cmpq	%rdi, %r9
	jne	LBB0_15
	jmp	LBB0_16
LBB0_11:
	movq	_filter_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
LBB0_16:
	mulsd	(%rcx), %xmm0
	addsd	%xmm1, %xmm0
LBB0_17:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_filter_data,8,3                ## @filter_data
	.comm	_filter_size,4,2                ## @filter_size
	.no_dead_strip	_read_resam_all
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_resam_all
_read_resam_all:                        ; @read_resam_all
	.cfi_startproc
; %bb.0:
	ldp	w13, w8, [x0]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	ldr	d0, [x0, #8]
	cmp	w13, w8
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _filter_data@GOTPAGE
Lloh1:
	ldr	x8, [x8, _filter_data@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	d1, [x8]
	fmul	d0, d0, d1
	ret
LBB0_2:
	movi	d1, #0000000000000000
	cmp	w8, w13
	b.ge	LBB0_12
; %bb.3:
Lloh3:
	adrp	x9, _filter_size@GOTPAGE
Lloh4:
	ldr	x9, [x9, _filter_size@GOTPAGEOFF]
Lloh5:
	ldrsw	x11, [x9]
	cmp	w13, w11
	b.ge	LBB0_11
; %bb.4:
	sxtw	x17, w13
Lloh6:
	adrp	x9, _filter_data@GOTPAGE
Lloh7:
	ldr	x9, [x9, _filter_data@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldp	x12, x10, [x0, #16]
	ldr	x13, [x0, #32]
	sub	x15, x11, x17
	cmp	x15, #4
	b.hs	LBB0_6
; %bb.5:
	movi	d1, #0000000000000000
	mov	x14, x17
	b	LBB0_9
LBB0_6:
	and	x16, x15, #0xfffffffffffffffc
	add	x14, x16, x17
	lsl	x17, x17, #3
	add	x1, x17, #16
	add	x17, x12, x1
	add	x1, x13, x1
	movi	d1, #0000000000000000
	mov	x2, x16
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	d2, d3, [x17, #-16]
	fsub	d4, d0, d2
	ldp	d5, d0, [x17], #32
	fsub	d2, d2, d3
	fsub	d3, d3, d5
	ldp	x3, x4, [x1, #-16]
	ldp	x5, x6, [x1], #32
	sub	x3, x10, x3
	sub	x4, x10, x4
	sub	x5, x10, x5
	sub	x6, x10, x6
	ldr	d6, [x9, x3, lsl #3]
	ldr	d7, [x9, x4, lsl #3]
	ldr	d16, [x9, x5, lsl #3]
	ldr	d17, [x9, x6, lsl #3]
	fsub	d5, d5, d0
	fmul	d4, d4, d6
	fmul	d2, d2, d7
	fmul	d3, d3, d16
	fmul	d5, d5, d17
	fadd	d1, d1, d4
	fadd	d1, d1, d2
	fadd	d1, d1, d3
	fadd	d1, d1, d5
	subs	x2, x2, #4
	b.ne	LBB0_7
; %bb.8:
	cmp	x15, x16
	b.eq	LBB0_11
LBB0_9:
	lsl	x15, x14, #3
	add	x12, x12, x15
	add	x13, x13, x15
	sub	x11, x11, x14
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	fmov	d2, d0
	ldr	d0, [x12], #8
	ldr	x14, [x13], #8
	fsub	d2, d2, d0
	sub	x14, x10, x14
	ldr	d3, [x9, x14, lsl #3]
	fmadd	d1, d2, d3, d1
	subs	x11, x11, #1
	b.ne	LBB0_10
LBB0_11:
	mov	w13, #0
LBB0_12:
	cmp	w13, w8
	b.ge	LBB0_15
; %bb.13:
Lloh9:
	adrp	x9, _filter_data@GOTPAGE
Lloh10:
	ldr	x9, [x9, _filter_data@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ldp	x11, x10, [x0, #16]
	ldr	x12, [x0, #32]
                                        ; kill: def $w13 killed $w13 killed $x13 def $x13
	sxtw	x16, w13
	sub	x14, x8, x16
	cmp	x14, #4
	b.hs	LBB0_16
; %bb.14:
	mov	x13, x16
	b	LBB0_19
LBB0_15:
Lloh12:
	adrp	x8, _filter_data@GOTPAGE
Lloh13:
	ldr	x8, [x8, _filter_data@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x8]
	b	LBB0_21
LBB0_16:
	and	x15, x14, #0xfffffffffffffffc
	add	x13, x15, x16
	lsl	x16, x16, #3
	add	x17, x16, #16
	add	x16, x11, x17
	add	x17, x12, x17
	mov	x0, x15
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldp	d2, d3, [x16, #-16]
	fsub	d4, d0, d2
	ldp	d5, d0, [x16], #32
	fsub	d2, d2, d3
	fsub	d3, d3, d5
	ldp	x1, x2, [x17, #-16]
	ldp	x3, x4, [x17], #32
	sub	x1, x10, x1
	sub	x2, x10, x2
	sub	x3, x10, x3
	sub	x4, x10, x4
	ldr	d6, [x9, x1, lsl #3]
	ldr	d7, [x9, x2, lsl #3]
	ldr	d16, [x9, x3, lsl #3]
	ldr	d17, [x9, x4, lsl #3]
	fsub	d5, d5, d0
	fmul	d4, d4, d6
	fmul	d2, d2, d7
	fmul	d3, d3, d16
	fmul	d5, d5, d17
	fadd	d1, d1, d4
	fadd	d1, d1, d2
	fadd	d1, d1, d3
	fadd	d1, d1, d5
	subs	x0, x0, #4
	b.ne	LBB0_17
; %bb.18:
	cmp	x14, x15
	b.eq	LBB0_21
LBB0_19:
	lsl	x14, x13, #3
	add	x11, x11, x14
	add	x12, x12, x14
	sub	x8, x8, x13
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	fmov	d2, d0
	ldr	d0, [x11], #8
	ldr	x13, [x12], #8
	fsub	d2, d2, d0
	sub	x13, x10, x13
	ldr	d3, [x9, x13, lsl #3]
	fmadd	d1, d2, d3, d1
	subs	x8, x8, #1
	b.ne	LBB0_20
LBB0_21:
	ldr	d2, [x9]
	fmadd	d0, d0, d2, d1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_filter_data,8,3                ; @filter_data
	.comm	_filter_size,4,2                ; @filter_size
	.no_dead_strip	_read_resam_all
.subsections_via_symbols
