	.file	"extr_mtk-sha.c_mtk_sha_info_update.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"dma %zu bytes error\n"
	.text
	.p2align 4
	.type	mtk_sha_info_update, @function
mtk_sha_info_update:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	add	r12, r13
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	edi, DWORD PTR [rsi]
	call	ahash_request_ctx@PLT
	mov	rdi, r12
	mov	rbx, rax
	lea	r14, 24[rax]
	mov	eax, DWORD PTR SHA_DATA_LEN_MSK[rip]
	not	eax
	and	DWORD PTR 16[rbx], eax
	call	cpu_to_le32@PLT
	mov	rdx, QWORD PTR 32[rbx]
	or	DWORD PTR 16[rbx], eax
	mov	rdi, r12
	mov	eax, DWORD PTR SHA_DATA_LEN_MSK[rip]
	not	eax
	and	DWORD PTR [rdx], eax
	call	cpu_to_le32@PLT
	mov	rdx, QWORD PTR 8[rbx]
	mov	r8d, eax
	mov	rax, QWORD PTR 32[rbx]
	or	DWORD PTR [rax], r8d
	test	rdx, rdx
	je	.L2
	mov	eax, DWORD PTR SHA_TFM_START[rip]
	mov	rcx, QWORD PTR 24[rbx]
	not	eax
	and	DWORD PTR [rcx], eax
.L2:
	add	rdx, r13
	mov	ecx, DWORD PTR DMA_BIDIRECTIONAL[rip]
	mov	edi, DWORD PTR 0[rbp]
	mov	rsi, r14
	mov	QWORD PTR 8[rbx], rdx
	mov	edx, 16
	call	dma_map_single@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	DWORD PTR [rbx], eax
	mov	esi, eax
	call	dma_mapping_error@PLT
	mov	edi, eax
	call	unlikely@PLT
	test	rax, rax
	jne	.L10
	mov	eax, DWORD PTR [rbx]
	add	eax, 16
	mov	DWORD PTR 4[rbx], eax
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[rbp]
	mov	edx, 16
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	mtk_sha_info_update, .-mtk_sha_info_update
	.comm	SHA_TFM_START,4,4
	.comm	SHA_DATA_LEN_MSK,4,4
	.comm	EINVAL,4,4
	.comm	DMA_BIDIRECTIONAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_mtk-sha.c_mtk_sha_info_update.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"dma %zu bytes error\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mtk_sha_info_update, %function
mtk_sha_info_update:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	ldr	r0, [r1]
	mov	r7, r2
	mov	r5, r3
	bl	ahash_request_ctx
	ldr	r8, .L11
	ldr	r2, [r0, #12]
	ldr	r3, [r8]
	mov	r4, r0
	bic	r3, r2, r3
	add	r5, r7, r5
	str	r3, [r0, #12]
	mov	r0, r5
	bl	cpu_to_le32
	ldr	r3, [r4, #12]
	ldr	r2, [r4, #20]
	orr	r3, r3, r0
	str	r3, [r4, #12]
	ldr	r1, [r8]
	ldr	r3, [r2]
	mov	r0, r5
	bic	r3, r3, r1
	str	r3, [r2]
	bl	cpu_to_le32
	ldr	r1, [r4, #20]
	ldr	r3, [r4, #8]
	ldr	r2, [r1]
	cmp	r3, #0
	orr	r2, r2, r0
	str	r2, [r1]
	add	r1, r4, #16
	beq	.L2
	ldr	r0, [r4, #16]
	ldr	ip, .L11+4
	ldr	r2, [r0]
	ldr	ip, [ip]
	bic	r2, r2, ip
	str	r2, [r0]
.L2:
	ldr	r2, .L11+8
	add	r3, r3, r7
	str	r3, [r4, #8]
	ldr	r0, [r6]
	ldr	r3, [r2]
	mov	r2, #8
	bl	dma_map_single
	mov	r1, r0
	ldr	r0, [r6]
	str	r1, [r4]
	bl	dma_mapping_error
	bl	unlikely
	cmp	r0, #0
	bne	.L10
	ldr	r3, [r4]
	add	r3, r3, #8
	str	r3, [r4, #4]
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	mov	r2, #8
	ldr	r0, [r6]
	ldr	r1, .L11+12
	bl	dev_err
	ldr	r3, .L11+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	.align	2
.L11:
	.word	SHA_DATA_LEN_MSK
	.word	SHA_TFM_START
	.word	DMA_BIDIRECTIONAL
	.word	.LC0
	.word	EINVAL
	.size	mtk_sha_info_update, .-mtk_sha_info_update
	.comm	SHA_TFM_START,4,4
	.comm	SHA_DATA_LEN_MSK,4,4
	.comm	EINVAL,4,4
	.comm	DMA_BIDIRECTIONAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
