	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function psmouse_extensions
_psmouse_extensions:                    ## @psmouse_extensions
	.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
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	%esi, -44(%rbp)
	movq	_focaltech_detect@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	movl	%r15d, %ecx
	callq	_psmouse_do_detect
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	_PSMOUSE_IMEX@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jae	LBB0_5
## %bb.2:
	movq	_CONFIG_MOUSE_PS2_FOCALTECH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	testl	%r15d, %r15d
	je	LBB0_13
## %bb.4:
	movq	%r14, %rdi
	callq	_focaltech_init
	testq	%rax, %rax
	je	LBB0_13
LBB0_5:
	movq	_PSMOUSE_PS2@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, -44(%rbp)
	movq	_psmouse_max_proto@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
LBB0_6:
	movq	_PSMOUSE_LIFEBOOK@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_PSMOUSE_IMEX@GOTPCREL(%rip), %r12
	xorl	%r8d, %r8d
	cmpl	(%r12), %ebx
	seta	%r8b
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	movl	%r15d, %ecx
	callq	_psmouse_try_protocol
	testq	%rax, %rax
	je	LBB0_8
LBB0_7:
	movl	(%r13), %eax
	jmp	LBB0_15
LBB0_8:
	movq	_PSMOUSE_VMMOUSE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	-44(%rbp), %eax
	xorl	%r8d, %r8d
	cmpl	(%r12), %eax
	seta	%r8b
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	movl	%r15d, %ecx
	callq	_psmouse_try_protocol
	testq	%rax, %rax
	je	LBB0_10
LBB0_9:
	movl	(%rbx), %eax
	jmp	LBB0_15
LBB0_10:
	movl	-44(%rbp), %eax
	cmpl	(%r12), %eax
	jbe	LBB0_17
## %bb.11:
	movq	_PSMOUSE_THINKPS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	movl	%r15d, %ecx
	movl	$1, %r8d
	callq	_psmouse_try_protocol
	testq	%rax, %rax
	jne	LBB0_9
## %bb.16:
	movl	-44(%rbp), %eax
LBB0_17:
	movq	_PSMOUSE_PS2@GOTPCREL(%rip), %rbx
	movb	$1, %r13b
	cmpl	(%rbx), %eax
	jbe	LBB0_26
## %bb.18:
	movq	_synaptics_detect@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	movl	%r15d, %ecx
	callq	_psmouse_do_detect
	testq	%rax, %rax
	je	LBB0_26
## %bb.19:
	movl	-44(%rbp), %eax
	cmpl	(%r12), %eax
	jbe	LBB0_25
## %bb.20:
	movq	_CONFIG_MOUSE_PS2_SYNAPTICS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testq	%rax, %rax
	jne	LBB0_22
## %bb.21:
	movq	_CONFIG_MOUSE_PS2_SYNAPTICS_SMBUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testq	%rax, %rax
	je	LBB0_24
LBB0_22:
	testl	%r15d, %r15d
	je	LBB0_42
## %bb.23:
	movq	%r14, %rdi
	callq	_synaptics_init
	testl	%eax, %eax
	jns	LBB0_15
LBB0_24:
	movl	(%r12), %eax
	movl	%eax, -44(%rbp)
LBB0_25:
	movq	%r14, %rdi
	callq	_synaptics_reset
	xorl	%r13d, %r13d
LBB0_26:
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movl	-44(%rbp), %eax
	movl	(%r12), %ecx
	cmpl	%ecx, %eax
	jbe	LBB0_29
## %bb.27:
	movq	_PSMOUSE_CYPRESS@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	movl	%r15d, %ecx
	movl	$1, %r8d
	callq	_psmouse_try_protocol
	testq	%rax, %rax
	jne	LBB0_7
## %bb.28:
	movl	-44(%rbp), %eax
	movl	(%r12), %ecx
LBB0_29:
	cmpl	%ecx, %eax
	jbe	LBB0_32
## %bb.30:
	movq	_PSMOUSE_CMD_RESET_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_ps2_command
	movq	_PSMOUSE_ALPS@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	movl	%r15d, %ecx
	movl	$1, %r8d
	callq	_psmouse_try_protocol
	testq	%rax, %rax
	jne	LBB0_7
## %bb.31:
	movl	-44(%rbp), %eax
	movl	(%r12), %ecx
LBB0_32:
	cmpl	%ecx, %eax
	jbe	LBB0_35
