	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function trackpoint_start_protocol
_trackpoint_start_protocol:             ## @trackpoint_start_protocol
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movw	$0, -18(%rbp)
	movq	_TP_READ_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	movl	$2, %esi
	callq	_MAKE_PS2_CMD
	leaq	-18(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_ps2_command
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	jne	LBB0_4
## %bb.1:
	movb	-18(%rbp), %cl
	movq	_TP_MAGIC_IDENT@GOTPCREL(%rip), %rdx
	cmpb	(%rdx), %cl
	jne	LBB0_4
## %bb.2:
	xorl	%eax, %eax
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	movb	-17(%rbp), %cl
	movb	%cl, (%r14)
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TP_READ_ID,4,2                 ## @TP_READ_ID
	.comm	_TP_MAGIC_IDENT,1,0             ## @TP_MAGIC_IDENT
	.no_dead_strip	_trackpoint_start_protocol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function trackpoint_start_protocol
_trackpoint_start_protocol:             ; @trackpoint_start_protocol
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	strh	wzr, [sp, #14]
Lloh0:
	adrp	x8, _TP_READ_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TP_READ_ID@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w0, #0
	mov	w1, #2
	bl	_MAKE_PS2_CMD
	mov	x2, x0
	add	x1, sp, #14
	mov	x0, x20
	bl	_ps2_command
	cbnz	x0, LBB0_4
; %bb.1:
	ldrb	w8, [sp, #14]
Lloh3:
	adrp	x9, _TP_MAGIC_IDENT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TP_MAGIC_IDENT@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.2:
	mov	w0, #0
	cbz	x19, LBB0_5
; %bb.3:
	ldrb	w8, [sp, #15]
	strb	w8, [x19]
	b	LBB0_5
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_TP_READ_ID,4,2                 ; @TP_READ_ID
	.comm	_TP_MAGIC_IDENT,1,0             ; @TP_MAGIC_IDENT
	.no_dead_strip	_trackpoint_start_protocol
.subsections_via_symbols
