	.file	"extr_s5p-sss.c_s5p_hash_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"init: digest size: %d\n"
	.text
	.p2align 4
	.type	s5p_hash_init, @function
s5p_hash_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	ahash_request_ctx@PLT
	mov	rdi, rbp
	mov	rbx, rax
	call	crypto_ahash_reqtfm@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	crypto_ahash_ctx@PLT
	mov	rdi, rbp
	mov	r12, rax
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR [rbx], 0
	mov	QWORD PTR 40[rbx], 0
	mov	QWORD PTR 48[rbx], rax
	mov	QWORD PTR 32[rbx], 0
	mov	QWORD PTR 24[rbx], 0
	mov	QWORD PTR 16[rbx], 0
	call	crypto_ahash_digestsize@PLT
	lea	rsi, .LC0[rip]
	mov	edx, eax
	mov	rax, QWORD PTR [r12]
	mov	edi, DWORD PTR [rax]
	call	dev_dbg@PLT
	mov	rdi, rbp
	call	crypto_ahash_digestsize@PLT
	cmp	eax, 129
	je	.L2
	cmp	eax, 130
	je	.L3
	cmp	eax, 128
	je	.L10
	mov	eax, DWORD PTR EINVAL[rip]
	mov	DWORD PTR [rbx], 1
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR SSS_HASH_ENGINE_SHA1[rip]
	mov	DWORD PTR 12[rbx], eax
	mov	eax, DWORD PTR HASH_SHA1_MAX_REG[rip]
	mov	DWORD PTR 8[rbx], eax
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	eax, DWORD PTR SSS_HASH_ENGINE_SHA256[rip]
	mov	DWORD PTR 12[rbx], eax
	mov	eax, DWORD PTR HASH_SHA256_MAX_REG[rip]
	mov	DWORD PTR 8[rbx], eax
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	eax, DWORD PTR SSS_HASH_ENGINE_MD5[rip]
	mov	DWORD PTR 12[rbx], eax
	mov	eax, DWORD PTR HASH_MD5_MAX_REG[rip]
	mov	DWORD PTR 8[rbx], eax
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	s5p_hash_init, .-s5p_hash_init
	.comm	SSS_HASH_ENGINE_SHA256,4,4
	.comm	SSS_HASH_ENGINE_SHA1,4,4
	.comm	SSS_HASH_ENGINE_MD5,4,4
	.comm	HASH_SHA256_MAX_REG,4,4
	.comm	HASH_SHA1_MAX_REG,4,4
	.comm	HASH_MD5_MAX_REG,4,4
	.comm	EINVAL,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_s5p-sss.c_s5p_hash_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"init: digest size: %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	s5p_hash_init, %function
s5p_hash_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	bl	ahash_request_ctx
	mov	r4, r0
	mov	r0, r5
	bl	crypto_ahash_reqtfm
	mov	r6, r0
	bl	crypto_ahash_ctx
	mov	r5, #0
	ldr	r3, [r0]
	mov	r0, r6
	ldr	r7, [r3]
	str	r3, [r4, #32]
	str	r5, [r4]
	str	r5, [r4, #4]
	str	r5, [r4, #28]
	str	r5, [r4, #24]
	str	r5, [r4, #20]
	str	r5, [r4, #16]
	bl	crypto_ahash_digestsize
	ldr	r1, .L12
	mov	r2, r0
	mov	r0, r7
	bl	dev_dbg
	mov	r0, r6
	bl	crypto_ahash_digestsize
	cmp	r0, #129
	beq	.L2
	cmp	r0, #130
	beq	.L3
	cmp	r0, #128
	beq	.L11
	mov	r2, #1
	ldr	r3, .L12+4
	str	r2, [r4]
	ldr	r5, [r3]
	rsb	r0, r5, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r2, .L12+8
	ldr	r3, .L12+12
.L9:
	ldr	r2, [r2]
	ldr	r3, [r3]
	mov	r0, r5
	str	r2, [r4, #12]
	str	r3, [r4, #8]
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	ldr	r2, .L12+16
	ldr	r3, .L12+20
	b	.L9
.L3:
	ldr	r2, .L12+24
	ldr	r3, .L12+28
	b	.L9
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	EINVAL
	.word	SSS_HASH_ENGINE_SHA1
	.word	HASH_SHA1_MAX_REG
	.word	SSS_HASH_ENGINE_SHA256
	.word	HASH_SHA256_MAX_REG
	.word	SSS_HASH_ENGINE_MD5
	.word	HASH_MD5_MAX_REG
	.size	s5p_hash_init, .-s5p_hash_init
	.comm	SSS_HASH_ENGINE_SHA256,4,4
	.comm	SSS_HASH_ENGINE_SHA1,4,4
	.comm	SSS_HASH_ENGINE_MD5,4,4
	.comm	HASH_SHA256_MAX_REG,4,4
	.comm	HASH_SHA1_MAX_REG,4,4
	.comm	HASH_MD5_MAX_REG,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
