	.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	" = 0 [%d]"
.LC3:
	.string	" = %d [linkcheck]"
.LC4:
	.string	" = -EINPROGRESS [%d]"
.LC5:
	.string	" = %d [prelink]"
	.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
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	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, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r8
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	edx, DWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 8[rdi]
	lea	rdi, .LC0[rip]
	mov	QWORD PTR 16[rsp], 0
	mov	esi, DWORD PTR 16[rax]
	call	kenter@PLT
	mov	QWORD PTR [rbx], 0
	mov	rdi, r12
	call	mutex_lock@PLT
	mov	rdi, QWORD PTR 8[r15]
	mov	r9d, DWORD PTR KEY_POS_VIEW[rip]
	or	r9d, DWORD PTR KEY_POS_SEARCH[rip]
	or	r9d, DWORD PTR KEY_POS_LINK[rip]
	or	r9d, DWORD PTR KEY_POS_SETATTR[rip]
	or	r9d, DWORD PTR KEY_USR_VIEW[rip]
	cmp	QWORD PTR 8[rdi], 0
	je	.L2
	or	r9d, DWORD PTR KEY_POS_READ[rip]
.L2:
	lea	rax, key_type_keyring[rip]
	cmp	rdi, rax
	je	.L3
	cmp	QWORD PTR [rdi], 0
	jne	.L3
.L4:
	mov	r8, QWORD PTR 16[r15]
	mov	esi, DWORD PTR [r15]
	mov	edx, DWORD PTR 4[r8]
	mov	ecx, DWORD PTR [r8]
	push	0
	.cfi_def_cfa_offset 104
	push	rbp
	.cfi_def_cfa_offset 112
	call	key_alloc@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	IS_ERR@PLT
	pop	rdx
	.cfi_def_cfa_offset 104
	pop	rcx
	.cfi_def_cfa_offset 96
	test	rax, rax
	jne	.L22
	mov	edi, DWORD PTR KEY_FLAG_USER_CONSTRUCT[rip]
	mov	rsi, rbp
	call	set_bit@PLT
	test	r13, r13
	je	.L7
	mov	rsi, r15
	mov	rdi, r13
	call	__key_link_lock@PLT
	mov	r14d, eax
	test	eax, eax
	js	.L8
	lea	rdx, 16[rsp]
	mov	rsi, r15
	mov	rdi, r13
	mov	QWORD PTR 8[rsp], rdx
	call	__key_link_begin@PLT
	mov	r14d, eax
	test	eax, eax
	js	.L23
	lea	rdi, key_construction_mutex[rip]
	call	mutex_lock@PLT
	xor	eax, eax
	call	rcu_read_lock@PLT
	mov	rdi, r15
	call	search_process_keyrings_rcu@PLT
	mov	r14, rax
	xor	eax, eax
	call	rcu_read_unlock@PLT
	mov	rdi, r14
	call	IS_ERR@PLT
	test	rax, rax
	je	.L15
	mov	rsi, QWORD PTR 8[rsp]
	mov	rdi, rbp
	call	__key_link@PLT
	lea	rdi, key_construction_mutex[rip]
	call	mutex_unlock@PLT
	mov	rdx, QWORD PTR 16[rsp]
	mov	rsi, r15
	mov	rdi, r13
	call	__key_link_end@PLT
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L3:
	or	r9d, DWORD PTR KEY_POS_WRITE[rip]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rdi, r12
	call	mutex_unlock@PLT
	mov	rdi, rbp
	call	PTR_ERR@PLT
	lea	rdi, .LC1[rip]
	mov	esi, eax
	call	kleave@PLT
	mov	rdi, rbp
	call	PTR_ERR@PLT
	mov	r14d, eax
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L24
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	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
.L23:
	.cfi_restore_state
	mov	rdx, QWORD PTR 16[rsp]
	mov	rsi, r15
	mov	rdi, r13
	call	__key_link_end@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, r12
	call	mutex_unlock@PLT
	mov	rdi, rbp
	call	key_put@PLT
	mov	esi, r14d
	lea	rdi, .LC5[rip]
	call	kleave@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	lea	rdi, key_construction_mutex[rip]
	call	mutex_lock@PLT
	xor	eax, eax
	call	rcu_read_lock@PLT
	mov	rdi, r15
	call	search_process_keyrings_rcu@PLT
	mov	r13, rax
	xor	eax, eax
	call	rcu_read_unlock@PLT
	mov	rdi, r13
	call	IS_ERR@PLT
	test	rax, rax
	je	.L25
	lea	rdi, key_construction_mutex[rip]
	call	mutex_unlock@PLT
