	.file	"extr_sha1_mod.c_sha1_digest_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sha1_digest_init, @function
sha1_digest_init:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR SHA1_MECH_INFO_TYPE[rip]
	cmp	QWORD PTR [rsi], rax
	je	.L2
	mov	eax, DWORD PTR CRYPTO_MECHANISM_INVALID[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	mov	edi, edx
	call	crypto_kmflag@PLT
	mov	edi, 4
	mov	esi, eax
	call	kmem_alloc@PLT
	mov	QWORD PTR 0[rbp], rax
	test	rax, rax
	je	.L9
	mov	rdi, rbp
	call	PROV_SHA1_CTX@PLT
	mov	rdx, QWORD PTR SHA1_MECH_INFO_TYPE[rip]
	mov	rdi, rbp
	mov	QWORD PTR 8[rax], rdx
	call	PROV_SHA1_CTX@PLT
	mov	rdi, rax
	call	SHA1Init@PLT
	mov	eax, DWORD PTR CRYPTO_SUCCESS[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	eax, DWORD PTR CRYPTO_HOST_MEMORY[rip]
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	sha1_digest_init, .-sha1_digest_init
	.comm	SHA1_MECH_INFO_TYPE,8,8
	.comm	CRYPTO_SUCCESS,4,4
	.comm	CRYPTO_MECHANISM_INVALID,4,4
	.comm	CRYPTO_HOST_MEMORY,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_sha1_mod.c_sha1_digest_init.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sha1_digest_init, %function
sha1_digest_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, .L8
	ldr	r1, [r1]
	ldr	r3, [r5]
	cmp	r1, r3
	beq	.L2
	ldr	r3, .L8+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L2:
	mov	r4, r0
	mov	r0, r2
	bl	crypto_kmflag
	mov	r1, r0
	mov	r0, #4
	bl	kmem_alloc
	cmp	r0, #0
	str	r0, [r4]
	beq	.L7
	mov	r0, r4
	bl	PROV_SHA1_CTX
	mov	r3, r0
	ldr	r2, [r5]
	mov	r0, r4
	str	r2, [r3, #4]
	bl	PROV_SHA1_CTX
	bl	SHA1Init
	ldr	r3, .L8+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L7:
	ldr	r3, .L8+12
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L9:
	.align	2
.L8:
	.word	SHA1_MECH_INFO_TYPE
	.word	CRYPTO_MECHANISM_INVALID
	.word	CRYPTO_SUCCESS
	.word	CRYPTO_HOST_MEMORY
	.size	sha1_digest_init, .-sha1_digest_init
	.comm	SHA1_MECH_INFO_TYPE,4,4
	.comm	CRYPTO_SUCCESS,4,4
	.comm	CRYPTO_MECHANISM_INVALID,4,4
	.comm	CRYPTO_HOST_MEMORY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
