	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alps_monitor_mode
_alps_monitor_mode:                     ## @alps_monitor_mode
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	_PSMOUSE_CMD_RESET_WRAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_ps2_command
	movl	$-1, %r14d
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.1:
	testq	%rax, %rax
	jne	LBB0_11
## %bb.2:
	movq	_PSMOUSE_CMD_GETINFO@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ps2_command
	testq	%rax, %rax
	jne	LBB0_11
## %bb.3:
	movq	_PSMOUSE_CMD_DISABLE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ps2_command
	testq	%rax, %rax
	jne	LBB0_11
## %bb.4:
	movl	(%rbx), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ps2_command
	testq	%rax, %rax
	jne	LBB0_11
## %bb.5:
	movq	_PSMOUSE_CMD_SETSCALE21@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ps2_command
	testq	%rax, %rax
	jne	LBB0_11
## %bb.6:
	movq	_PSMOUSE_CMD_SETSCALE11@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ps2_command
	testq	%rax, %rax
	jne	LBB0_11
## %bb.7:
	movl	(%r12), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ps2_command
	testq	%rax, %rax
	jne	LBB0_11
## %bb.8:
	movl	(%r13), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ps2_command
LBB0_9:
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	xorl	%r14d, %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PSMOUSE_CMD_RESET_WRAP,4,2     ## @PSMOUSE_CMD_RESET_WRAP
	.comm	_PSMOUSE_CMD_GETINFO,4,2        ## @PSMOUSE_CMD_GETINFO
	.comm	_PSMOUSE_CMD_DISABLE,4,2        ## @PSMOUSE_CMD_DISABLE
	.comm	_PSMOUSE_CMD_SETSCALE21,4,2     ## @PSMOUSE_CMD_SETSCALE21
	.comm	_PSMOUSE_CMD_SETSCALE11,4,2     ## @PSMOUSE_CMD_SETSCALE11
	.no_dead_strip	_alps_monitor_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alps_monitor_mode
_alps_monitor_mode:                     ; @alps_monitor_mode
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _PSMOUSE_CMD_RESET_WRAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PSMOUSE_CMD_RESET_WRAP@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, #0
	bl	_ps2_command
	cbz	w20, LBB0_10
; %bb.1:
	cbnz	x0, LBB0_11
; %bb.2:
Lloh3:
	adrp	x20, _PSMOUSE_CMD_GETINFO@GOTPAGE
Lloh4:
	ldr	x20, [x20, _PSMOUSE_CMD_GETINFO@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x0, x19
	mov	x1, #0
	bl	_ps2_command
	cbnz	x0, LBB0_11
; %bb.3:
Lloh5:
	adrp	x21, _PSMOUSE_CMD_DISABLE@GOTPAGE
Lloh6:
	ldr	x21, [x21, _PSMOUSE_CMD_DISABLE@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, #0
	bl	_ps2_command
	cbnz	x0, LBB0_11
; %bb.4:
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, #0
	bl	_ps2_command
	cbnz	x0, LBB0_11
; %bb.5:
Lloh7:
	adrp	x21, _PSMOUSE_CMD_SETSCALE21@GOTPAGE
Lloh8:
	ldr	x21, [x21, _PSMOUSE_CMD_SETSCALE21@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, #0
	bl	_ps2_command
	cbnz	x0, LBB0_11
; %bb.6:
Lloh9:
	adrp	x8, _PSMOUSE_CMD_SETSCALE11@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PSMOUSE_CMD_SETSCALE11@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, #0
	bl	_ps2_command
	cbnz	x0, LBB0_11
; %bb.7:
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, #0
	bl	_ps2_command
	cbnz	x0, LBB0_11
; %bb.8:
	ldr	w2, [x20]
	mov	x0, x19
	mov	x1, #0
	bl	_ps2_command
	cbnz	x0, LBB0_11
LBB0_9:
	mov	w0, #0
	b	LBB0_12
LBB0_10:
	cbz	x0, LBB0_9
LBB0_11:
	mov	w0, #-1
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PSMOUSE_CMD_RESET_WRAP,4,2     ; @PSMOUSE_CMD_RESET_WRAP
	.comm	_PSMOUSE_CMD_GETINFO,4,2        ; @PSMOUSE_CMD_GETINFO
	.comm	_PSMOUSE_CMD_DISABLE,4,2        ; @PSMOUSE_CMD_DISABLE
	.comm	_PSMOUSE_CMD_SETSCALE21,4,2     ; @PSMOUSE_CMD_SETSCALE21
	.comm	_PSMOUSE_CMD_SETSCALE11,4,2     ; @PSMOUSE_CMD_SETSCALE11
	.no_dead_strip	_alps_monitor_mode
.subsections_via_symbols
