	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_alps_init                      ## -- Begin function alps_init
	.p2align	4, 0x90
_alps_init:                             ## @alps_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %r14
	movq	48(%rdi), %r12
	callq	*(%r14)
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_18:
	movq	%r15, %rdi
	callq	_psmouse_reset
	movq	8(%r15), %rdi
	callq	_kfree
	movq	$0, 8(%r15)
LBB0_21:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	_EV_REL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rsi
	callq	___clear_bit
	movq	_REL_X@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r12), %rsi
	callq	___clear_bit
	movq	_REL_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r12), %rsi
	callq	___clear_bit
	movq	_EV_KEY@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_BIT_MASK
	movl	%eax, %r13d
	movq	(%r12), %rbx
	movl	(%r15), %edi
	callq	_BIT_WORD
	orl	%r13d, (%rbx,%rax,4)
	movq	_BTN_TOUCH@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_BIT_MASK
	movl	%eax, %ebx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	16(%r12), %r14
	movl	(%r13), %edi
	callq	_BIT_WORD
	orl	%ebx, (%r14,%rax,4)
	movq	_BTN_TOOL_FINGER@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_BIT_MASK
	movl	%eax, %r13d
	movq	16(%r12), %rbx
	movl	(%r14), %edi
	callq	_BIT_WORD
	orl	%r13d, (%rbx,%rax,4)
	movq	_BTN_LEFT@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_BIT_MASK
	movl	%eax, %r13d
	movq	_BTN_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT_MASK
	movl	%eax, %ebx
	orl	%r13d, %ebx
	movq	16(%r12), %r14
	movl	(%r15), %edi
	callq	_BIT_WORD
	orl	%ebx, (%r14,%rax,4)
	movq	_EV_ABS@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_BIT_MASK
	movl	%eax, %r14d
	movq	(%r12), %rbx
	movl	(%r15), %edi
	callq	_BIT_WORD
	orl	%r14d, (%rbx,%rax,4)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	*56(%rbx)
	movl	8(%rbx), %eax
	movq	_ALPS_WHEEL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	_EV_REL@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_BIT_MASK
	movl	%eax, %r14d
	movq	(%r12), %rbx
	movl	(%r15), %edi
	callq	_BIT_WORD
	orl	%r14d, (%rbx,%rax,4)
	movq	_REL_WHEEL@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_BIT_MASK
	movl	%eax, %ebx
	movq	8(%r12), %r13
	movl	(%r14), %edi
	callq	_BIT_WORD
	orl	%ebx, (%r13,%rax,4)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %eax
LBB0_3:
	movq	_ALPS_FW_BK_1@GOTPCREL(%rip), %rcx
	movq	_ALPS_FW_BK_2@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_5
## %bb.4:
	movq	_BTN_FORWARD@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_BIT_MASK
	movl	%eax, %r13d
	movq	16(%r12), %rbx
	movl	(%r14), %edi
	callq	_BIT_WORD
	orl	%r13d, (%rbx,%rax,4)
	movq	_BTN_BACK@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_BIT_MASK
	movl	%eax, %r13d
	movq	16(%r12), %rbx
	movl	(%r14), %edi
	callq	_BIT_WORD
	orl	%r13d, (%rbx,%rax,4)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %eax
LBB0_5:
	movq	_ALPS_FOUR_BUTTONS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_7
## %bb.6:
	movq	_BTN_0@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_BIT_MASK
	movl	%eax, %r13d
	movq	16(%r12), %rbx
	movl	(%r14), %edi
	callq	_BIT_WORD
	orl	%r13d, (%rbx,%rax,4)
	movq	_BTN_1@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_BIT_MASK
	movl	%eax, %r13d
	movq	16(%r12), %rbx
	movl	(%r14), %edi
	callq	_BIT_WORD
	orl	%r13d, (%rbx,%rax,4)
	movq	_BTN_2@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_BIT_MASK
	movl	%eax, %r13d
	movq	16(%r12), %rbx
	movl	(%r14), %edi
	callq	_BIT_WORD
	orl	%r13d, (%rbx,%rax,4)
	movq	_BTN_3@GOTPCREL(%rip), %r14
