	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mclms_update
_mclms_update:                          ## @mclms_update
	.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
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movq	%rdi, %r13
	movl	(%rdi), %edi
	movl	4(%r13), %r12d
	movb	8(%r13), %cl
	decb	%cl
	movl	$1, %edx
	shll	%cl, %edx
	testl	%r12d, %r12d
	movl	%edi, -72(%rbp)                 ## 4-byte Spill
	jle	LBB0_12
## %bb.1:
	movl	%edx, -68(%rbp)                 ## 4-byte Spill
	movslq	%esi, %r8
	movl	%r12d, %r11d
	imull	%edi, %r11d
	leaq	-1(%r11), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movl	%r11d, %ecx
	andl	$-2, %ecx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	leaq	(,%r12,4), %rcx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	xorl	%r14d, %r14d
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%r11, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	js	LBB0_19
LBB0_28:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movq	-96(%rbp), %r11                 ## 8-byte Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addl	%r11d, %eax
	addq	-104(%rbp), %r15                ## 8-byte Folded Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	cmpq	%r12, %r14
	je	LBB0_29
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_32 Depth 2
                                        ##     Child Loop BB0_27 Depth 2
                                        ##     Child Loop BB0_17 Depth 2
                                        ##     Child Loop BB0_11 Depth 2
	cltq
	movq	16(%r13), %r9
	movq	(%r9,%r14,8), %rcx
	movl	(%rcx,%r8,4), %ecx
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	subl	(%rdx,%r14,4), %ecx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_18
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r11d, %r11d
	jle	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%r13), %rdx
	movq	56(%r13), %r10
	cmpq	$0, -88(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_5
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r10,%rax,4), %rdi
	addq	$4, %rdi
	xorl	%esi, %esi
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	24(%r13), %rbx
	addq	%rsi, %rbx
	movl	(%rdx,%rbx,8), %ebx
	addl	%ebx, -4(%rdi,%rsi,4)
	movslq	24(%r13), %rbx
	addq	%rsi, %rbx
	movl	8(%rdx,%rbx,8), %ebx
	addl	%ebx, (%rdi,%rsi,4)
	addq	$2, %rsi
	cmpq	%rsi, %rcx
	jne	LBB0_17
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, %r11b
	je	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %edi
	imull	%r11d, %edi
	movslq	%edi, %rdi
	movslq	24(%r13), %rbx
	addq	%rsi, %rbx
	movl	(%rdx,%rbx,8), %edx
	addq	%rsi, %rdi
	addl	%edx, (%r10,%rdi,4)
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	testq	%r14, %r14
	je	LBB0_28
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rbx
	imulq	-64(%rbp), %rbx                 ## 8-byte Folded Reload
	movq	(%r9), %rax
	movl	(%rax,%r8,4), %edi
	callq	_WMASIGN
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movq	48(%r13), %rcx
	addl	%eax, (%rcx,%rbx,4)
	cmpq	$1, %r14
	je	LBB0_28
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %r12d
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%r13), %rax
	movq	(%rax,%r12,8), %rax
	movl	(%rax,%r8,4), %edi
	callq	_WMASIGN
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movq	48(%r13), %rcx
	addq	%r15, %rcx
	addl	%eax, (%rcx,%r12,4)
	incq	%r12
	cmpq	%r12, %r14
	jne	LBB0_11
	jmp	LBB0_28
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%esi, %esi
	testb	$1, %r11b
	jne	LBB0_7
	jmp	LBB0_8
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	testl	%eax, %eax
	jle	LBB0_24
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%r13), %rdx
	movq	56(%r13), %r10
	cmpq	$0, -88(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_21
## %bb.31:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%r10,%rcx,4), %rdi
	addq	$4, %rdi
	xorl	%esi, %esi
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_32:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	24(%r13), %rbx
	addq	%rsi, %rbx
	movl	(%rdx,%rbx,8), %ebx
	subl	%ebx, -4(%rdi,%rsi,4)
	movslq	24(%r13), %rbx
	addq	%rsi, %rbx
	movl	8(%rdx,%rbx,8), %ebx
	subl	%ebx, (%rdi,%rsi,4)
	addq	$2, %rsi
	cmpq	%rsi, %rcx
	jne	LBB0_32
## %bb.22:                              ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, %al
	je	LBB0_24
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %edi
	imull	%eax, %edi
	movslq	%edi, %rdi
	movslq	24(%r13), %rbx
	addq	%rsi, %rbx
	movl	(%rdx,%rbx,8), %edx
	addq	%rsi, %rdi
	subl	%edx, (%r10,%rdi,4)
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	testq	%r14, %r14
	je	LBB0_28
## %bb.25:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rbx
	imulq	-64(%rbp), %rbx                 ## 8-byte Folded Reload
	movq	(%r9), %rax
	movl	(%rax,%r8,4), %edi
	callq	_WMASIGN
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movq	48(%r13), %rcx
	subl	%eax, (%rcx,%rbx,4)
	cmpq	$1, %r14
	je	LBB0_28
## %bb.26:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_27:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%r13), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax,%r8,4), %edi
	callq	_WMASIGN
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movq	48(%r13), %rcx
	addq	%r15, %rcx
	subl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_27
	jmp	LBB0_28
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%esi, %esi
	testb	$1, %al
	jne	LBB0_23
	jmp	LBB0_24
LBB0_29:
	movl	-68(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %eax
	negl	%eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	decl	%r15d
	movl	24(%r13), %ecx
	leaq	1(%r12), %r14
	.p2align	4, 0x90
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	leal	-2(%r14), %ebx
	decl	%ecx
	movl	%ecx, 24(%r13)
	movq	16(%r13), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax,%r8,4), %edi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	%r15d, %edx
	callq	_av_clip
	movq	40(%r13), %rcx
	movslq	24(%r13), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	16(%r13), %rax
	movq	(%rax,%rbx,8), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rax,%rcx,4), %edi
	callq	_WMASIGN
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movq	32(%r13), %rdx
	movslq	24(%r13), %rcx
	movq	%rax, (%rdx,%rcx,8)
	decq	%r14
	cmpq	$1, %r14
	ja	LBB0_30
