	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MDC2_Final                     ## -- Begin function MDC2_Final
	.p2align	4, 0x90
_MDC2_Final:                            ## @MDC2_Final
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rsi), %eax
	movl	4(%rsi), %edx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	cmpl	$2, %edx
	jne	LBB0_5
LBB0_2:
	movq	8(%rbx), %rcx
	cmpl	$2, %edx
	jne	LBB0_4
## %bb.3:
	movl	$128, (%rcx,%rax,4)
	incl	%eax
                                        ## kill: def $eax killed $eax def $rax
LBB0_4:
	movl	%eax, %edx
	leaq	(%rcx,%rdx,4), %rdi
	movq	_MDC2_BLOCK@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	subl	%eax, %edx
	xorl	%esi, %esi
	callq	_memset
	movq	8(%rbx), %rsi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_mdc2_body
LBB0_5:
	movq	24(%rbx), %rsi
	movq	_MDC2_BLOCK@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%r14, %rdi
	callq	_memcpy
	movl	(%r15), %edx
	addq	%rdx, %r14
	movq	16(%rbx), %rsi
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MDC2_BLOCK,4,2                 ## @MDC2_BLOCK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MDC2_Final                     ; -- Begin function MDC2_Final
	.p2align	2
_MDC2_Final:                            ; @MDC2_Final
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	ldp	w8, w10, [x1]
	cmp	w8, #0
	ccmp	w10, #2, #4, eq
Lloh0:
	adrp	x21, _MDC2_BLOCK@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MDC2_BLOCK@GOTPAGEOFF]
	b.ne	LBB0_4
; %bb.1:
	ldr	x9, [x19, #8]
	cmp	w10, #2
	b.ne	LBB0_3
; %bb.2:
	mov	w10, #128
	str	w10, [x9, x8, lsl #2]
	add	w8, w8, #1
                                        ; kill: def $w8 killed $w8 def $x8
LBB0_3:
	add	x0, x9, w8, uxtw #2
	ldr	w9, [x21]
	sub	w2, w9, w8
	mov	w1, #0
	bl	_memset
	ldr	x1, [x19, #8]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_mdc2_body
LBB0_4:
	ldr	x1, [x19, #24]
	ldr	w2, [x21]
	mov	x0, x20
	bl	_memcpy
	ldr	w2, [x21]
	add	x0, x20, x2
	ldr	x1, [x19, #16]
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
	mov	w0, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MDC2_BLOCK,4,2                 ; @MDC2_BLOCK
.subsections_via_symbols
