	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cascade_filter_fn
_cascade_filter_fn:                     ## @cascade_filter_fn
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	(%r8), %r12
	xorl	%r15d, %r15d
	testq	%r12, %r12
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	je	LBB0_8
## %bb.1:
	movq	%rsi, %r13
	movq	%rdi, %rbx
	xorl	%r15d, %r15d
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	$-1, %r14d
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	subq	%r15, %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rax
	movq	-56(%rbp), %rcx
	subq	%rcx, %rax
	movq	%rcx, (%rdx)
	addq	%rax, %r13
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, -48(%rbp)
	movq	(%rbx), %rsi
	movq	8(%rbx), %rax
	cmpq	%rsi, %rax
	ja	LBB0_4
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=2
	testq	%r13, %r13
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=2
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	testq	%rax, %rax
	jne	LBB0_13
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	$0, -56(%rbp)
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	$8, -48(%rbp)
	movl	28(%rbx), %edi
	movq	16(%rbx), %rcx
	movq	%r13, %rsi
	leaq	-56(%rbp), %rdx
	leaq	-48(%rbp), %r8
	callq	_stream_filter
	testq	%rax, %rax
	jne	LBB0_9
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=2
	movq	-48(%rbp), %rax
	movl	$8, %ecx
	subq	%rax, %rcx
	movq	%rcx, 8(%rbx)
	movq	$0, (%rbx)
	testq	%r13, %r13
	jne	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=2
	cmpq	$8, %rax
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=2
	xorl	%r13d, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	subq	%rsi, %rax
	movq	%rax, -56(%rbp)
	movl	24(%rbx), %edi
	addq	16(%rbx), %rsi
	addq	-72(%rbp), %r15                 ## 8-byte Folded Reload
	leaq	-56(%rbp), %rdx
	movq	%r15, %rcx
	leaq	-48(%rbp), %r8
	callq	_stream_filter
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rax
	subq	-56(%rbp), %rax
	movq	%rax, (%rbx)
	movq	-48(%rbp), %rax
	movq	-64(%rbp), %r12                 ## 8-byte Reload
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %r15
	subq	%rax, %r15
	cmpq	%r15, %r12
	ja	LBB0_2
	jmp	LBB0_8
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, -56(%rbp)
	movq	%r12, -48(%rbp)
	movl	24(%rbx), %edi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r15), %rcx
	xorl	%esi, %esi
	leaq	-56(%rbp), %rdx
	leaq	-48(%rbp), %r8
	callq	_stream_filter
	testq	%rax, %rax
	jne	LBB0_9
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax
	cmpq	%r12, %rax
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_8
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r13d, %r13d
	jmp	LBB0_7
LBB0_8:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	subq	%r15, (%rax)
	xorl	%r14d, %r14d
LBB0_9:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	$-1, %r14d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_cascade_filter_fn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cascade_filter_fn
_cascade_filter_fn:                     ; @cascade_filter_fn
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x4
	ldr	x24, [x4]
	cbz	x24, LBB0_18
; %bb.1:
	mov	x20, x3
	mov	x21, x2
	mov	x23, x1
	mov	x22, x0
	mov	x26, #0
	mov	w25, #8
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	sub	x27, x24, x26
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=2
	ldr	x8, [x21]
	ldr	x9, [sp, #8]
	str	x9, [x21]
	sub	x8, x8, x9
	add	x23, x23, x8
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	x27, [sp]
	ldp	x8, x9, [x22]
	cmp	x9, x8
	b.hi	LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	cbz	x23, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	x8, [x21]
	str	x8, [sp, #8]
	cbnz	x8, LBB0_8
	b	LBB0_19
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=2
	str	xzr, [sp, #8]
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=2
	str	x25, [sp]
	ldr	w0, [x22, #28]
	ldr	x3, [x22, #16]
	add	x2, sp, #8
	mov	x4, sp
	mov	x1, x23
	bl	_stream_filter
	cbnz	x0, LBB0_20
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	x8, [sp]
	sub	x9, x25, x8
	stp	xzr, x9, [x22]
	cbnz	x23, LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=2
	cmp	x8, #8
	b.eq	LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=2
	mov	x23, #0
	b	LBB0_4
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x9, x9, x8
	str	x9, [sp, #8]
	ldr	w0, [x22, #24]
	ldr	x9, [x22, #16]
	add	x1, x9, x8
	add	x3, x20, x26
	add	x2, sp, #8
	mov	x4, sp
	bl	_stream_filter
	cbnz	x0, LBB0_20
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x22, #8]
	ldr	x9, [sp, #8]
	sub	x8, x8, x9
	str	x8, [x22]
	ldr	x8, [sp]
LBB0_14:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x26, x24, x8
	cmp	x24, x26
	b.hi	LBB0_2
	b	LBB0_19
LBB0_15:                                ;   in Loop: Header=BB0_2 Depth=1
	stp	x27, xzr, [sp]
	add	x3, x20, x26
	ldr	w0, [x22, #24]
	add	x2, sp, #8
	mov	x4, sp
	mov	x1, #0
	bl	_stream_filter
	cbnz	x0, LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp]
	cmp	x8, x27
	b.eq	LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x23, #0
	b	LBB0_14
LBB0_18:
	mov	x26, #0
LBB0_19:
	mov	w0, #0
	ldr	x8, [x19]
	sub	x8, x8, x26
	str	x8, [x19]
	b	LBB0_21
LBB0_20:
	mov	w0, #-1
LBB0_21:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_cascade_filter_fn
.subsections_via_symbols
