	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function egalax_interrupt
_egalax_interrupt:                      ## @egalax_interrupt
	.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, %r15d
	movq	%rdi, %r14
	callq	_serio_get_drvdata
	movq	%rax, %rbx
	movq	(%rax), %rax
	movslq	8(%rbx), %rcx
	leal	1(%rcx), %edx
	movl	%edx, 8(%rbx)
	movb	%r15b, (%rax,%rcx)
	movq	(%rbx), %rax
	movzbl	(%rax), %edi
	movq	_EGALAX_FORMAT_START_BIT@GOTPCREL(%rip), %rax
	andl	(%rax), %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	(%rbx), %rax
	movzbl	(%rax), %eax
	movq	_EGALAX_FORMAT_PRESSURE_BIT@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	cmpl	$1, %eax
	movl	$6, %eax
	sbbl	$0, %eax
	cmpl	8(%rbx), %eax
	jne	LBB0_5
## %bb.2:
	movq	%rbx, %rdi
	callq	_egalax_process_data
	jmp	LBB0_4
LBB0_3:
	movq	(%rbx), %rax
	movzbl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
LBB0_4:
	movl	$0, 8(%rbx)
LBB0_5:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EGALAX_FORMAT_START_BIT,4,2    ## @EGALAX_FORMAT_START_BIT
	.comm	_EGALAX_FORMAT_PRESSURE_BIT,4,2 ## @EGALAX_FORMAT_PRESSURE_BIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown/unsynchronized data: %x\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_egalax_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function egalax_interrupt
_egalax_interrupt:                      ; @egalax_interrupt
	.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	x21, x1
	mov	x20, x0
	bl	_serio_get_drvdata
	mov	x19, x0
	ldr	x8, [x0]
	ldrsw	x9, [x0, #8]
	add	w10, w9, #1
	str	w10, [x0, #8]
	strb	w21, [x8, x9]
	ldr	x8, [x0]
	ldrb	w8, [x8]
Lloh0:
	adrp	x9, _EGALAX_FORMAT_START_BIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EGALAX_FORMAT_START_BIT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_likely
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x19]
	ldrb	w8, [x8]
Lloh3:
	adrp	x9, _EGALAX_FORMAT_PRESSURE_BIT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EGALAX_FORMAT_PRESSURE_BIT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	mov	w8, #5
	cinc	w8, w8, ne
	ldr	w9, [x19, #8]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_egalax_process_data
	b	LBB0_4
LBB0_3:
	ldr	x8, [x19]
	ldrb	w2, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
LBB0_4:
	str	wzr, [x19, #8]
LBB0_5:
Lloh8:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EGALAX_FORMAT_START_BIT,4,2    ; @EGALAX_FORMAT_START_BIT
	.comm	_EGALAX_FORMAT_PRESSURE_BIT,4,2 ; @EGALAX_FORMAT_PRESSURE_BIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown/unsynchronized data: %x\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_egalax_interrupt
.subsections_via_symbols
