	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_sha_final
_mtk_sha_final:                         ## @mtk_sha_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_ahash_request_ctx
	movq	_SHA_FLAGS_FINUP@GOTPCREL(%rip), %rcx
	movl	(%rax), %edx
	orl	(%rcx), %edx
	movl	%edx, (%rax)
	movq	_SHA_FLAGS_PAD@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_mtk_sha_finish                 ## TAILCALL
LBB0_2:
	movq	_SHA_OP_FINAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_mtk_sha_enqueue                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SHA_FLAGS_FINUP,4,2            ## @SHA_FLAGS_FINUP
	.comm	_SHA_FLAGS_PAD,4,2              ## @SHA_FLAGS_PAD
	.comm	_SHA_OP_FINAL,4,2               ## @SHA_OP_FINAL
	.no_dead_strip	_mtk_sha_final
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_sha_final
_mtk_sha_final:                         ; @mtk_sha_final
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_ahash_request_ctx
Lloh0:
	adrp	x8, _SHA_FLAGS_FINUP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SHA_FLAGS_FINUP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
Lloh3:
	adrp	x9, _SHA_FLAGS_PAD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SHA_FLAGS_PAD@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mtk_sha_finish
LBB0_2:
Lloh6:
	adrp	x8, _SHA_OP_FINAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SHA_OP_FINAL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mtk_sha_enqueue
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SHA_FLAGS_FINUP,4,2            ; @SHA_FLAGS_FINUP
	.comm	_SHA_FLAGS_PAD,4,2              ; @SHA_FLAGS_PAD
	.comm	_SHA_OP_FINAL,4,2               ; @SHA_OP_FINAL
	.no_dead_strip	_mtk_sha_final
.subsections_via_symbols
