	.file	"extr_process_keys.c_join_session_keyring.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	join_session_keyring
	.type	join_session_keyring, @function
join_session_keyring:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xor	eax, eax
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	prepare_creds@PLT
	test	rax, rax
	je	.L17
	mov	rbp, rax
	xor	eax, eax
	call	current_cred@PLT
	mov	r14, rax
	test	r12, r12
	je	.L18
	lea	rdi, key_session_mutex[rip]
	call	mutex_lock@PLT
	xor	esi, esi
	mov	rdi, r12
	call	find_keyring_by_name@PLT
	mov	rdi, rax
	mov	r13, rax
	call	PTR_ERR@PLT
	add	rax, QWORD PTR ENOKEY[rip]
	je	.L19
	mov	rdi, r13
	call	IS_ERR@PLT
	mov	r12, rax
	test	rax, rax
	jne	.L15
	cmp	QWORD PTR 0[rbp], r13
	je	.L10
.L7:
	mov	rsi, r13
	mov	rdi, rbp
	call	install_session_keyring_to_cred@PLT
	mov	r12, rax
	test	rax, rax
	js	.L10
	mov	rdi, rbp
	call	commit_creds@PLT
	lea	rdi, key_session_mutex[rip]
	call	mutex_unlock@PLT
	mov	r12, QWORD PTR 0[r13]
	mov	rdi, r13
	call	key_put@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	rax, r12
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	xor	esi, esi
	mov	rdi, rbp
	call	install_session_keyring_to_cred@PLT
	mov	r12, rax
	test	rax, rax
	jns	.L20
.L5:
	mov	rdi, rbp
	call	abort_creds@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	r12, QWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	neg	r12
	mov	rax, r12
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rdi, r13
	call	key_put@PLT
.L8:
	lea	rdi, key_session_mutex[rip]
	call	mutex_unlock@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, rbp
	mov	r13, QWORD PTR [rax]
	call	commit_creds@PLT
	mov	r12, rax
	test	rax, rax
	cmove	r12, r13
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	mov	edx, DWORD PTR 8[r14]
	mov	esi, DWORD PTR 12[r14]
	push	0
	.cfi_def_cfa_offset 56
	mov	rcx, r14
	push	0
	.cfi_def_cfa_offset 64
	mov	r9d, DWORD PTR KEY_ALLOC_IN_QUOTA[rip]
	mov	rdi, r12
	mov	r8d, DWORD PTR KEY_POS_ALL[rip]
	or	r8d, DWORD PTR KEY_USR_VIEW[rip]
	or	r8d, DWORD PTR KEY_USR_READ[rip]
	or	r8d, DWORD PTR KEY_USR_LINK[rip]
	call	keyring_alloc@PLT
	mov	rdi, rax
	mov	r13, rax
	call	IS_ERR@PLT
	pop	rdx
	.cfi_def_cfa_offset 56
	pop	rcx
	.cfi_def_cfa_offset 48
	test	rax, rax
	je	.L7
.L15:
	mov	rdi, r13
	call	PTR_ERR@PLT
	mov	r12, rax
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	join_session_keyring, .-join_session_keyring
	.comm	key_session_mutex,4,4
	.comm	KEY_USR_VIEW,4,4
	.comm	KEY_USR_READ,4,4
	.comm	KEY_USR_LINK,4,4
	.comm	KEY_POS_ALL,4,4
	.comm	KEY_ALLOC_IN_QUOTA,4,4
	.comm	ENOMEM,8,8
	.comm	ENOKEY,8,8
	.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_join_session_keyring.c"
	.text
	.align	2
	.global	join_session_keyring
	.syntax unified
	.arm
	.fpu softvfp
	.type	join_session_keyring, %function
join_session_keyring:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	sub	sp, sp, #20
	mov	r4, r0
	bl	prepare_creds
	subs	r5, r0, #0
	beq	.L17
	bl	current_cred
	cmp	r4, #0
	mov	r7, r0
	beq	.L18
	ldr	r0, .L21
	bl	mutex_lock
	mov	r1, #0
	mov	r0, r4
	bl	find_keyring_by_name
	mov	r6, r0
	bl	PTR_ERR
	ldr	r3, .L21+4
	ldr	r3, [r3]
	cmn	r0, r3
	beq	.L19
	mov	r0, r6
	bl	IS_ERR
	subs	r4, r0, #0
	bne	.L15
	ldr	r3, [r5]
	cmp	r3, r6
	beq	.L10
.L7:
	mov	r1, r6
	mov	r0, r5
	bl	install_session_keyring_to_cred
	subs	r4, r0, #0
	blt	.L10
	mov	r0, r5
	bl	commit_creds
	ldr	r0, .L21
	bl	mutex_unlock
	ldr	r4, [r6]
	mov	r0, r6
	bl	key_put
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L18:
	mov	r1, r4
	mov	r0, r5
	bl	install_session_keyring_to_cred
	subs	r4, r0, #0
	bge	.L20
.L5:
	mov	r0, r5
	bl	abort_creds
.L1:
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L17:
	ldr	r3, .L21+8
	ldr	r0, [r3]
	rsb	r4, r0, #0
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L10:
	mov	r0, r6
	bl	key_put
.L8:
	ldr	r0, .L21
	bl	mutex_unlock
	b	.L5
.L20:
	ldr	r3, [r5]
	mov	r0, r5
	ldr	r4, [r3]
	bl	commit_creds
	cmp	r0, #0
	movne	r4, r0
	b	.L1
.L19:
	mov	ip, #0
	ldr	r3, .L21+12
	ldr	r2, .L21+16
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, .L21+20
	orr	r3, r3, r2
	ldr	r1, [r1]
	ldr	r2, .L21+24
	ldr	r0, .L21+28
	orr	r3, r3, r1
	ldr	r1, [r2]
	ldr	lr, [r0]
	orr	r3, r3, r1
	ldr	r2, [r7, #4]
	ldr	r1, [r7, #8]
	mov	r0, r4
	str	r3, [sp]
	str	lr, [sp, #4]
	mov	r3, r7
	str	ip, [sp, #12]
	str	ip, [sp, #8]
	bl	keyring_alloc
	mov	r6, r0
	bl	IS_ERR
	cmp	r0, #0
	beq	.L7
.L15:
	mov	r0, r6
	bl	PTR_ERR
	mov	r4, r0
	b	.L8
.L22:
	.align	2
.L21:
	.word	key_session_mutex
	.word	ENOKEY
	.word	ENOMEM
	.word	KEY_POS_ALL
	.word	KEY_USR_VIEW
	.word	KEY_USR_READ
	.word	KEY_USR_LINK
	.word	KEY_ALLOC_IN_QUOTA
	.size	join_session_keyring, .-join_session_keyring
	.comm	key_session_mutex,4,4
	.comm	KEY_USR_VIEW,4,4
	.comm	KEY_USR_READ,4,4
	.comm	KEY_USR_LINK,4,4
	.comm	KEY_POS_ALL,4,4
	.comm	KEY_ALLOC_IN_QUOTA,4,4
	.comm	ENOMEM,4,4
	.comm	ENOKEY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
