	.file	"extr_vmmouse.c_vmmouse_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s/input1"
.LC1:
	.string	"%s %s %s"
	.text
	.p2align 4
	.globl	vmmouse_init
	.type	vmmouse_init, @function
vmmouse_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	mov	r13, QWORD PTR 40[rdi]
	call	psmouse_reset@PLT
	mov	rdi, rbx
	call	vmmouse_enable@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L9
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 16
	call	kzalloc@PLT
	mov	r14, rax
	xor	eax, eax
	call	input_allocate_device@PLT
	mov	rbp, rax
	test	r14, r14
	je	.L6
	test	rax, rax
	je	.L6
	mov	QWORD PTR [r14], rax
	mov	rax, QWORD PTR 24[rbx]
	mov	esi, 4
	lea	rdx, .LC0[rip]
	mov	QWORD PTR [rbx], r14
	mov	edi, DWORD PTR 12[r14]
	mov	rcx, QWORD PTR [rax]
	xor	eax, eax
	call	snprintf@PLT
	mov	r9, QWORD PTR VMMOUSE_NAME[rip]
	mov	edi, DWORD PTR 8[r14]
	xor	eax, eax
	mov	r8, QWORD PTR VMMOUSE_VENDOR[rip]
	mov	rcx, QWORD PTR VMMOUSE_PSNAME[rip]
	mov	esi, 4
	lea	rdx, .LC1[rip]
	call	snprintf@PLT
	mov	eax, DWORD PTR 12[r14]
	mov	edx, DWORD PTR BTN_LEFT[rip]
	mov	rdi, rbp
	mov	esi, DWORD PTR EV_KEY[rip]
	mov	DWORD PTR 28[rbp], eax
	mov	eax, DWORD PTR 8[r14]
	mov	DWORD PTR 8[rbp], 2
	mov	DWORD PTR 24[rbp], eax
	mov	eax, DWORD PTR BUS_I8042[rip]
	mov	DWORD PTR 20[rbp], eax
	mov	eax, DWORD PTR PSMOUSE_VMMOUSE[rip]
	mov	DWORD PTR 16[rbp], eax
	mov	eax, DWORD PTR 32[rbx]
	mov	DWORD PTR 12[rbp], eax
	mov	rax, QWORD PTR 24[rbx]
	add	rax, 8
	mov	QWORD PTR 0[rbp], rax
	call	input_set_capability@PLT
	mov	edx, DWORD PTR BTN_RIGHT[rip]
	mov	esi, DWORD PTR EV_KEY[rip]
	mov	rdi, rbp
	call	input_set_capability@PLT
	mov	edx, DWORD PTR BTN_MIDDLE[rip]
	mov	esi, DWORD PTR EV_KEY[rip]
	mov	rdi, rbp
	call	input_set_capability@PLT
	mov	edx, DWORD PTR ABS_X[rip]
	mov	esi, DWORD PTR EV_ABS[rip]
	mov	rdi, rbp
	call	input_set_capability@PLT
	mov	edx, DWORD PTR ABS_Y[rip]
	mov	esi, DWORD PTR EV_ABS[rip]
	mov	rdi, rbp
	call	input_set_capability@PLT
	mov	ecx, DWORD PTR VMMOUSE_MAX_X[rip]
	xor	r9d, r9d
	xor	edx, edx
	mov	esi, DWORD PTR ABS_X[rip]
	xor	r8d, r8d
	mov	rdi, rbp
	call	input_set_abs_params@PLT
	mov	ecx, DWORD PTR VMMOUSE_MAX_Y[rip]
	xor	r9d, r9d
	xor	edx, edx
	mov	esi, DWORD PTR ABS_Y[rip]
	xor	r8d, r8d
	mov	rdi, rbp
	call	input_set_abs_params@PLT
	mov	rdi, QWORD PTR [r14]
	call	input_register_device@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L10
.L5:
	mov	rdi, rbx
	call	vmmouse_disable@PLT
	mov	rdi, rbx
	call	psmouse_reset@PLT
	mov	rdi, rbp
	call	input_free_device@PLT
	mov	rdi, r14
	call	kfree@PLT
	mov	eax, r12d
	mov	QWORD PTR [rbx], 0
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edx, DWORD PTR REL_WHEEL[rip]
	mov	esi, DWORD PTR EV_REL[rip]
	mov	rdi, r13
	call	input_set_capability@PLT
	mov	eax, DWORD PTR vmmouse_process_byte[rip]
	mov	DWORD PTR 16[rbx], eax
	mov	eax, DWORD PTR vmmouse_disconnect[rip]
	mov	DWORD PTR 12[rbx], eax
	mov	eax, DWORD PTR vmmouse_reconnect[rip]
	mov	DWORD PTR 8[rbx], eax
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	vmmouse_init, .-vmmouse_init
	.comm	vmmouse_reconnect,4,4
	.comm	vmmouse_process_byte,4,4
	.comm	vmmouse_disconnect,4,4
	.comm	VMMOUSE_VENDOR,8,8
	.comm	VMMOUSE_PSNAME,8,8
	.comm	VMMOUSE_NAME,8,8
	.comm	VMMOUSE_MAX_Y,4,4
	.comm	VMMOUSE_MAX_X,4,4
	.comm	REL_WHEEL,4,4
	.comm	PSMOUSE_VMMOUSE,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_I8042,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_vmmouse.c_vmmouse_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s/input1\000"
	.align	2
