	.file	"extr_input-manager.c_apply_input_type_config.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	apply_input_type_config, @function
apply_input_type_config:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	input_device_get_type@PLT
	mov	rbp, rax
	mov	rax, QWORD PTR config[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	ecx, DWORD PTR [rax]
	test	ecx, ecx
	jle	.L1
	xor	ebx, ebx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR 8[rax]
	add	rbx, 1
	cmp	DWORD PTR [rax], ebx
	jle	.L1
.L5:
	mov	rax, QWORD PTR 8[rax]
	mov	rsi, rbp
	mov	r13, QWORD PTR [rax+rbx*8]
	mov	rax, QWORD PTR 0[r13]
	lea	rdi, 5[rax]
	call	strcmp@PLT
	test	rax, rax
	mov	rax, QWORD PTR config[rip]
	jne	.L3
	mov	rax, QWORD PTR [rax]
	xor	ebx, ebx
	mov	edx, DWORD PTR [rax]
	test	edx, edx
	jg	.L4
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR config[rip]
	add	rbx, 1
	mov	rax, QWORD PTR [rax]
	cmp	DWORD PTR [rax], ebx
	jle	.L1
.L4:
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, QWORD PTR [r12]
	lea	r14, 0[0+rbx*8]
	mov	r15, QWORD PTR [rax+rbx*8]
	mov	rsi, QWORD PTR [r15]
	call	strcmp@PLT
	test	rax, rax
	jne	.L6
	mov	rdi, QWORD PTR [r15]
	call	new_input_config@PLT
	mov	rsi, r13
	mov	rbx, rax
	mov	rdi, rax
	call	merge_input_config@PLT
	mov	rdi, rbx
	mov	rsi, r15
	call	merge_input_config@PLT
	mov	rax, QWORD PTR config[rip]
	mov	QWORD PTR 8[rbx], rbp
	mov	rdi, r15
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR [rax+r14], rbx
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	jmp	free_input_config@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 56
	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
	.cfi_endproc
.LFE0:
	.size	apply_input_type_config, .-apply_input_type_config
	.comm	config,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_input-manager.c_apply_input_type_config.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	apply_input_type_config, %function
apply_input_type_config:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #12
	mov	r8, r0
	bl	input_device_get_type
	ldr	r3, .L12
	ldr	r9, [r3]
	ldr	r3, [r9, #4]
	ldr	r7, [r3]
	cmp	r7, #0
	ble	.L1
	ldr	r3, [r3, #4]
	mov	r6, r0
	mov	fp, #0
	sub	r10, r3, #4
	b	.L5
.L3:
	cmp	fp, r7
	beq	.L1
.L5:
	ldr	r5, [r10, #4]!
	mov	r1, r6
	ldr	r0, [r5]
	add	fp, fp, #1
	add	r0, r0, #5
	bl	strcmp
	subs	r4, r0, #0
	bne	.L3
	ldr	r3, [r9]
	ldr	r9, [r3]
	cmp	r9, #0
	ble	.L1
	ldr	r3, [r3, #4]
	ldr	r8, [r8]
	sub	fp, r3, #4
	b	.L7
.L6:
	cmp	r9, r4
	beq	.L1
.L7:
	ldr	r7, [fp, #4]!
	lsl	r3, r4, #2
	ldr	r10, [r7]
	mov	r0, r8
	mov	r1, r10
	str	r3, [sp, #4]
	bl	strcmp
	cmp	r0, #0
	add	r4, r4, #1
	bne	.L6
	mov	r0, r10
	bl	new_input_config
	mov	r4, r0
	mov	r1, r5
	bl	merge_input_config
	mov	r1, r7
	mov	r0, r4
	bl	merge_input_config
	mov	r0, r7
	ldr	r3, .L12
	ldr	r2, [sp, #4]
	ldr	r3, [r3]
	str	r6, [r4, #4]
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	str	r4, [r3, r2]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	free_input_config
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	.align	2
.L12:
	.word	config
	.size	apply_input_type_config, .-apply_input_type_config
	.comm	config,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
