	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_WHIRLPOOL_Final                ## -- Begin function WHIRLPOOL_Final
	.p2align	4, 0x90
_WHIRLPOOL_Final:                       ## @WHIRLPOOL_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rsi), %ecx
	movq	%rcx, %rdi
	shrq	$3, %rdi
	andl	$7, %ecx
	je	LBB0_2
## %bb.1:
	movl	$128, %eax
                                        ## kill: def $cl killed $cl killed $rcx
	shrl	%cl, %eax
	movq	8(%rbx), %rsi
	orl	%eax, (%rsi,%rdi,4)
	jmp	LBB0_3
LBB0_2:
	movq	8(%rbx), %rsi
	movl	%edi, %eax
	movl	$128, (%rsi,%rax,4)
LBB0_3:
	leal	1(%rdi), %r8d
	movq	_WHIRLPOOL_BBLOCK@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	leal	7(%rcx), %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$3, %eax
	movq	_WHIRLPOOL_COUNTER@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movl	%eax, %edx
	subl	%ecx, %edx
	cmpl	%edx, %edi
	jae	LBB0_4
## %bb.7:
	subl	%r8d, %edx
	ja	LBB0_8
LBB0_9:
	cmpl	$8, %ecx
	jae	LBB0_10
	jmp	LBB0_12
LBB0_4:
	subl	%r8d, %eax
	jbe	LBB0_6
## %bb.5:
	movl	%r8d, %ecx
	leaq	(%rsi,%rcx,4), %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_memset
	movq	8(%rbx), %rsi
