	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alps_flush_packet
_alps_flush_packet:                     ## @alps_flush_packet
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rdi, %rsi
	callq	_from_timer
	movq	%rax, %r14
	movq	8(%rax), %rbx
	movl	24(%rbx), %edi
	callq	_serio_pause_rx
	movq	(%rbx), %rax
	cmpq	8(%rbx), %rax
	jne	LBB0_5
## %bb.1:
	movq	16(%rbx), %rdx
	movl	16(%rdx), %eax
	orl	12(%rdx), %eax
	orl	20(%rdx), %eax
	testb	$-128, %al
	jne	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	callq	*(%r14)
	jmp	LBB0_4
LBB0_2:
	addq	$12, %rdx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_psmouse_dbg
LBB0_4:
	movq	$0, (%rbx)
LBB0_5:
	movl	24(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_serio_continue_rx              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_timer,4,2                      ## @timer
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"refusing packet %3ph (suspected interleaved ps/2)\n"

	.comm	_priv,8,3                       ## @priv
	.no_dead_strip	_alps_flush_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alps_flush_packet
_alps_flush_packet:                     ; @alps_flush_packet
	.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
Lloh0:
	adrp	x8, _timer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _timer@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x0
	bl	_from_timer
	mov	x20, x0
	ldr	x19, [x0, #8]
	ldr	w0, [x19, #24]
	bl	_serio_pause_rx
	ldp	x8, x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	ldr	x2, [x19, #16]
	ldp	w8, w9, [x2, #12]!
	ldr	w10, [x2, #8]
	orr	w8, w9, w8
	orr	w8, w8, w10
	tbnz	w8, #7, LBB0_3
; %bb.2:
	ldr	x8, [x20]
	mov	x0, x19
	blr	x8
	b	LBB0_4
LBB0_3:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_psmouse_dbg
LBB0_4:
	str	xzr, [x19]
LBB0_5:
	ldr	w0, [x19, #24]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_serio_continue_rx
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_timer,4,2                      ; @timer
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"refusing packet %3ph (suspected interleaved ps/2)\n"

	.comm	_priv,8,3                       ; @priv
	.no_dead_strip	_alps_flush_packet
.subsections_via_symbols
