	.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
	pushq	%rax
	.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
	leaq	16(%rdi), %rbx
	movb	$0, -44(%rbp)
	movq	_PSMOUSE_CMD_SETRES@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	-44(%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
	cmpb	$71, -43(%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:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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, #64
	.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
	mov	x20, x1
	mov	x19, x0
	add	x21, x0, #16
	strb	wzr, [sp, #12]
Lloh0:
	adrp	x22, _PSMOUSE_CMD_SETRES@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PSMOUSE_CMD_SETRES@GOTPAGEOFF]
	ldr	w2, [x22]
	add	x1, sp, #12
	mov	x0, x21
	bl	_ps2_command
	ldr	w2, [x22]
	add	x1, sp, #12
	mov	x0, x21
	bl	_ps2_command
	ldr	w2, [x22]
	add	x1, sp, #12
	mov	x0, x21
	bl	_ps2_command
	ldr	w2, [x22]
	add	x1, sp, #12
	mov	x0, x21
	bl	_ps2_command
Lloh2:
	adrp	x8, _PSMOUSE_CMD_GETINFO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PSMOUSE_CMD_GETINFO@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	add	x1, sp, #12
	mov	x0, x21
	bl	_ps2_command
	ldrb	w8, [sp, #13]
	cmp	w8, #71
	b.ne	LBB0_3
; %bb.1:
	mov	w0, #0
	cbz	w20, LBB0_4
; %bb.2:
Lloh5:
	adrp	x8, l_.str@PAGE
Lloh6:
	add	x8, x8, l_.str@PAGEOFF
Lloh7:
	adrp	x9, l_.str.1@PAGE
Lloh8:
	add	x9, x9, l_.str.1@PAGEOFF
	stp	x8, x9, [x19]
	b	LBB0_4
LBB0_3:
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.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