LBB0_6:
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_whirlpool_block
	movl	(%r12), %eax
	leal	7(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	movl	(%r15), %ecx
	sarl	$3, %edx
	subl	%ecx, %edx
	xorl	%r8d, %r8d
	subl	%r8d, %edx
	jbe	LBB0_9
LBB0_8:
	movl	%r8d, %edi
	shlq	$2, %rdi
	addq	8(%rbx), %rdi
	xorl	%esi, %esi
	callq	_memset
	movl	(%r15), %ecx
	cmpl	$8, %ecx
	jb	LBB0_12
LBB0_10:
	movq	8(%rbx), %rax
	movl	(%r12), %ecx
	leal	7(%rcx), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	sarl	$3, %edx
	movslq	%edx, %rcx
	leaq	(%rax,%rcx,4), %rax
	addq	$-4, %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rdx
	movq	(%rdx,%rcx,8), %rdx
	bswapq	%rdx
	movq	%rdx, -7(%rax)
	incq	%rcx
	movslq	(%r15), %rdx
	shrq	$3, %rdx
	addq	$-8, %rax
	cmpq	%rdx, %rcx
	jb	LBB0_11
LBB0_12:
	movq	8(%rbx), %rsi
	movl	$1, %r15d
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_whirlpool_block
	testq	%r14, %r14
	je	LBB0_13
## %bb.14:
	movl	24(%rbx), %esi
	movq	_WHIRLPOOL_DIGEST_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_memcpy
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_OPENSSL_cleanse
	jmp	LBB0_15
LBB0_13:
	xorl	%r15d, %r15d
LBB0_15:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WHIRLPOOL_BBLOCK,4,2           ## @WHIRLPOOL_BBLOCK
	.comm	_WHIRLPOOL_COUNTER,4,2          ## @WHIRLPOOL_COUNTER
	.comm	_WHIRLPOOL_DIGEST_LENGTH,4,2    ## @WHIRLPOOL_DIGEST_LENGTH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_WHIRLPOOL_Final                ; -- Begin function WHIRLPOOL_Final
	.p2align	2
_WHIRLPOOL_Final:                       ; @WHIRLPOOL_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
	ldr	w8, [x1]
	lsr	x10, x8, #3
	ands	w8, w8, #0x7
	b.eq	LBB0_2
; %bb.1:
	mov	w9, #128
	lsr	w8, w9, w8
	ldr	x1, [x19, #8]
	lsl	x9, x10, #2
	ldr	w11, [x1, x9]
	orr	w8, w11, w8
	str	w8, [x1, x9]
	b	LBB0_3
LBB0_2:
	ldr	x1, [x19, #8]
	mov	w8, #128
	str	w8, [x1, w10, uxtw #2]
LBB0_3:
	add	w8, w10, #1
Lloh0:
	adrp	x22, _WHIRLPOOL_BBLOCK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _WHIRLPOOL_BBLOCK@GOTPAGEOFF]
	ldr	w9, [x22]
	add	w11, w9, #7
	cmp	w9, #0
	csel	w9, w11, w9, lt
	asr	w12, w9, #3
Lloh2:
	adrp	x21, _WHIRLPOOL_COUNTER@GOTPAGE
Lloh3:
	ldr	x21, [x21, _WHIRLPOOL_COUNTER@GOTPAGEOFF]
	ldr	w9, [x21]
	sub	w11, w12, w9
	cmp	w10, w11
	b.hs	LBB0_6
; %bb.4:
	subs	w2, w11, w8
	b.hi	LBB0_9
LBB0_5:
	cmp	w9, #8
	b.hs	LBB0_10
	b	LBB0_12
LBB0_6:
	subs	w2, w12, w8
	b.ls	LBB0_8
; %bb.7:
	add	x0, x1, w8, uxtw #2
	mov	w1, #0
	bl	_memset
	ldr	x1, [x19, #8]
LBB0_8:
	mov	x0, x19
	mov	w2, #1
	bl	_whirlpool_block
	mov	w8, #0
	ldr	w10, [x22]
	ldr	w9, [x21]
	add	w11, w10, #7
	cmp	w10, #0
	csel	w10, w11, w10, lt
	asr	w10, w10, #3
	sub	w11, w10, w9
	subs	w2, w11, w8
	b.ls	LBB0_5
LBB0_9:
	ldr	x9, [x19, #8]
	add	x0, x9, w8, uxtw #2
	mov	w1, #0
	bl	_memset
	ldr	w9, [x21]
	cmp	w9, #8
	b.lo	LBB0_12
LBB0_10:
	mov	x8, #0
	ldr	x9, [x19, #8]
	ldr	w10, [x22]
	add	w11, w10, #7
	cmp	w10, #0
	csel	w10, w11, w10, lt
	asr	w10, w10, #3
	sub	w10, w10, #1
	add	x9, x9, w10, sxtw #2
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x19, #16]
	ldr	x10, [x10, x8, lsl #3]
	rev	x10, x10
	stur	x10, [x9, #-7]
	add	x8, x8, #1
	ldrsw	x10, [x21]
	sub	x9, x9, #8
	cmp	x8, x10, lsr #3
	b.lo	LBB0_11
LBB0_12:
	ldr	x1, [x19, #8]
	mov	x0, x19
	mov	w2, #1
	bl	_whirlpool_block
	cbz	x20, LBB0_14
; %bb.13:
	ldr	w1, [x19, #24]
Lloh4:
	adrp	x8, _WHIRLPOOL_DIGEST_LENGTH@GOTPAGE
Lloh5:
	ldr	x8, [x8, _WHIRLPOOL_DIGEST_LENGTH@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_memcpy
	mov	x0, x19
	mov	w1, #32
	bl	_OPENSSL_cleanse
	mov	w0, #1
	b	LBB0_15
LBB0_14:
	mov	w0, #0
LBB0_15:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_WHIRLPOOL_BBLOCK,4,2           ; @WHIRLPOOL_BBLOCK
	.comm	_WHIRLPOOL_COUNTER,4,2          ; @WHIRLPOOL_COUNTER
	.comm	_WHIRLPOOL_DIGEST_LENGTH,4,2    ; @WHIRLPOOL_DIGEST_LENGTH
.subsections_via_symbols
