	.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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	$0, -32(%rbp)
	movq	_TP_READ_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	movl	$2, %esi
	callq	_MAKE_PS2_CMD
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_ps2_command
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movl	-32(%rbp), %eax
	movl	%eax, %ecx
	andl	$-4, %ecx
	cmpl	$128, %ecx
	jne	LBB0_6
## %bb.2:
	testq	%r15, %r15
	je	LBB0_4
## %bb.3:
	movl	%eax, (%r15)
LBB0_4:
	xorl	%eax, %eax
	testq	%r14, %r14
	je	LBB0_7
## %bb.5:
	movl	-28(%rbp), %ecx
	movl	%ecx, (%r14)
	jmp	LBB0_7
LBB0_6:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TP_READ_ID,4,2                 ## @TP_READ_ID
	.comm	_ENODEV,4,2                     ## @ENODEV
	.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, #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	x19, x2
	mov	x20, x1
	mov	x21, x0
	str	xzr, [sp, #8]
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, #8
	mov	x0, x21
	bl	_ps2_command
	cbnz	w0, LBB0_7
; %bb.1:
	ldr	w8, [sp, #8]
	and	w9, w8, #0xfffffffc
	cmp	w9, #128
	b.ne	LBB0_6
; %bb.2:
	cbz	x20, LBB0_4
; %bb.3:
	str	w8, [x20]
LBB0_4:
	mov	w0, #0
	cbz	x19, LBB0_7
; %bb.5:
	ldr	w8, [sp, #12]
	str	w8, [x19]
	b	LBB0_7
LBB0_6:
Lloh3:
	adrp	x8, _ENODEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_TP_READ_ID,4,2                 ; @TP_READ_ID
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_trackpoint_start_protocol
.subsections_via_symbols
