	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alps_passthrough_mode_v3
_alps_passthrough_mode_v3:              ## @alps_passthrough_mode_v3
	.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	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_alps_enter_command_mode
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	jne	LBB0_5
## %bb.1:
	addl	$8, %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_alps_command_mode_read_reg
	cmpl	$-1, %eax
	je	LBB0_2
## %bb.3:
	xorl	%esi, %esi
	testl	%r14d, %r14d
	setne	%sil
	andl	$-2, %eax
	orl	%eax, %esi
	movq	%r15, %rdi
	callq	___alps_command_mode_write_reg
	movl	%eax, %r14d
	jmp	LBB0_4
LBB0_2:
	movl	$-1, %r14d
LBB0_4:
	movq	%r15, %rdi
	callq	_alps_exit_command_mode
	movq	%rax, %rcx
	xorl	%eax, %eax
	negq	%rcx
	sbbl	%eax, %eax
	orl	%r14d, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_alps_passthrough_mode_v3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alps_passthrough_mode_v3
_alps_passthrough_mode_v3:              ; @alps_passthrough_mode_v3
	.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, x2
	mov	x21, x1
	mov	x19, x0
	bl	_alps_enter_command_mode
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #-1
	b	LBB0_6
LBB0_2:
	add	w1, w21, #8
	mov	x0, x19
	bl	_alps_command_mode_read_reg
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.3:
	cmp	w20, #0
	cset	w8, ne
	and	w9, w0, #0xfffffffe
	orr	w1, w9, w8
	mov	x0, x19
	bl	___alps_command_mode_write_reg
	mov	x20, x0
	b	LBB0_5
LBB0_4:
	mov	w20, #-1
LBB0_5:
	mov	x0, x19
	bl	_alps_exit_command_mode
	cmp	x0, #0
	csinv	w0, w20, wzr, eq
LBB0_6:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_alps_passthrough_mode_v3
.subsections_via_symbols
