	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function safexcel_ahash_final
_safexcel_ahash_final:                  ## @safexcel_ahash_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	%rdi, %r14
	callq	_ahash_request_ctx
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_crypto_ahash_reqtfm
	movl	%eax, %edi
	callq	_crypto_ahash_ctx
	movq	%rax, %r15
	movl	$1, (%rbx)
	xorl	%edi, %edi
	cmpl	$0, 4(%rbx)
	jne	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	cmpl	$0, (%r14)
	sete	%dil
LBB0_2:
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_17
## %bb.3:
	movq	(%r15), %rax
	movq	_CONTEXT_CONTROL_CRYPTO_ALG_MD5@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.4:
	movl	4(%r14), %edi
	movq	_md5_zero_message_hash@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MD5_DIGEST_SIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_17:
	xorl	%edi, %edi
	cmpq	$0, 40(%rbx)
	je	LBB0_20
## %bb.18:
	movl	4(%rbx), %eax
	cmpl	8(%rbx), %eax
	jne	LBB0_20
## %bb.19:
	xorl	%edi, %edi
	cmpl	$0, (%r14)
	sete	%dil
LBB0_20:
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_25
## %bb.21:
	movq	16(%rbx), %rdi
	movl	8(%rbx), %edx
	xorl	%esi, %esi
	callq	_memset
	movq	16(%rbx), %rax
	movl	$128, (%rax)
	cmpq	$0, 48(%rbx)
	movslq	8(%rbx), %rcx
	je	LBB0_23
## %bb.22:
	leal	(,%rcx,8), %edx
	movzbl	%dl, %edx
	movl	%edx, -32(%rax,%rcx,4)
	movl	8(%rbx), %ecx
	movl	%ecx, %edx
	sarl	$5, %edx
	addl	$-7, %ecx
	jmp	LBB0_24
LBB0_7:
	movq	_CONTEXT_CONTROL_CRYPTO_ALG_SHA1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movl	4(%r14), %edi
	movq	_sha1_zero_message_hash@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SHA1_DIGEST_SIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_9:
	movq	_CONTEXT_CONTROL_CRYPTO_ALG_SHA224@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.10:
	movl	4(%r14), %edi
	movq	_sha224_zero_message_hash@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SHA224_DIGEST_SIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_25:
	cmpq	$0, 40(%rbx)
	jne	LBB0_26
	jmp	LBB0_27
LBB0_23:
	movl	%ecx, %edx
	sarl	$5, %edx
	movl	%edx, -8(%rax,%rcx,4)
	movl	8(%rbx), %ecx
	leal	(,%rcx,8), %edx
	movzbl	%dl, %edx
	decl	%ecx
LBB0_24:
	movslq	%ecx, %rcx
	movl	%edx, (%rax,%rcx,4)
	movl	8(%rbx), %eax
	addl	%eax, 4(%rbx)
	movl	$1, 24(%rbx)
LBB0_26:
	movq	_CONTEXT_CONTROL_DIGEST_HMAC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
LBB0_27:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_safexcel_ahash_enqueue         ## TAILCALL
LBB0_11:
	movq	_CONTEXT_CONTROL_CRYPTO_ALG_SHA256@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.12:
	movl	4(%r14), %edi
	movq	_sha256_zero_message_hash@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SHA256_DIGEST_SIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_13:
	movq	_CONTEXT_CONTROL_CRYPTO_ALG_SHA384@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.14:
	movl	4(%r14), %edi
	movq	_sha384_zero_message_hash@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SHA384_DIGEST_SIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_15:
	movq	_CONTEXT_CONTROL_CRYPTO_ALG_SHA512@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.16:
	movl	4(%r14), %edi
	movq	_sha512_zero_message_hash@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SHA512_DIGEST_SIZE@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edx
	callq	_memcpy