## %bb.13:
	testl	%ecx, %ecx
	je	LBB0_14
LBB0_15:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	24(%r13), %ecx
	testl	%ecx, %ecx
	jne	LBB0_15
LBB0_14:
	movq	40(%r13), %rsi
	imull	-72(%rbp), %r12d                ## 4-byte Folded Reload
	movslq	%r12d, %rbx
	leaq	(%rsi,%rbx,8), %rdi
	leal	(,%rbx,4), %r14d
	movl	%r14d, %edx
	callq	_memcpy
	movq	32(%r13), %rsi
	leaq	(%rsi,%rbx,8), %rdi
	movl	%r14d, %edx
	callq	_memcpy
	movl	%ebx, 24(%r13)
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mclms_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mclms_update
_mclms_update:                          ; @mclms_update
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x19, x0
	ldp	w27, w23, [x0]
	cmp	w23, #1
	b.lt	LBB0_23
; %bb.1:
	mov	x20, x2
	mov	x25, #0
	mov	w8, #0
	mov	x26, #0
	ldr	w9, [x19, #8]
	sub	w9, w9, #1
	mov	w10, #1
	lsl	w9, w10, w9
	stp	w9, w27, [sp, #8]               ; 8-byte Folded Spill
	sxtw	x24, w1
	mul	w27, w23, w27
	lsl	x28, x23, #2
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w9, #31, LBB0_12
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x26, x26, #1
	add	w8, w22, w27
	add	x25, x25, x28
	cmp	x26, x23
	b.eq	LBB0_19
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
                                        ;     Child Loop BB0_18 Depth 2
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_11 Depth 2
	sxtw	x22, w8
	ldr	x8, [x19, #16]
	ldr	x9, [x8, x26, lsl #3]
	ldr	w9, [x9, x24, lsl #2]
	ldr	w10, [x20, x26, lsl #2]
	sub	w9, w9, w10
	cmp	w9, #1
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w27, #1
	b.lt	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x9, #0
	ldr	x10, [x19, #32]
	ldr	x11, [x19, #56]
	add	x11, x11, x22, lsl #2
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsw	x12, [x19, #24]
	add	x12, x9, x12
	ldr	x12, [x10, x12, lsl #3]
	lsl	x13, x9, #2
	ldr	w14, [x11, x13]
	add	w12, w14, w12
	str	w12, [x11, x13]
	add	x9, x9, #1
	cmp	x27, x9
	b.ne	LBB0_7
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbz	x26, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mul	x21, x26, x23
	ldr	x8, [x8]
	ldr	w0, [x8, x24, lsl #2]
	bl	_WMASIGN
	ldr	x8, [x19, #48]
	lsl	x9, x21, #2
	ldr	w10, [x8, x9]
	add	w10, w10, w0
	str	w10, [x8, x9]
	cmp	x26, #1
	b.eq	LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w21, #1
LBB0_11:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x21, lsl #3]
	ldr	w0, [x8, x24, lsl #2]
	bl	_WMASIGN
	ldr	x8, [x19, #48]
	add	x8, x8, x25
	lsl	x9, x21, #2
	ldr	w10, [x8, x9]
	add	w10, w10, w0
	str	w10, [x8, x9]
	add	x21, x21, #1
	cmp	x26, x21
	b.ne	LBB0_11
	b	LBB0_3
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w27, #1
	b.lt	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x9, #0
	ldr	x10, [x19, #32]
	ldr	x11, [x19, #56]
	add	x11, x11, x22, lsl #2
LBB0_14:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsw	x12, [x19, #24]
	add	x12, x9, x12
	ldr	x12, [x10, x12, lsl #3]
	lsl	x13, x9, #2
	ldr	w14, [x11, x13]
	sub	w12, w14, w12
	str	w12, [x11, x13]
	add	x9, x9, #1
	cmp	x27, x9
	b.ne	LBB0_14
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	x26, LBB0_3
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	mul	x21, x26, x23
	ldr	x8, [x8]
	ldr	w0, [x8, x24, lsl #2]
	bl	_WMASIGN
	ldr	x8, [x19, #48]
	lsl	x9, x21, #2
	ldr	w10, [x8, x9]
	sub	w10, w10, w0
	str	w10, [x8, x9]
	cmp	x26, #1
	b.eq	LBB0_3
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w21, #1
LBB0_18:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x21, lsl #3]
	ldr	w0, [x8, x24, lsl #2]
	bl	_WMASIGN
	ldr	x8, [x19, #48]
	add	x8, x8, x25
	lsl	x9, x21, #2
	ldr	w10, [x8, x9]
	sub	w10, w10, w0
	str	w10, [x8, x9]
	add	x21, x21, #1
	cmp	x26, x21
	b.ne	LBB0_18
	b	LBB0_3
LBB0_19:
	ldp	w8, w27, [sp, #8]               ; 8-byte Folded Reload
	neg	w20, w8
	sub	w21, w8, #1
	ldr	w8, [x19, #24]
	add	x22, x23, #1
	lsl	x24, x24, #2
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	sub	w9, w22, #2
	sub	w8, w8, #1
	str	w8, [x19, #24]
	ldr	x8, [x19, #16]
	lsl	x25, x9, #3
	ldr	x8, [x8, x25]
	ldr	w0, [x8, x24]
	mov	x1, x20
	mov	x2, x21
	bl	_av_clip
	ldr	x8, [x19, #40]
	ldrsw	x9, [x19, #24]
	str	x0, [x8, x9, lsl #3]
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x25]
	ldr	w0, [x8, x24]
	bl	_WMASIGN
	ldr	x9, [x19, #32]
	ldrsw	x8, [x19, #24]
	str	x0, [x9, x8, lsl #3]
	sub	x22, x22, #1
	cmp	x22, #1
	b.hi	LBB0_20
; %bb.21:
	cbz	w8, LBB0_24
LBB0_22:
	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
LBB0_23:
	ldr	w8, [x19, #24]
	cbnz	w8, LBB0_22
LBB0_24:
	ldr	x1, [x19, #40]
	mul	w21, w23, w27
	sbfiz	x22, x21, #3, #32
	add	x0, x1, x22
	lsl	w20, w21, #2
	mov	x2, x20
	bl	_memcpy
	ldr	x1, [x19, #32]
	add	x0, x1, x22
	mov	x2, x20
	bl	_memcpy
	str	w21, [x19, #24]
	b	LBB0_22
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mclms_update
.subsections_via_symbols
