	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmmouse_init                   ## -- Begin function vmmouse_init
	.p2align	4, 0x90
_vmmouse_init:                          ## @vmmouse_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	40(%rdi), %rbx
	callq	_psmouse_reset
	movq	%r15, %rdi
	callq	_vmmouse_enable
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	movq	%rax, %rbx
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_input_allocate_device
	movq	%rax, %r12
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.2:
	testq	%r12, %r12
	je	LBB0_3
## %bb.5:
	movq	%r12, (%rbx)
	movq	%rbx, (%r15)
	movl	12(%rbx), %edi
	movq	24(%r15), %rax
	movq	(%rax), %rcx
	leaq	L_.str(%rip), %rdx
	xorl	%r14d, %r14d
	movl	$4, %esi
	xorl	%eax, %eax
	callq	_snprintf
	movl	8(%rbx), %edi
	movq	_VMMOUSE_PSNAME@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_VMMOUSE_VENDOR@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	_VMMOUSE_NAME@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	leaq	L_.str.1(%rip), %rdx
	movl	$4, %esi
	xorl	%eax, %eax
	callq	_snprintf
	movl	12(%rbx), %eax
	movl	%eax, 28(%r12)
	movl	8(%rbx), %eax
	movl	%eax, 24(%r12)
	movq	_BUS_I8042@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r12)
	movl	$2, 8(%r12)
	movq	_PSMOUSE_VMMOUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movl	32(%r15), %eax
	movl	%eax, 12(%r12)
	movq	24(%r15), %rax
	addq	$8, %rax
	movq	%rax, (%r12)
	movq	_EV_KEY@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_BTN_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_input_set_capability
	movl	(%r13), %esi
	movq	_BTN_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_input_set_capability
	movl	(%r13), %esi
	movq	_BTN_MIDDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_input_set_capability
	movq	_EV_ABS@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_input_set_capability
	movl	(%r13), %esi
	movq	_ABS_Y@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r12, %rdi
	callq	_input_set_capability
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VMMOUSE_MAX_X@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movl	(%r13), %esi
	movq	_VMMOUSE_MAX_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	(%rbx), %rdi
	callq	_input_register_device
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.6:
	movq	_EV_REL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REL_WHEEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_input_set_capability
	movq	_vmmouse_process_byte@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	_vmmouse_disconnect@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movq	_vmmouse_reconnect@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	jmp	LBB0_7
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
LBB0_4:
	movq	%r15, %rdi
	callq	_vmmouse_disable
	movq	%r15, %rdi
	callq	_psmouse_reset
	movq	%r12, %rdi
	callq	_input_free_device
	movq	%rbx, %rdi
	callq	_kfree
	movq	$0, (%r15)
	movl	%r13d, %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/input1"

L_.str.1:                               ## @.str.1
	.asciz	"%s %s %s"

	.comm	_VMMOUSE_PSNAME,8,3             ## @VMMOUSE_PSNAME
	.comm	_VMMOUSE_VENDOR,8,3             ## @VMMOUSE_VENDOR
	.comm	_VMMOUSE_NAME,8,3               ## @VMMOUSE_NAME
	.comm	_BUS_I8042,4,2                  ## @BUS_I8042
	.comm	_PSMOUSE_VMMOUSE,4,2            ## @PSMOUSE_VMMOUSE
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_BTN_LEFT,4,2                   ## @BTN_LEFT
	.comm	_BTN_RIGHT,4,2                  ## @BTN_RIGHT
	.comm	_BTN_MIDDLE,4,2                 ## @BTN_MIDDLE
	.comm	_EV_ABS,4,2                     ## @EV_ABS
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_VMMOUSE_MAX_X,4,2              ## @VMMOUSE_MAX_X
	.comm	_VMMOUSE_MAX_Y,4,2              ## @VMMOUSE_MAX_Y
	.comm	_EV_REL,4,2                     ## @EV_REL
	.comm	_REL_WHEEL,4,2                  ## @REL_WHEEL
	.comm	_vmmouse_process_byte,4,2       ## @vmmouse_process_byte
	.comm	_vmmouse_disconnect,4,2         ## @vmmouse_disconnect
	.comm	_vmmouse_reconnect,4,2          ## @vmmouse_reconnect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmmouse_init                   ; -- Begin function vmmouse_init
	.p2align	2
