	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alps_command_mode_set_addr
_alps_command_mode_set_addr:            ## @alps_command_mode_set_addr
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	addq	$8, %rdi
	movq	(%rbx), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_ps2_command
	movl	$-1, %r15d
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movl	%r14d, %esi
	shrl	$12, %esi
	andl	$15, %esi
	movq	%rbx, %rdi
	callq	_alps_command_mode_send_nibble
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	movl	%r14d, %esi
	shrl	$8, %esi
	andl	$15, %esi
	movq	%rbx, %rdi
	callq	_alps_command_mode_send_nibble
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movl	%r14d, %esi
	shrl	$4, %esi
	andl	$15, %esi
	movq	%rbx, %rdi
	callq	_alps_command_mode_send_nibble
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	andl	$15, %r14d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_alps_command_mode_send_nibble
	xorl	%r15d, %r15d
	negq	%rax
	sbbl	%r15d, %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_alps_command_mode_set_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alps_command_mode_set_addr
_alps_command_mode_set_addr:            ; @alps_command_mode_set_addr
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0], #8
	ldr	w2, [x8]
	mov	x1, #0
	bl	_ps2_command
	cbnz	x0, LBB0_4
; %bb.1:
	ubfx	w1, w20, #12, #4
	mov	x0, x19
	bl	_alps_command_mode_send_nibble
	cbnz	x0, LBB0_4
; %bb.2:
	ubfx	w1, w20, #8, #4
	mov	x0, x19
	bl	_alps_command_mode_send_nibble
	cbnz	x0, LBB0_4
; %bb.3:
	ubfx	w1, w20, #4, #4
	mov	x0, x19
	bl	_alps_command_mode_send_nibble
	cbz	x0, LBB0_6
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	and	w1, w20, #0xf
	mov	x0, x19
	bl	_alps_command_mode_send_nibble
	cmp	x0, #0
	csetm	w0, ne
	b	LBB0_5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_alps_command_mode_set_addr
.subsections_via_symbols