.L16:
	mov	rdi, r12
	xor	r14d, r14d
	call	mutex_unlock@PLT
	mov	QWORD PTR [rbx], rbp
	mov	rdi, rbp
	call	key_serial@PLT
	lea	rdi, .LC2[rip]
	mov	esi, eax
	call	kleave@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdi, rbp
	call	key_put@PLT
	lea	rdi, key_construction_mutex[rip]
	call	mutex_unlock@PLT
	mov	rdi, r14
	call	key_ref_to_ptr@PLT
	mov	rdi, r13
	mov	rsi, rax
	mov	rbp, rax
	call	__key_link_check_live_key@PLT
	mov	r14d, eax
	test	eax, eax
	je	.L26
	mov	rdx, QWORD PTR 16[rsp]
	mov	rsi, r15
	mov	rdi, r13
	call	__key_link_end@PLT
	test	r14d, r14d
	js	.L27
.L10:
	mov	rdi, r12
	call	mutex_unlock@PLT
	mov	QWORD PTR [rbx], rbp
	mov	rdi, rbp
	call	key_serial@PLT
	lea	rdi, .LC4[rip]
	mov	esi, eax
	call	kleave@PLT
	mov	r14d, DWORD PTR EINPROGRESS[rip]
	neg	r14d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L26:
	mov	rsi, QWORD PTR 8[rsp]
	mov	rdi, rbp
	call	__key_link@PLT
	mov	rdx, QWORD PTR 16[rsp]
	mov	rsi, r15
	mov	rdi, r13
	call	__key_link_end@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L25:
	mov	rdi, rbp
	call	key_put@PLT
	lea	rdi, key_construction_mutex[rip]
	call	mutex_unlock@PLT
	mov	rdi, r13
	call	key_ref_to_ptr@PLT
	mov	rbp, rax
	jmp	.L10
.L27:
	mov	rdi, r12
	call	mutex_unlock@PLT
	mov	rdi, rbp
	call	key_put@PLT
	mov	esi, r14d
	lea	rdi, .LC3[rip]
	call	kleave@PLT
	jmp	.L1
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	construct_alloc_key, .-construct_alloc_key
	.comm	key_type_keyring,24,16
	.comm	key_construction_mutex,4,4
	.comm	KEY_USR_VIEW,4,4
	.comm	KEY_POS_WRITE,4,4
	.comm	KEY_POS_VIEW,4,4
	.comm	KEY_POS_SETATTR,4,4
	.comm	KEY_POS_SEARCH,4,4
	.comm	KEY_POS_READ,4,4
	.comm	KEY_POS_LINK,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	" = 0 [%d]\000"
	.align	2
.LC3:
	.ascii	" = %d [linkcheck]\000"
	.align	2
.LC4:
	.ascii	" = -EINPROGRESS [%d]\000"
	.align	2
