	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mc_part
_mc_part:                               ## @mc_part
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	112(%rbp), %r10d
	movl	104(%rbp), %r15d
	movl	16(%rsi), %eax
	testl	%r10d, %r10d
	je	LBB0_5
## %bb.1:
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.2:
	cmpl	$2, %eax
	jne	LBB0_5
## %bb.3:
	movq	24(%rsi), %r11
	movq	(%rsi), %rbx
	movq	_scan8@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edx, %r12
	movq	(%rax,%r12,8), %rax
	movq	(%rbx), %r12
	movq	8(%rbx), %r13
	movq	(%r12,%rax,8), %rbx
	movq	(%r11,%rbx,8), %rbx
	movq	(%r13,%rax,8), %rax
	movq	(%rbx,%rax,8), %rax
	movl	8(%rsi), %ebx
	andl	$1, %ebx
	cmpl	$32, (%rax,%rbx,4)
	je	LBB0_4
LBB0_6:
	movq	96(%rbp), %rax
	movq	88(%rbp), %rbx
	movl	(%rbx), %r11d
	movl	4(%rbx), %r12d
	movl	(%rax), %r13d
	movl	4(%rax), %eax
	movq	_PIXEL_SHIFT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ebx
	movq	_CHROMA_IDC@GOTPCREL(%rip), %r14
	movl	(%r14), %r14d
	subq	$8, %rsp
	pushq	%r14
	pushq	%rbx
	pushq	%r10
	pushq	%r15
	pushq	%rax
	pushq	%r13
	pushq	%r12
	pushq	%r11
	movl	64(%rbp), %eax
	pushq	%rax
	pushq	56(%rbp)
	movl	48(%rbp), %eax
	pushq	%rax
	movl	40(%rbp), %eax
	pushq	%rax
	pushq	32(%rbp)
	pushq	24(%rbp)
	pushq	16(%rbp)
	callq	_mc_part_weighted
	addq	$136, %rsp
	jmp	LBB0_7
LBB0_5:
	cmpl	$1, %eax
	je	LBB0_6
LBB0_4:
	movl	80(%rbp), %r11d
	movq	_PIXEL_SHIFT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ebx
	movq	_CHROMA_IDC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	pushq	%rax
	pushq	%rbx
	pushq	%r10
	pushq	%r15
	pushq	%r11
	pushq	72(%rbp)
	movl	64(%rbp), %eax
	pushq	%rax
	pushq	56(%rbp)
	movl	48(%rbp), %eax
	pushq	%rax
	movl	40(%rbp), %eax
	pushq	%rax
	pushq	32(%rbp)
	pushq	24(%rbp)
	pushq	16(%rbp)
	callq	_mc_part_std
	addq	$120, %rsp
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_scan8,8,3                      ## @scan8
	.comm	_PIXEL_SHIFT,4,2                ## @PIXEL_SHIFT
	.comm	_CHROMA_IDC,4,2                 ## @CHROMA_IDC
	.no_dead_strip	_mc_part
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mc_part
_mc_part:                               ; @mc_part
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	.cfi_offset w19, -8
	.cfi_offset w20, -16
	.cfi_offset w21, -24
	.cfi_offset w22, -32
	.cfi_offset w23, -40
	.cfi_offset w24, -48
	ldp	w9, w8, [sp, #112]
	ldp	x19, x17, [sp, #96]
	ldr	w14, [sp, #88]
	ldr	x16, [sp, #80]
	ldr	w10, [sp, #72]
	ldr	x11, [sp, #64]
	ldp	w13, w12, [sp, #56]
	ldr	x15, [sp, #48]
	ldr	w20, [x1, #16]
	cbz	w8, LBB0_5
; %bb.1:
	cbz	w9, LBB0_5
; %bb.2:
	cmp	w20, #2
	b.ne	LBB0_5
; %bb.3:
	ldr	x20, [x1, #24]
Lloh0:
	adrp	x21, _scan8@GOTPAGE
Lloh1:
	ldr	x21, [x21, _scan8@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x21]
	ldr	x21, [x21, w2, sxtw #3]
	ldr	x22, [x1]
	lsl	x21, x21, #3
	ldp	x23, x22, [x22]
	ldr	x23, [x23, x21]
	ldr	x20, [x20, x23, lsl #3]
	ldr	x21, [x22, x21]
	ldr	x20, [x20, x21, lsl #3]
	ldr	w21, [x1, #8]
	and	x21, x21, #0x1
	ldr	w20, [x20, x21, lsl #2]
	cmp	w20, #32
	b.eq	LBB0_6
LBB0_4:
	ldp	w14, w16, [x19]
	ldp	w19, w17, [x17]
Lloh3:
	adrp	x20, _PIXEL_SHIFT@GOTPAGE
Lloh4:
	ldr	x20, [x20, _PIXEL_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x20]
Lloh6:
	adrp	x21, _CHROMA_IDC@GOTPAGE
Lloh7:
	ldr	x21, [x21, _CHROMA_IDC@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x21]
	str	x15, [sp, #48]
	stp	w13, w12, [sp, #56]
	str	x11, [sp, #64]
	stp	w10, w14, [sp, #72]
	stp	w16, w19, [sp, #80]
	stp	w17, w9, [sp, #88]
	stp	w8, w20, [sp, #96]
	str	w21, [sp, #104]
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #48             ; 16-byte Folded Reload
	b	_mc_part_weighted
LBB0_5:
	cmp	w20, #1
	b.eq	LBB0_4
LBB0_6:
Lloh9:
	adrp	x17, _PIXEL_SHIFT@GOTPAGE
Lloh10:
	ldr	x17, [x17, _PIXEL_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w17, [x17]
Lloh12:
	adrp	x19, _CHROMA_IDC@GOTPAGE
Lloh13:
	ldr	x19, [x19, _CHROMA_IDC@GOTPAGEOFF]
Lloh14:
	ldr	w19, [x19]
	str	x15, [sp, #48]
	stp	w13, w12, [sp, #56]
	str	x11, [sp, #64]
	str	w10, [sp, #72]
	str	x16, [sp, #80]
	stp	w14, w9, [sp, #88]
	stp	w8, w17, [sp, #96]
	str	w19, [sp, #104]
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #48             ; 16-byte Folded Reload
	b	_mc_part_std
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_scan8,8,3                      ; @scan8
	.comm	_PIXEL_SHIFT,4,2                ; @PIXEL_SHIFT
	.comm	_CHROMA_IDC,4,2                 ; @CHROMA_IDC
	.no_dead_strip	_mc_part
.subsections_via_symbols
