	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lagfun_frame16
_lagfun_frame16:                        ## @lagfun_frame16
	.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, -52(%rbp)                 ## 4-byte Spill
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r10
	cmpl	$0, 4(%r10)
	jle	LBB0_12
## %bb.1:
	movss	(%r10), %xmm2                   ## xmm2 = mem[0],zero,zero,zero
	movq	(%rsi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	16(%rsi), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	movq	%r10, -104(%rbp)                ## 8-byte Spill
	movss	%xmm2, -44(%rbp)                ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r10), %rax
	movl	(%rax,%rbx,4), %r8d
	subl	%r15d, %r11d
	movq	%r14, %rdi
	movq	%r12, %rdx
	movl	%r11d, %r9d
	callq	_av_image_copy_plane
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movss	-44(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	movq	-104(%rbp), %r10                ## 8-byte Reload
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	4(%r10), %rax
	cmpq	%rax, %rbx
	jge	LBB0_12
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##       Child Loop BB0_8 Depth 3
	movq	8(%r10), %rax
	movl	(%rax,%rbx,4), %ecx
	movl	%ecx, %eax
	imull	-72(%rbp), %eax                 ## 4-byte Folded Reload
	cltd
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	idivl	%esi
	movl	%eax, %r15d
	imull	-48(%rbp), %ecx                 ## 4-byte Folded Reload
	movl	%ecx, %eax
	cltd
	idivl	%esi
	movl	%eax, %r11d
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r8
	movq	8(%rax), %rdx
	movl	(%r8,%rbx,4), %ecx
	movl	%ecx, %esi
	imull	%r15d, %esi
	movl	%esi, %edi
	shrl	$31, %edi
	addl	%esi, %edi
	sarl	%edi
	movslq	%edi, %r12
	shlq	$2, %r12
	addq	(%rdx,%rbx,8), %r12
	movq	-96(%rbp), %r9                  ## 8-byte Reload
	movq	(%r9), %rdx
	movl	(%rdx,%rbx,4), %esi
	movl	%esi, %eax
	imull	%r15d, %eax
	movl	%eax, %edi
	shrl	$31, %edi
	addl	%eax, %edi
	movq	8(%r9), %rax
	sarl	%edi
	movslq	%edi, %r14
	shlq	$2, %r14
	addq	(%rax,%rbx,8), %r14
	movl	16(%r10), %eax
	btl	%ebx, %eax
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	jae	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r15d, %r11d
	jle	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movl	(%rcx,%rbx,4), %esi
	imull	%r15d, %esi
	movl	%esi, %edi
	shrl	$31, %edi
	addl	%esi, %edi
	sarl	%edi
	movslq	%edi, %r13
	shlq	$2, %r13
	addq	(%rax,%rbx,8), %r13
	movq	24(%r10), %rsi
	movl	%r11d, -56(%rbp)                ## 4-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=2
	movl	(%r8,%rbx,4), %eax
	movl	%eax, %edi
	shrl	$31, %edi
	addl	%eax, %edi
	sarl	%edi
	movslq	%edi, %rax
	leaq	(%r12,%rax,4), %r12
	movl	(%rcx,%rbx,4), %eax
	movl	%eax, %edi
	shrl	$31, %edi
	addl	%eax, %edi
	sarl	%edi
	movslq	%edi, %rax
	leaq	(%r13,%rax,4), %r13
	movl	(%rdx,%rbx,4), %eax
	movl	%eax, %edi
	shrl	$31, %edi
	addl	%eax, %edi
	sarl	%edi
	movslq	%edi, %rax
	leaq	(%r14,%rax,4), %r14
	incl	%r15d
	cmpl	%r11d, %r15d
	je	LBB0_11
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_8 Depth 3
	cmpl	$2, (%rsi,%rbx,4)
	jl	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movl	%r15d, -60(%rbp)                ## 4-byte Spill
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movss	(%r12,%r15,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	(%r13,%r15,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm2, %xmm1
	callq	_FFMAX
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movss	-44(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	movq	-104(%rbp), %r10                ## 8-byte Reload
	movss	%xmm0, (%r14,%r15,4)
	incq	%r15
	movq	24(%r10), %rsi
	movl	(%rsi,%rbx,4), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rax
	cmpq	%rax, %r15
	jl	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r8
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rcx
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdx
	movl	-56(%rbp), %r11d                ## 4-byte Reload
	movl	-60(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_10
LBB0_12:
	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	_lagfun_frame16
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lagfun_frame16
_lagfun_frame16:                        ; @lagfun_frame16
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	stp	w3, w2, [sp, #16]               ; 8-byte Folded Spill
	ldr	x23, [x0]
	ldr	w8, [x23, #4]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x24, #0
	ldr	s8, [x23]
	ldr	x9, [x1]
	ldr	x8, [x1, #8]
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	add	w8, w8, #1
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	ldr	x8, [x1, #16]
	stp	x9, x8, [sp, #24]               ; 16-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x23, #24]
	ldr	w4, [x8, x24, lsl #2]
	sub	w5, w27, w20
	mov	x0, x22
	mov	x2, x21
	bl	_av_image_copy_plane
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x23, #4]
	cmp	x24, x8
	b.ge	LBB0_12
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;       Child Loop BB0_10 Depth 3
	ldr	x8, [x23, #8]
	lsl	x19, x24, #2
	ldr	w8, [x8, x19]
	ldp	w10, w9, [sp, #16]              ; 8-byte Folded Reload
	mul	w9, w8, w9
	sdiv	w20, w9, w10
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	mul	w8, w8, w9
	sdiv	w27, w8, w10
	lsl	x10, x24, #3
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldp	x8, x9, [x8]
	ldr	x9, [x9, x10]
	ldr	w3, [x8, x19]
	mul	w11, w3, w20
	cmp	w11, #0
	cinc	w11, w11, lt
	asr	w11, w11, #1
	add	x21, x9, w11, sxtw #2
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	ldp	x9, x11, [x9]
	ldr	x10, [x11, x10]
	ldr	w1, [x9, x19]
	mul	w11, w1, w20
	cmp	w11, #0
	cinc	w11, w11, lt
	asr	w11, w11, #1
	add	x22, x10, w11, sxtw #2
	ldr	w10, [x23, #16]
	lsr	w10, w10, w24
	tbz	w10, #0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w27, w20
	b.le	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x11, [sp, #24]                  ; 8-byte Folded Reload
	ldp	x11, x10, [x11]
	ldr	x10, [x10, x24, lsl #3]
	ldr	w12, [x11, x24, lsl #2]
	mul	w12, w12, w20
	cmp	w12, #0
	cinc	w12, w12, lt
	asr	w12, w12, #1
	add	x25, x10, w12, sxtw #2
	ldr	x10, [x23, #24]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	ldr	w12, [x8, x19]
	cmp	w12, #0
	cinc	w12, w12, lt
	asr	w12, w12, #1
	add	x21, x21, w12, sxtw #2
	ldr	w12, [x11, x19]
	cmp	w12, #0
	cinc	w12, w12, lt
	asr	w12, w12, #1
	add	x25, x25, w12, sxtw #2
	ldr	w12, [x9, x19]
	cmp	w12, #0
	cinc	w12, w12, lt
	asr	w12, w12, #1
	add	x22, x22, w12, sxtw #2
	add	w20, w20, #1
	cmp	w20, w27
	b.eq	LBB0_3
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_10 Depth 3
	ldr	w12, [x10, x24, lsl #2]
	cmp	w12, #2
	b.lt	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x26, #0
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	lsl	x28, x26, #2
	ldr	s0, [x21, x28]
	ldr	s1, [x25, x28]
	fmul	s1, s8, s1
	bl	_FFMAX
	str	s0, [x22, x28]
	add	x26, x26, #1
	ldr	x10, [x23, #24]
	ldr	w8, [x10, x24, lsl #2]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	cmp	x26, w8, sxtw
	b.lt	LBB0_10
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=2
	ldp	x9, x8, [sp, #24]               ; 16-byte Folded Reload
	ldr	x8, [x8]
	ldr	x11, [x9]
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	ldr	x9, [x9]
	b	LBB0_7
LBB0_12:
	mov	w0, #0
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_lagfun_frame16
.subsections_via_symbols
