	.file	"extr_process_keys.c_install_process_keyring_to_cred.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"_pid"
	.text
	.p2align 4
	.globl	install_process_keyring_to_cred
	.type	install_process_keyring_to_cred, @function
install_process_keyring_to_cred:
.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
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rax, QWORD PTR [rdi]
	cmp	QWORD PTR 8[rax], 0
	je	.L2
	mov	r12d, DWORD PTR EEXIST[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edx, DWORD PTR 8[rdi]
	mov	esi, DWORD PTR 12[rdi]
	xor	r9d, r9d
	mov	rcx, rdi
	mov	r8d, DWORD PTR KEY_ALLOC_QUOTA_OVERRUN[rip]
	mov	rbx, rdi
	lea	rdi, .LC0[rip]
	call	keyring_alloc@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L9
	mov	rdi, QWORD PTR [rbx]
	call	spin_lock_irq@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	r12d, DWORD PTR EEXIST[rip]
	neg	r12d
	cmp	QWORD PTR 8[rdi], 0
	je	.L10
.L6:
	call	spin_unlock_irq@PLT
	mov	rdi, rbp
	call	key_put@PLT
	mov	eax, r12d
	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
.L9:
	.cfi_restore_state
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	PTR_ERR@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	QWORD PTR 8[rdi], rbp
	xor	r12d, r12d
	xor	ebp, ebp
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	install_process_keyring_to_cred, .-install_process_keyring_to_cred
	.comm	KEY_ALLOC_QUOTA_OVERRUN,4,4
	.comm	EEXIST,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_process_keys.c_install_process_keyring_to_cred.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"_pid\000"
	.text
	.align	2
	.global	install_process_keyring_to_cred
	.syntax unified
	.arm
	.fpu softvfp
	.type	install_process_keyring_to_cred, %function
install_process_keyring_to_cred:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, [r0]
	sub	sp, sp, #8
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L10
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r2, .L10+4
	str	r3, [sp, #4]
	ldr	r2, [r2]
	mov	r3, r0
	str	r2, [sp]
	ldr	r2, [r0, #4]
	ldr	r1, [r0, #8]
	mov	r4, r0
	ldr	r0, .L10+8
	bl	keyring_alloc
	mov	r6, r0
	bl	IS_ERR
	subs	r5, r0, #0
	bne	.L9
	ldr	r0, [r4]
	bl	spin_lock_irq
	ldr	r0, [r4]
	ldr	r3, [r0, #4]
	cmp	r3, #0
	streq	r6, [r0, #4]
	moveq	r6, r5
	ldrne	r3, .L10
	ldrne	r5, [r3]
	rsbne	r5, r5, #0
	bl	spin_unlock_irq
	mov	r0, r6
	bl	key_put
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L9:
	mov	r0, r6
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, lr}
	b	PTR_ERR
.L11:
	.align	2
.L10:
	.word	EEXIST
	.word	KEY_ALLOC_QUOTA_OVERRUN
	.word	.LC0
	.size	install_process_keyring_to_cred, .-install_process_keyring_to_cred
	.comm	KEY_ALLOC_QUOTA_OVERRUN,4,4
	.comm	EEXIST,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
