	.file	"extr_ima_main.c_ima_check_last_writer.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ima_check_last_writer, @function
ima_check_last_writer:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR FMODE_WRITE[rip]
	test	DWORD PTR [rdx], eax
	jne	.L19
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	lea	r14, 4[rdi]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	mov	rdi, r14
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	mutex_lock@PLT
	mov	rdi, r13
	call	atomic_read@PLT
	cmp	eax, 1
	je	.L20
.L4:
	pop	rbx
	.cfi_remember_state
	.cfi_restore 3
	.cfi_def_cfa_offset 40
	mov	rdi, r14
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_restore 14
	.cfi_def_cfa_offset 8
	jmp	mutex_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	edi, DWORD PTR IMA_UPDATE_XATTR[rip]
	lea	rsi, 20[r12]
	call	test_and_clear_bit@PLT
	mov	rdi, r13
	mov	ebx, eax
	call	IS_I_VERSION@PLT
	test	eax, eax
	jne	.L5
	mov	edx, DWORD PTR [r12]
	mov	eax, DWORD PTR IMA_NEW_FILE[rip]
.L6:
	mov	QWORD PTR 8[r12], 0
	or	eax, DWORD PTR IMA_DONE_MASK[rip]
	not	eax
	and	eax, edx
	mov	DWORD PTR [r12], eax
	test	ebx, ebx
	je	.L4
	mov	rsi, rbp
	mov	rdi, r12
	call	ima_update_xattr@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	mov	esi, DWORD PTR 16[r12]
	mov	rdi, r13
	call	inode_eq_iversion@PLT
	mov	edx, DWORD PTR [r12]
	test	eax, eax
	mov	eax, DWORD PTR IMA_NEW_FILE[rip]
	je	.L6
	test	edx, eax
	je	.L4
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	ima_check_last_writer, .-ima_check_last_writer
	.comm	IMA_UPDATE_XATTR,4,4
	.comm	IMA_NEW_FILE,4,4
	.comm	IMA_DONE_MASK,4,4
	.comm	FMODE_WRITE,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_main.c_ima_check_last_writer.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ima_check_last_writer, %function
ima_check_last_writer:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r2
	ldr	r2, .L18
	ldr	r3, [r4]
	ldr	r2, [r2]
	tst	r2, r3
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r5, r1
	add	r7, r0, #4
	mov	r6, r0
	mov	r0, r7
	bl	mutex_lock
	mov	r0, r5
	bl	atomic_read
	cmp	r0, #1
	beq	.L17
.L4:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, lr}
	b	mutex_unlock
.L17:
	ldr	r3, .L18+4
	add	r1, r6, #16
	ldr	r0, [r3]
	bl	test_and_clear_bit
	mov	r8, r0
	mov	r0, r5
	bl	IS_I_VERSION
	cmp	r0, #0
	bne	.L5
	ldr	r2, .L18+8
	ldr	r3, [r6]
	ldr	r2, [r2]
.L6:
	mov	r0, #0
	ldr	r1, .L18+12
	cmp	r8, r0
	ldr	r1, [r1]
	str	r0, [r6, #8]
	orr	r2, r2, r1
	bic	r3, r3, r2
	str	r3, [r6]
	beq	.L4
	mov	r1, r4
	mov	r0, r6
	bl	ima_update_xattr
	b	.L4
.L5:
	mov	r0, r5
	ldr	r1, [r6, #12]
	bl	inode_eq_iversion
	ldr	r2, .L18+8
	cmp	r0, #0
	ldr	r3, [r6]
	ldr	r2, [r2]
	beq	.L6
	tst	r3, r2
	beq	.L4
	b	.L6
.L19:
	.align	2
.L18:
	.word	FMODE_WRITE
	.word	IMA_UPDATE_XATTR
	.word	IMA_NEW_FILE
	.word	IMA_DONE_MASK
	.size	ima_check_last_writer, .-ima_check_last_writer
	.comm	IMA_UPDATE_XATTR,4,4
	.comm	IMA_NEW_FILE,4,4
	.comm	IMA_DONE_MASK,4,4
	.comm	FMODE_WRITE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
