	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function trackpoint_toggle_bit
_trackpoint_toggle_bit:                 ## @trackpoint_toggle_bit
	.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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	_TP_TOGGLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movl	%esi, -24(%rbp)
	movl	%edx, -20(%rbp)
	addl	$-47, %esi
	cmpl	$-16, %esi
	ja	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
LBB0_2:
	movq	%rdi, %rbx
	movq	_TP_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$3, %edi
	xorl	%esi, %esi
	callq	_MAKE_PS2_CMD
	leaq	-28(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_ps2_command
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-16(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TP_TOGGLE,4,2                  ## @TP_TOGGLE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TP_COMMAND,4,2                 ## @TP_COMMAND
	.no_dead_strip	_trackpoint_toggle_bit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function trackpoint_toggle_bit
_trackpoint_toggle_bit:                 ; @trackpoint_toggle_bit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _TP_TOGGLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TP_TOGGLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	stp	w8, w1, [sp, #12]
	str	w2, [sp, #20]
	sub	w8, w1, #47
	cmn	w8, #16
	b.hi	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	mov	x19, x0
Lloh9:
	adrp	x8, _TP_COMMAND@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TP_COMMAND@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	w0, #3
	mov	w1, #0
	bl	_MAKE_PS2_CMD
	mov	x2, x0
	add	x1, sp, #12
	mov	x0, x19
	bl	_ps2_command
LBB0_3:
	ldr	x8, [sp, #24]
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_5
; %bb.4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_TP_TOGGLE,4,2                  ; @TP_TOGGLE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TP_COMMAND,4,2                 ; @TP_COMMAND
	.no_dead_strip	_trackpoint_toggle_bit
.subsections_via_symbols