LBB0_6:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CONTEXT_CONTROL_CRYPTO_ALG_MD5,8,3 ## @CONTEXT_CONTROL_CRYPTO_ALG_MD5
	.comm	_md5_zero_message_hash,4,2      ## @md5_zero_message_hash
	.comm	_MD5_DIGEST_SIZE,4,2            ## @MD5_DIGEST_SIZE
	.comm	_CONTEXT_CONTROL_CRYPTO_ALG_SHA1,8,3 ## @CONTEXT_CONTROL_CRYPTO_ALG_SHA1
	.comm	_sha1_zero_message_hash,4,2     ## @sha1_zero_message_hash
	.comm	_SHA1_DIGEST_SIZE,4,2           ## @SHA1_DIGEST_SIZE
	.comm	_CONTEXT_CONTROL_CRYPTO_ALG_SHA224,8,3 ## @CONTEXT_CONTROL_CRYPTO_ALG_SHA224
	.comm	_sha224_zero_message_hash,4,2   ## @sha224_zero_message_hash
	.comm	_SHA224_DIGEST_SIZE,4,2         ## @SHA224_DIGEST_SIZE
	.comm	_CONTEXT_CONTROL_CRYPTO_ALG_SHA256,8,3 ## @CONTEXT_CONTROL_CRYPTO_ALG_SHA256
	.comm	_sha256_zero_message_hash,4,2   ## @sha256_zero_message_hash
	.comm	_SHA256_DIGEST_SIZE,4,2         ## @SHA256_DIGEST_SIZE
	.comm	_CONTEXT_CONTROL_CRYPTO_ALG_SHA384,8,3 ## @CONTEXT_CONTROL_CRYPTO_ALG_SHA384
	.comm	_sha384_zero_message_hash,4,2   ## @sha384_zero_message_hash
	.comm	_SHA384_DIGEST_SIZE,4,2         ## @SHA384_DIGEST_SIZE
	.comm	_CONTEXT_CONTROL_CRYPTO_ALG_SHA512,8,3 ## @CONTEXT_CONTROL_CRYPTO_ALG_SHA512
	.comm	_sha512_zero_message_hash,4,2   ## @sha512_zero_message_hash
	.comm	_SHA512_DIGEST_SIZE,4,2         ## @SHA512_DIGEST_SIZE
	.comm	_CONTEXT_CONTROL_DIGEST_HMAC,8,3 ## @CONTEXT_CONTROL_DIGEST_HMAC
	.no_dead_strip	_safexcel_ahash_final
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function safexcel_ahash_final
_safexcel_ahash_final:                  ; @safexcel_ahash_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, x0
	bl	_ahash_request_ctx
	mov	x20, x0
	mov	x0, x19
	bl	_crypto_ahash_reqtfm
	bl	_crypto_ahash_ctx
	mov	x21, x0
	mov	w8, #1
	str	w8, [x20]
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_4
; %bb.1:
	mov	w0, #0
	bl	_unlikely
	cbz	x0, LBB0_5
