	.file	"extr_libinput.c_sway_input_configure_libinput_device.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"libinput_config"
	.text
	.p2align 4
	.globl	sway_input_configure_libinput_device
	.type	sway_input_configure_libinput_device, @function
sway_input_configure_libinput_device:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	call	input_device_get_config@PLT
	test	rax, rax
	je	.L1
	mov	rdi, QWORD PTR 8[rbp]
	mov	r12, rax
	call	wlr_input_device_is_libinput@PLT
	test	eax, eax
	jne	.L18
.L1:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[rbp]
	mov	r13, QWORD PTR 0[rbp]
	call	wlr_libinput_get_device_handle@PLT
	mov	rdi, rax
	mov	rax, QWORD PTR 8[rbp]
	mov	rdx, QWORD PTR [rax]
	cmp	rdx, QWORD PTR WLR_INPUT_DEVICE_POINTER[rip]
	je	.L5
	cmp	rdx, QWORD PTR WLR_INPUT_DEVICE_TABLET_TOOL[rip]
	je	.L5
	cmp	rdx, QWORD PTR WLR_INPUT_DEVICE_KEYBOARD[rip]
	je	.L19
	cmp	rdx, QWORD PTR WLR_INPUT_DEVICE_SWITCH[rip]
	je	.L20
	cmp	rdx, QWORD PTR WLR_INPUT_DEVICE_TOUCH[rip]
	jne	.L1
	mov	rdx, r13
	mov	rsi, r12
	call	config_libinput_touch@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdx, r13
	mov	rsi, r12
	call	config_libinput_pointer@PLT
.L7:
	test	eax, eax
	je	.L1
	mov	rsi, rbp
	lea	rdi, .LC0[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	ipc_event_input@PLT
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	rdx, r13
	mov	rsi, r12
	call	config_libinput_keyboard@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rdx, r13
	mov	rsi, r12
	call	config_libinput_switch@PLT
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	sway_input_configure_libinput_device, .-sway_input_configure_libinput_device
	.comm	WLR_INPUT_DEVICE_TOUCH,8,8
	.comm	WLR_INPUT_DEVICE_TABLET_TOOL,8,8
	.comm	WLR_INPUT_DEVICE_SWITCH,8,8
	.comm	WLR_INPUT_DEVICE_POINTER,8,8
	.comm	WLR_INPUT_DEVICE_KEYBOARD,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_libinput.c_sway_input_configure_libinput_device.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"libinput_config\000"
	.text
	.align	2
	.global	sway_input_configure_libinput_device
	.syntax unified
	.arm
	.fpu softvfp
	.type	sway_input_configure_libinput_device, %function
sway_input_configure_libinput_device:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	bl	input_device_get_config
	subs	r5, r0, #0
	popeq	{r4, r5, r6, pc}
	ldr	r0, [r4, #4]
	bl	wlr_input_device_is_libinput
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	ldr	r0, [r4, #4]
	ldr	r6, [r4]
	bl	wlr_libinput_get_device_handle
	ldr	r3, [r4, #4]
	ldr	r1, .L20
	ldr	r3, [r3]
	ldr	r1, [r1]
	mov	ip, r0
	cmp	r3, r1
	beq	.L5
	ldr	r2, .L20+4
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L5
	ldr	r2, .L20+8
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L18
	ldr	r2, .L20+12
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L19
	ldr	r2, .L20+16
	ldr	r2, [r2]
	cmp	r3, r2
	popne	{r4, r5, r6, pc}
	mov	r2, r6
	mov	r1, r5
	bl	config_libinput_touch
	b	.L7
.L5:
	mov	r2, r6
	mov	r1, r5
	mov	r0, ip
	bl	config_libinput_pointer
.L7:
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	mov	r1, r4
	pop	{r4, r5, r6, lr}
	ldr	r0, .L20+20
	b	ipc_event_input
.L18:
	mov	r2, r6
	mov	r1, r5
	bl	config_libinput_keyboard
	b	.L7
.L19:
	mov	r2, r6
	mov	r1, r5
	bl	config_libinput_switch
	b	.L7
.L21:
	.align	2
.L20:
	.word	WLR_INPUT_DEVICE_POINTER
	.word	WLR_INPUT_DEVICE_TABLET_TOOL
	.word	WLR_INPUT_DEVICE_KEYBOARD
	.word	WLR_INPUT_DEVICE_SWITCH
	.word	WLR_INPUT_DEVICE_TOUCH
	.word	.LC0
	.size	sway_input_configure_libinput_device, .-sway_input_configure_libinput_device
	.comm	WLR_INPUT_DEVICE_TOUCH,4,4
	.comm	WLR_INPUT_DEVICE_TABLET_TOOL,4,4
	.comm	WLR_INPUT_DEVICE_SWITCH,4,4
	.comm	WLR_INPUT_DEVICE_POINTER,4,4
	.comm	WLR_INPUT_DEVICE_KEYBOARD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
