	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function maskedminmax_slice
_maskedminmax_slice:                    ## @maskedminmax_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rdi
	cmpl	$0, (%rdi)
	jle	LBB0_8
## %bb.1:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	xorl	%r15d, %r15d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	40(%rdi), %rax
	movl	(%rax,%r15,4), %r8d
	subl	%r10d, %r12d
	movq	%rsi, %rdi
	movl	%r14d, %esi
	movq	%rbx, %rdx
	movl	%r11d, %ecx
	movl	%r12d, %r9d
	callq	_av_image_copy_plane
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	incq	%r15
	movslq	(%rdi), %rax
	cmpq	%rax, %r15
	jge	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	24(%rdx), %rax
	movq	(%rax), %rsi
	movq	8(%rax), %r9
	movslq	(%rsi,%r15,4), %r11
	movq	(%rdx), %rax
	movq	(%rax), %rdx
	movq	8(%rax), %r8
	movslq	(%rdx,%r15,4), %r14
	movq	16(%rdi), %rax
	movl	(%rax,%r15,4), %esi
	movl	%esi, %eax
	imull	-72(%rbp), %eax                 ## 4-byte Folded Reload
	cltd
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	idivl	%ebx
	movl	%eax, %r10d
	imull	-52(%rbp), %esi                 ## 4-byte Folded Reload
	movl	%esi, %eax
	cltd
	idivl	%ebx
	movl	%eax, %r12d
	movslq	%r10d, %rcx
	movq	%rcx, %rbx
	imulq	%r11, %rbx
	shlq	$2, %rbx
	addq	(%r9,%r15,8), %rbx
	movq	%rcx, %rsi
	imulq	%r14, %rsi
	shlq	$2, %rsi
	addq	(%r8,%r15,8), %rsi
	movl	24(%rdi), %eax
	btl	%r15d, %eax
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	jae	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	subl	%r10d, %r12d
	jle	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %r9                  ## 8-byte Reload
	movq	16(%r9), %r8
	movq	(%r8), %rdx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rdx,%rax,4), %r10
	movq	8(%r9), %r9
	movq	(%r9), %rdx
	movslq	(%rdx,%rax,4), %r13
	movq	8(%rdi), %rdx
	movl	(%rdx,%rax,4), %edx
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movq	8(%r8), %rdx
	movq	%rcx, %r15
	imulq	%r10, %r15
	shlq	$2, %r15
	addq	(%rdx,%rax,8), %r15
	movq	8(%r9), %rdx
	imulq	%r13, %rcx
	shlq	$2, %rcx
	addq	(%rdx,%rax,8), %rcx
	shlq	$2, %r14
	shlq	$2, %r13
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	shlq	$2, %r10
	movq	%r10, -104(%rbp)                ## 8-byte Spill
	shlq	$2, %r11
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r12d, -64(%rbp)                ## 4-byte Spill
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r15, %rdx
	movl	-60(%rbp), %r8d                 ## 4-byte Reload
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, %rbx
	movq	%r11, %r14
	movq	%rcx, %r13
	movq	%rsi, %r12
	callq	*32(%rax)
	movq	%r12, %rsi
	movq	%r13, %rcx
	movq	%r14, %r11
	movq	%rbx, %r14
	movl	-64(%rbp), %r12d                ## 4-byte Reload
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	%r14, %rsi
	addq	-96(%rbp), %rcx                 ## 8-byte Folded Reload
	addq	-104(%rbp), %r15                ## 8-byte Folded Reload
	addq	%r11, %rbx
	decl	%r12d
	jne	LBB0_6
	jmp	LBB0_7
LBB0_8:
	xorl	%eax, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_maskedminmax_slice
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function maskedminmax_slice
_maskedminmax_slice:                    ; @maskedminmax_slice
	.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
	stp	w3, w2, [sp, #16]               ; 8-byte Folded Spill
	str	x1, [sp, #24]                   ; 8-byte Folded Spill
	ldr	x16, [x0]
	ldr	w8, [x16]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x15, #0
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	add	w8, w8, #1
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	str	x16, [sp, #40]                  ; 8-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x16, #40]
	ldr	w4, [x8, x15, lsl #2]
	sub	w5, w11, w9
	mov	x0, x23
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x22
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_av_image_copy_plane
	ldr	x16, [sp, #40]                  ; 8-byte Folded Reload
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x15, [sp, #32]                  ; 8-byte Folded Reload
	add	x15, x15, #1
	ldrsw	x8, [x16]
	cmp	x15, x8
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x11, [sp, #24]                  ; 8-byte Folded Reload
	ldr	x9, [x11, #24]
	lsl	x8, x15, #2
	ldp	x10, x12, [x9]
	ldrsw	x3, [x10, x8]
	ldr	x9, [x11]
	ldp	x10, x13, [x9]
	ldrsw	x1, [x10, x8]
	ldr	x9, [x16, #16]
	ldr	w10, [x9, x8]
	ldp	w11, w9, [sp, #16]              ; 8-byte Folded Reload
	mul	w9, w10, w9
	sdiv	w9, w9, w11
	ldr	w14, [sp, #12]                  ; 4-byte Folded Reload
	mul	w10, w10, w14
	sdiv	w11, w10, w11
	lsl	x10, x15, #3
	ldr	x12, [x12, x10]
	mul	w14, w9, w3
	add	x22, x12, w14, sxtw #2
	ldr	x12, [x13, x10]
	mul	w13, w9, w1
	add	x23, x12, w13, sxtw #2
	ldr	w12, [x16, #24]
	lsr	w12, w12, w15
	str	x15, [sp, #32]                  ; 8-byte Folded Spill
	tbz	w12, #0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	subs	w20, w11, w9
	b.le	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x12, [sp, #24]                  ; 8-byte Folded Reload
	ldp	x12, x11, [x12, #8]
	ldp	x13, x11, [x11]
	ldrsw	x13, [x13, x8]
	ldp	x14, x12, [x12]
	ldrsw	x14, [x14, x8]
	ldr	x11, [x11, x10]
	mul	w15, w9, w13
	add	x24, x11, w15, sxtw #2
	ldr	x11, [x16, #8]
	ldr	x10, [x12, x10]
	mul	w9, w9, w14
	add	x25, x10, w9, sxtw #2
	ldr	w26, [x11, x8]
	lsl	x19, x1, #2
	lsl	x21, x14, #2
	lsl	x28, x13, #2
	lsl	x27, x3, #2
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x16, #32]
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	mov	x3, x25
	mov	x4, x26
	blr	x8
	ldr	x16, [sp, #40]                  ; 8-byte Folded Reload
	add	x23, x23, x19
	add	x25, x25, x21
	add	x24, x24, x28
	add	x22, x22, x27
	subs	w20, w20, #1
	b.ne	LBB0_7
	b	LBB0_3
LBB0_8:
	mov	w0, #0
	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	_maskedminmax_slice
.subsections_via_symbols