.LC5:
	.ascii	" = %d [prelink]\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 = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r9, #0
	mov	r5, r3
	mov	r4, r0
	ldr	r3, [r0, #4]
	sub	sp, sp, #24
	ldr	r8, [sp, #56]
	mov	r6, r1
	ldr	r1, [r3, #8]
	ldr	r3, .L34
	mov	r7, r2
	ldr	r2, [r0]
	ldr	r0, .L34+4
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	str	r9, [sp, #16]
	bl	kenter
	mov	r0, r5
	str	r9, [r8]
	bl	mutex_lock
	ldr	r1, .L34+8
	ldr	r3, .L34+12
	ldr	r2, .L34+16
	ldr	ip, [r1]
	ldr	r3, [r3]
	ldr	r0, [r4, #4]
	ldr	r2, [r2]
	ldr	r1, .L34+20
	orr	ip, ip, r3
	ldr	r3, .L34+24
	orr	ip, ip, r2
	ldr	r1, [r1]
	ldr	r2, [r0, #4]
	ldr	r3, [r3]
	cmp	r2, r9
	orr	ip, ip, r1
	orr	ip, ip, r3
	ldrne	r3, .L34+28
	ldrne	r3, [r3]
	orrne	ip, ip, r3
	ldr	r3, .L34+32
	cmp	r0, r3
	beq	.L3
	ldr	r3, [r0]
	cmp	r3, #0
	bne	.L3
.L4:
	mov	lr, #0
	ldr	r1, [r4, #8]
	ldr	r3, [r1]
	ldr	r2, [r1, #4]
	str	r7, [sp, #8]
	str	ip, [sp, #4]
	str	lr, [sp, #12]
	str	r1, [sp]
	ldr	r1, [r4]
	bl	key_alloc
	mov	r9, r0
	bl	IS_ERR
	subs	r7, r0, #0
	bne	.L28
	ldr	r3, .L34+36
	mov	r1, r9
	ldr	r0, [r3]
	bl	set_bit
	cmp	r6, #0
	beq	.L7
	mov	r1, r4
	mov	r0, r6
	bl	__key_link_lock
	subs	r10, r0, #0
	blt	.L8
	mov	r1, r4
	mov	r0, r6
	add	r2, sp, #16
	bl	__key_link_begin
	subs	r10, r0, #0
	blt	.L29
	ldr	r0, .L34+40
	bl	mutex_lock
	bl	rcu_read_lock
	mov	r0, r4
	bl	search_process_keyrings_rcu
	mov	r10, r0
	bl	rcu_read_unlock
	mov	r0, r10
	bl	IS_ERR
	cmp	r0, #0
	beq	.L15
	add	r1, sp, #16
	mov	r0, r9
	bl	__key_link
	ldr	r0, .L34+40
	bl	mutex_unlock
	mov	r1, r4
	mov	r0, r6
	ldr	r2, [sp, #16]
	bl	__key_link_end
	b	.L16
.L3:
	ldr	r3, .L34+44
	ldr	r3, [r3]
	orr	ip, ip, r3
	b	.L4
.L28:
	mov	r0, r5
	bl	mutex_unlock
	mov	r0, r9
	bl	PTR_ERR
	mov	r1, r0
	ldr	r0, .L34+48
	bl	kleave
	mov	r0, r9
	bl	PTR_ERR
	mov	r7, r0
.L1:
	ldr	r3, .L34
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L30
	mov	r0, r7
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L29:
	mov	r1, r4
	mov	r0, r6
	ldr	r2, [sp, #16]
	bl	__key_link_end
.L8:
	mov	r0, r5
	bl	mutex_unlock
	mov	r0, r9
	bl	key_put
	mov	r1, r10
	ldr	r0, .L34+52
	mov	r7, r10
	bl	kleave
	b	.L1
.L7:
	ldr	r0, .L34+40
	bl	mutex_lock
	bl	rcu_read_lock
	mov	r0, r4
	bl	search_process_keyrings_rcu
	mov	r4, r0
	bl	rcu_read_unlock
	mov	r0, r4
	bl	IS_ERR
	cmp	r0, #0
	beq	.L31
	ldr	r0, .L34+40
	bl	mutex_unlock
.L16:
	mov	r0, r5
	bl	mutex_unlock
	mov	r0, r9
	str	r9, [r8]
	bl	key_serial
	mov	r1, r0
	ldr	r0, .L34+56
	bl	kleave
	b	.L1
.L15:
	mov	r0, r9
	bl	key_put
	ldr	r0, .L34+40
	bl	mutex_unlock
	mov	r0, r10
	bl	key_ref_to_ptr
	mov	r9, r0
	mov	r0, r6
	mov	r1, r9
	bl	__key_link_check_live_key
	subs	r7, r0, #0
	beq	.L32
	mov	r1, r4
	mov	r0, r6
	ldr	r2, [sp, #16]
	bl	__key_link_end
	cmp	r7, #0
	blt	.L33
.L10:
	mov	r0, r5
	bl	mutex_unlock
	mov	r0, r9
	str	r9, [r8]
	bl	key_serial
	mov	r1, r0
	ldr	r0, .L34+60
	bl	kleave
	ldr	r3, .L34+64
	ldr	r7, [r3]
	rsb	r7, r7, #0
	b	.L1
.L32:
	add	r1, sp, #16
	mov	r0, r9
	bl	__key_link
	mov	r1, r4
	mov	r0, r6
	ldr	r2, [sp, #16]
	bl	__key_link_end
	b	.L10
.L31:
	mov	r0, r9
	bl	key_put
	ldr	r0, .L34+40
	bl	mutex_unlock
	mov	r0, r4
	bl	key_ref_to_ptr
	mov	r9, r0
	b	.L10
.L33:
	mov	r0, r5
	bl	mutex_unlock
	mov	r0, r9
	bl	key_put
	mov	r1, r7
	ldr	r0, .L34+68
	bl	kleave
	b	.L1
.L30:
	bl	__stack_chk_fail
.L35:
	.align	2
.L34:
	.word	.LC6
	.word	.LC0
	.word	KEY_POS_VIEW
	.word	KEY_POS_SEARCH
	.word	KEY_POS_LINK
	.word	KEY_POS_SETATTR
	.word	KEY_USR_VIEW
	.word	KEY_POS_READ
	.word	key_type_keyring
	.word	KEY_FLAG_USER_CONSTRUCT
	.word	key_construction_mutex
	.word	KEY_POS_WRITE
	.word	.LC1
	.word	.LC5
	.word	.LC2
	.word	.LC4
	.word	EINPROGRESS
	.word	.LC3
	.size	construct_alloc_key, .-construct_alloc_key
	.comm	key_type_keyring,12,4
	.comm	key_construction_mutex,4,4
	.comm	KEY_USR_VIEW,4,4
	.comm	KEY_POS_WRITE,4,4
	.comm	KEY_POS_VIEW,4,4
	.comm	KEY_POS_SETATTR,4,4
	.comm	KEY_POS_SEARCH,4,4
	.comm	KEY_POS_READ,4,4
	.comm	KEY_POS_LINK,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
