	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apply_loop_filter
_apply_loop_filter:                     ## @apply_loop_filter
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r9
	xorl	%r10d, %r10d
	testl	%esi, %esi
	setne	%r8b
	movq	72(%rdi), %r11
	movslq	%esi, %rdi
	movq	(%r11), %rbx
	movl	(%rbx,%rdi,4), %eax
	movl	%eax, %ebx
	negl	%ebx
	cmpl	$0, 64(%r9)
	cmovnel	%eax, %ebx
	movl	%ecx, -96(%rbp)                 ## 4-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	cmpl	%ecx, %edx
	jge	LBB0_26
## %bb.1:
	movq	%rbx, %rsi
	movl	$508, %ebx                      ## imm = 0x1FC
	addq	(%r9), %rbx
	movb	%r8b, %r10b
	movq	8(%r9), %rcx
	movslq	(%rcx,%r10,4), %r8
	movl	%r8d, %r12d
	movq	56(%r9), %rcx
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %edx
	imull	%esi, %edx
	shll	$3, %edx
	movslq	%edx, %rdx
	addq	(%rcx,%rdi,8), %rdx
	movq	8(%r11), %rcx
	shlq	$2, %rdx
	addq	(%rcx,%rdi,8), %rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	24(%r9), %rcx
	movl	%r12d, %r15d
	imull	%eax, %r15d
	addl	(%rcx,%rdi,4), %r15d
	movq	16(%r9), %rcx
	movl	(%rcx,%r10,4), %ecx
	movq	%r8, %rax
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	leal	-1(%r8), %edi
	movq	%rbx, %rdx
	decl	%ecx
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	leal	(,%rsi,8), %eax
	cltq
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	%edi, -92(%rbp)                 ## 4-byte Spill
	movslq	%edi, %rax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	movq	_MODE_COPY@GOTPCREL(%rip), %rbx
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	%r12, -160(%rbp)                ## 8-byte Spill
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-100(%rbp), %r15d               ## 4-byte Reload
	addl	%r12d, %r15d
