	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function trackpoint_power_on_reset
_trackpoint_power_on_reset:             ## @trackpoint_power_on_reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	_TP_POR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movl	$0, -20(%rbp)
	movq	_TP_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %edi
	movl	$2, %esi
	callq	_MAKE_PS2_CMD
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_ps2_command
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	cmpl	$170, -24(%rbp)
	jne	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	cmpl	$0, -20(%rbp)
	je	LBB0_4
LBB0_3:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-16(%rbp), %rcx
	jne	LBB0_6
## %bb.5:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TP_POR,4,2                     ## @TP_POR
	.comm	_TP_COMMAND,4,2                 ## @TP_COMMAND
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_trackpoint_power_on_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function trackpoint_power_on_reset
_trackpoint_power_on_reset:             ; @trackpoint_power_on_reset
	.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, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
Lloh3:
	adrp	x8, _TP_POR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TP_POR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	stp	w8, wzr, [sp]
Lloh6:
	adrp	x8, _TP_COMMAND@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TP_COMMAND@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w0, #1
	mov	w1, #2
	bl	_MAKE_PS2_CMD
	mov	x2, x0
	mov	x1, sp
	mov	x0, x19
	bl	_ps2_command
	cbnz	w0, LBB0_4
; %bb.1:
	ldp	w8, w9, [sp]
	cmp	w8, #170
	ccmp	w9, #0, #0, eq
	b.eq	LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldr	x8, [sp, #8]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_TP_POR,4,2                     ; @TP_POR
	.comm	_TP_COMMAND,4,2                 ; @TP_COMMAND
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_trackpoint_power_on_reset
.subsections_via_symbols
