	.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	%rdi, %rbx
	movq	32(%rdi), %r14
	movl	24(%rdi), %edi
	callq	_serio_pause_rx
	movq	(%rbx), %rax
	cmpq	8(%rbx), %rax
	jne	LBB0_5
## %bb.1:
	movq	16(%rbx), %rax
	movl	12(%rax), %esi
	movl	16(%rax), %edx
	movl	%edx, %edi
	orl	%esi, %edi
	movl	20(%rax), %ecx
	orl	%ecx, %edi
	testb	$-128, %dil
	jne	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	callq	*(%r14)
	jmp	LBB0_4
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"refusing packet %x %x %x (suspected interleaved ps/2)\n"

	.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
	mov	x19, x0
	ldr	x20, [x0, #32]
	ldr	w0, [x0, #24]
	bl	_serio_pause_rx
	ldp	x8, x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	ldr	x8, [x19, #16]
	ldp	w1, w2, [x8, #12]
	orr	w9, w2, w1
	ldr	w3, [x8, #20]
	orr	w8, w9, w3
	tbnz	w8, #7, LBB0_3
; %bb.2:
	ldr	x8, [x20]
	mov	x0, x19
	blr	x8
	b	LBB0_4
LBB0_3:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"refusing packet %x %x %x (suspected interleaved ps/2)\n"

	.no_dead_strip	_alps_flush_packet
.subsections_via_symbols
