	.file	"extr_vsxxxaa.c_vsxxxaa_connect.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"DEC VSXXX-AA/-GA mouse or VSXXX-AB digitizer"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%s/input0"
	.text
	.p2align 4
	.type	vsxxxaa_connect, @function
vsxxxaa_connect:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, DWORD PTR ENOMEM[rip]
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	mov	edi, 24
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	call	kzalloc@PLT
	mov	r12, rax
	xor	eax, eax
	call	input_allocate_device@PLT
	mov	rbp, rax
	test	r12, r12
	je	.L7
	test	rax, rax
	je	.L7
	mov	QWORD PTR 16[r12], rax
	mov	edi, DWORD PTR 4[r12]
	mov	edx, 4
	lea	rsi, .LC0[rip]
	mov	QWORD PTR 8[r12], r13
	call	strlcat@PLT
	mov	rcx, QWORD PTR 0[r13]
	mov	edi, DWORD PTR [r12]
	lea	rdx, .LC1[rip]
	mov	esi, 4
	call	snprintf@PLT
	mov	eax, DWORD PTR 4[r12]
	mov	esi, DWORD PTR 8[rbp]
	mov	edi, DWORD PTR EV_KEY[rip]
	mov	DWORD PTR 32[rbp], eax
	mov	eax, DWORD PTR [r12]
	mov	DWORD PTR 28[rbp], eax
	mov	eax, DWORD PTR BUS_RS232[rip]
	mov	DWORD PTR 24[rbp], eax
	lea	rax, 8[r13]
	mov	QWORD PTR 16[rbp], rax
	call	set_bit@PLT
	mov	esi, DWORD PTR 8[rbp]
	mov	edi, DWORD PTR EV_REL[rip]
	call	set_bit@PLT
	mov	esi, DWORD PTR 8[rbp]
	mov	edi, DWORD PTR EV_ABS[rip]
	call	set_bit@PLT
	mov	esi, DWORD PTR 4[rbp]
	mov	edi, DWORD PTR BTN_LEFT[rip]
	call	set_bit@PLT
	mov	esi, DWORD PTR 4[rbp]
	mov	edi, DWORD PTR BTN_MIDDLE[rip]
	call	set_bit@PLT
	mov	esi, DWORD PTR 4[rbp]
	mov	edi, DWORD PTR BTN_RIGHT[rip]
	call	set_bit@PLT
	mov	esi, DWORD PTR 4[rbp]
	mov	edi, DWORD PTR BTN_TOUCH[rip]
	call	set_bit@PLT
	mov	esi, DWORD PTR 0[rbp]
	mov	edi, DWORD PTR REL_X[rip]
	call	set_bit@PLT
	mov	esi, DWORD PTR 0[rbp]
	mov	edi, DWORD PTR REL_Y[rip]
	call	set_bit@PLT
	mov	esi, DWORD PTR ABS_X[rip]
	xor	r9d, r9d
	xor	edx, edx
	xor	r8d, r8d
	mov	ecx, 1023
	mov	rdi, rbp
	call	input_set_abs_params@PLT
	mov	esi, DWORD PTR ABS_Y[rip]
	xor	r9d, r9d
	xor	edx, edx
	xor	r8d, r8d
	mov	ecx, 1023
	mov	rdi, rbp
	call	input_set_abs_params@PLT
	mov	rsi, r12
	mov	rdi, r13
	call	serio_set_drvdata@PLT
	mov	rsi, r15
	mov	rdi, r13
	call	serio_open@PLT
	mov	r14d, eax
	test	eax, eax
	jne	.L5
	mov	esi, 84
	mov	rdi, r13
	call	serio_write@PLT
	mov	rdi, rbp
	call	input_register_device@PLT
	mov	r14d, eax
	test	eax, eax
	je	.L1
	mov	rdi, r13
	call	serio_close@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	xor	esi, esi
	mov	rdi, r13
	call	serio_set_drvdata@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	neg	r14d
.L4:
	mov	rdi, rbp
	call	input_free_device@PLT
	mov	rdi, r12
	call	kfree@PLT
.L1:
	pop	rbp
	.cfi_def_cfa_offset 40
	mov	eax, r14d
	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	vsxxxaa_connect, .-vsxxxaa_connect
	.comm	REL_Y,4,4
	.comm	REL_X,4,4
	.comm	GFP_KERNEL,4,4
	.comm	EV_REL,4,4
	.comm	EV_KEY,4,4
	.comm	EV_ABS,4,4
	.comm	ENOMEM,4,4
	.comm	BUS_RS232,4,4
	.comm	BTN_TOUCH,4,4
	.comm	BTN_RIGHT,4,4
	.comm	BTN_MIDDLE,4,4
	.comm	BTN_LEFT,4,4
	.comm	ABS_Y,4,4
	.comm	ABS_X,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_vsxxxaa.c_vsxxxaa_connect.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"DEC VSXXX-AA/-GA mouse or VSXXX-AB digitizer\000"
	.align	2
