	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MDC2_Update                    ## -- Begin function MDC2_Update
	.p2align	4, 0x90
_MDC2_Update:                           ## @MDC2_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movq	_MDC2_BLOCK@GOTPCREL(%rip), %r13
	movq	(%r13), %rbx
	subq	%rdi, %rbx
	addq	8(%r14), %rdi
	cmpq	%r12, %rbx
	jbe	LBB0_3
## %bb.2:
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_memcpy
	movslq	%r12d, %rax
	addq	(%r14), %rax
	jmp	LBB0_8
LBB0_3:
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	subq	%rbx, %r12
	addq	%rbx, %r15
	movq	$0, (%r14)
	movq	8(%r14), %rsi
	movq	(%r13), %rdx
	movq	%r14, %rdi
	callq	_mdc2_body
LBB0_4:
	movq	_MDC2_BLOCK@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subq	(%rax), %rbx
	andq	%r12, %rbx
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_mdc2_body
LBB0_6:
	subq	%rbx, %r12
	je	LBB0_9
## %bb.7:
	movq	8(%r14), %rdi
	addq	%rbx, %r15
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_memcpy
	movslq	%r12d, %rax
LBB0_8:
	movq	%rax, (%r14)
LBB0_9:
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MDC2_BLOCK,8,3                 ## @MDC2_BLOCK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MDC2_Update                    ; -- Begin function MDC2_Update
	.p2align	2
_MDC2_Update:                           ; @MDC2_Update
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x23, _MDC2_BLOCK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MDC2_BLOCK@GOTPAGEOFF]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x9, [x23]
	ldr	x10, [x19, #8]
	add	x0, x10, x8
	sub	x22, x9, x8
	cmp	x22, x20
	b.ls	LBB0_3
; %bb.2:
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	ldr	x8, [x19]
	add	x8, x8, w20, sxtw
	b	LBB0_8
LBB0_3:
	mov	x1, x21
	mov	x2, x22
	bl	_memcpy
	sub	x20, x20, x22
	add	x21, x21, x22
	str	xzr, [x19]
	ldr	x1, [x19, #8]
	ldr	x2, [x23]
	mov	x0, x19
	bl	_mdc2_body
LBB0_4:
	ldr	x8, [x23]
	neg	x8, x8
	ands	x22, x20, x8
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_mdc2_body
LBB0_6:
	subs	x20, x20, x22
	b.eq	LBB0_9
; %bb.7:
	ldr	x0, [x19, #8]
	add	x1, x21, x22
	mov	x2, x20
	bl	_memcpy
	sxtw	x8, w20
LBB0_8:
	str	x8, [x19]
LBB0_9:
	mov	w0, #1
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MDC2_BLOCK,8,3                 ; @MDC2_BLOCK
.subsections_via_symbols
