	.file	"extr_ctsrc.c_srcimp_imap_add.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	srcimp_imap_add, @function
srcimp_imap_add:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	xor	esi, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	call	spin_lock_irqsave@PLT
	cmp	QWORD PTR [r12], 0
	mov	edx, DWORD PTR srcimp_map_op[rip]
	lea	rdi, 4[rbp]
	jne	.L3
	cmp	QWORD PTR 8[rbp], 0
	jne	.L6
.L3:
	mov	rcx, rbp
	mov	rsi, r12
	call	input_mapper_add@PLT
	mov	rdi, rbp
	xor	esi, esi
	mov	r12d, eax
	call	spin_unlock_irqrestore@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	esi, DWORD PTR 16[rbp]
	mov	rcx, rbp
	mov	QWORD PTR 8[rsp], rdi
	call	input_mapper_delete@PLT
	mov	edx, DWORD PTR srcimp_map_op[rip]
	mov	rdi, QWORD PTR 8[rsp]
	mov	QWORD PTR 8[rbp], 0
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	srcimp_imap_add, .-srcimp_imap_add
	.comm	srcimp_map_op,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_ctsrc.c_srcimp_imap_add.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	srcimp_imap_add, %function
srcimp_imap_add:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r1
	mov	r4, r0
	mov	r1, #0
	bl	spin_lock_irqsave
	ldr	r6, [r7]
	add	r5, r4, #4
	cmp	r6, #0
	beq	.L2
	ldr	r3, .L9
	ldr	r2, [r3]
.L3:
	mov	r1, r7
	mov	r3, r4
	mov	r0, r5
	bl	input_mapper_add
	mov	r5, r0
	mov	r1, #0
	mov	r0, r4
	bl	spin_unlock_irqrestore
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, [r4, #8]
	ldr	r8, .L9
	cmp	r3, #0
	ldr	r2, [r8]
	beq	.L3
	mov	r3, r4
	mov	r0, r5
	ldr	r1, [r4, #12]
	bl	input_mapper_delete
	ldr	r2, [r8]
	str	r6, [r4, #8]
	b	.L3
.L10:
	.align	2
.L9:
	.word	srcimp_map_op
	.size	srcimp_imap_add, .-srcimp_imap_add
	.comm	srcimp_map_op,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
