	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_synaptics_detect               ## -- Begin function synaptics_detect
	.p2align	4, 0x90
_synaptics_detect:                      ## @synaptics_detect
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	16(%rdi), %rbx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	_PSMOUSE_CMD_SETRES@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	-64(%rbp), %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_ps2_command
	movl	(%r13), %edx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_ps2_command
	movl	(%r13), %edx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_ps2_command
	movl	(%r13), %edx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_ps2_command
	movq	_PSMOUSE_CMD_GETINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_ps2_command
	cmpl	$71, -60(%rbp)
	jne	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rcx
	movq	%rcx, (%r15)
	leaq	L_.str.1(%rip), %rcx
	movq	%rcx, 8(%r15)
	jmp	LBB0_4
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_6
## %bb.5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PSMOUSE_CMD_SETRES,4,2         ## @PSMOUSE_CMD_SETRES
	.comm	_PSMOUSE_CMD_GETINFO,4,2        ## @PSMOUSE_CMD_GETINFO
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Synaptics"

L_.str.1:                               ## @.str.1
	.asciz	"TouchPad"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_synaptics_detect               ; -- Begin function synaptics_detect
	.p2align	2
_synaptics_detect:                      ; @synaptics_detect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	add	x21, x0, #16
	stp	xzr, xzr, [sp, #8]
Lloh3:
	adrp	x22, _PSMOUSE_CMD_SETRES@GOTPAGE
Lloh4:
	ldr	x22, [x22, _PSMOUSE_CMD_SETRES@GOTPAGEOFF]
	ldr	w2, [x22]
	add	x1, sp, #8
	mov	x0, x21
	bl	_ps2_command
	ldr	w2, [x22]
	add	x1, sp, #8
	mov	x0, x21
	bl	_ps2_command
	ldr	w2, [x22]
	add	x1, sp, #8
	mov	x0, x21
	bl	_ps2_command
	ldr	w2, [x22]
	add	x1, sp, #8
	mov	x0, x21
	bl	_ps2_command
Lloh5:
	adrp	x8, _PSMOUSE_CMD_GETINFO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PSMOUSE_CMD_GETINFO@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	x0, x21
	bl	_ps2_command
	ldr	w8, [sp, #12]
	cmp	w8, #71
	b.ne	LBB0_3
; %bb.1:
	mov	w0, #0
	cbz	w20, LBB0_4
; %bb.2:
Lloh8:
	adrp	x8, l_.str@PAGE
Lloh9:
	add	x8, x8, l_.str@PAGEOFF
Lloh10:
	adrp	x9, l_.str.1@PAGE
Lloh11:
	add	x9, x9, l_.str.1@PAGEOFF
	stp	x8, x9, [x19]
	b	LBB0_4
LBB0_3:
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldr	x8, [sp, #24]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	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
	add	sp, sp, #80
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_PSMOUSE_CMD_SETRES,4,2         ; @PSMOUSE_CMD_SETRES
	.comm	_PSMOUSE_CMD_GETINFO,4,2        ; @PSMOUSE_CMD_GETINFO
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Synaptics"

l_.str.1:                               ; @.str.1
	.asciz	"TouchPad"

.subsections_via_symbols