.LC1:
	.ascii	"%s %s %s\000"
	.text
	.align	2
	.global	vmmouse_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	vmmouse_init, %function
vmmouse_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r0
	sub	sp, sp, #12
	ldr	r8, [r0, #24]
	bl	psmouse_reset
	mov	r0, r6
	bl	vmmouse_enable
	subs	r4, r0, #0
	beq	.L7
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	ldr	r3, .L8
	mov	r0, #12
	ldr	r1, [r3]
	bl	kzalloc
	mov	r7, r0
	bl	input_allocate_device
	cmp	r0, #0
	cmpne	r7, #0
	mov	r5, r0
	bne	.L3
	ldr	r3, .L8+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L4:
	mov	r0, r6
	bl	vmmouse_disable
	mov	r0, r6
	bl	psmouse_reset
	mov	r0, r5
	bl	input_free_device
	mov	r0, r7
	bl	kfree
	mov	r3, #0
	mov	r0, r4
	str	r3, [r6]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	ldr	r3, [r6, #16]
	mov	r1, #4
	ldr	r3, [r3]
	str	r0, [r7]
	ldr	r2, .L8+8
	ldr	r0, [r7, #8]
	str	r7, [r6]
	bl	snprintf
	ldr	r2, .L8+12
	ldr	r3, .L8+16
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L8+20
	ldr	r0, [r7, #4]
	str	r1, [sp, #4]
	str	r2, [sp]
	mov	r1, #4
	ldr	r3, [r3]
	ldr	r2, .L8+24
	bl	snprintf
	mov	r1, #2
	ldr	r2, .L8+28
	ldr	r0, [r7, #8]
	ldr	r2, [r2]
	ldr	ip, .L8+32
	ldr	r3, [r6, #16]
	ldr	lr, [r7, #4]
	ldr	ip, [ip]
	ldr	r9, .L8+36
	str	r0, [r5, #24]
	ldr	r0, [r6, #20]
	str	r2, [r5, #16]
	ldr	r2, .L8+40
	add	r3, r3, #4
	str	lr, [r5, #20]
	str	ip, [r5, #12]
	ldr	r2, [r2]
	str	r3, [r5]
	str	r0, [r5, #8]
	str	r1, [r5, #4]
	mov	r0, r5
	ldr	r1, [r9]
	bl	input_set_capability
	ldr	r3, .L8+44
	ldr	r1, [r9]
	ldr	r2, [r3]
	mov	r0, r5
	bl	input_set_capability
	ldr	r3, .L8+48
	ldr	r10, .L8+52
	ldr	fp, .L8+56
	ldr	r2, [r3]
	ldr	r1, [r9]
	mov	r0, r5
	ldr	r9, .L8+60
	bl	input_set_capability
	ldr	r2, [r10]
	ldr	r1, [fp]
	mov	r0, r5
	bl	input_set_capability
	ldr	r1, [fp]
	ldr	r2, [r9]
	mov	r0, r5
	bl	input_set_capability
	ldr	r3, .L8+64
	str	r4, [sp, #4]
	str	r4, [sp]
	mov	r2, r4
	ldr	r1, [r10]
	ldr	r3, [r3]
	mov	r0, r5
	bl	input_set_abs_params
	ldr	r3, .L8+68
	ldr	r1, [r9]
	str	r4, [sp, #4]
	str	r4, [sp]
	mov	r2, r4
	ldr	r3, [r3]
	mov	r0, r5
	bl	input_set_abs_params
	ldr	r0, [r7]
	bl	input_register_device
	subs	r4, r0, #0
	bne	.L4
	ldr	r3, .L8+72
	ldr	r2, .L8+76
	ldr	r1, [r3]
	mov	r0, r8
	ldr	r2, [r2]
	bl	input_set_capability
	mov	r0, r4
	ldr	r1, .L8+80
	ldr	r2, .L8+84
	ldr	r3, .L8+88
	ldr	r1, [r1]
	ldr	r2, [r2]
	ldr	r3, [r3]
	str	r1, [r6, #12]
	str	r2, [r6, #8]
	str	r3, [r6, #4]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	.align	2
.L8:
	.word	GFP_KERNEL
	.word	ENOMEM
	.word	.LC0
	.word	VMMOUSE_NAME
	.word	VMMOUSE_VENDOR
	.word	VMMOUSE_PSNAME
	.word	.LC1
	.word	BUS_I8042
	.word	PSMOUSE_VMMOUSE
	.word	EV_KEY
	.word	BTN_LEFT
	.word	BTN_RIGHT
	.word	BTN_MIDDLE
	.word	ABS_X
	.word	EV_ABS
	.word	ABS_Y
	.word	VMMOUSE_MAX_X
	.word	VMMOUSE_MAX_Y
	.word	EV_REL
	.word	REL_WHEEL
	.word	vmmouse_process_byte
	.word	vmmouse_disconnect
	.word	vmmouse_reconnect
	.size	vmmouse_init, .-vmmouse_init
	.comm	vmmouse_reconnect,4,4
	.comm	vmmouse_process_byte,4,4
	.comm	vmmouse_disconnect,4,4
	.comm	VMMOUSE_VENDOR,4,4
	.comm	VMMOUSE_PSNAME,4,4
	.comm	VMMOUSE_NAME,4,4
	.comm	VMMOUSE_MAX_Y,4,4
	.comm	VMMOUSE_MAX_X,4,4
	.comm	REL_WHEEL,4,4
	.comm	PSMOUSE_VMMOUSE,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_I8042,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
