	.file	"extr_request_key.c_construct_alloc_key.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s,%s,,,"
.LC1:
	.string	" = %ld"
.LC2:
	.string	" = %d [prelink]"
.LC3:
	.string	" = 0 [%d]"
.LC4:
	.string	" = %d [linkcheck]"
.LC5:
	.string	" = -EINPROGRESS [%d]"
	.text
	.p2align 4
	.type	construct_alloc_key, @function
construct_alloc_key:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	eax, eax
	mov	r15, r8
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	QWORD PTR [rsp], r9
	mov	rcx, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rcx
	xor	ecx, ecx
	call	current_cred@PLT
	mov	esi, DWORD PTR 4[rbp]
	mov	rdx, r14
	lea	rdi, .LC0[rip]
	mov	r13, rax
	call	kenter@PLT
	mov	rax, QWORD PTR [rsp]
	mov	rdi, r15
	mov	QWORD PTR [rax], 0
	call	mutex_lock@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 104
	mov	edx, DWORD PTR 4[r13]
	mov	r8, r13
	push	r12
	.cfi_def_cfa_offset 112
	mov	ecx, DWORD PTR 0[r13]
	mov	rsi, r14
	mov	rdi, rbp
	mov	r9d, DWORD PTR KEY_POS_ALL[rip]
	call	key_alloc@PLT
	mov	rdi, rax
	mov	r12, rax
	call	IS_ERR@PLT
	pop	rdx
	.cfi_def_cfa_offset 104
	pop	rcx
	.cfi_def_cfa_offset 96
	test	rax, rax
	jne	.L20
	mov	edi, DWORD PTR KEY_FLAG_USER_CONSTRUCT[rip]
	mov	rsi, r12
	call	set_bit@PLT
	test	rbx, rbx
	je	.L4
	lea	rcx, 16[rsp]
	mov	rdx, r14
	mov	rsi, rbp
	mov	rdi, rbx
	mov	QWORD PTR 8[rsp], rcx
	call	__key_link_begin@PLT
	test	eax, eax
	js	.L21
	lea	rdi, key_construction_mutex[rip]
	call	mutex_lock@PLT
	mov	edx, DWORD PTR 0[rbp]
	mov	rcx, r13
	mov	rdi, rbp
	mov	rsi, r14
	call	search_process_keyrings@PLT
	mov	rdi, rax
	mov	r13, rax
	call	IS_ERR@PLT
	test	rax, rax
	je	.L22
	mov	rdx, QWORD PTR 8[rsp]
	mov	rsi, r12
	mov	rdi, rbx
	call	__key_link@PLT
	lea	rdi, key_construction_mutex[rip]
	call	mutex_unlock@PLT
	mov	rdx, QWORD PTR 16[rsp]
	mov	rsi, rbp
	mov	rdi, rbx
	call	__key_link_end@PLT
.L13:
	mov	rdi, r15
	call	mutex_unlock@PLT
	mov	rax, QWORD PTR [rsp]
	mov	rdi, r12
	mov	QWORD PTR [rax], r12
	call	key_serial@PLT
	lea	rdi, .LC3[rip]
	mov	esi, eax
	call	kleave@PLT
	xor	r8d, r8d
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L23
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r8d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	rdi, r15
	call	mutex_unlock@PLT
	mov	rdi, r12
	call	PTR_ERR@PLT
	lea	rdi, .LC1[rip]
	mov	esi, eax
	call	kleave@PLT
	mov	rdi, r12
	call	PTR_ERR@PLT
	mov	r8d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	lea	rdi, key_construction_mutex[rip]
	call	mutex_lock@PLT
	mov	edx, DWORD PTR 0[rbp]
	mov	rdi, rbp
	mov	rcx, r13
	mov	rsi, r14
	call	search_process_keyrings@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	IS_ERR@PLT
	test	rax, rax
	je	.L24
	lea	rdi, key_construction_mutex[rip]
	call	mutex_unlock@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rdi, r12
	call	key_put@PLT
	lea	rdi, key_construction_mutex[rip]
	call	mutex_unlock@PLT
	mov	rdi, r13
	call	key_ref_to_ptr@PLT
	mov	rdi, rbx
	mov	rsi, rax
	mov	r12, rax
	call	__key_link_check_live_key@PLT
	mov	r8d, eax
	test	eax, eax
	je	.L25
	mov	rdx, QWORD PTR 16[rsp]
	mov	rsi, rbp
	mov	rdi, rbx
	mov	DWORD PTR 8[rsp], r8d
	call	__key_link_end@PLT
	mov	r8d, DWORD PTR 8[rsp]
	test	r8d, r8d
	js	.L26
