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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alps_hw_init_dolphin_v1
_alps_hw_init_dolphin_v1:               ; @alps_hw_init_dolphin_v1
	.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
	mov	w8, #10340
	strh	w8, [sp, #14]
Lloh0:
	adrp	x8, _PSMOUSE_CMD_SETSTREAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PSMOUSE_CMD_SETSTREAM@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, #0
	bl	_ps2_command
	cbnz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x20, _PSMOUSE_CMD_SETRATE@GOTPAGE
Lloh4:
	ldr	x20, [x20, _PSMOUSE_CMD_SETRATE@GOTPAGEOFF]
	ldr	w2, [x20]
	add	x1, sp, #14
	mov	x0, x19
	bl	_ps2_command
	cbz	x0, LBB0_4
LBB0_2:
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
	add	x8, sp, #14
	add	x1, x8, #1
	ldr	w2, [x20]
	mov	x0, x19
	bl	_ps2_command
	cmp	x0, #0
	csetm	w0, ne
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PSMOUSE_CMD_SETSTREAM,4,2      ; @PSMOUSE_CMD_SETSTREAM
	.comm	_PSMOUSE_CMD_SETRATE,4,2        ; @PSMOUSE_CMD_SETRATE
	.no_dead_strip	_alps_hw_init_dolphin_v1
.subsections_via_symbols
