	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MD2_Update                     ## -- Begin function MD2_Update
	.p2align	4, 0x90
_MD2_Update:                            ## @MD2_Update
	.cfi_startproc
## %bb.0:
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.1:
	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, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %r12
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	leaq	(%rax,%r15), %rcx
	movq	_MD2_BLOCK@GOTPCREL(%rip), %r13
	movq	(%r13), %rdx
	leaq	(%r12,%rax), %rdi
	cmpq	%rdx, %rcx
	jae	LBB0_4
## %bb.11:
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_memcpy
	movslq	%r15d, %rax
	addq	8(%r14), %rax
	jmp	LBB0_9
LBB0_2:
	movq	_MD2_BLOCK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %r15
	jae	LBB0_6
	jmp	LBB0_8
LBB0_4:
	subq	%rax, %rdx
	movq	%rbx, %rsi
	callq	_memcpy
	movq	(%r14), %rsi
	movq	%r14, %rdi
	callq	_md2_block
	movq	(%r13), %rax
	movq	%rax, %rcx
	subq	8(%r14), %rcx
	addq	%rcx, %rbx
	subq	%rcx, %r15
	movq	$0, 8(%r14)
	cmpq	%rax, %r15
	jb	LBB0_8
LBB0_6:
	movq	_MD2_BLOCK@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_md2_block
	movq	(%r13), %rax
	addq	%rax, %rbx
	subq	%rax, %r15
	cmpq	%rax, %r15
	jae	LBB0_7
LBB0_8:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_memcpy
	movslq	%r15d, %rax
LBB0_9:
	movq	%rax, 8(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
LBB0_10:
	movl	$1, %eax
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MD2_BLOCK,8,3                  ## @MD2_BLOCK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MD2_Update                     ; -- Begin function MD2_Update
	.p2align	2
_MD2_Update:                            ; @MD2_Update
	.cfi_startproc
; %bb.0:
	cbz	x2, LBB0_10
; %bb.1:
	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
	ldp	x22, x8, [x0]
	cbz	x8, LBB0_4
; %bb.2:
Lloh0:
	adrp	x23, _MD2_BLOCK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MD2_BLOCK@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x22, x8
	add	x10, x8, x20
	cmp	x10, x9
	b.hs	LBB0_5
; %bb.3:
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	ldr	x8, [x19, #8]
	add	x8, x8, w20, sxtw
	b	LBB0_9
LBB0_4:
Lloh2:
	adrp	x8, _MD2_BLOCK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MD2_BLOCK@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x20, x8
	b.hs	LBB0_6
	b	LBB0_8
LBB0_5:
	sub	x2, x9, x8
	mov	x1, x21
	bl	_memcpy
	ldr	x1, [x19]
	mov	x0, x19
	bl	_md2_block
	ldr	x8, [x23]
	ldr	x9, [x19, #8]
	sub	x9, x8, x9
	add	x21, x21, x9
	sub	x20, x20, x9
	str	xzr, [x19, #8]
	cmp	x20, x8
	b.lo	LBB0_8
LBB0_6:
Lloh5:
	adrp	x23, _MD2_BLOCK@GOTPAGE
Lloh6:
	ldr	x23, [x23, _MD2_BLOCK@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_md2_block
	ldr	x8, [x23]
	add	x21, x21, x8
	sub	x20, x20, x8
	cmp	x20, x8
	b.hs	LBB0_7
LBB0_8:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	sxtw	x8, w20
LBB0_9:
	str	x8, [x19, #8]
	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
LBB0_10:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	.cfi_same_value w23
	.cfi_same_value w24
	mov	w0, #1
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MD2_BLOCK,8,3                  ; @MD2_BLOCK
.subsections_via_symbols
