	.file	"extr_ima_template_lib.c_ima_eventdigest_modsig_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ima_eventdigest_modsig_init
	.type	ima_eventdigest_modsig_init, @function
ima_eventdigest_modsig_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	sub	rsp, 32
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR [rdi]
	test	eax, eax
	je	.L1
	cmp	QWORD PTR 8[rdi], 0
	mov	r12, rsi
	je	.L3
	mov	edx, DWORD PTR HASH_ALGO_SHA1[rip]
	xor	edi, edi
	xor	esi, esi
	mov	QWORD PTR 8[rsp], 0
	mov	QWORD PTR 16[rsp], 0
	mov	DWORD PTR 4[rsp], edx
.L4:
	mov	rcx, r12
	call	ima_eventdigest_init_common@PLT
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L13
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	lea	rcx, 16[rsp]
	lea	rdx, 8[rsp]
	mov	edi, eax
	lea	rsi, 4[rsp]
	call	ima_get_modsig_digest@PLT
	test	eax, eax
	jne	.L1
	mov	edx, DWORD PTR 4[rsp]
	cmp	edx, DWORD PTR HASH_ALGO__LAST[rip]
	je	.L5
	mov	rsi, QWORD PTR 16[rsp]
	mov	rdi, QWORD PTR 8[rsp]
	test	rsi, rsi
	jne	.L4
.L5:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ima_eventdigest_modsig_init, .-ima_eventdigest_modsig_init
	.comm	HASH_ALGO__LAST,4,4
	.comm	HASH_ALGO_SHA1,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_ima_template_lib.c_ima_eventdigest_modsig_init.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ima_eventdigest_modsig_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	ima_eventdigest_modsig_init, %function
ima_eventdigest_modsig_init:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r2, r0
	ldr	r0, [r0]
	ldr	r3, .L14
	sub	sp, sp, #16
	cmp	r0, #0
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	beq	.L1
	ldr	r3, [r2, #4]
	mov	r4, r1
	cmp	r3, #0
	beq	.L3
	mov	r3, #0
	mov	r1, r3
	mov	r0, r3
	ldr	r2, .L14+4
	str	r3, [sp, #4]
	ldr	r2, [r2]
	str	r3, [sp, #8]
	str	r2, [sp]
.L4:
	mov	r3, r4
	bl	ima_eventdigest_init_common
.L1:
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	add	sp, sp, #16
	@ sp needed
	pop	{r4, pc}
.L3:
	mov	r1, sp
	add	r3, sp, #8
	add	r2, sp, #4
	bl	ima_get_modsig_digest
	cmp	r0, #0
	bne	.L1
	ldr	r3, .L14+8
	ldr	r2, [sp]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L5
	ldr	r1, [sp, #8]
	cmp	r1, #0
	ldrne	r0, [sp, #4]
	bne	.L4
.L5:
	ldr	r3, .L14+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LC0
	.word	HASH_ALGO_SHA1
	.word	HASH_ALGO__LAST
	.word	EINVAL
	.size	ima_eventdigest_modsig_init, .-ima_eventdigest_modsig_init
	.comm	HASH_ALGO__LAST,4,4
	.comm	HASH_ALGO_SHA1,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