LBB0_25:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	-96(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_26
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	cmpl	$0, -88(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_25
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r15d, %r8
	movq	48(%r9), %rax
	movq	(%rax,%r8,8), %rax
	cmpq	(%rbx), %rax
	je	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r8, %r13
	movq	%rsi, %r14
	movq	%rdx, %rbx
	callq	*32(%rax)
	movq	%rbx, %rdx
	movq	%r14, %rsi
	movq	%r13, %r8
	movq	_MODE_COPY@GOTPCREL(%rip), %rbx
	movq	-56(%rbp), %r9                  ## 8-byte Reload
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -92(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	48(%r9), %rax
	movq	8(%rax,%r8,8), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	32(%rax), %rdi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r8, %r13
	movq	%rsi, %r14
	movq	%rdx, %rbx
	callq	*40(%rax)
	movq	%rbx, %rdx
	movq	%r14, %rsi
	movq	%r13, %r8
	movq	_MODE_COPY@GOTPCREL(%rip), %rbx
	movq	-56(%rbp), %r9                  ## 8-byte Reload
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, -44(%rbp)                 ## 4-byte Folded Reload
	jge	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	48(%r9), %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	addq	%r8, %rcx
	movq	(%rax,%rcx,8), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rdi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r8, %r13
	movq	%rsi, %r14
	movq	%rdx, %rbx
	callq	*32(%rax)
	movq	%rbx, %rdx
	movq	%r14, %rsi
	movq	%r13, %r8
	movq	_MODE_COPY@GOTPCREL(%rip), %rbx
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, -100(%rbp)               ## 4-byte Spill
	cmpl	$1, %r12d
	je	LBB0_24
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	32(%rax), %rcx
	movq	%rcx, -144(%rbp)                ## 8-byte Spill
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movl	$1, %r15d
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_14 Depth=2
	incq	%r15
	cmpq	%r12, %r15
	je	LBB0_24
LBB0_14:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r8, %r13
	incq	%r8
	movq	48(%r9), %rax
	movq	8(%rax,%r13,8), %rax
	cmpq	(%rbx), %rax
	je	LBB0_23
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	%r8, -128(%rbp)                 ## 8-byte Spill
	leal	(,%r15,8), %ecx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	leaq	(%rax,%rcx,4), %r14
	movq	%r14, %rdi
	movq	%rsi, %r12
	movq	%r9, %rbx
	callq	*40(%r9)
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	%r14, %rdi
	movl	%r12d, %esi
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	callq	*32(%rbx)
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=2
	cmpq	-152(%rbp), %r15                ## 8-byte Folded Reload
	movq	%rbx, %r9
	movq	%r12, %rsi
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	movq	_MODE_COPY@GOTPCREL(%rip), %rbx
	jge	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	48(%r9), %rax
	movq	16(%rax,%r13,8), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	-144(%rbp), %rax                ## 8-byte Reload
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rdi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rsi, %r14
	movq	%rdx, %r12
	callq	*40(%rax)
	movq	%r12, %rdx
	movq	%r14, %rsi
	movq	-56(%rbp), %r9                  ## 8-byte Reload
LBB0_20:                                ##   in Loop: Header=BB0_14 Depth=2
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, -44(%rbp)                 ## 4-byte Folded Reload
	movq	-160(%rbp), %r12                ## 8-byte Reload
	movq	-128(%rbp), %r8                 ## 8-byte Reload
	jge	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	48(%r9), %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	addq	%r8, %rcx
	movq	(%rax,%rcx,8), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	-136(%rbp), %rax                ## 8-byte Reload
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rdi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rsi, %r14
	movq	%rdx, %rbx
	callq	*32(%rax)
	movq	%rbx, %rdx
	movq	%r14, %rsi
	movq	-128(%rbp), %r8                 ## 8-byte Reload
	movq	_MODE_COPY@GOTPCREL(%rip), %rbx
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	jmp	LBB0_23
LBB0_26:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MODE_COPY,8,3                  ## @MODE_COPY
	.no_dead_strip	_apply_loop_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apply_loop_filter
_apply_loop_filter:                     ; @apply_loop_filter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	cmp	w1, #0
	cset	w8, ne
	ldr	x9, [x0, #72]
	ldr	x10, [x9]
	ldr	w10, [x10, w1, sxtw #2]
	ldr	w11, [x0, #64]
	cmp	w11, #0
	cneg	w13, w10, eq
	str	w3, [sp, #4]                    ; 4-byte Folded Spill
	str	w2, [sp, #76]                   ; 4-byte Folded Spill
	cmp	w2, w3
	b.ge	LBB0_26
; %bb.1:
	mov	x21, x0
	ldp	x10, x11, [x0]
	add	x23, x10, #508
	ldrsw	x14, [x11, w8, uxtw #2]
	and	x24, x14, #0xffffffff
	sxtw	x10, w1
	ldr	x9, [x9, #8]
	lsl	x11, x10, #3
	ldr	x9, [x9, x11]
	ldr	x12, [x0, #56]
	ldr	x11, [x12, x11]
	ldr	w15, [sp, #76]                  ; 4-byte Folded Reload
	mul	w12, w15, w13
	lsl	w12, w12, #3
	add	x11, x11, w12, sxtw
	add	x9, x9, x11, lsl #2
	str	x9, [sp, #64]                   ; 8-byte Folded Spill
	ldp	x11, x9, [x0, #16]
	ldr	w9, [x9, x10, lsl #2]
	madd	w19, w24, w15, w9
	ldr	w8, [x11, x8, lsl #2]
	sub	w9, w14, #1
	sub	w8, w8, #1
	str	w8, [sp, #60]                   ; 4-byte Folded Spill
	lsl	w8, w13, #3
	sxtw	x8, w8
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	sxtw	x8, w9
	stp	x14, x8, [sp, #40]              ; 16-byte Folded Spill
Lloh0:
	adrp	x20, _MODE_COPY@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MODE_COPY@GOTPAGEOFF]
	str	w13, [sp, #72]                  ; 4-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	add	w19, w24, w19
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	add	x8, x8, x9, lsl #2
	str	x8, [sp, #64]                   ; 8-byte Folded Spill
	ldr	w9, [sp, #76]                   ; 4-byte Folded Reload
	add	w9, w9, #1
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	str	w9, [sp, #76]                   ; 4-byte Folded Spill
	cmp	w9, w8
	b.eq	LBB0_26
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_17 Depth 2
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x26, w19
	ldr	x8, [x21, #48]
	ldr	x8, [x8, w19, sxtw #3]
	ldr	x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #76]                   ; 4-byte Folded Reload
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21, #32]
	ldr	x0, [sp, #64]                   ; 8-byte Folded Reload
	mov	x1, x13
	mov	x2, x23
	blr	x8
	ldr	w13, [sp, #72]                  ; 4-byte Folded Reload
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	cbz	w8, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21, #48]
	add	x8, x8, x26, lsl #3
	ldr	x8, [x8, #8]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21, #40]
	ldr	x9, [sp, #64]                   ; 8-byte Folded Reload
	add	x0, x9, #32
	mov	x1, x13
	mov	x2, x23
	blr	x8
	ldr	w13, [sp, #72]                  ; 4-byte Folded Reload
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #60]                   ; 4-byte Folded Reload
	ldr	w9, [sp, #76]                   ; 4-byte Folded Reload
	cmp	w9, w8
	b.ge	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21, #48]
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	add	x9, x26, x9
	ldr	x8, [x8, x9, lsl #3]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21, #32]
	ldr	x9, [sp, #64]                   ; 8-byte Folded Reload
	ldr	x10, [sp, #16]                  ; 8-byte Folded Reload
	add	x0, x9, x10, lsl #2
	mov	x1, x13
	mov	x2, x23
	blr	x8
	ldr	w13, [sp, #72]                  ; 4-byte Folded Reload
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	cmp	w24, #1
	b.eq	LBB0_2
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	add	x10, x8, #32
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	add	x8, x8, x9, lsl #2
	stp	x8, x10, [sp, #24]              ; 16-byte Folded Spill
	mov	w28, #1
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=2
	add	x28, x28, #1
	mov	x26, x19
	cmp	x28, x24
	b.eq	LBB0_2
LBB0_17:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x19, x26, #1
	ldr	x8, [x21, #48]
	ldr	x8, [x8, x19, lsl #3]
	ldr	x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=2
	ldr	x8, [x21, #40]
	lsl	w22, w28, #3
	ldr	x9, [sp, #64]                   ; 8-byte Folded Reload
	add	x25, x9, w22, uxtw #2
	mov	x0, x25
	mov	x1, x13
	mov	x2, x23
	mov	x27, x13
	blr	x8
	ldr	w8, [sp, #76]                   ; 4-byte Folded Reload
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=2
	ldr	x8, [x21, #32]
	mov	x0, x25
	mov	x1, x27
	mov	x2, x23
	blr	x8
LBB0_20:                                ;   in Loop: Header=BB0_17 Depth=2
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	cmp	x28, x8
	b.ge	LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_17 Depth=2
	ldr	x8, [x21, #48]
	add	x8, x8, x26, lsl #3
	ldr	x8, [x8, #16]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_17 Depth=2
	ldr	x8, [x21, #40]
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	add	x0, x9, x22, lsl #2
	ldr	w1, [sp, #72]                   ; 4-byte Folded Reload
	mov	x2, x23
	blr	x8
LBB0_23:                                ;   in Loop: Header=BB0_17 Depth=2
	ldr	w8, [sp, #60]                   ; 4-byte Folded Reload
	ldp	w13, w9, [sp, #72]              ; 8-byte Folded Reload
	cmp	w9, w8
	b.ge	LBB0_16
; %bb.24:                               ;   in Loop: Header=BB0_17 Depth=2
	ldr	x8, [x21, #48]
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	add	x9, x19, x9
	ldr	x8, [x8, x9, lsl #3]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.25:                               ;   in Loop: Header=BB0_17 Depth=2
	ldr	x8, [x21, #32]
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	add	x0, x9, x22, lsl #2
	mov	x1, x13
	mov	x2, x23
	blr	x8
	ldr	w13, [sp, #72]                  ; 4-byte Folded Reload
	b	LBB0_16
LBB0_26:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MODE_COPY,8,3                  ; @MODE_COPY
	.no_dead_strip	_apply_loop_filter
.subsections_via_symbols
