	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_sha_finish
_mtk_sha_finish:                        ## @mtk_sha_finish
	.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	%rdi, %r14
	callq	_ahash_request_ctx
	movq	%rax, %r13
	movq	8(%rax), %r15
	movq	(%r14), %r12
	movl	4(%rax), %edi
	callq	_SIZE_IN_WORDS
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%rbx,4), %edi
	callq	_le32_to_cpu
	movl	%eax, (%r12,%rbx,4)
	incq	%rbx
	movl	4(%r13), %edi
	callq	_SIZE_IN_WORDS
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	_SHA_FLAGS_HMAC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_4
## %bb.5:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mtk_sha_finish_hmac            ## TAILCALL
LBB0_4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SHA_FLAGS_HMAC,4,2             ## @SHA_FLAGS_HMAC
	.no_dead_strip	_mtk_sha_finish
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_sha_finish
_mtk_sha_finish:                        ; @mtk_sha_finish
	.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, x0
	bl	_ahash_request_ctx
	mov	x20, x0
	ldr	x21, [x0, #8]
	ldr	x22, [x19]
	ldr	w0, [x0, #4]
	bl	_SIZE_IN_WORDS
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x24, x23, #2
	ldr	w0, [x21, x24]
	bl	_le32_to_cpu
	str	w0, [x22, x24]
	add	x23, x23, #1
	ldr	w0, [x20, #4]
	bl	_SIZE_IN_WORDS
	cmp	x23, w0, sxtw
	b.lt	LBB0_2
LBB0_3:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _SHA_FLAGS_HMAC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SHA_FLAGS_HMAC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	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	_mtk_sha_finish_hmac
LBB0_5:
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SHA_FLAGS_HMAC,4,2             ; @SHA_FLAGS_HMAC
	.no_dead_strip	_mtk_sha_finish
.subsections_via_symbols