## %bb.33:
	movq	_PSMOUSE_HGPK@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	movl	%r15d, %ecx
	movl	$1, %r8d
	callq	_psmouse_try_protocol
	testq	%rax, %rax
	jne	LBB0_7
## %bb.34:
	movl	-44(%rbp), %eax
	movl	(%r12), %ecx
LBB0_35:
	cmpl	%ecx, %eax
	jbe	LBB0_39
## %bb.36:
	movq	_PSMOUSE_ELANTECH@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	movl	%r15d, %ecx
	xorl	%r8d, %r8d
	callq	_psmouse_try_protocol
	testq	%rax, %rax
	je	LBB0_39
## %bb.37:
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.38:
	movq	%r14, %rdi
	callq	_elantech_init
	testl	%eax, %eax
	jns	LBB0_15
LBB0_39:
	movl	-44(%rbp), %eax
	movl	(%r12), %ecx
	cmpl	%ecx, %eax
	movq	%rbx, %r13
	jbe	LBB0_49
## %bb.40:
	movq	_PSMOUSE_GENPS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	movl	%r15d, %ecx
	movl	$1, %r8d
	callq	_psmouse_try_protocol
	testq	%rax, %rax
	jne	LBB0_9
## %bb.43:
	movq	_PSMOUSE_PS2PP@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	movl	%r15d, %ecx
	movl	$1, %r8d
	callq	_psmouse_try_protocol
	testq	%rax, %rax
	jne	LBB0_9
## %bb.45:
	movq	_PSMOUSE_TRACKPOINT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	movl	%r15d, %ecx
	movl	$1, %r8d
	callq	_psmouse_try_protocol
	testq	%rax, %rax
	jne	LBB0_9
## %bb.47:
	movq	_PSMOUSE_TOUCHKIT_PS2@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	movl	%r15d, %ecx
	movl	$1, %r8d
	callq	_psmouse_try_protocol
	testq	%rax, %rax
	jne	LBB0_9
## %bb.48:
	movl	-44(%rbp), %eax
	movl	(%r12), %ecx
LBB0_49:
	cmpl	%ecx, %eax
	jbe	LBB0_52
## %bb.50:
	movq	_PSMOUSE_FSP@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	movl	%r15d, %ecx
	movl	$1, %r8d
	callq	_psmouse_try_protocol
	testq	%rax, %rax
	jne	LBB0_9
LBB0_52:
	movq	_PSMOUSE_CMD_RESET_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_ps2_command
	movq	%r14, %rdi
	callq	_psmouse_reset
	movl	-44(%rbp), %eax
	movl	(%r12), %esi
	cmpl	%esi, %eax
	jb	LBB0_56
## %bb.53:
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	movl	%r15d, %ecx
	movl	$1, %r8d
	callq	_psmouse_try_protocol
	testq	%rax, %rax
	jne	LBB0_58
## %bb.55:
	movl	-44(%rbp), %eax
LBB0_56:
	movq	_PSMOUSE_IMPS@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	cmpl	%esi, %eax
	jb	LBB0_59
## %bb.57:
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	movl	%r15d, %ecx
	movl	$1, %r8d
	callq	_psmouse_try_protocol
	testq	%rax, %rax
	je	LBB0_59
LBB0_58:
	movl	(%r12), %eax
	jmp	LBB0_15