LBB0_2:
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _CONTEXT_CONTROL_CRYPTO_ALG_MD5@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CONTEXT_CONTROL_CRYPTO_ALG_MD5@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.3:
	ldr	w0, [x19, #4]
Lloh3:
	adrp	x8, _md5_zero_message_hash@GOTPAGE
Lloh4:
	ldr	x8, [x8, _md5_zero_message_hash@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _MD5_DIGEST_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MD5_DIGEST_SIZE@GOTPAGEOFF]
	b	LBB0_26
LBB0_4:
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_2
LBB0_5:
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_11
; %bb.6:
	ldp	w8, w9, [x20, #4]
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.7:
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_12
LBB0_8:
	ldr	x8, [x20, #40]
	cbnz	x8, LBB0_18
	b	LBB0_19
LBB0_9:
Lloh8:
	adrp	x9, _CONTEXT_CONTROL_CRYPTO_ALG_SHA1@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CONTEXT_CONTROL_CRYPTO_ALG_SHA1@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.10:
	ldr	w0, [x19, #4]
Lloh11:
	adrp	x8, _sha1_zero_message_hash@GOTPAGE
Lloh12:
	ldr	x8, [x8, _sha1_zero_message_hash@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _SHA1_DIGEST_SIZE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SHA1_DIGEST_SIZE@GOTPAGEOFF]
	b	LBB0_26
LBB0_11:
	mov	w0, #0
	bl	_unlikely
	cbz	x0, LBB0_8
LBB0_12:
	ldr	x0, [x20, #16]
	ldr	w2, [x20, #8]
	mov	w1, #0
	bl	_memset
	ldr	x8, [x20, #16]
	mov	w9, #128
	str	w9, [x8]
	ldr	x10, [x20, #48]
	ldr	w9, [x20, #8]
	cbz	x10, LBB0_16
; %bb.13:
	ubfiz	w10, w9, #3, #5
	sub	w9, w9, #8
	str	w10, [x8, w9, sxtw #2]
	ldr	w10, [x20, #8]
	asr	w9, w10, #5
	sub	w10, w10, #7
	b	LBB0_17
LBB0_14:
Lloh16:
	adrp	x9, _CONTEXT_CONTROL_CRYPTO_ALG_SHA224@GOTPAGE
Lloh17:
	ldr	x9, [x9, _CONTEXT_CONTROL_CRYPTO_ALG_SHA224@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.15:
	ldr	w0, [x19, #4]
Lloh19:
	adrp	x8, _sha224_zero_message_hash@GOTPAGE
Lloh20:
	ldr	x8, [x8, _sha224_zero_message_hash@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _SHA224_DIGEST_SIZE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SHA224_DIGEST_SIZE@GOTPAGEOFF]
	b	LBB0_26
LBB0_16:
	asr	w10, w9, #5
	sub	w9, w9, #2
	str	w10, [x8, w9, sxtw #2]
	ldr	w10, [x20, #8]
	ubfiz	w9, w10, #3, #5
	sub	w10, w10, #1
LBB0_17:
	str	w9, [x8, w10, sxtw #2]
	ldp	w9, w8, [x20, #4]
	add	w8, w9, w8
	str	w8, [x20, #4]
	mov	w8, #1
	str	w8, [x20, #24]
LBB0_18:
Lloh24:
	adrp	x8, _CONTEXT_CONTROL_DIGEST_HMAC@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CONTEXT_CONTROL_DIGEST_HMAC@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	str	x8, [x20, #32]
LBB0_19:
	mov	x0, x19
	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
	b	_safexcel_ahash_enqueue
LBB0_20:
Lloh27:
	adrp	x9, _CONTEXT_CONTROL_CRYPTO_ALG_SHA256@GOTPAGE
Lloh28:
	ldr	x9, [x9, _CONTEXT_CONTROL_CRYPTO_ALG_SHA256@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_22
; %bb.21:
	ldr	w0, [x19, #4]
Lloh30:
	adrp	x8, _sha256_zero_message_hash@GOTPAGE
Lloh31:
	ldr	x8, [x8, _sha256_zero_message_hash@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
Lloh33:
	adrp	x8, _SHA256_DIGEST_SIZE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SHA256_DIGEST_SIZE@GOTPAGEOFF]
	b	LBB0_26
LBB0_22:
Lloh35:
	adrp	x9, _CONTEXT_CONTROL_CRYPTO_ALG_SHA384@GOTPAGE
Lloh36:
	ldr	x9, [x9, _CONTEXT_CONTROL_CRYPTO_ALG_SHA384@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_24
; %bb.23:
	ldr	w0, [x19, #4]
Lloh38:
	adrp	x8, _sha384_zero_message_hash@GOTPAGE
Lloh39:
	ldr	x8, [x8, _sha384_zero_message_hash@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
Lloh41:
	adrp	x8, _SHA384_DIGEST_SIZE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _SHA384_DIGEST_SIZE@GOTPAGEOFF]
	b	LBB0_26
LBB0_24:
Lloh43:
	adrp	x9, _CONTEXT_CONTROL_CRYPTO_ALG_SHA512@GOTPAGE
Lloh44:
	ldr	x9, [x9, _CONTEXT_CONTROL_CRYPTO_ALG_SHA512@GOTPAGEOFF]
Lloh45:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_27
; %bb.25:
	ldr	w0, [x19, #4]
Lloh46:
	adrp	x8, _sha512_zero_message_hash@GOTPAGE
Lloh47:
	ldr	x8, [x8, _sha512_zero_message_hash@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
Lloh49:
	adrp	x8, _SHA512_DIGEST_SIZE@GOTPAGE
Lloh50:
	ldr	x8, [x8, _SHA512_DIGEST_SIZE@GOTPAGEOFF]
LBB0_26:
	ldr	w2, [x8]
	bl	_memcpy
LBB0_27:
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_CONTEXT_CONTROL_CRYPTO_ALG_MD5,8,3 ; @CONTEXT_CONTROL_CRYPTO_ALG_MD5
	.comm	_md5_zero_message_hash,4,2      ; @md5_zero_message_hash
	.comm	_MD5_DIGEST_SIZE,4,2            ; @MD5_DIGEST_SIZE
	.comm	_CONTEXT_CONTROL_CRYPTO_ALG_SHA1,8,3 ; @CONTEXT_CONTROL_CRYPTO_ALG_SHA1
	.comm	_sha1_zero_message_hash,4,2     ; @sha1_zero_message_hash
	.comm	_SHA1_DIGEST_SIZE,4,2           ; @SHA1_DIGEST_SIZE
	.comm	_CONTEXT_CONTROL_CRYPTO_ALG_SHA224,8,3 ; @CONTEXT_CONTROL_CRYPTO_ALG_SHA224
	.comm	_sha224_zero_message_hash,4,2   ; @sha224_zero_message_hash
	.comm	_SHA224_DIGEST_SIZE,4,2         ; @SHA224_DIGEST_SIZE
	.comm	_CONTEXT_CONTROL_CRYPTO_ALG_SHA256,8,3 ; @CONTEXT_CONTROL_CRYPTO_ALG_SHA256
	.comm	_sha256_zero_message_hash,4,2   ; @sha256_zero_message_hash
	.comm	_SHA256_DIGEST_SIZE,4,2         ; @SHA256_DIGEST_SIZE
	.comm	_CONTEXT_CONTROL_CRYPTO_ALG_SHA384,8,3 ; @CONTEXT_CONTROL_CRYPTO_ALG_SHA384
	.comm	_sha384_zero_message_hash,4,2   ; @sha384_zero_message_hash
	.comm	_SHA384_DIGEST_SIZE,4,2         ; @SHA384_DIGEST_SIZE
	.comm	_CONTEXT_CONTROL_CRYPTO_ALG_SHA512,8,3 ; @CONTEXT_CONTROL_CRYPTO_ALG_SHA512
	.comm	_sha512_zero_message_hash,4,2   ; @sha512_zero_message_hash
	.comm	_SHA512_DIGEST_SIZE,4,2         ; @SHA512_DIGEST_SIZE
	.comm	_CONTEXT_CONTROL_DIGEST_HMAC,8,3 ; @CONTEXT_CONTROL_DIGEST_HMAC
	.no_dead_strip	_safexcel_ahash_final
.subsections_via_symbols
