	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vsxxxaa_connect
_vsxxxaa_connect:                       ## @vsxxxaa_connect
	.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	%rsi, %r12
	movq	%rdi, %r14
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_input_allocate_device
	movq	%rax, %rbx
	testq	%r15, %r15
	je	LBB0_6
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.2:
	movq	%rbx, 16(%r15)
	movq	%r14, 8(%r15)
	movl	4(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_strlcat
	movl	(%r15), %edi
	movq	(%r14), %rcx
	leaq	L_.str.1(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	movl	4(%r15), %eax
	movl	%eax, 32(%rbx)
	movl	(%r15), %eax
	movl	%eax, 28(%rbx)
	movq	_BUS_RS232@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	leaq	8(%r14), %rax
	movq	%rax, 16(%rbx)
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	callq	___set_bit
	movq	_EV_REL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	callq	___set_bit
	movq	_EV_ABS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	callq	___set_bit
	movq	_BTN_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%rbx), %esi
	callq	___set_bit
	movq	_BTN_MIDDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%rbx), %esi
	callq	___set_bit
	movq	_BTN_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%rbx), %esi
	callq	___set_bit
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%rbx), %esi
	callq	___set_bit
	movq	_REL_X@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	___set_bit
	movq	_REL_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	___set_bit
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r13d, %r13d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$1023, %ecx                     ## imm = 0x3FF
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$1023, %ecx                     ## imm = 0x3FF
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_serio_set_drvdata
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_serio_open
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	movl	$84, %esi
	callq	_serio_write
	movq	%rbx, %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_serio_close
LBB0_5:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_serio_set_drvdata
	movl	%r12d, %r13d
LBB0_6:
	movq	%rbx, %rdi
	callq	_input_free_device
	movq	%r15, %rdi
	callq	_kfree
LBB0_7:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DEC VSXXX-AA/-GA mouse or VSXXX-AB digitizer"

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

	.comm	_BUS_RS232,4,2                  ## @BUS_RS232
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_EV_REL,4,2                     ## @EV_REL
	.comm	_EV_ABS,4,2                     ## @EV_ABS
	.comm	_BTN_LEFT,4,2                   ## @BTN_LEFT
	.comm	_BTN_MIDDLE,4,2                 ## @BTN_MIDDLE
	.comm	_BTN_RIGHT,4,2                  ## @BTN_RIGHT
	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.comm	_REL_X,4,2                      ## @REL_X
	.comm	_REL_Y,4,2                      ## @REL_Y
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.no_dead_strip	_vsxxxaa_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vsxxxaa_connect
_vsxxxaa_connect:                       ; @vsxxxaa_connect
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	mov	x19, x0
	bl	_input_allocate_device
	mov	x21, x0
	cmp	x19, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	neg	w22, w23
	b	LBB0_6
LBB0_2:
	stp	x20, x21, [x19, #8]
	ldr	w0, [x19, #4]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_strlcat
	ldr	w0, [x19]
	mov	x23, x20
	ldr	x3, [x23], #8
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #4
	bl	_snprintf
	ldr	d0, [x19]
	stur	d0, [x21, #28]
Lloh10:
	adrp	x8, _BUS_RS232@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BUS_RS232@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x21, #24]
	str	x23, [x21, #16]
Lloh13:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldr	w1, [x21, #8]
	bl	___set_bit
Lloh16:
	adrp	x8, _EV_REL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EV_REL@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	ldr	w1, [x21, #8]
	bl	___set_bit
Lloh19:
	adrp	x8, _EV_ABS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EV_ABS@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	ldr	w1, [x21, #8]
	bl	___set_bit
Lloh22:
	adrp	x8, _BTN_LEFT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _BTN_LEFT@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	ldr	w1, [x21, #4]
	bl	___set_bit
Lloh25:
	adrp	x8, _BTN_MIDDLE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _BTN_MIDDLE@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	ldr	w1, [x21, #4]
	bl	___set_bit
Lloh28:
	adrp	x8, _BTN_RIGHT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _BTN_RIGHT@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	ldr	w1, [x21, #4]
	bl	___set_bit
Lloh31:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh32:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	ldr	w1, [x21, #4]
	bl	___set_bit
Lloh34:
	adrp	x8, _REL_X@GOTPAGE
Lloh35:
	ldr	x8, [x8, _REL_X@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	ldr	w1, [x21]
	bl	___set_bit
Lloh37:
	adrp	x8, _REL_Y@GOTPAGE
Lloh38:
	ldr	x8, [x8, _REL_Y@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	ldr	w1, [x21]
	bl	___set_bit
Lloh40:
	adrp	x8, _ABS_X@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	mov	w3, #1023
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
Lloh43:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	mov	w3, #1023
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	mov	x0, x20
	mov	x1, x19
	bl	_serio_set_drvdata
	mov	x0, x20
	mov	x1, x22
	bl	_serio_open
	mov	x22, x0
	cbnz	w0, LBB0_5
; %bb.3:
	mov	x0, x20
	mov	w1, #84
	bl	_serio_write
	mov	x0, x21
	bl	_input_register_device
	mov	x22, x0
	cbz	w0, LBB0_7
; %bb.4:
	mov	x0, x20
	bl	_serio_close
LBB0_5:
	mov	x0, x20
	mov	x1, #0
	bl	_serio_set_drvdata
LBB0_6:
	mov	x0, x21
	bl	_input_free_device
	mov	x0, x19
	bl	_kfree
LBB0_7:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DEC VSXXX-AA/-GA mouse or VSXXX-AB digitizer"

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

	.comm	_BUS_RS232,4,2                  ; @BUS_RS232
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_EV_REL,4,2                     ; @EV_REL
	.comm	_EV_ABS,4,2                     ; @EV_ABS
	.comm	_BTN_LEFT,4,2                   ; @BTN_LEFT
	.comm	_BTN_MIDDLE,4,2                 ; @BTN_MIDDLE
	.comm	_BTN_RIGHT,4,2                  ; @BTN_RIGHT
	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.comm	_REL_X,4,2                      ; @REL_X
	.comm	_REL_Y,4,2                      ; @REL_Y
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.no_dead_strip	_vsxxxaa_connect
.subsections_via_symbols