LBB0_13:
	movq	_PSMOUSE_FOCALTECH@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_42:
	movq	_PSMOUSE_SYNAPTICS@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_59:
	movl	(%r13), %esi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	movl	%r15d, %ecx
	movl	$1, %r8d
	callq	_psmouse_try_protocol
	cmpb	$0, -48(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_7
## %bb.60:
	movq	%r14, %rdi
	callq	_psmouse_reset
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_focaltech_detect,4,2           ## @focaltech_detect
	.comm	_PSMOUSE_IMEX,4,2               ## @PSMOUSE_IMEX
	.comm	_CONFIG_MOUSE_PS2_FOCALTECH,4,2 ## @CONFIG_MOUSE_PS2_FOCALTECH
	.comm	_PSMOUSE_FOCALTECH,4,2          ## @PSMOUSE_FOCALTECH
	.comm	_PSMOUSE_PS2,4,2                ## @PSMOUSE_PS2
	.comm	_psmouse_max_proto,4,2          ## @psmouse_max_proto
	.comm	_PSMOUSE_LIFEBOOK,4,2           ## @PSMOUSE_LIFEBOOK
	.comm	_PSMOUSE_VMMOUSE,4,2            ## @PSMOUSE_VMMOUSE
	.comm	_PSMOUSE_THINKPS,4,2            ## @PSMOUSE_THINKPS
	.comm	_synaptics_detect,4,2           ## @synaptics_detect
	.comm	_CONFIG_MOUSE_PS2_SYNAPTICS,4,2 ## @CONFIG_MOUSE_PS2_SYNAPTICS
	.comm	_CONFIG_MOUSE_PS2_SYNAPTICS_SMBUS,4,2 ## @CONFIG_MOUSE_PS2_SYNAPTICS_SMBUS
	.comm	_PSMOUSE_SYNAPTICS,4,2          ## @PSMOUSE_SYNAPTICS
	.comm	_PSMOUSE_CYPRESS,4,2            ## @PSMOUSE_CYPRESS
	.comm	_PSMOUSE_CMD_RESET_DIS,4,2      ## @PSMOUSE_CMD_RESET_DIS
	.comm	_PSMOUSE_ALPS,4,2               ## @PSMOUSE_ALPS
	.comm	_PSMOUSE_HGPK,4,2               ## @PSMOUSE_HGPK
	.comm	_PSMOUSE_ELANTECH,4,2           ## @PSMOUSE_ELANTECH
	.comm	_PSMOUSE_GENPS,4,2              ## @PSMOUSE_GENPS
	.comm	_PSMOUSE_PS2PP,4,2              ## @PSMOUSE_PS2PP
	.comm	_PSMOUSE_TRACKPOINT,4,2         ## @PSMOUSE_TRACKPOINT
	.comm	_PSMOUSE_TOUCHKIT_PS2,4,2       ## @PSMOUSE_TOUCHKIT_PS2
	.comm	_PSMOUSE_FSP,4,2                ## @PSMOUSE_FSP
	.comm	_PSMOUSE_IMPS,4,2               ## @PSMOUSE_IMPS
	.no_dead_strip	_psmouse_extensions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function psmouse_extensions
_psmouse_extensions:                    ; @psmouse_extensions
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	str	w1, [sp, #12]
Lloh0:
	adrp	x8, _focaltech_detect@GOTPAGE
Lloh1:
	ldr	x8, [x8, _focaltech_detect@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	mov	w2, #0
	mov	x3, x20
	bl	_psmouse_do_detect
Lloh3:
	adrp	x22, _PSMOUSE_IMEX@GOTPAGE
Lloh4:
	ldr	x22, [x22, _PSMOUSE_IMEX@GOTPAGEOFF]
	cbz	x0, LBB0_6
; %bb.1:
	ldr	w8, [x22]
	cmp	w8, w21
	b.hs	LBB0_5
; %bb.2:
Lloh5:
	adrp	x8, _CONFIG_MOUSE_PS2_FOCALTECH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CONFIG_MOUSE_PS2_FOCALTECH@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	x0, LBB0_5
; %bb.3:
	cbz	w20, LBB0_22
; %bb.4:
	mov	x0, x19
	bl	_focaltech_init
	cbz	x0, LBB0_22
LBB0_5:
Lloh8:
	adrp	x8, _PSMOUSE_PS2@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PSMOUSE_PS2@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
	str	w21, [sp, #12]
Lloh11:
	adrp	x8, _psmouse_max_proto@GOTPAGE
Lloh12:
	ldr	x8, [x8, _psmouse_max_proto@GOTPAGEOFF]
Lloh13:
	str	w21, [x8]
LBB0_6:
Lloh14:
	adrp	x23, _PSMOUSE_LIFEBOOK@GOTPAGE
Lloh15:
	ldr	x23, [x23, _PSMOUSE_LIFEBOOK@GOTPAGEOFF]
	ldr	w1, [x23]
	ldr	w8, [x22]
	cmp	w21, w8
	cset	w4, hi
	add	x2, sp, #12
	mov	x0, x19
	mov	x3, x20
	bl	_psmouse_try_protocol
	cbz	x0, LBB0_8
; %bb.7:
	ldr	w0, [x23]
	b	LBB0_46
LBB0_8:
Lloh16:
	adrp	x21, _PSMOUSE_VMMOUSE@GOTPAGE
Lloh17:
	ldr	x21, [x21, _PSMOUSE_VMMOUSE@GOTPAGEOFF]
	ldr	w1, [x21]
	ldr	w8, [sp, #12]
	ldr	w9, [x22]
	cmp	w8, w9
	cset	w4, hi
	add	x2, sp, #12
	mov	x0, x19
	mov	x3, x20
	bl	_psmouse_try_protocol
	cbz	x0, LBB0_10
LBB0_9:
	ldr	w0, [x21]
	b	LBB0_46
LBB0_10:
	ldr	w8, [sp, #12]
	ldr	w9, [x22]
	cmp	w8, w9
	b.ls	LBB0_13
; %bb.11:
Lloh18:
	adrp	x21, _PSMOUSE_THINKPS@GOTPAGE
Lloh19:
	ldr	x21, [x21, _PSMOUSE_THINKPS@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x19
	mov	x3, x20
	mov	w4, #1
	bl	_psmouse_try_protocol
	cbnz	x0, LBB0_9
; %bb.12:
	ldr	w8, [sp, #12]
LBB0_13:
Lloh20:
	adrp	x21, _PSMOUSE_PS2@GOTPAGE
Lloh21:
	ldr	x21, [x21, _PSMOUSE_PS2@GOTPAGEOFF]
	ldr	w9, [x21]
	cmp	w8, w9
	b.ls	LBB0_23
; %bb.14:
Lloh22:
	adrp	x8, _synaptics_detect@GOTPAGE
Lloh23:
	ldr	x8, [x8, _synaptics_detect@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	mov	x1, x19
	mov	w2, #0
	mov	x3, x20
	bl	_psmouse_do_detect
	cbz	x0, LBB0_23
; %bb.15:
	ldr	w8, [sp, #12]
	ldr	w9, [x22]
	cmp	w8, w9
	b.ls	LBB0_21
; %bb.16:
Lloh25:
	adrp	x8, _CONFIG_MOUSE_PS2_SYNAPTICS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CONFIG_MOUSE_PS2_SYNAPTICS@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbnz	x0, LBB0_18
; %bb.17:
Lloh28:
	adrp	x8, _CONFIG_MOUSE_PS2_SYNAPTICS_SMBUS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _CONFIG_MOUSE_PS2_SYNAPTICS_SMBUS@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	x0, LBB0_20
LBB0_18:
	cbz	w20, LBB0_53
; %bb.19:
	mov	x0, x19
	bl	_synaptics_init
	tbz	w0, #31, LBB0_46
LBB0_20:
	ldr	w8, [x22]
	str	w8, [sp, #12]
LBB0_21:
	mov	x0, x19
	bl	_synaptics_reset
	mov	w23, #0
	b	LBB0_24
LBB0_22:
Lloh31:
	adrp	x8, _PSMOUSE_FOCALTECH@GOTPAGE
Lloh32:
	ldr	x8, [x8, _PSMOUSE_FOCALTECH@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	b	LBB0_46
LBB0_23:
	mov	w23, #1
LBB0_24:
	ldr	w8, [sp, #12]
	ldr	w9, [x22]
	cmp	w8, w9
	b.ls	LBB0_27
; %bb.25:
Lloh34:
	adrp	x24, _PSMOUSE_CYPRESS@GOTPAGE
Lloh35:
	ldr	x24, [x24, _PSMOUSE_CYPRESS@GOTPAGEOFF]
	ldr	w1, [x24]
	add	x2, sp, #12
	mov	x0, x19
	mov	x3, x20
	mov	w4, #1
	bl	_psmouse_try_protocol
	cbnz	x0, LBB0_45
; %bb.26:
	ldr	w8, [sp, #12]
	ldr	w9, [x22]
LBB0_27:
	cmp	w8, w9
	b.ls	LBB0_30
; %bb.28:
Lloh36:
	adrp	x8, _PSMOUSE_CMD_RESET_DIS@GOTPAGE
Lloh37:
	ldr	x8, [x8, _PSMOUSE_CMD_RESET_DIS@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, #0
	bl	_ps2_command
Lloh39:
	adrp	x24, _PSMOUSE_ALPS@GOTPAGE
Lloh40:
	ldr	x24, [x24, _PSMOUSE_ALPS@GOTPAGEOFF]
	ldr	w1, [x24]
	add	x2, sp, #12
	mov	x0, x19
	mov	x3, x20
	mov	w4, #1
	bl	_psmouse_try_protocol
	cbnz	x0, LBB0_45
; %bb.29:
	ldr	w8, [sp, #12]
	ldr	w9, [x22]
LBB0_30:
	cmp	w8, w9
	b.ls	LBB0_33
; %bb.31:
Lloh41:
	adrp	x24, _PSMOUSE_HGPK@GOTPAGE
Lloh42:
	ldr	x24, [x24, _PSMOUSE_HGPK@GOTPAGEOFF]
	ldr	w1, [x24]
	add	x2, sp, #12
	mov	x0, x19
	mov	x3, x20
	mov	w4, #1
	bl	_psmouse_try_protocol
	cbnz	x0, LBB0_45
; %bb.32:
	ldr	w8, [sp, #12]
	ldr	w9, [x22]
LBB0_33:
	cmp	w8, w9
	b.ls	LBB0_37
; %bb.34:
Lloh43:
	adrp	x24, _PSMOUSE_ELANTECH@GOTPAGE
Lloh44:
	ldr	x24, [x24, _PSMOUSE_ELANTECH@GOTPAGEOFF]
	ldr	w1, [x24]
	add	x2, sp, #12
	mov	x0, x19
	mov	x3, x20
	mov	w4, #0
	bl	_psmouse_try_protocol
	cbz	x0, LBB0_37
; %bb.35:
	cbz	w20, LBB0_45
; %bb.36:
	mov	x0, x19
	bl	_elantech_init
	tbz	w0, #31, LBB0_46
LBB0_37:
	ldr	w8, [sp, #12]
	ldr	w9, [x22]
	cmp	w8, w9
	b.ls	LBB0_43
; %bb.38:
Lloh45:
	adrp	x24, _PSMOUSE_GENPS@GOTPAGE
Lloh46:
	ldr	x24, [x24, _PSMOUSE_GENPS@GOTPAGEOFF]
	ldr	w1, [x24]
	add	x2, sp, #12
	mov	x0, x19
	mov	x3, x20
	mov	w4, #1
	bl	_psmouse_try_protocol
	cbnz	x0, LBB0_45
; %bb.39:
Lloh47:
	adrp	x24, _PSMOUSE_PS2PP@GOTPAGE
Lloh48:
	ldr	x24, [x24, _PSMOUSE_PS2PP@GOTPAGEOFF]
	ldr	w1, [x24]
	add	x2, sp, #12
	mov	x0, x19
	mov	x3, x20
	mov	w4, #1
	bl	_psmouse_try_protocol
	cbnz	x0, LBB0_45
; %bb.40:
Lloh49:
	adrp	x24, _PSMOUSE_TRACKPOINT@GOTPAGE
Lloh50:
	ldr	x24, [x24, _PSMOUSE_TRACKPOINT@GOTPAGEOFF]
	ldr	w1, [x24]
	add	x2, sp, #12
	mov	x0, x19
	mov	x3, x20
	mov	w4, #1
	bl	_psmouse_try_protocol
	cbnz	x0, LBB0_45
; %bb.41:
Lloh51:
	adrp	x24, _PSMOUSE_TOUCHKIT_PS2@GOTPAGE
Lloh52:
	ldr	x24, [x24, _PSMOUSE_TOUCHKIT_PS2@GOTPAGEOFF]
	ldr	w1, [x24]
	add	x2, sp, #12
	mov	x0, x19
	mov	x3, x20
	mov	w4, #1
	bl	_psmouse_try_protocol
	cbnz	x0, LBB0_45
; %bb.42:
	ldr	w8, [sp, #12]
	ldr	w9, [x22]
LBB0_43:
	cmp	w8, w9
	b.ls	LBB0_47
; %bb.44:
Lloh53:
	adrp	x24, _PSMOUSE_FSP@GOTPAGE
Lloh54:
	ldr	x24, [x24, _PSMOUSE_FSP@GOTPAGEOFF]
	ldr	w1, [x24]
	add	x2, sp, #12
	mov	x0, x19
	mov	x3, x20
	mov	w4, #1
	bl	_psmouse_try_protocol
	cbz	x0, LBB0_47
LBB0_45:
	ldr	w0, [x24]
LBB0_46:
	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
LBB0_47:
Lloh55:
	adrp	x8, _PSMOUSE_CMD_RESET_DIS@GOTPAGE
Lloh56:
	ldr	x8, [x8, _PSMOUSE_CMD_RESET_DIS@GOTPAGEOFF]
Lloh57:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, #0
	bl	_ps2_command
	mov	x0, x19
	bl	_psmouse_reset
	ldr	w8, [sp, #12]
	ldr	w1, [x22]
	cmp	w8, w1
	b.lo	LBB0_50
; %bb.48:
	add	x2, sp, #12
	mov	x0, x19
	mov	x3, x20
	mov	w4, #1
	bl	_psmouse_try_protocol
	cbnz	x0, LBB0_52
; %bb.49:
	ldr	w8, [sp, #12]
LBB0_50:
Lloh58:
	adrp	x22, _PSMOUSE_IMPS@GOTPAGE
Lloh59:
	ldr	x22, [x22, _PSMOUSE_IMPS@GOTPAGEOFF]
	ldr	w1, [x22]
	cmp	w8, w1
	b.lo	LBB0_54
; %bb.51:
	add	x2, sp, #12
	mov	x0, x19
	mov	x3, x20
	mov	w4, #1
	bl	_psmouse_try_protocol
	cbz	x0, LBB0_54
LBB0_52:
	ldr	w0, [x22]
	b	LBB0_46
LBB0_53:
Lloh60:
	adrp	x8, _PSMOUSE_SYNAPTICS@GOTPAGE
Lloh61:
	ldr	x8, [x8, _PSMOUSE_SYNAPTICS@GOTPAGEOFF]
Lloh62:
	ldr	w0, [x8]
	b	LBB0_46
LBB0_54:
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x19
	mov	x3, x20
	mov	w4, #1
	bl	_psmouse_try_protocol
	tbnz	w23, #0, LBB0_9
; %bb.55:
	mov	x0, x19
	bl	_psmouse_reset
	b	LBB0_9
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.cfi_endproc
                                        ; -- End function
	.comm	_focaltech_detect,4,2           ; @focaltech_detect
	.comm	_PSMOUSE_IMEX,4,2               ; @PSMOUSE_IMEX
	.comm	_CONFIG_MOUSE_PS2_FOCALTECH,4,2 ; @CONFIG_MOUSE_PS2_FOCALTECH
	.comm	_PSMOUSE_FOCALTECH,4,2          ; @PSMOUSE_FOCALTECH
	.comm	_PSMOUSE_PS2,4,2                ; @PSMOUSE_PS2
	.comm	_psmouse_max_proto,4,2          ; @psmouse_max_proto
	.comm	_PSMOUSE_LIFEBOOK,4,2           ; @PSMOUSE_LIFEBOOK
	.comm	_PSMOUSE_VMMOUSE,4,2            ; @PSMOUSE_VMMOUSE
	.comm	_PSMOUSE_THINKPS,4,2            ; @PSMOUSE_THINKPS
	.comm	_synaptics_detect,4,2           ; @synaptics_detect
	.comm	_CONFIG_MOUSE_PS2_SYNAPTICS,4,2 ; @CONFIG_MOUSE_PS2_SYNAPTICS
	.comm	_CONFIG_MOUSE_PS2_SYNAPTICS_SMBUS,4,2 ; @CONFIG_MOUSE_PS2_SYNAPTICS_SMBUS
	.comm	_PSMOUSE_SYNAPTICS,4,2          ; @PSMOUSE_SYNAPTICS
	.comm	_PSMOUSE_CYPRESS,4,2            ; @PSMOUSE_CYPRESS
	.comm	_PSMOUSE_CMD_RESET_DIS,4,2      ; @PSMOUSE_CMD_RESET_DIS
	.comm	_PSMOUSE_ALPS,4,2               ; @PSMOUSE_ALPS
	.comm	_PSMOUSE_HGPK,4,2               ; @PSMOUSE_HGPK
	.comm	_PSMOUSE_ELANTECH,4,2           ; @PSMOUSE_ELANTECH
	.comm	_PSMOUSE_GENPS,4,2              ; @PSMOUSE_GENPS
	.comm	_PSMOUSE_PS2PP,4,2              ; @PSMOUSE_PS2PP
	.comm	_PSMOUSE_TRACKPOINT,4,2         ; @PSMOUSE_TRACKPOINT
	.comm	_PSMOUSE_TOUCHKIT_PS2,4,2       ; @PSMOUSE_TOUCHKIT_PS2
	.comm	_PSMOUSE_FSP,4,2                ; @PSMOUSE_FSP
	.comm	_PSMOUSE_IMPS,4,2               ; @PSMOUSE_IMPS
	.no_dead_strip	_psmouse_extensions
.subsections_via_symbols
