	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alps_get_otp_values_ss4_v2
_alps_get_otp_values_ss4_v2:            ## @alps_get_otp_values_ss4_v2
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %rbx
	cmpb	$1, %sil
	je	LBB0_3
## %bb.1:
	testb	%sil, %sil
	jne	LBB0_7
## %bb.2:
	movq	_PSMOUSE_CMD_SETSTREAM@GOTPCREL(%rip), %r12
	jmp	LBB0_4
LBB0_3:
	movq	_PSMOUSE_CMD_SETPOLL@GOTPCREL(%rip), %r12
LBB0_4:
	movl	(%r12), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ps2_command
	movl	$-1, %r15d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movl	(%r12), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ps2_command
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movq	_PSMOUSE_CMD_GETINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ps2_command
	testl	%eax, %eax
	jne	LBB0_8
LBB0_7:
	xorl	%r15d, %r15d
LBB0_8:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PSMOUSE_CMD_SETSTREAM,4,2      ## @PSMOUSE_CMD_SETSTREAM
	.comm	_PSMOUSE_CMD_GETINFO,4,2        ## @PSMOUSE_CMD_GETINFO
	.comm	_PSMOUSE_CMD_SETPOLL,4,2        ## @PSMOUSE_CMD_SETPOLL
	.no_dead_strip	_alps_get_otp_values_ss4_v2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alps_get_otp_values_ss4_v2
_alps_get_otp_values_ss4_v2:            ; @alps_get_otp_values_ss4_v2
	.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	x19, x2
	mov	x20, x0
	cmp	w1, #1
	b.eq	LBB0_3
; %bb.1:
	cbnz	w1, LBB0_8
; %bb.2:
Lloh0:
	adrp	x21, _PSMOUSE_CMD_SETSTREAM@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PSMOUSE_CMD_SETSTREAM@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x21, _PSMOUSE_CMD_SETPOLL@GOTPAGE
Lloh3:
	ldr	x21, [x21, _PSMOUSE_CMD_SETPOLL@GOTPAGEOFF]
LBB0_4:
	ldr	w2, [x21]
	mov	x0, x20
	mov	x1, #0
	bl	_ps2_command
	cbnz	w0, LBB0_7
; %bb.5:
	ldr	w2, [x21]
	mov	x0, x20
	mov	x1, #0
	bl	_ps2_command
	cbnz	w0, LBB0_7
; %bb.6:
Lloh4:
	adrp	x8, _PSMOUSE_CMD_GETINFO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PSMOUSE_CMD_GETINFO@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_ps2_command
	cbz	w0, LBB0_8
LBB0_7:
	mov	w0, #-1
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_PSMOUSE_CMD_SETSTREAM,4,2      ; @PSMOUSE_CMD_SETSTREAM
	.comm	_PSMOUSE_CMD_GETINFO,4,2        ; @PSMOUSE_CMD_GETINFO
	.comm	_PSMOUSE_CMD_SETPOLL,4,2        ; @PSMOUSE_CMD_SETPOLL
	.no_dead_strip	_alps_get_otp_values_ss4_v2
.subsections_via_symbols
