	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alps_trackstick_enter_extended_mode_v3_v6
_alps_trackstick_enter_extended_mode_v3_v6: ## @alps_trackstick_enter_extended_mode_v3_v6
	.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	%rdi, %rbx
	movw	$5320, -26(%rbp)                ## imm = 0x14C8
	movq	_PSMOUSE_CMD_SETSCALE11@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	xorl	%esi, %esi
	callq	_ps2_command
	movl	$-1, %r14d
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movl	(%r15), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ps2_command
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	movl	(%r15), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ps2_command
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movq	_PSMOUSE_CMD_SETRATE@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	-26(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_ps2_command
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	leaq	-25(%rbp), %rsi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_ps2_command
	xorl	%r14d, %r14d
	negq	%rax
	sbbl	%r14d, %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PSMOUSE_CMD_SETSCALE11,4,2     ## @PSMOUSE_CMD_SETSCALE11
	.comm	_PSMOUSE_CMD_SETRATE,4,2        ## @PSMOUSE_CMD_SETRATE
	.no_dead_strip	_alps_trackstick_enter_extended_mode_v3_v6
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alps_trackstick_enter_extended_mode_v3_v6
_alps_trackstick_enter_extended_mode_v3_v6: ; @alps_trackstick_enter_extended_mode_v3_v6
	.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, x0
	mov	w8, #5320
	strh	w8, [sp, #14]
Lloh0:
	adrp	x20, _PSMOUSE_CMD_SETSCALE11@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PSMOUSE_CMD_SETSCALE11@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x1, #0
	bl	_ps2_command
	cbnz	x0, LBB0_4
; %bb.1:
	ldr	w2, [x20]
	mov	x0, x19
	mov	x1, #0
	bl	_ps2_command
	cbnz	x0, LBB0_4
; %bb.2:
	ldr	w2, [x20]
	mov	x0, x19
	mov	x1, #0
	bl	_ps2_command
	cbnz	x0, LBB0_4
; %bb.3:
Lloh2:
	adrp	x20, _PSMOUSE_CMD_SETRATE@GOTPAGE
Lloh3:
	ldr	x20, [x20, _PSMOUSE_CMD_SETRATE@GOTPAGEOFF]
	ldr	w2, [x20]
	add	x21, sp, #14
	add	x1, sp, #14
	mov	x0, x19
	bl	_ps2_command
	cbz	x0, LBB0_6
LBB0_4:
	mov	w0, #-1
LBB0_5:
	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
LBB0_6:
	orr	x1, x21, #0x1
	ldr	w2, [x20]
	mov	x0, x19
	bl	_ps2_command
	cmp	x0, #0
	csetm	w0, ne
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_PSMOUSE_CMD_SETSCALE11,4,2     ; @PSMOUSE_CMD_SETSCALE11
	.comm	_PSMOUSE_CMD_SETRATE,4,2        ; @PSMOUSE_CMD_SETRATE
	.no_dead_strip	_alps_trackstick_enter_extended_mode_v3_v6
.subsections_via_symbols