.L6:
	mov	rdi, r15
	call	mutex_unlock@PLT
	mov	rax, QWORD PTR [rsp]
	mov	rdi, r12
	mov	QWORD PTR [rax], r12
	call	key_serial@PLT
	lea	rdi, .LC5[rip]
	mov	esi, eax
	call	kleave@PLT
	mov	r8d, DWORD PTR EINPROGRESS[rip]
	neg	r8d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rdi, r15
	mov	DWORD PTR [rsp], eax
	call	mutex_unlock@PLT
	mov	r8d, DWORD PTR [rsp]
	lea	rdi, .LC2[rip]
	mov	esi, r8d
	call	kleave@PLT
	mov	r8d, DWORD PTR [rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L26:
	mov	rdi, r15
	mov	DWORD PTR [rsp], r8d
	call	mutex_unlock@PLT
	mov	rdi, r12
	call	key_put@PLT
	mov	r8d, DWORD PTR [rsp]
	lea	rdi, .LC4[rip]
	mov	esi, r8d
	call	kleave@PLT
	mov	r8d, DWORD PTR [rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L24:
	mov	rdi, r12
	call	key_put@PLT
	lea	rdi, key_construction_mutex[rip]
	call	mutex_unlock@PLT
	mov	rdi, rbp
	call	key_ref_to_ptr@PLT
	mov	r12, rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L25:
	mov	rdx, QWORD PTR 8[rsp]
	mov	rsi, r12
	mov	rdi, rbx
	call	__key_link@PLT
	mov	rdx, QWORD PTR 16[rsp]
	mov	rsi, rbp
	mov	rdi, rbx
	call	__key_link_end@PLT
	jmp	.L6
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	construct_alloc_key, .-construct_alloc_key
	.comm	key_construction_mutex,4,4
	.comm	KEY_POS_ALL,4,4
	.comm	KEY_FLAG_USER_CONSTRUCT,4,4
	.comm	EINPROGRESS,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_request_key.c_construct_alloc_key.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s,%s,,,\000"
	.align	2
.LC1:
	.ascii	" = %ld\000"
	.align	2
.LC2:
	.ascii	" = %d [prelink]\000"
	.align	2
.LC3:
	.ascii	" = 0 [%d]\000"
	.align	2
.LC4:
	.ascii	" = %d [linkcheck]\000"
	.align	2
.LC5:
	.ascii	" = -EINPROGRESS [%d]\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	construct_alloc_key, %function
construct_alloc_key:
	@ args = 8, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r3
	ldr	r3, .L27
	sub	sp, sp, #36
	mov	r6, r1
	mov	r4, r0
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	mov	r8, r2
	ldr	r9, [sp, #72]
	ldr	r10, [sp, #76]
	bl	current_cred
	mov	r2, r6
	mov	r5, r0
	ldr	r1, [r4, #4]
	ldr	r0, .L27+4
	bl	kenter
	mov	r3, #0
	mov	r0, r9
	str	r3, [r10]
	bl	mutex_lock
	ldr	r1, .L27+8
	ldr	r3, [r5]
	ldr	ip, [r1]
	ldr	r2, [r5, #4]
	mov	r1, r6
	str	r7, [sp, #8]
	str	ip, [sp, #4]
	mov	r0, r4
	str	r5, [sp]
	bl	key_alloc
	mov	r7, r0
	bl	IS_ERR
	subs	fp, r0, #0
	bne	.L20
	ldr	r3, .L27+12
	mov	r1, r7
	ldr	r0, [r3]
	bl	set_bit
	cmp	r8, #0
	beq	.L4
	mov	r1, r4
	mov	r2, r6
	mov	r0, r8
	add	r3, sp, #24
	bl	__key_link_begin
	subs	r1, r0, #0
	blt	.L21
	ldr	r0, .L27+16
	bl	mutex_lock
	mov	r3, r5
	mov	r1, r6
	ldr	r2, [r4]
	mov	r0, r4
	bl	search_process_keyrings
	mov	r5, r0
	bl	IS_ERR
	cmp	r0, #0
	beq	.L22
	mov	r1, r7
	add	r2, sp, #24
	mov	r0, r8
	bl	__key_link
	ldr	r0, .L27+16
	bl	mutex_unlock
	mov	r1, r4
	mov	r0, r8
	ldr	r2, [sp, #24]
	bl	__key_link_end
.L13:
	mov	r0, r9
	bl	mutex_unlock
	mov	r0, r7
	str	r7, [r10]
	bl	key_serial
	mov	r1, r0
	ldr	r0, .L27+20
	bl	kleave
.L1:
	ldr	r3, .L27
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	mov	r0, fp
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L20:
	mov	r0, r9
	bl	mutex_unlock
	mov	r0, r7
	bl	PTR_ERR
	mov	r1, r0
	ldr	r0, .L27+24
	bl	kleave
	mov	r0, r7
	bl	PTR_ERR
	mov	fp, r0
	b	.L1
.L4:
	ldr	r0, .L27+16
	bl	mutex_lock
	ldr	r2, [r4]
	mov	r3, r5
	mov	r1, r6
	mov	r0, r4
	bl	search_process_keyrings
	mov	r4, r0
	bl	IS_ERR
	cmp	r0, #0
	beq	.L24
	ldr	r0, .L27+16
	bl	mutex_unlock
	b	.L13
.L22:
	mov	r0, r7
	bl	key_put
	ldr	r0, .L27+16
	bl	mutex_unlock
	mov	r0, r5
	bl	key_ref_to_ptr
	mov	r5, r0
	mov	r0, r8
	mov	r1, r5
	bl	__key_link_check_live_key
	subs	fp, r0, #0
	beq	.L25
	mov	r1, r4
	mov	r0, r8
	ldr	r2, [sp, #24]
	bl	__key_link_end
	cmp	fp, #0
	blt	.L26
.L6:
	mov	r0, r9
	bl	mutex_unlock
	mov	r0, r5
	str	r5, [r10]
	bl	key_serial
	mov	r1, r0
	ldr	r0, .L27+28
	bl	kleave
	ldr	r3, .L27+32
	ldr	r0, [r3]
	rsb	fp, r0, #0
	b	.L1
.L21:
	mov	r0, r9
	str	r1, [sp, #20]
	bl	mutex_unlock
	ldr	r1, [sp, #20]
	ldr	r0, .L27+36
	mov	fp, r1
	bl	kleave
	b	.L1
.L26:
	mov	r0, r9
	bl	mutex_unlock
	mov	r0, r5
	bl	key_put
	mov	r1, fp
	ldr	r0, .L27+40
	bl	kleave
	b	.L1
.L24:
	mov	r0, r7
	bl	key_put
	ldr	r0, .L27+16
	bl	mutex_unlock
	mov	r0, r4
	bl	key_ref_to_ptr
	mov	r5, r0
	b	.L6
.L25:
	mov	r1, r5
	add	r2, sp, #24
	mov	r0, r8
	bl	__key_link
	mov	r1, r4
	mov	r0, r8
	ldr	r2, [sp, #24]
	bl	__key_link_end
	b	.L6
.L23:
	bl	__stack_chk_fail
.L28:
	.align	2
.L27:
	.word	.LC6
	.word	.LC0
	.word	KEY_POS_ALL
	.word	KEY_FLAG_USER_CONSTRUCT
	.word	key_construction_mutex
	.word	.LC3
	.word	.LC1
	.word	.LC5
	.word	EINPROGRESS
	.word	.LC2
	.word	.LC4
	.size	construct_alloc_key, .-construct_alloc_key
	.comm	key_construction_mutex,4,4
	.comm	KEY_POS_ALL,4,4
	.comm	KEY_FLAG_USER_CONSTRUCT,4,4
	.comm	EINPROGRESS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