LBB0_10:
	movl	(%r14), %edi
	callq	_BIT_MASK
	movl	%eax, %r13d
	movq	16(%r12), %rbx
	movl	(%r14), %edi
	callq	_BIT_WORD
	orl	%r13d, (%rbx,%rax,4)
	jmp	LBB0_11
LBB0_7:
	movq	_ALPS_BUTTONPAD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.8:
	movq	_INPUT_PROP_BUTTONPAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	32(%r12), %esi
	callq	_set_bit
	movq	_BTN_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	16(%r12), %rsi
	callq	_clear_bit
LBB0_11:
	movq	_ALPS_DUALPOINT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	testl	%eax, 8(%r14)
	movq	_EV_REL@GOTPCREL(%rip), %r13
	je	LBB0_20
## %bb.12:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_input_allocate_device
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	%rax, %r12
	movl	48(%r14), %edi
	movq	40(%r15), %rax
	movq	(%rax), %rcx
	leaq	L_.str.1(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	movl	48(%r14), %eax
	movl	%eax, 72(%r12)
	leaq	L_.str.2(%rip), %rax
	movq	%rax, 24(%r12)
	movq	_BUS_I8042@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 68(%r12)
	movl	$2, 48(%r12)
	movq	_PSMOUSE_ALPS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%r12)
	movq	16(%r14), %rax
	movq	%rax, 56(%r12)
	movq	40(%r15), %rax
	addq	$8, %rax
	movq	%rax, 40(%r12)
	movl	(%r13), %esi
	movq	_REL_X@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_input_set_capability
	movl	(%r13), %esi
	movq	_REL_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_input_set_capability
	movq	_ALPS_DUALPOINT_WITH_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r14)
	je	LBB0_16
## %bb.15:
	movq	_EV_ABS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ABS_PRESSURE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r12, %rdi
	callq	_input_set_capability
	movl	(%rbx), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	movl	$127, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
LBB0_16:
	movq	_EV_KEY@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_BTN_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_input_set_capability
	movl	(%rbx), %esi
	movq	_BTN_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_input_set_capability
	movl	(%rbx), %esi
	movq	_BTN_MIDDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_input_set_capability
	movq	_INPUT_PROP_POINTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	32(%r12), %esi
	callq	___set_bit
	movq	_INPUT_PROP_POINTING_STICK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	32(%r12), %esi
	callq	___set_bit
	movq	%r12, %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_19
## %bb.17:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_psmouse_err
	movq	%r12, %rdi
	callq	_input_free_device
	jmp	LBB0_18
LBB0_13:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_psmouse_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_18
LBB0_9:
	movq	_BTN_MIDDLE@GOTPCREL(%rip), %r14
	jmp	LBB0_10
LBB0_19:
	movq	%r12, 40(%r14)
