	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function filter_slice
_filter_slice:                          ## @filter_slice
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r9d
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movl	4(%rsi), %esi
	movl	%esi, %eax
	imull	%edx, %eax
	cltd
	idivl	%ecx
	movl	%eax, %r8d
	incl	%r9d
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	imull	%esi, %r9d
	movl	%r9d, %eax
	cltd
	idivl	%ecx
	cmpl	%eax, %r8d
	jge	LBB0_11
## %bb.1:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	40(%rdi), %rdx
	movl	8(%rdi), %r14d
	movl	12(%rdi), %r15d
	movslq	16(%rdi), %rsi
	movq	(%rdx), %rbx
	movq	8(%rdx), %rdx
	movl	(%rbx,%rsi,4), %ebx
	movl	%ebx, -68(%rbp)                 ## 4-byte Spill
	movq	(%rdx,%rsi,8), %rdx
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movq	32(%rdi), %rdx
	movq	(%rdx), %rbx
	movq	8(%rdx), %r9
	movslq	(%rbx,%rsi,4), %rcx
	movslq	%r8d, %rdx
	movq	%rcx, %rbx
	imulq	%rdx, %rbx
	shlq	$2, %rbx
	addq	(%r9,%rsi,8), %rbx
	movl	(%rdi), %edi
	leal	-1(%rdi), %r8d
	decl	-44(%rbp)                       ## 4-byte Folded Spill
	movslq	%edi, %rsi
	cltq
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	%r14d, %eax
	negl	%eax
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	imulq	%rdx, %rsi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	shlq	$2, %rcx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	addq	-96(%rbp), %rdx                 ## 8-byte Folded Reload
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	addq	-104(%rbp), %rbx                ## 8-byte Folded Reload
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	cmpq	-88(%rbp), %rcx                 ## 8-byte Folded Reload
	je	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	testl	%edi, %edi
	jle	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, %esi
	subl	%r15d, %esi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(,%rcx,4), %r11
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	addq	24(%rdx), %r11
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=2
	movl	%r12d, (%rbx,%r13,4)
	incq	%r13
	cmpq	%r13, %rdi
	je	LBB0_10
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r11,%r13,4), %r9d
	leal	(%rax,%r13), %r10d
	imull	%r9d, %r10d
	addl	$8388608, %r10d                 ## imm = 0x800000
	sarl	$24, %r10d
	addl	%r14d, %r10d
	xorl	%r12d, %r12d
	testl	%r10d, %r10d
	jle	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpl	%r8d, %r10d
	jge	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	imull	%esi, %r9d
	addl	$8388608, %r9d                  ## imm = 0x800000
	sarl	$24, %r9d
	addl	%r15d, %r9d
	testl	%r9d, %r9d
	jle	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpl	-44(%rbp), %r9d                 ## 4-byte Folded Reload
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	imull	-68(%rbp), %r9d                 ## 4-byte Folded Reload
	addl	%r10d, %r9d
	movslq	%r9d, %rdx
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movl	(%rcx,%rdx,4), %r12d
	jmp	LBB0_9
LBB0_11:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_filter_slice
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function filter_slice
_filter_slice:                          ; @filter_slice
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	.cfi_offset w19, -8
	.cfi_offset w20, -16
	.cfi_offset w21, -24
	.cfi_offset w22, -32
	ldr	w15, [x1, #4]
	mul	w8, w15, w2
	sdiv	w4, w8, w3
	add	w8, w15, w8
	sdiv	w0, w8, w3
	cmp	w4, w0
	b.ge	LBB0_10
; %bb.1:
	ldp	w8, w9, [x1, #8]
	ldrsw	x12, [x1, #16]
	ldp	x13, x10, [x1, #32]
	ldp	x11, x14, [x10]
	ldr	w10, [x11, x12, lsl #2]
	ldr	x11, [x14, x12, lsl #3]
	ldp	x13, x14, [x13]
	ldr	x14, [x14, x12, lsl #3]
	ldrsw	x5, [x13, x12, lsl #2]
	ldr	w12, [x1]
	mul	w13, w5, w4
	add	x13, x14, w13, sxtw #2
	sub	w14, w12, #1
	sub	w15, w15, #1
	sxtw	x16, w4
	sxtw	x17, w12
	sxtw	x0, w0
	neg	w2, w8
	smull	x3, w12, w4
	lsl	x4, x5, #2
	orr	w5, wzr, #0x800000
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x16, x16, #1
	add	x3, x3, x17
	add	x13, x13, x4
	cmp	x16, x0
	b.eq	LBB0_10
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	cmp	w17, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x6, #0
	ldr	x19, [x1, #24]
	sub	w7, w16, w9
	add	x19, x19, x3, lsl #2
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	mov	w20, #0
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	str	w20, [x13, x6, lsl #2]
	add	x6, x6, #1
	cmp	x12, x6
	b.eq	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w21, [x19, x6, lsl #2]
	add	w20, w2, w6
	madd	w20, w21, w20, w5
	add	w20, w8, w20, asr #24
	cmp	w20, #1
	b.lt	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	madd	w21, w21, w7, w5
	add	w21, w9, w21, asr #24
	cmp	w20, w14
	ccmp	w21, #1, #8, lt
	ccmp	w21, w15, #0, ge
	b.ge	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	madd	w20, w21, w10, w20
	ldr	w20, [x11, w20, sxtw #2]
	b	LBB0_6
LBB0_10:
	mov	w0, #0
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_filter_slice
.subsections_via_symbols
