	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ivi_mc
_ivi_mc:                                ## @ivi_mc
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movl	%ecx, %r15d
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r8
	movq	%rdi, %r11
	movl	40(%rbp), %r10d
	movl	32(%rbp), %ebx
	movl	(%rdi), %r14d
	movl	8(%rdi), %eax
	imull	%r14d, %r9d
	addl	%ecx, %r12d
	addl	%r9d, %r12d
	movl	4(%rdi), %ecx
	imull	%r14d, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	leal	-1(%rax), %r13d
	imull	%r14d, %r13d
	addl	%eax, %r13d
	xorl	%edi, %edi
	cmpl	$2, %ebx
	cmovll	%edi, %r14d
	cmpl	$-1, %ebx
	je	LBB0_5
## %bb.1:
	andl	$1, %ebx
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	testl	%r15d, %r15d
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movl	%r15d, %ebx
	js	LBB0_4
## %bb.2:
	testl	%r12d, %r12d
	js	LBB0_4
## %bb.3:
	xorl	%edi, %edi
	cmpq	$0, 24(%r11)
	setne	%dil
LBB0_4:
	movq	%r11, -64(%rbp)                 ## 8-byte Spill
	callq	_av_assert0
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	subl	%r13d, %r15d
	xorl	%edi, %edi
	cmpl	%ebx, %r15d
	setge	%dil
	callq	_av_assert0
	addl	-48(%rbp), %r14d                ## 4-byte Folded Reload
	subl	%r14d, %r15d
	xorl	%edi, %edi
	cmpl	%r12d, %r15d
	movl	%ebx, %r15d
	setge	%dil
	callq	_av_assert0
	movq	-64(%rbp), %r11                 ## 8-byte Reload
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movl	32(%rbp), %ebx
	movl	40(%rbp), %r10d
LBB0_5:
	cmpl	$-1, %r10d
	je	LBB0_11
## %bb.6:
	movl	(%r11), %ecx
	xorl	%esi, %esi
	cmpl	$2, %r10d
	cmovgel	%ecx, %esi
	testl	%r15d, %r15d
	js	LBB0_10
## %bb.7:
	movl	24(%rbp), %edx
	imull	%ecx, %edx
	movl	16(%rbp), %eax
	addl	%r15d, %eax
	addl	%edx, %eax
	js	LBB0_10
## %bb.8:
	movq	16(%r11), %rdx
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.9:
	movl	%r10d, %edi
	andl	$1, %edi
	addl	%r13d, %edi
	addl	%esi, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	subl	%edi, %esi
	cmpl	%eax, %esi
	jge	LBB0_15
LBB0_10:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_14
LBB0_11:
	movslq	%r15d, %rdi
	addq	32(%r11), %rdi
	movslq	%r12d, %rsi
	addq	24(%r11), %rsi
	movl	(%r11), %edx
	movl	%ebx, %ecx
LBB0_12:
	callq	*%r8
LBB0_13:
	xorl	%eax, %eax
LBB0_14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	%r15d, %edi
	addq	32(%r11), %rdi
	cmpl	$-1, %ebx
	je	LBB0_17
## %bb.16:
	movslq	%r12d, %rsi
	addq	24(%r11), %rsi
	movl	%eax, %eax
	addq	%rax, %rdx
	movl	%ebx, %r8d
	movl	%r10d, %r9d
	callq	*-56(%rbp)                      ## 8-byte Folded Reload
	jmp	LBB0_13
LBB0_17:
	movl	%eax, %eax
	addq	%rax, %rdx
	movq	%rdx, %rsi
	movl	%ecx, %edx
	movl	%r10d, %ecx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_ivi_mc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ivi_mc
_ivi_mc:                                ; @ivi_mc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x27, x6
	mov	x24, x3
	str	x2, [sp, #8]                    ; 8-byte Folded Spill
	mov	x28, x1
	mov	x23, x0
	ldp	w20, w21, [x29, #16]
	add	w8, w4, w3
	ldp	w9, w10, [x0]
	madd	w26, w9, w5, w8
	mul	w11, w10, w9
	ldr	w8, [x0, #8]
	sub	w10, w8, #1
	madd	w8, w10, w9, w8
	stp	w8, w11, [sp, #24]              ; 8-byte Folded Spill
	cmp	w20, #1
	csel	w19, w9, wzr, gt
	cmn	w20, #1
	b.eq	LBB0_6
; %bb.1:
	mov	w0, #0
	and	w25, w20, #0x1
	str	w7, [sp, #20]                   ; 4-byte Folded Spill
	tbnz	w24, #31, LBB0_4
; %bb.2:
	mov	x22, x26
	tbnz	w26, #31, LBB0_5
; %bb.3:
	ldr	x8, [x23, #24]
	cmp	x8, #0
	cset	w0, ne
	b	LBB0_5
LBB0_4:
	mov	x22, x26
LBB0_5:
	bl	_av_assert0
	ldp	w9, w8, [sp, #24]               ; 8-byte Folded Reload
	sub	w26, w8, w9
	cmp	w26, w24
	cset	w0, ge
	bl	_av_assert0
	add	w8, w19, w25
	sub	w8, w26, w8
	mov	x26, x22
	cmp	w8, w22
	cset	w0, ge
	bl	_av_assert0
	ldr	w7, [sp, #20]                   ; 4-byte Folded Reload
LBB0_6:
	cmn	w21, #1
	b.eq	LBB0_12
; %bb.7:
	ldr	w3, [x23]
	cmp	w21, #1
	csel	w10, w3, wzr, gt
	tbnz	w24, #31, LBB0_11
; %bb.8:
	add	w8, w27, w24
	madd	w8, w3, w7, w8
	tbnz	w8, #31, LBB0_11
; %bb.9:
	ldr	x9, [x23, #16]
	cbz	x9, LBB0_11
; %bb.10:
	and	w11, w21, #0x1
	ldr	w13, [sp, #24]                  ; 4-byte Folded Reload
	add	w11, w11, w13
	add	w10, w11, w10
	ldr	w11, [sp, #28]                  ; 4-byte Folded Reload
	sub	w10, w11, w10
	cmp	w10, w8
	b.ge	LBB0_16
LBB0_11:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_15
LBB0_12:
	ldp	x9, x8, [x23, #24]
	add	x0, x8, w24, sxtw
	add	x1, x9, w26, sxtw
	ldr	w2, [x23]
	mov	x3, x20
LBB0_13:
	blr	x28
LBB0_14:
	mov	w0, #0
LBB0_15:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_16:
	ldr	x10, [x23, #32]
	add	x0, x10, w24, uxtw
	cmn	w20, #1
	b.eq	LBB0_18
; %bb.17:
	ldr	x10, [x23, #24]
	add	x1, x10, w26, sxtw
	add	x2, x9, w8, uxtw
	mov	x4, x20
	mov	x5, x21
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	blr	x8
	b	LBB0_14
LBB0_18:
	add	x1, x9, w8, uxtw
	mov	x2, x3
	mov	x3, x21
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_ivi_mc
.subsections_via_symbols
