	.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
	subq	$344, %rsp                      ## imm = 0x158
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -272(%rbp)                ## 4-byte Spill
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -288(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rax
	movq	%rax, -256(%rbp)                ## 8-byte Spill
	cmpl	$0, (%rax)
	jle	LBB0_9
## %bb.1:
	movq	(%rsi), %rax
	movq	%rax, -328(%rbp)                ## 8-byte Spill
	movq	8(%rsi), %rax
	movq	%rax, -320(%rbp)                ## 8-byte Spill
	movq	-288(%rbp), %rax                ## 8-byte Reload
	incl	%eax
	movl	%eax, -268(%rbp)                ## 4-byte Spill
	xorl	%r11d, %r11d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	imull	%r9d, %r8d
	subl	%r12d, %r10d
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%r15, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
                                        ## kill: def $r8d killed $r8d killed $r8
	movl	%r10d, %r9d
	callq	_av_image_copy_plane
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-336(%rbp), %r11                ## 8-byte Reload
	incq	%r11
	movq	-256(%rbp), %rax                ## 8-byte Reload
	movslq	(%rax), %rax
	cmpq	%rax, %r11
	jge	LBB0_9
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	-256(%rbp), %rbx                ## 8-byte Reload
	movslq	4(%rbx), %r9
	movq	8(%rbx), %rax
	movq	16(%rbx), %r10
	movl	(%rax,%r11,4), %r13d
	movq	-328(%rbp), %rcx                ## 8-byte Reload
	movq	(%rcx), %rax
	movq	8(%rcx), %r14
	movslq	(%rax,%r11,4), %rcx
	movq	-320(%rbp), %rdx                ## 8-byte Reload
	movq	(%rdx), %rax
	movq	8(%rdx), %rdx
	movq	%rdx, -264(%rbp)                ## 8-byte Spill
	movslq	(%rax,%r11,4), %rsi
	movl	(%r10,%r11,4), %r15d
	movq	24(%rbx), %rax
	movl	(%rax,%r11,4), %r8d
	movl	%r15d, %eax
	imull	-288(%rbp), %eax                ## 4-byte Folded Reload
	cltd
	movl	-272(%rbp), %r10d               ## 4-byte Reload
	idivl	%r10d
	movl	%eax, %r12d
	movl	%r15d, -244(%rbp)               ## 4-byte Spill
	movl	%r15d, %eax
	imull	-268(%rbp), %eax                ## 4-byte Folded Reload
	cltd
	idivl	%r10d
	movl	%eax, %r10d
	movslq	%r12d, %rdi
	movq	%rdi, %r15
	imulq	%rcx, %r15
	shlq	$2, %r15
	addq	(%r14,%r11,8), %r15
	imulq	%rsi, %rdi
	shlq	$2, %rdi
	movq	%r11, -336(%rbp)                ## 8-byte Spill
	movq	-264(%rbp), %rax                ## 8-byte Reload
	addq	(%rax,%r11,8), %rdi
	movl	%r13d, -248(%rbp)               ## 4-byte Spill
	testl	%r13d, %r13d
	je	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r8, -296(%rbp)                 ## 8-byte Spill
	cmpl	%r12d, %r10d
	jle	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %ebx
	decl	-244(%rbp)                      ## 4-byte Folded Spill
	leal	(%r9,%r9), %eax
	movslq	%eax, %r8
	movq	-296(%rbp), %rdx                ## 8-byte Reload
	leal	-2(%rdx), %eax
	movl	%eax, -276(%rbp)                ## 4-byte Spill
	imull	%r9d, %eax
	movslq	%eax, %r11
	leal	-1(%rdx), %eax
	imull	%r9d, %eax
	cltq
	shlq	$2, %rsi
	shlq	$2, %r9
	shlq	$2, %rax
	movq	%rax, -304(%rbp)                ## 8-byte Spill
	leaq	(,%rcx,4), %rax
	movq	%rax, -344(%rbp)                ## 8-byte Spill
	shlq	$2, %r8
	movq	%r8, -360(%rbp)                 ## 8-byte Spill
	shlq	$2, %r11
	movq	%r11, -352(%rbp)                ## 8-byte Spill
	movq	%rcx, -376(%rbp)                ## 8-byte Spill
	movq	%r9, -312(%rbp)                 ## 8-byte Spill
	movq	%rsi, -368(%rbp)                ## 8-byte Spill
	movl	%r10d, -280(%rbp)               ## 4-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=2
	movl	-264(%rbp), %ebx                ## 4-byte Reload
	incl	%ebx
	movq	-368(%rbp), %rsi                ## 8-byte Reload
	addq	%rsi, %r12
	addq	-344(%rbp), %r15                ## 8-byte Folded Reload
	movl	-280(%rbp), %r10d               ## 4-byte Reload
	cmpl	%ebx, %r10d
	movq	-376(%rbp), %rcx                ## 8-byte Reload
	movq	-312(%rbp), %r9                 ## 8-byte Reload
	movq	%r12, %rdi
	je	LBB0_8
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testl	%ebx, %ebx
	movl	$0, %eax
	cmovgl	%ecx, %eax
	cltq
	shlq	$2, %rax
	movq	%r15, %r10
	subq	%rax, %r10
	leaq	(%r15,%r9), %r14
	movq	%r14, %rdx
	subq	%rax, %rdx
	movq	-360(%rbp), %rsi                ## 8-byte Reload
	leaq	(%r15,%rsi), %r9
	movq	%r9, %rsi
	subq	%rax, %rsi
	movl	%ebx, -264(%rbp)                ## 4-byte Spill
	cmpl	-244(%rbp), %ebx                ## 4-byte Folded Reload
	movq	%r10, -112(%rbp)
	movq	%rdx, -104(%rbp)
	movq	%rsi, -96(%rbp)
	movq	%r15, -88(%rbp)
	movl	$0, %esi
	cmovll	%ecx, %esi
	movq	%r9, -80(%rbp)
	movslq	%esi, %rbx
	leaq	(%r15,%rbx,4), %r8
	movq	%r8, -72(%rbp)
	leaq	(%r14,%rbx,4), %rcx
	movq	%rcx, -64(%rbp)
	leaq	(%r9,%rbx,4), %rsi
	movq	%rsi, -56(%rbp)
	movq	%rdx, -176(%rbp)
	movq	%r10, -168(%rbp)
	movq	%rdx, -160(%rbp)
	movq	%r14, -152(%rbp)
	movq	%r14, -144(%rbp)
	movq	%rcx, -136(%rbp)
	movq	%r8, -128(%rbp)
	movq	%rcx, -120(%rbp)
	movq	-256(%rbp), %r10                ## 8-byte Reload
	movq	-352(%rbp), %rcx                ## 8-byte Reload
	addq	%r15, %rcx
	movq	%rcx, %rdx
	subq	%rax, %rdx
	movq	-304(%rbp), %rsi                ## 8-byte Reload
	leaq	(%r15,%rsi), %r13
	movq	%r13, %rsi
	subq	%rax, %rsi
	movq	%rdx, -240(%rbp)
	movq	%rsi, -232(%rbp)
	movq	%rdx, -224(%rbp)
	movq	%rcx, -216(%rbp)
	movq	%rcx, -208(%rbp)
	leaq	(%rcx,%rbx,4), %rax
	movq	%rax, -200(%rbp)
	leaq	(%r13,%rbx,4), %rcx
	movq	%rcx, -192(%rbp)
	movq	%rax, -184(%rbp)
	movl	32(%r10), %eax
	movl	36(%r10), %r9d
	movl	%eax, (%rsp)
	movq	%r15, %rsi
	movl	$1, %edx
	movl	-248(%rbp), %ecx                ## 4-byte Reload
	leaq	-176(%rbp), %r8
	movq	%rdi, %r12
	callq	*40(%r10)
	cmpl	$2, -296(%rbp)                  ## 4-byte Folded Reload
	jl	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	-312(%rbp), %rax                ## 8-byte Reload
	leaq	(%r12,%rax), %rdi
	movq	-256(%rbp), %rbx                ## 8-byte Reload
	movl	32(%rbx), %eax
	movl	36(%rbx), %r9d
	movl	%eax, (%rsp)
	movq	%r14, %rsi
	movl	-276(%rbp), %edx                ## 4-byte Reload
	movl	-248(%rbp), %r14d               ## 4-byte Reload
	movl	%r14d, %ecx
	leaq	-112(%rbp), %r8
	callq	*40(%rbx)
	movq	-304(%rbp), %rax                ## 8-byte Reload
	leaq	(%r12,%rax), %rdi
	movl	32(%rbx), %eax
	movl	36(%rbx), %r9d
	movl	%eax, (%rsp)
	movq	%r13, %rsi
	movl	$1, %edx
	movl	%r14d, %ecx
	leaq	-240(%rbp), %r8
	callq	*40(%rbx)
	jmp	LBB0_7
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.10:
	xorl	%eax, %eax
	addq	$344, %rsp                      ## imm = 0x158
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.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:
	sub	sp, sp, #400
	.cfi_def_cfa_offset 400
	stp	x28, x27, [sp, #304]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #320]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #336]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #352]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #368]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #384]            ; 16-byte Folded Spill
	add	x29, sp, #384
	.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
	stp	w3, w2, [sp, #24]               ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	ldr	x28, [x0]
	ldr	w8, [x28]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x15, #0
	ldr	x9, [x1]
	ldr	x8, [x1, #8]
	stp	x8, x9, [sp, #8]                ; 16-byte Folded Spill
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	add	w8, w8, #1
	str	w8, [sp, #4]                    ; 4-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mul	w4, w16, w8
	sub	w5, w19, w25
	mov	x0, x24
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x23
	mov	x3, x21
	bl	_av_image_copy_plane
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x15, [sp, #32]                  ; 8-byte Folded Reload
	add	x15, x15, #1
	ldrsw	x8, [x28]
	cmp	x15, x8
	b.ge	LBB0_10
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldrsw	x8, [x28, #4]
	lsl	x10, x15, #2
	ldp	x9, x11, [x28, #8]
	ldr	w22, [x9, x10]
	ldp	x13, x12, [sp, #8]              ; 16-byte Folded Reload
	ldp	x9, x12, [x12]
	ldrsw	x21, [x9, x10]
	ldp	x9, x13, [x13]
	ldrsw	x1, [x9, x10]
	ldr	w9, [x11, x10]
	ldr	x11, [x28, #24]
	ldr	w16, [x11, x10]
	ldp	w14, w10, [sp, #24]             ; 8-byte Folded Reload
	mul	w10, w9, w10
	sdiv	w25, w10, w14
	str	x15, [sp, #32]                  ; 8-byte Folded Spill
	lsl	x10, x15, #3
	ldr	x11, [x12, x10]
	mul	w12, w25, w21
	add	x23, x11, w12, sxtw #2
	ldr	w11, [sp, #4]                   ; 4-byte Folded Reload
	mul	w11, w9, w11
	sdiv	w19, w11, w14
	ldr	x10, [x13, x10]
	mul	w11, w25, w1
	add	x24, x10, w11, sxtw #2
	cbz	w22, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w16, [sp, #84]                  ; 4-byte Folded Spill
	cmp	w19, w25
	b.le	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w9, w9, #1
	str	w9, [sp, #80]                   ; 4-byte Folded Spill
	lsl	w9, w8, #1
	ldr	w10, [sp, #84]                  ; 4-byte Folded Reload
	sub	w11, w10, #2
	sub	w10, w10, #1
	mul	w10, w10, w8
	lsl	x13, x1, #2
	lsl	x12, x8, #2
	str	x12, [sp, #88]                  ; 8-byte Folded Spill
	sbfiz	x20, x10, #2, #32
	lsl	x10, x21, #2
	stp	x10, x13, [sp, #64]             ; 16-byte Folded Spill
	str	w11, [sp, #44]                  ; 4-byte Folded Spill
	mul	w8, w11, w8
	sbfiz	x9, x9, #2, #32
	sbfiz	x8, x8, #2, #32
	stp	x8, x9, [sp, #48]               ; 16-byte Folded Spill
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	w25, w25, #1
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	add	x24, x24, x8
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	add	x23, x23, x8
	cmp	w19, w25
	b.eq	LBB0_3
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w25, #0
	csel	w8, w21, wzr, gt
	sbfiz	x8, x8, #2, #32
	sub	x9, x23, x8
	ldr	x10, [sp, #88]                  ; 8-byte Folded Reload
	add	x26, x23, x10
	sub	x10, x26, x8
	stp	x9, x10, [x29, #-160]
	ldr	x11, [sp, #56]                  ; 8-byte Folded Reload
	add	x11, x23, x11
	sub	x12, x11, x8
	stp	x12, x23, [x29, #-144]
	ldr	w12, [sp, #80]                  ; 4-byte Folded Reload
	cmp	w25, w12
	csel	w12, w21, wzr, lt
	sbfiz	x12, x12, #2, #32
	add	x13, x23, x12
	stp	x11, x13, [x29, #-128]
	add	x14, x26, x12
	add	x11, x11, x12
	stp	x14, x11, [x29, #-112]
	stp	x10, x9, [sp, #160]
	stp	x10, x26, [sp, #176]
	stp	x26, x14, [sp, #192]
	stp	x13, x14, [sp, #208]
	ldr	x9, [sp, #48]                   ; 8-byte Folded Reload
	add	x9, x23, x9
	sub	x10, x9, x8
	add	x27, x23, x20
	sub	x8, x27, x8
	stp	x10, x8, [sp, #96]
	stp	x10, x9, [sp, #112]
	add	x8, x9, x12
	stp	x9, x8, [sp, #128]
	add	x9, x27, x12
	stp	x9, x8, [sp, #144]
	ldr	x8, [x28, #40]
	ldp	w6, w5, [x28, #32]
	add	x4, sp, #160
	mov	x0, x24
	mov	x1, x23
	mov	w2, #1
	mov	x3, x22
	blr	x8
	ldr	w8, [sp, #84]                   ; 4-byte Folded Reload
	cmp	w8, #2
	b.lt	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [x28, #40]
	ldr	x9, [sp, #88]                   ; 8-byte Folded Reload
	add	x0, x24, x9
	ldp	w6, w5, [x28, #32]
	sub	x4, x29, #160
	mov	x1, x26
	ldr	w2, [sp, #44]                   ; 4-byte Folded Reload
	mov	x3, x22
	blr	x8
	ldr	x8, [x28, #40]
	add	x0, x24, x20
	ldp	w6, w5, [x28, #32]
	add	x4, sp, #96
	mov	x1, x27
	mov	w2, #1
	mov	x3, x22
	blr	x8
	b	LBB0_7
LBB0_10:
	ldur	x8, [x29, #-96]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	mov	w0, #0
	ldp	x29, x30, [sp, #384]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #368]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #352]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #336]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #320]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #304]            ; 16-byte Folded Reload
	add	sp, sp, #400
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_filter_slice
.subsections_via_symbols