.LC1:
	.ascii	"%s/input0\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vsxxxaa_connect, %function
vsxxxaa_connect:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r2, .L12
	ldr	r3, .L12+4
	sub	sp, sp, #12
	mov	r7, r0
	mov	r9, r1
	mov	r0, #16
	ldr	r1, [r2]
	ldr	r8, [r3]
	bl	kzalloc
	mov	r6, r0
	bl	input_allocate_device
	clz	r5, r0
	cmp	r6, #0
	lsr	r5, r5, #5
	moveq	r5, #1
	cmp	r5, #0
	mov	r4, r0
	rsbne	r8, r8, #0
	beq	.L11
.L3:
	mov	r0, r4
	bl	input_free_device
	mov	r0, r6
	bl	kfree
.L1:
	mov	r0, r8
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L11:
	mov	r8, r7
	mov	r2, #4
	ldr	r1, .L12+8
	str	r0, [r6, #12]
	str	r7, [r6, #8]
	ldr	r0, [r6, #4]
	bl	strlcat
	ldr	r3, [r8], #4
	mov	r1, #4
	ldr	r2, .L12+12
	ldr	r0, [r6]
	bl	snprintf
	ldr	r3, .L12+16
	ldr	r0, [r6, #4]
	ldr	r2, [r3]
	ldr	r1, [r6]
	ldr	r3, .L12+20
	str	r2, [r4, #16]
	str	r0, [r4, #24]
	str	r8, [r4, #12]
	ldr	r0, [r3]
	str	r1, [r4, #20]
	ldr	r1, [r4, #8]
	bl	set_bit
	ldr	r3, .L12+24
	ldr	r1, [r4, #8]
	ldr	r0, [r3]
	bl	set_bit
	ldr	r3, .L12+28
	ldr	r1, [r4, #8]
	ldr	r0, [r3]
	bl	set_bit
	ldr	r3, .L12+32
	ldr	r1, [r4, #4]
	ldr	r0, [r3]
	bl	set_bit
	ldr	r3, .L12+36
	ldr	r1, [r4, #4]
	ldr	r0, [r3]
	bl	set_bit
	ldr	r3, .L12+40
	ldr	r1, [r4, #4]
	ldr	r0, [r3]
	bl	set_bit
	ldr	r3, .L12+44
	ldr	r1, [r4, #4]
	ldr	r0, [r3]
	bl	set_bit
	ldr	r3, .L12+48
	ldr	r1, [r4]
	ldr	r0, [r3]
	bl	set_bit
	ldr	r3, .L12+52
	ldr	r1, [r4]
	ldr	r0, [r3]
	bl	set_bit
	ldr	r3, .L12+56
	str	r5, [sp, #4]
	str	r5, [sp]
	ldr	r1, [r3]
	mov	r2, r5
	ldr	r3, .L12+60
	mov	r0, r4
	bl	input_set_abs_params
	ldr	r3, .L12+64
	str	r5, [sp, #4]
	str	r5, [sp]
	mov	r2, r5
	ldr	r1, [r3]
	mov	r0, r4
	ldr	r3, .L12+60
	bl	input_set_abs_params
	mov	r1, r6
	mov	r0, r7
	bl	serio_set_drvdata
	mov	r1, r9
	mov	r0, r7
	bl	serio_open
	subs	r8, r0, #0
	bne	.L4
	mov	r1, #84
	mov	r0, r7
	bl	serio_write
	mov	r0, r4
	bl	input_register_device
	subs	r8, r0, #0
	beq	.L1
	mov	r0, r7
	bl	serio_close
.L4:
	mov	r0, r7
	mov	r1, #0
	bl	serio_set_drvdata
	b	.L3
.L13:
	.align	2
.L12:
	.word	GFP_KERNEL
	.word	ENOMEM
	.word	.LC0
	.word	.LC1
	.word	BUS_RS232
	.word	EV_KEY
	.word	EV_REL
	.word	EV_ABS
	.word	BTN_LEFT
	.word	BTN_MIDDLE
	.word	BTN_RIGHT
	.word	BTN_TOUCH
	.word	REL_X
	.word	REL_Y
	.word	ABS_X
	.word	1023
	.word	ABS_Y
	.size	vsxxxaa_connect, .-vsxxxaa_connect
	.comm	REL_Y,4,4
	.comm	REL_X,4,4
	.comm	GFP_KERNEL,4,4
	.comm	EV_REL,4,4
	.comm	EV_KEY,4,4
	.comm	EV_ABS,4,4
	.comm	ENOMEM,4,4
	.comm	BUS_RS232,4,4
	.comm	BTN_TOUCH,4,4
	.comm	BTN_RIGHT,4,4
	.comm	BTN_MIDDLE,4,4
	.comm	BTN_LEFT,4,4
	.comm	ABS_Y,4,4
	.comm	ABS_X,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
