	.file	"extr_wacom_sys.c_wacom_register_inputs.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	wacom_register_inputs, @function
wacom_register_inputs:
.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
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rbp, QWORD PTR [rdi]
	mov	r13, QWORD PTR 8[rdi]
	mov	r12, QWORD PTR 16[rdi]
	test	rbp, rbp
	sete	dl
	test	r13, r13
	sete	al
	or	dl, al
	jne	.L11
	test	r12, r12
	je	.L11
	mov	rsi, rdi
	mov	rbx, rdi
	mov	rdi, rbp
	call	wacom_setup_pen_input_capabilities@PLT
	mov	rdi, rbp
	test	eax, eax
	je	.L5
	call	input_free_device@PLT
	mov	QWORD PTR [rbx], 0
.L6:
	mov	rdi, r13
	mov	rsi, rbx
	call	wacom_setup_touch_input_capabilities@PLT
	mov	rdi, r13
	test	eax, eax
	jne	.L18
	call	input_register_device@PLT
	test	eax, eax
	jne	.L7
.L9:
	mov	rdi, r12
	mov	rsi, rbx
	call	wacom_setup_pad_input_capabilities@PLT
	mov	rdi, r12
	test	eax, eax
	je	.L10
	call	input_free_device@PLT
	mov	QWORD PTR 16[rbx], 0
	xor	eax, eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.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
.L11:
	.cfi_restore_state
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	call	input_register_device@PLT
	test	eax, eax
	je	.L6
.L7:
	mov	QWORD PTR 16[rbx], 0
	mov	QWORD PTR 8[rbx], 0
	mov	QWORD PTR [rbx], 0
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.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
	call	input_free_device@PLT
	mov	QWORD PTR 8[rbx], 0
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	call	input_register_device@PLT
	test	eax, eax
	jne	.L7
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	wacom_register_inputs, .-wacom_register_inputs
	.comm	EINVAL,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_wacom_sys.c_wacom_register_inputs.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wacom_register_inputs, %function
wacom_register_inputs:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldm	r0, {r6, r8}
	clz	r3, r8
	ldr	r7, [r0, #8]
	cmp	r6, #0
	lsr	r3, r3, #5
	moveq	r3, #1
	cmp	r7, #0
	movne	r5, r3
	moveq	r5, #1
	cmp	r5, #0
	beq	.L2
	ldr	r3, .L16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r1, r0
	mov	r4, r0
	mov	r0, r6
	bl	wacom_setup_pen_input_capabilities
	cmp	r0, #0
	mov	r0, r6
	beq	.L4
	bl	input_free_device
	str	r5, [r4]
.L5:
	mov	r1, r4
	mov	r0, r8
	bl	wacom_setup_touch_input_capabilities
	cmp	r0, #0
	mov	r0, r8
	bne	.L15
	bl	input_register_device
	cmp	r0, #0
	bne	.L6
.L8:
	mov	r1, r4
	mov	r0, r7
	bl	wacom_setup_pad_input_capabilities
	cmp	r0, #0
	mov	r0, r7
	beq	.L9
	bl	input_free_device
	mov	r0, #0
	str	r0, [r4, #8]
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	bl	input_register_device
	cmp	r0, #0
	beq	.L5
.L6:
	mov	r3, #0
	str	r3, [r4, #8]
	str	r3, [r4, #4]
	str	r3, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	bl	input_free_device
	mov	r3, #0
	str	r3, [r4, #4]
	b	.L8
.L9:
	bl	input_register_device
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	b	.L6
.L17:
	.align	2
.L16:
	.word	EINVAL
	.size	wacom_register_inputs, .-wacom_register_inputs
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
