	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fujitsu_interrupt
_fujitsu_interrupt:                     ## @fujitsu_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
	callq	_serio_get_drvdata
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	16(%rbx), %r14
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	testb	%r15b, %r15b
	jns	LBB0_3
	jmp	LBB0_5
LBB0_1:
	movl	%r15d, %ecx
	andb	$-16, %cl
	cmpb	$-128, %cl
	jne	LBB0_6
LBB0_3:
	movq	8(%rbx), %rcx
	leaq	1(%rax), %rdx
	movq	%rdx, (%rbx)
	movb	%r15b, (%rcx,%rax)
	movq	(%rbx), %rax
	movq	_FUJITSU_LENGTH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rax
	movzbl	2(%rax), %ecx
	shll	$7, %ecx
	movzbl	1(%rax), %edx
	orl	%ecx, %edx
	movq	%r14, %rdi
	callq	_input_report_abs
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rax
	movzbl	4(%rax), %ecx
	shll	$7, %ecx
	movzbl	3(%rax), %edx
	orl	%ecx, %edx
	movq	%r14, %rdi
	callq	_input_report_abs
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rax
	movb	(%rax), %al
	andb	$3, %al
	xorl	%edx, %edx
	cmpb	$2, %al
	setne	%dl
	movq	%r14, %rdi
	callq	_input_report_key
	movq	%r14, %rdi
	callq	_input_sync
LBB0_5:
	movq	$0, (%rbx)
LBB0_6:
	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	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_FUJITSU_LENGTH,8,3             ## @FUJITSU_LENGTH
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.no_dead_strip	_fujitsu_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fujitsu_interrupt
_fujitsu_interrupt:                     ; @fujitsu_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
	bl	_serio_get_drvdata
	mov	x19, x0
	ldr	x20, [x0, #16]
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	tbz	w21, #7, LBB0_3
	b	LBB0_5
LBB0_2:
	and	w9, w21, #0xf0
	cmp	w9, #128
	b.ne	LBB0_6
LBB0_3:
	ldr	x9, [x19, #8]
	add	x10, x8, #1
	str	x10, [x19]
	strb	w21, [x9, x8]
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _FUJITSU_LENGTH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FUJITSU_LENGTH@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
Lloh3:
	adrp	x8, _ABS_X@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	x8, [x19, #8]
	ldrb	w9, [x8, #2]
	ldrb	w8, [x8, #1]
	orr	w2, w8, w9, lsl #7
	mov	x0, x20
	bl	_input_report_abs
Lloh6:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	x8, [x19, #8]
	ldrb	w9, [x8, #4]
	ldrb	w8, [x8, #3]
	orr	w2, w8, w9, lsl #7
	mov	x0, x20
	bl	_input_report_abs
Lloh9:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	x8, [x19, #8]
	ldrb	w8, [x8]
	and	w8, w8, #0x3
	cmp	w8, #2
	cset	w2, ne
	mov	x0, x20
	bl	_input_report_key
	mov	x0, x20
	bl	_input_sync
LBB0_5:
	str	xzr, [x19]
LBB0_6:
Lloh12:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh14:
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_FUJITSU_LENGTH,8,3             ; @FUJITSU_LENGTH
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.no_dead_strip	_fujitsu_interrupt
.subsections_via_symbols