LBB0_20:
	movq	%r15, 32(%r14)
	leaq	24(%r14), %rdi
	movq	_alps_register_bare_ps2_mouse@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	movq	_alps_process_byte@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r15)
	movq	_alps_poll@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	movq	_alps_disconnect@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r15)
	movq	_alps_reconnect@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	16(%r14), %rax
	movq	_ALPS_PROTO_V4@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	leal	(%rdx,%rdx), %eax
	addl	$6, %eax
                                        ## kill: def $edx killed $edx killed $rdx def $rdx
	addl	%edx, %edx
	movl	%eax, (%r15)
	movq	$0, 16(%r15)
	leal	(%rdx,%rdx), %eax
	addl	$12, %eax
	movl	%eax, 4(%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_EV_REL,4,2                     ## @EV_REL
	.comm	_REL_X,4,2                      ## @REL_X
	.comm	_REL_Y,4,2                      ## @REL_Y
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.comm	_BTN_TOOL_FINGER,4,2            ## @BTN_TOOL_FINGER
	.comm	_BTN_LEFT,4,2                   ## @BTN_LEFT
	.comm	_BTN_RIGHT,4,2                  ## @BTN_RIGHT
	.comm	_EV_ABS,4,2                     ## @EV_ABS
	.comm	_ALPS_WHEEL,4,2                 ## @ALPS_WHEEL
	.comm	_REL_WHEEL,4,2                  ## @REL_WHEEL
	.comm	_ALPS_FW_BK_1,4,2               ## @ALPS_FW_BK_1
	.comm	_ALPS_FW_BK_2,4,2               ## @ALPS_FW_BK_2
	.comm	_BTN_FORWARD,4,2                ## @BTN_FORWARD
	.comm	_BTN_BACK,4,2                   ## @BTN_BACK
	.comm	_ALPS_FOUR_BUTTONS,4,2          ## @ALPS_FOUR_BUTTONS
	.comm	_BTN_0,4,2                      ## @BTN_0
	.comm	_BTN_1,4,2                      ## @BTN_1
	.comm	_BTN_2,4,2                      ## @BTN_2
	.comm	_BTN_3,4,2                      ## @BTN_3
	.comm	_ALPS_BUTTONPAD,4,2             ## @ALPS_BUTTONPAD
	.comm	_INPUT_PROP_BUTTONPAD,4,2       ## @INPUT_PROP_BUTTONPAD
	.comm	_BTN_MIDDLE,4,2                 ## @BTN_MIDDLE
	.comm	_ALPS_DUALPOINT,4,2             ## @ALPS_DUALPOINT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to allocate trackstick device\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"%s/input1"

L_.str.2:                               ## @.str.2
	.asciz	"AlpsPS/2 ALPS DualPoint Stick"

	.comm	_BUS_I8042,4,2                  ## @BUS_I8042
	.comm	_PSMOUSE_ALPS,4,2               ## @PSMOUSE_ALPS
	.comm	_ALPS_DUALPOINT_WITH_PRESSURE,4,2 ## @ALPS_DUALPOINT_WITH_PRESSURE
	.comm	_ABS_PRESSURE,4,2               ## @ABS_PRESSURE
	.comm	_INPUT_PROP_POINTER,4,2         ## @INPUT_PROP_POINTER
	.comm	_INPUT_PROP_POINTING_STICK,4,2  ## @INPUT_PROP_POINTING_STICK
L_.str.3:                               ## @.str.3
	.asciz	"failed to register trackstick device: %d\n"

	.comm	_alps_register_bare_ps2_mouse,4,2 ## @alps_register_bare_ps2_mouse
	.comm	_alps_process_byte,4,2          ## @alps_process_byte
	.comm	_alps_poll,4,2                  ## @alps_poll
	.comm	_alps_disconnect,4,2            ## @alps_disconnect
	.comm	_alps_reconnect,4,2             ## @alps_reconnect
	.comm	_ALPS_PROTO_V4,8,3              ## @ALPS_PROTO_V4
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_alps_init                      ; -- Begin function alps_init
	.p2align	2
_alps_init:                             ; @alps_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x20, [x0, #8]
	ldr	x21, [x0, #48]
	ldr	x8, [x20]
	blr	x8
	mov	x22, x0
	cbz	w0, LBB0_3
LBB0_1:
	mov	x0, x19
	bl	_psmouse_reset
	ldr	x0, [x19, #8]
	bl	_kfree
	str	xzr, [x19, #8]
LBB0_2:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_3:
Lloh0:
	adrp	x24, _EV_REL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _EV_REL@GOTPAGEOFF]
	ldr	w0, [x24]
	ldr	x1, [x21]
	bl	___clear_bit
Lloh2:
	adrp	x8, _REL_X@GOTPAGE
Lloh3:
	ldr	x8, [x8, _REL_X@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	x1, [x21, #8]
	bl	___clear_bit
Lloh5:
	adrp	x8, _REL_Y@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REL_Y@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	x1, [x21, #8]
	bl	___clear_bit
Lloh8:
	adrp	x23, _EV_KEY@GOTPAGE
Lloh9:
	ldr	x23, [x23, _EV_KEY@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_BIT_MASK
	mov	x22, x0
	ldr	x25, [x21]
	ldr	w0, [x23]
	bl	_BIT_WORD
	lsl	x8, x0, #2
	ldr	w9, [x25, x8]
	orr	w9, w9, w22
	str	w9, [x25, x8]
Lloh10:
	adrp	x25, _BTN_TOUCH@GOTPAGE
Lloh11:
	ldr	x25, [x25, _BTN_TOUCH@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_BIT_MASK
	mov	x22, x0
	ldr	x27, [x21, #16]
	ldr	w0, [x25]
	bl	_BIT_WORD
	lsl	x8, x0, #2
	ldr	w9, [x27, x8]
	orr	w9, w9, w22
	str	w9, [x27, x8]
Lloh12:
	adrp	x25, _BTN_TOOL_FINGER@GOTPAGE
Lloh13:
	ldr	x25, [x25, _BTN_TOOL_FINGER@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_BIT_MASK
	mov	x22, x0
	ldr	x27, [x21, #16]
	ldr	w0, [x25]
	bl	_BIT_WORD
	lsl	x8, x0, #2
	ldr	w9, [x27, x8]
	orr	w9, w9, w22
	str	w9, [x27, x8]
Lloh14:
	adrp	x28, _BTN_LEFT@GOTPAGE
Lloh15:
	ldr	x28, [x28, _BTN_LEFT@GOTPAGEOFF]
	ldr	w0, [x28]
	bl	_BIT_MASK
	mov	x22, x0
Lloh16:
	adrp	x8, _BTN_RIGHT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BTN_RIGHT@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_BIT_MASK
	orr	w22, w0, w22
	ldr	x25, [x21, #16]
	ldr	w0, [x28]
	bl	_BIT_WORD
	lsl	x8, x0, #2
	ldr	w9, [x25, x8]
	orr	w9, w22, w9
	str	w9, [x25, x8]
Lloh19:
	adrp	x25, _EV_ABS@GOTPAGE
Lloh20:
	ldr	x25, [x25, _EV_ABS@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_BIT_MASK
	mov	x22, x0
	ldr	x26, [x21]
	ldr	w0, [x25]
	bl	_BIT_WORD
	lsl	x8, x0, #2
	ldr	w9, [x26, x8]
	orr	w9, w9, w22
	str	w9, [x26, x8]
	ldr	x8, [x20, #56]
	mov	x0, x20
	mov	x1, x21
	blr	x8
	ldr	w8, [x20, #8]
Lloh21:
	adrp	x9, _ALPS_WHEEL@GOTPAGE
Lloh22:
	ldr	x9, [x9, _ALPS_WHEEL@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	ldr	w0, [x24]
	bl	_BIT_MASK
	mov	x22, x0
	ldr	x26, [x21]
	ldr	w0, [x24]
	bl	_BIT_WORD
	lsl	x8, x0, #2
	ldr	w9, [x26, x8]
	orr	w9, w9, w22
	str	w9, [x26, x8]
Lloh24:
	adrp	x26, _REL_WHEEL@GOTPAGE
Lloh25:
	ldr	x26, [x26, _REL_WHEEL@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_BIT_MASK
	mov	x22, x0
	ldr	x27, [x21, #8]
	ldr	w0, [x26]
	bl	_BIT_WORD
	lsl	x8, x0, #2
	ldr	w9, [x27, x8]
	orr	w9, w9, w22
	str	w9, [x27, x8]
	ldr	w8, [x20, #8]
LBB0_5:
Lloh26:
	adrp	x9, _ALPS_FW_BK_1@GOTPAGE
Lloh27:
	ldr	x9, [x9, _ALPS_FW_BK_1@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
Lloh29:
	adrp	x10, _ALPS_FW_BK_2@GOTPAGE
Lloh30:
	ldr	x10, [x10, _ALPS_FW_BK_2@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
Lloh32:
	adrp	x26, _BTN_FORWARD@GOTPAGE
Lloh33:
	ldr	x26, [x26, _BTN_FORWARD@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_BIT_MASK
	mov	x22, x0
	ldr	x27, [x21, #16]
	ldr	w0, [x26]
	bl	_BIT_WORD
	lsl	x8, x0, #2
	ldr	w9, [x27, x8]
	orr	w9, w9, w22
	str	w9, [x27, x8]
Lloh34:
	adrp	x26, _BTN_BACK@GOTPAGE
Lloh35:
	ldr	x26, [x26, _BTN_BACK@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_BIT_MASK
	mov	x22, x0
	ldr	x27, [x21, #16]
	ldr	w0, [x26]
	bl	_BIT_WORD
	lsl	x8, x0, #2
	ldr	w9, [x27, x8]
	orr	w9, w9, w22
	str	w9, [x27, x8]
	ldr	w8, [x20, #8]
LBB0_7:
Lloh36:
	adrp	x9, _ALPS_FOUR_BUTTONS@GOTPAGE
Lloh37:
	ldr	x9, [x9, _ALPS_FOUR_BUTTONS@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.8:
Lloh39:
	adrp	x26, _BTN_0@GOTPAGE
Lloh40:
	ldr	x26, [x26, _BTN_0@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_BIT_MASK
	mov	x22, x0
	ldr	x27, [x21, #16]
	ldr	w0, [x26]
	bl	_BIT_WORD
	lsl	x8, x0, #2
	ldr	w9, [x27, x8]
	orr	w9, w9, w22
	str	w9, [x27, x8]
Lloh41:
	adrp	x26, _BTN_1@GOTPAGE
Lloh42:
	ldr	x26, [x26, _BTN_1@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_BIT_MASK
	mov	x22, x0
	ldr	x27, [x21, #16]
	ldr	w0, [x26]
	bl	_BIT_WORD
	lsl	x8, x0, #2
	ldr	w9, [x27, x8]
	orr	w9, w9, w22
	str	w9, [x27, x8]
Lloh43:
	adrp	x26, _BTN_2@GOTPAGE
Lloh44:
	ldr	x26, [x26, _BTN_2@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_BIT_MASK
	mov	x22, x0
	ldr	x27, [x21, #16]
	ldr	w0, [x26]
	bl	_BIT_WORD
	lsl	x8, x0, #2
	ldr	w9, [x27, x8]
	orr	w9, w9, w22
	str	w9, [x27, x8]
Lloh45:
	adrp	x26, _BTN_3@GOTPAGE
Lloh46:
	ldr	x26, [x26, _BTN_3@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x26]
	bl	_BIT_MASK
	mov	x22, x0
	ldr	x21, [x21, #16]
	ldr	w0, [x26]
	bl	_BIT_WORD
	lsl	x8, x0, #2
	ldr	w9, [x21, x8]
	orr	w9, w9, w22
	str	w9, [x21, x8]
	b	LBB0_12
LBB0_10:
Lloh47:
	adrp	x9, _ALPS_BUTTONPAD@GOTPAGE
Lloh48:
	ldr	x9, [x9, _ALPS_BUTTONPAD@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.11:
Lloh50:
	adrp	x8, _INPUT_PROP_BUTTONPAD@GOTPAGE
Lloh51:
	ldr	x8, [x8, _INPUT_PROP_BUTTONPAD@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
	ldr	w1, [x21, #32]
	bl	_set_bit
Lloh53:
	adrp	x8, _BTN_RIGHT@GOTPAGE
Lloh54:
	ldr	x8, [x8, _BTN_RIGHT@GOTPAGEOFF]
Lloh55:
	ldr	w0, [x8]
	ldr	x1, [x21, #16]
	bl	_clear_bit
LBB0_12:
	ldr	w8, [x20, #8]
Lloh56:
	adrp	x9, _ALPS_DUALPOINT@GOTPAGE
Lloh57:
	ldr	x9, [x9, _ALPS_DUALPOINT@GOTPAGEOFF]
Lloh58:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_21
; %bb.13:
	bl	_input_allocate_device
	cbz	x0, LBB0_18
; %bb.14:
	mov	x21, x0
	ldr	w0, [x20, #48]
	ldr	x8, [x19, #40]
	ldr	x3, [x8]
Lloh59:
	adrp	x2, l_.str.1@PAGE
Lloh60:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #4
	bl	_snprintf
	ldr	w8, [x20, #48]
	str	w8, [x21, #72]
Lloh61:
	adrp	x8, l_.str.2@PAGE
Lloh62:
	add	x8, x8, l_.str.2@PAGEOFF
	str	x8, [x21, #24]
Lloh63:
	adrp	x8, _BUS_I8042@GOTPAGE
Lloh64:
	ldr	x8, [x8, _BUS_I8042@GOTPAGEOFF]
Lloh65:
	ldr	w8, [x8]
	mov	w9, #2
	str	w9, [x21, #48]
Lloh66:
	adrp	x9, _PSMOUSE_ALPS@GOTPAGE
Lloh67:
	ldr	x9, [x9, _PSMOUSE_ALPS@GOTPAGEOFF]
Lloh68:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #64]
	ldr	x8, [x20, #16]
	str	x8, [x21, #56]
	ldr	x8, [x19, #40]
	add	x8, x8, #8
	str	x8, [x21, #40]
	ldr	w1, [x24]
Lloh69:
	adrp	x8, _REL_X@GOTPAGE
Lloh70:
	ldr	x8, [x8, _REL_X@GOTPAGEOFF]
Lloh71:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_input_set_capability
	ldr	w1, [x24]
Lloh72:
	adrp	x8, _REL_Y@GOTPAGE
Lloh73:
	ldr	x8, [x8, _REL_Y@GOTPAGEOFF]
Lloh74:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_input_set_capability
	ldr	w8, [x20, #8]
Lloh75:
	adrp	x9, _ALPS_DUALPOINT_WITH_PRESSURE@GOTPAGE
Lloh76:
	ldr	x9, [x9, _ALPS_DUALPOINT_WITH_PRESSURE@GOTPAGEOFF]
Lloh77:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.15:
	ldr	w1, [x25]
Lloh78:
	adrp	x22, _ABS_PRESSURE@GOTPAGE
Lloh79:
	ldr	x22, [x22, _ABS_PRESSURE@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x21
	bl	_input_set_capability
	ldr	w1, [x22]
	mov	x0, x21
	mov	w2, #0
	mov	w3, #127
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
LBB0_16:
	ldr	w1, [x23]
	ldr	w2, [x28]
	mov	x0, x21
	bl	_input_set_capability
	ldr	w1, [x23]
Lloh80:
	adrp	x8, _BTN_RIGHT@GOTPAGE
Lloh81:
	ldr	x8, [x8, _BTN_RIGHT@GOTPAGEOFF]
Lloh82:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_input_set_capability
	ldr	w1, [x23]
Lloh83:
	adrp	x8, _BTN_MIDDLE@GOTPAGE
Lloh84:
	ldr	x8, [x8, _BTN_MIDDLE@GOTPAGEOFF]
Lloh85:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_input_set_capability
Lloh86:
	adrp	x8, _INPUT_PROP_POINTER@GOTPAGE
Lloh87:
	ldr	x8, [x8, _INPUT_PROP_POINTER@GOTPAGEOFF]
Lloh88:
	ldr	w0, [x8]
	ldr	w1, [x21, #32]
	bl	___set_bit
Lloh89:
	adrp	x8, _INPUT_PROP_POINTING_STICK@GOTPAGE
Lloh90:
	ldr	x8, [x8, _INPUT_PROP_POINTING_STICK@GOTPAGEOFF]
Lloh91:
	ldr	w0, [x8]
	ldr	w1, [x21, #32]
	bl	___set_bit
	mov	x0, x21
	bl	_input_register_device
	cbz	w0, LBB0_20
; %bb.17:
	mov	x22, x0
	str	x22, [sp]
Lloh92:
	adrp	x1, l_.str.3@PAGE
Lloh93:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_psmouse_err
	mov	x0, x21
	bl	_input_free_device
	b	LBB0_1
LBB0_18:
Lloh94:
	adrp	x1, l_.str@PAGE
Lloh95:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_psmouse_err
Lloh96:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh97:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh98:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_1
LBB0_19:
Lloh99:
	adrp	x26, _BTN_MIDDLE@GOTPAGE
Lloh100:
	ldr	x26, [x26, _BTN_MIDDLE@GOTPAGEOFF]
	b	LBB0_9
LBB0_20:
	str	x21, [x20, #40]
LBB0_21:
	str	x19, [x20, #32]
	add	x0, x20, #24
Lloh101:
	adrp	x8, _alps_register_bare_ps2_mouse@GOTPAGE
Lloh102:
	ldr	x8, [x8, _alps_register_bare_ps2_mouse@GOTPAGEOFF]
Lloh103:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	mov	w22, #0
Lloh104:
	adrp	x8, _alps_process_byte@GOTPAGE
Lloh105:
	ldr	x8, [x8, _alps_process_byte@GOTPAGEOFF]
Lloh106:
	adrp	x9, _alps_poll@GOTPAGE
Lloh107:
	ldr	x9, [x9, _alps_poll@GOTPAGEOFF]
Lloh108:
	ldr	w8, [x8]
Lloh109:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #32]
Lloh110:
	adrp	x8, _alps_disconnect@GOTPAGE
Lloh111:
	ldr	x8, [x8, _alps_disconnect@GOTPAGEOFF]
Lloh112:
	ldr	w8, [x8]
Lloh113:
	adrp	x9, _alps_reconnect@GOTPAGE
Lloh114:
	ldr	x9, [x9, _alps_reconnect@GOTPAGEOFF]
Lloh115:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #24]
	ldr	x8, [x20, #16]
Lloh116:
	adrp	x9, _ALPS_PROTO_V4@GOTPAGE
Lloh117:
	ldr	x9, [x9, _ALPS_PROTO_V4@GOTPAGEOFF]
Lloh118:
	ldr	x9, [x9]
	cmp	x8, x9
	mov	w8, #6
	mov	w9, #8
	csel	w8, w9, w8, eq
	str	xzr, [x19, #16]
	lsl	w9, w8, #1
	stp	w8, w9, [x19]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpAdd	Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpAdd	Lloh94, Lloh95
	.loh AdrpLdrGot	Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh116, Lloh117, Lloh118
	.loh AdrpLdrGotLdr	Lloh113, Lloh114, Lloh115
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.loh AdrpLdrGotLdr	Lloh106, Lloh107, Lloh109
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh108
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.cfi_endproc
                                        ; -- End function
	.comm	_EV_REL,4,2                     ; @EV_REL
	.comm	_REL_X,4,2                      ; @REL_X
	.comm	_REL_Y,4,2                      ; @REL_Y
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.comm	_BTN_TOOL_FINGER,4,2            ; @BTN_TOOL_FINGER
	.comm	_BTN_LEFT,4,2                   ; @BTN_LEFT
	.comm	_BTN_RIGHT,4,2                  ; @BTN_RIGHT
	.comm	_EV_ABS,4,2                     ; @EV_ABS
	.comm	_ALPS_WHEEL,4,2                 ; @ALPS_WHEEL
	.comm	_REL_WHEEL,4,2                  ; @REL_WHEEL
	.comm	_ALPS_FW_BK_1,4,2               ; @ALPS_FW_BK_1
	.comm	_ALPS_FW_BK_2,4,2               ; @ALPS_FW_BK_2
	.comm	_BTN_FORWARD,4,2                ; @BTN_FORWARD
	.comm	_BTN_BACK,4,2                   ; @BTN_BACK
	.comm	_ALPS_FOUR_BUTTONS,4,2          ; @ALPS_FOUR_BUTTONS
	.comm	_BTN_0,4,2                      ; @BTN_0
	.comm	_BTN_1,4,2                      ; @BTN_1
	.comm	_BTN_2,4,2                      ; @BTN_2
	.comm	_BTN_3,4,2                      ; @BTN_3
	.comm	_ALPS_BUTTONPAD,4,2             ; @ALPS_BUTTONPAD
	.comm	_INPUT_PROP_BUTTONPAD,4,2       ; @INPUT_PROP_BUTTONPAD
	.comm	_BTN_MIDDLE,4,2                 ; @BTN_MIDDLE
	.comm	_ALPS_DUALPOINT,4,2             ; @ALPS_DUALPOINT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to allocate trackstick device\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"%s/input1"

l_.str.2:                               ; @.str.2
	.asciz	"AlpsPS/2 ALPS DualPoint Stick"

	.comm	_BUS_I8042,4,2                  ; @BUS_I8042
	.comm	_PSMOUSE_ALPS,4,2               ; @PSMOUSE_ALPS
	.comm	_ALPS_DUALPOINT_WITH_PRESSURE,4,2 ; @ALPS_DUALPOINT_WITH_PRESSURE
	.comm	_ABS_PRESSURE,4,2               ; @ABS_PRESSURE
	.comm	_INPUT_PROP_POINTER,4,2         ; @INPUT_PROP_POINTER
	.comm	_INPUT_PROP_POINTING_STICK,4,2  ; @INPUT_PROP_POINTING_STICK
l_.str.3:                               ; @.str.3
	.asciz	"failed to register trackstick device: %d\n"

	.comm	_alps_register_bare_ps2_mouse,4,2 ; @alps_register_bare_ps2_mouse
	.comm	_alps_process_byte,4,2          ; @alps_process_byte
	.comm	_alps_poll,4,2                  ; @alps_poll
	.comm	_alps_disconnect,4,2            ; @alps_disconnect
	.comm	_alps_reconnect,4,2             ; @alps_reconnect
	.comm	_ALPS_PROTO_V4,8,3              ; @ALPS_PROTO_V4
.subsections_via_symbols
