	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RMD160Update                   ## -- Begin function RMD160Update
	.p2align	4, 0x90
_RMD160Update:                          ## @RMD160Update
	.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, %r14
	movq	%rdi, %r15
	movl	(%rdi), %ecx
	leal	7(%rcx), %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$3, %eax
	movq	_RMD160_BLOCK_LENGTH@GOTPCREL(%rip), %r13
	movslq	(%r13), %rbx
	cltd
	idivl	%ebx
	movslq	%edx, %rdi
	subq	%rdi, %rbx
	leal	(%rcx,%r12,8), %eax
	movl	%eax, (%r15)
	cmpq	%r12, %rbx
	jbe	LBB0_2
## %bb.1:
	xorl	%ebx, %ebx
	cmpq	%r12, %rbx
	jb	LBB0_11
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	testl	%edx, %edx
	je	LBB0_3
## %bb.4:
	shlq	$2, %rdi
	addq	8(%r15), %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	movl	16(%r15), %edi
	movq	8(%r15), %rsi
	callq	_RMD160Transform
	movslq	(%r13), %rax
	jmp	LBB0_7
LBB0_3:
	xorl	%ebx, %ebx
	movslq	(%r13), %rax
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	16(%r15), %edi
	leaq	(%r14,%rbx,4), %rsi
	callq	_RMD160Transform
	movslq	(%r13), %rax
	addq	%rax, %rbx
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	addq	%rbx, %rax
	cmpq	%r12, %rax
	jbe	LBB0_6
## %bb.8:
	xorl	%edi, %edi
	cmpq	%r12, %rbx
	jae	LBB0_10
LBB0_11:
	shlq	$2, %rdi
	addq	8(%r15), %rdi
	leaq	(%r14,%rbx,4), %rsi
	subq	%rbx, %r12
	movq	%r12, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memcpy                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RMD160_BLOCK_LENGTH,4,2        ## @RMD160_BLOCK_LENGTH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RMD160Update                   ; -- Begin function RMD160Update
	.p2align	2
_RMD160Update:                          ; @RMD160Update
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w9, [x0]
	add	w8, w9, #7
	cmp	w9, #0
	csel	w8, w8, w9, lt
	asr	w8, w8, #3
Lloh0:
	adrp	x23, _RMD160_BLOCK_LENGTH@GOTPAGE
Lloh1:
	ldr	x23, [x23, _RMD160_BLOCK_LENGTH@GOTPAGEOFF]
	ldrsw	x10, [x23]
	sdiv	w11, w8, w10
	msub	w8, w11, w10, w8
	sxtw	x8, w8
	add	w9, w9, w19, lsl #3
	str	w9, [x0]
	sub	x22, x10, x8
	cmp	x22, x2
	b.ls	LBB0_3
; %bb.1:
	mov	x22, #0
	cmp	x22, x19
	b.lo	LBB0_9
LBB0_2:
	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
LBB0_3:
	cbz	w8, LBB0_5
; %bb.4:
	ldr	x9, [x21, #8]
	add	x0, x9, x8, lsl #2
	mov	x1, x20
	mov	x2, x22
	bl	_memcpy
	ldr	w0, [x21, #16]
	ldr	x1, [x21, #8]
	bl	_RMD160Transform
	ldrsw	x8, [x23]
	b	LBB0_7
LBB0_5:
	mov	x22, #0
	ldrsw	x8, [x23]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x21, #16]
	add	x1, x20, x22, lsl #2
	bl	_RMD160Transform
	ldrsw	x8, [x23]
	add	x22, x22, x8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x22, x8
	cmp	x8, x19
	b.ls	LBB0_6
; %bb.8:
	mov	x8, #0
	cmp	x22, x19
	b.hs	LBB0_2
LBB0_9:
	ldr	x9, [x21, #8]
	add	x0, x9, x8, lsl #2
	add	x1, x20, x22, lsl #2
	sub	x2, x19, x22
	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
	b	_memcpy
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_RMD160_BLOCK_LENGTH,4,2        ; @RMD160_BLOCK_LENGTH
.subsections_via_symbols