_vmmouse_init:                          ; @vmmouse_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x20, [x0, #40]
	bl	_psmouse_reset
	mov	x0, x19
	bl	_vmmouse_enable
	mov	x23, x0
	cbnz	w0, LBB0_6
; %bb.1:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	mov	x21, x0
	bl	_input_allocate_device
	mov	x22, x0
	cmp	x21, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_4
LBB0_3:
	str	x22, [x21]
	str	x21, [x19]
	ldr	w0, [x21, #12]
	ldr	x8, [x19, #24]
	ldr	x3, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #4
	bl	_snprintf
	ldr	w0, [x21, #8]
Lloh8:
	adrp	x8, _VMMOUSE_PSNAME@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VMMOUSE_PSNAME@GOTPAGEOFF]
Lloh10:
	ldr	x3, [x8]
Lloh11:
	adrp	x8, _VMMOUSE_VENDOR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VMMOUSE_VENDOR@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
Lloh14:
	adrp	x9, _VMMOUSE_NAME@GOTPAGE
Lloh15:
	ldr	x9, [x9, _VMMOUSE_NAME@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	stp	x8, x9, [sp]
Lloh17:
	adrp	x2, l_.str.1@PAGE
Lloh18:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #4
	bl	_snprintf
	ldr	d0, [x21, #8]
	str	d0, [x22, #24]
Lloh19:
	adrp	x8, _BUS_I8042@GOTPAGE
Lloh20:
	ldr	x8, [x8, _BUS_I8042@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	mov	w9, #2
Lloh22:
	adrp	x10, _PSMOUSE_VMMOUSE@GOTPAGE
Lloh23:
	ldr	x10, [x10, _PSMOUSE_VMMOUSE@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	stp	w10, w8, [x22, #16]
	ldr	w8, [x19, #32]
	stp	w9, w8, [x22, #8]
	ldr	x8, [x19, #24]
	add	x8, x8, #8
	str	x8, [x22]
Lloh25:
	adrp	x23, _EV_KEY@GOTPAGE
Lloh26:
	ldr	x23, [x23, _EV_KEY@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh27:
	adrp	x8, _BTN_LEFT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _BTN_LEFT@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_input_set_capability
	ldr	w1, [x23]
Lloh30:
	adrp	x8, _BTN_RIGHT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _BTN_RIGHT@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_input_set_capability
	ldr	w1, [x23]
Lloh33:
	adrp	x8, _BTN_MIDDLE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _BTN_MIDDLE@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_input_set_capability
Lloh36:
	adrp	x23, _EV_ABS@GOTPAGE
Lloh37:
	ldr	x23, [x23, _EV_ABS@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh38:
	adrp	x24, _ABS_X@GOTPAGE
Lloh39:
	ldr	x24, [x24, _ABS_X@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x22
	bl	_input_set_capability
	ldr	w1, [x23]
Lloh40:
	adrp	x23, _ABS_Y@GOTPAGE
Lloh41:
	ldr	x23, [x23, _ABS_Y@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x22
	bl	_input_set_capability
	ldr	w1, [x24]
Lloh42:
	adrp	x8, _VMMOUSE_MAX_X@GOTPAGE
Lloh43:
	ldr	x8, [x8, _VMMOUSE_MAX_X@GOTPAGEOFF]
Lloh44:
	ldr	w3, [x8]
	mov	x0, x22
	mov	w2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	ldr	w1, [x23]
Lloh45:
	adrp	x8, _VMMOUSE_MAX_Y@GOTPAGE
Lloh46:
	ldr	x8, [x8, _VMMOUSE_MAX_Y@GOTPAGEOFF]
Lloh47:
	ldr	w3, [x8]
	mov	x0, x22
	mov	w2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	ldr	x0, [x21]
	bl	_input_register_device
	mov	x23, x0
	cbz	w0, LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_vmmouse_disable
	mov	x0, x19
	bl	_psmouse_reset
	mov	x0, x22
	bl	_input_free_device
	mov	x0, x21
	bl	_kfree
	str	xzr, [x19]
	b	LBB0_6
LBB0_5:
Lloh48:
	adrp	x8, _EV_REL@GOTPAGE
Lloh49:
	ldr	x8, [x8, _EV_REL@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
Lloh51:
	adrp	x8, _REL_WHEEL@GOTPAGE
Lloh52:
	ldr	x8, [x8, _REL_WHEEL@GOTPAGEOFF]
Lloh53:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_input_set_capability
Lloh54:
	adrp	x8, _vmmouse_process_byte@GOTPAGE
Lloh55:
	ldr	x8, [x8, _vmmouse_process_byte@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
	str	w8, [x19, #16]
Lloh57:
	adrp	x8, _vmmouse_disconnect@GOTPAGE
Lloh58:
	ldr	x8, [x8, _vmmouse_disconnect@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
Lloh60:
	adrp	x9, _vmmouse_reconnect@GOTPAGE
Lloh61:
	ldr	x9, [x9, _vmmouse_reconnect@GOTPAGEOFF]
Lloh62:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #8]
LBB0_6:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/input1"

l_.str.1:                               ; @.str.1
	.asciz	"%s %s %s"

	.comm	_VMMOUSE_PSNAME,8,3             ; @VMMOUSE_PSNAME
	.comm	_VMMOUSE_VENDOR,8,3             ; @VMMOUSE_VENDOR
	.comm	_VMMOUSE_NAME,8,3               ; @VMMOUSE_NAME
	.comm	_BUS_I8042,4,2                  ; @BUS_I8042
	.comm	_PSMOUSE_VMMOUSE,4,2            ; @PSMOUSE_VMMOUSE
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_BTN_LEFT,4,2                   ; @BTN_LEFT
	.comm	_BTN_RIGHT,4,2                  ; @BTN_RIGHT
	.comm	_BTN_MIDDLE,4,2                 ; @BTN_MIDDLE
	.comm	_EV_ABS,4,2                     ; @EV_ABS
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_VMMOUSE_MAX_X,4,2              ; @VMMOUSE_MAX_X
	.comm	_VMMOUSE_MAX_Y,4,2              ; @VMMOUSE_MAX_Y
	.comm	_EV_REL,4,2                     ; @EV_REL
	.comm	_REL_WHEEL,4,2                  ; @REL_WHEEL
	.comm	_vmmouse_process_byte,4,2       ; @vmmouse_process_byte
	.comm	_vmmouse_disconnect,4,2         ; @vmmouse_disconnect
	.comm	_vmmouse_reconnect,4,2          ; @vmmouse_reconnect
.subsections_via_symbols
