	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wacom_graphire_irq
_wacom_graphire_irq:                    ## @wacom_graphire_irq
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r13
	movb	(%r13), %al
	cmpb	$2, %al
	jne	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %r12
	movzbl	1(%r13), %edx
	testb	$-128, %dl
	jne	LBB0_3
## %bb.18:
	movq	16(%r12), %rax
	cmpb	$0, (%rax)
	je	LBB0_24
## %bb.19:
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_wacom_report_abs
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_wacom_report_abs
	movq	8(%r12), %rax
	movq	(%rax), %rax
	movq	_BTN_TOOL_MOUSE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.20:
	movq	_BTN_LEFT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_wacom_report_key
	movq	_BTN_RIGHT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_wacom_report_key
	movq	_ABS_DISTANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_wacom_report_abs
	jmp	LBB0_22
LBB0_1:
	movzbl	%al, %esi
	leaq	L_.str(%rip), %rdi
	callq	_dbg
	xorl	%r15d, %r15d
	jmp	LBB0_38
LBB0_3:
	movl	%edx, %eax
	shrl	$5, %eax
	andl	$3, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	movq	_BTN_TOOL_PEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%r12), %rcx
	movq	%rax, (%rcx)
	movq	_STYLUS_DEVICE_ID@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_21:
	movq	_ABS_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_wacom_report_abs
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_wacom_report_key
	movq	_BTN_STYLUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_wacom_report_key
	movq	_BTN_STYLUS2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_wacom_report_key
LBB0_22:
	leaq	8(%r12), %r15
	movq	16(%r12), %rax
	movb	$0, (%rax)
	movq	_ABS_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_wacom_report_abs
	jmp	LBB0_23
LBB0_6:
	movq	_BTN_TOOL_RUBBER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%r12), %rcx
	movq	%rax, (%rcx)
	movq	_ERASER_DEVICE_ID@GOTPCREL(%rip), %rax
LBB0_5:
	movb	(%rax), %al
	movq	16(%r12), %rcx
	movb	%al, (%rcx)
	jmp	LBB0_15
LBB0_7:
	movq	_BTN_MIDDLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	andl	$4, %edx
	movq	%r14, %rdi
	callq	_wacom_report_key
	movq	24(%r12), %rax
	movl	(%rax), %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_9
## %bb.8:
	movzbl	7(%r13), %eax
	movl	%eax, %edx
	andl	$4, %edx
	andl	$3, %eax
	subl	%eax, %edx
	movq	_REL_WHEEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_10
LBB0_9:
	movq	_REL_WHEEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movsbl	6(%r13), %edx
	negl	%edx
LBB0_10:
	movq	%r14, %rdi
	callq	_wacom_report_rel
LBB0_11:
	movq	_BTN_TOOL_MOUSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%r12), %rcx
	movq	%rax, (%rcx)
	movq	_CURSOR_DEVICE_ID@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movq	16(%r12), %rcx
	movb	%al, (%rcx)
	movq	_BTN_LEFT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movzbl	1(%r13), %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_wacom_report_key
	movq	_BTN_RIGHT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movzbl	1(%r13), %edx
	andl	$2, %edx
	movq	%r14, %rdi
	callq	_wacom_report_key
	movq	24(%r12), %rax
	movl	(%rax), %eax
	andl	$-2, %eax
	movq	_ABS_DISTANCE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	cmpl	$128, %eax
	jne	LBB0_13
## %bb.12:
	movzbl	6(%r13), %edx
	jmp	LBB0_14
LBB0_13:
	movzbl	7(%r13), %edx
LBB0_14:
	andl	$63, %edx
	movq	%r14, %rdi
	callq	_wacom_report_abs
LBB0_15:
	leaq	2(%r13), %rdi
	callq	_wacom_le16_to_cpu
	movl	%eax, %ebx
	leaq	4(%r13), %rdi
	callq	_wacom_le16_to_cpu
	movl	%eax, %r15d
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	%bl, %edx
	movq	%r14, %rdi
	callq	_wacom_report_abs
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	%r15b, %edx
	movq	%r14, %rdi
	callq	_wacom_report_abs
	movq	8(%r12), %rax
	movq	(%rax), %rax
	movq	_BTN_TOOL_MOUSE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_17
## %bb.16:
	movq	_ABS_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	6(%r13), %edx
	movq	%r14, %rdi
	callq	_wacom_report_abs
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movzbl	1(%r13), %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_wacom_report_key
	movq	_BTN_STYLUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movzbl	1(%r13), %edx
	andl	$2, %edx
	movq	%r14, %rdi
	callq	_wacom_report_key
	movq	_BTN_STYLUS2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movzbl	1(%r13), %edx
	andl	$4, %edx
	movq	%r14, %rdi
	callq	_wacom_report_key
LBB0_17:
	leaq	8(%r12), %r15
	movq	_ABS_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%r12), %rax
	movzbl	(%rax), %edx
	movq	%r14, %rdi
	callq	_wacom_report_abs
	movb	$1, %bl
LBB0_23:
	movq	(%r15), %rax
	movq	(%rax), %rsi
	movzbl	%bl, %edx
	movq	%r14, %rdi
	callq	_wacom_report_key
LBB0_24:
	movq	24(%r12), %rax
	movl	(%rax), %eax
	movl	$1, %r15d
	cmpl	$128, %eax
	je	LBB0_31
## %bb.25:
	cmpl	$129, %eax
	jne	LBB0_38
## %bb.26:
	cmpb	$8, 7(%r13)
	jae	LBB0_27
## %bb.29:
	movq	16(%r12), %rax
	cmpb	$0, 1(%rax)
	je	LBB0_38
## %bb.30:
	movq	%r14, %rdi
	callq	_wacom_input_sync
	movq	16(%r12), %rax
	movb	$0, 1(%rax)
	movq	_BTN_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movzbl	7(%r13), %edx
	andl	$64, %edx
	movq	%r14, %rdi
	callq	_wacom_report_key
	movq	_BTN_4@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movzbl	7(%r13), %edx
	andl	$-128, %edx
	movq	%r14, %rdi
	callq	_wacom_report_key
	jmp	LBB0_36
LBB0_31:
	cmpb	$7, 7(%r13)
	ja	LBB0_33
## %bb.32:
	cmpb	$0, 8(%r13)
	je	LBB0_34
LBB0_33:
	movq	%r14, %rdi
	callq	_wacom_input_sync
	movq	_PAD_DEVICE_ID@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movq	16(%r12), %rcx
	movb	%al, 1(%rcx)
	movq	_BTN_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movzbl	7(%r13), %edx
	andl	$8, %edx
	movq	%r14, %rdi
	callq	_wacom_report_key
	movq	_BTN_1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movzbl	7(%r13), %edx
	andl	$32, %edx
	movq	%r14, %rdi
	callq	_wacom_report_key
	movq	_BTN_4@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movzbl	7(%r13), %edx
	andl	$16, %edx
	movq	%r14, %rdi
	callq	_wacom_report_key
	movq	_BTN_5@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movzbl	7(%r13), %edx
	andl	$64, %edx
	movq	%r14, %rdi
	callq	_wacom_report_key
	movq	_ABS_WHEEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	8(%r13), %edx
	andl	$127, %edx
	movq	%r14, %rdi
	callq	_wacom_report_abs
	jmp	LBB0_28
LBB0_27:
	movq	%r14, %rdi
	callq	_wacom_input_sync
	movq	_PAD_DEVICE_ID@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movq	16(%r12), %rcx
	movb	%al, 1(%rcx)
	movq	_BTN_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movzbl	7(%r13), %edx
	andl	$64, %edx
	movq	%r14, %rdi
	callq	_wacom_report_key
	movq	_BTN_4@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movzbl	7(%r13), %edx
	andl	$-128, %edx
	movq	%r14, %rdi
	callq	_wacom_report_key
	movzbl	7(%r13), %eax
	shrl	$3, %eax
	movl	%eax, %edx
	andl	$3, %edx
	andl	$4, %eax
	subl	%eax, %edx
	movq	_REL_WHEEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wacom_report_rel
LBB0_28:
	movq	_BTN_TOOL_FINGER@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	movl	$240, %edx
	callq	_wacom_report_key
	movq	_ABS_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%r12), %rax
	movzbl	1(%rax), %edx
	movq	%r14, %rdi
	jmp	LBB0_37
LBB0_34:
	movq	16(%r12), %rax
	cmpb	$0, 1(%rax)
	je	LBB0_38
## %bb.35:
	movq	%r14, %rdi
	callq	_wacom_input_sync
	movq	16(%r12), %rax
	movb	$0, 1(%rax)
	movq	_BTN_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movzbl	7(%r13), %edx
	andl	$8, %edx
	movq	%r14, %rdi
	callq	_wacom_report_key
	movq	_BTN_1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movzbl	7(%r13), %edx
	andl	$32, %edx
	movq	%r14, %rdi
	callq	_wacom_report_key
	movq	_BTN_4@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movzbl	7(%r13), %edx
	andl	$16, %edx
	movq	%r14, %rdi
	callq	_wacom_report_key
	movq	_BTN_5@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movzbl	7(%r13), %edx
	andl	$64, %edx
	movq	%r14, %rdi
	callq	_wacom_report_key
	movq	_ABS_WHEEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	8(%r13), %edx
	andl	$127, %edx
	movq	%r14, %rdi
	callq	_wacom_report_abs
LBB0_36:
	movq	_BTN_TOOL_FINGER@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_wacom_report_key
	movq	_ABS_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
LBB0_37:
	callq	_wacom_report_abs
	movq	_EV_MSC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MSC_SERIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$240, %ecx
	callq	_wacom_input_event
LBB0_38:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wacom_graphire_irq: received unknown report #%d"

	.comm	_BTN_TOOL_PEN,8,3               ## @BTN_TOOL_PEN
	.comm	_STYLUS_DEVICE_ID,1,0           ## @STYLUS_DEVICE_ID
	.comm	_BTN_TOOL_RUBBER,8,3            ## @BTN_TOOL_RUBBER
	.comm	_ERASER_DEVICE_ID,1,0           ## @ERASER_DEVICE_ID
	.comm	_BTN_MIDDLE,8,3                 ## @BTN_MIDDLE
	.comm	_REL_WHEEL,4,2                  ## @REL_WHEEL
	.comm	_BTN_TOOL_MOUSE,8,3             ## @BTN_TOOL_MOUSE
	.comm	_CURSOR_DEVICE_ID,1,0           ## @CURSOR_DEVICE_ID
	.comm	_BTN_LEFT,8,3                   ## @BTN_LEFT
	.comm	_BTN_RIGHT,8,3                  ## @BTN_RIGHT
	.comm	_ABS_DISTANCE,4,2               ## @ABS_DISTANCE
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_ABS_PRESSURE,4,2               ## @ABS_PRESSURE
	.comm	_BTN_TOUCH,8,3                  ## @BTN_TOUCH
	.comm	_BTN_STYLUS,8,3                 ## @BTN_STYLUS
	.comm	_BTN_STYLUS2,8,3                ## @BTN_STYLUS2
	.comm	_ABS_MISC,4,2                   ## @ABS_MISC
	.comm	_PAD_DEVICE_ID,8,3              ## @PAD_DEVICE_ID
	.comm	_BTN_0,8,3                      ## @BTN_0
	.comm	_BTN_4,8,3                      ## @BTN_4
	.comm	_BTN_TOOL_FINGER,8,3            ## @BTN_TOOL_FINGER
	.comm	_EV_MSC,4,2                     ## @EV_MSC
	.comm	_MSC_SERIAL,4,2                 ## @MSC_SERIAL
	.comm	_BTN_1,8,3                      ## @BTN_1
	.comm	_BTN_5,8,3                      ## @BTN_5
	.comm	_ABS_WHEEL,4,2                  ## @ABS_WHEEL
	.no_dead_strip	_wacom_graphire_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wacom_graphire_irq
_wacom_graphire_irq:                    ; @wacom_graphire_irq
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	ldr	x23, [x0]
	ldrb	w1, [x23]
	cmp	w1, #2
	b.ne	LBB0_5
; %bb.1:
	mov	x20, x0
	ldrb	w8, [x23, #1]
	tbnz	w8, #7, LBB0_6
; %bb.2:
	ldr	x8, [x20, #16]
	ldrb	w8, [x8]
	cbz	w8, LBB0_24
; %bb.3:
Lloh0:
	adrp	x8, _ABS_X@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_wacom_report_abs
Lloh3:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_wacom_report_abs
	mov	x21, x20
	ldr	x8, [x21, #8]!
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _BTN_TOOL_MOUSE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BTN_TOOL_MOUSE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.4:
Lloh9:
	adrp	x8, _BTN_LEFT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BTN_LEFT@GOTPAGEOFF]
Lloh11:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_wacom_report_key
Lloh12:
	adrp	x8, _BTN_RIGHT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BTN_RIGHT@GOTPAGEOFF]
Lloh14:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_wacom_report_key
Lloh15:
	adrp	x8, _ABS_DISTANCE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ABS_DISTANCE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_wacom_report_abs
	b	LBB0_9
LBB0_5:
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg
	mov	w0, #0
	b	LBB0_39
LBB0_6:
	ubfx	w9, w8, #5, #2
Lloh20:
	adrp	x10, lJTI0_0@PAGE
Lloh21:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_7
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
Lloh22:
	adrp	x24, _BTN_TOOL_MOUSE@GOTPAGE
Lloh23:
	ldr	x24, [x24, _BTN_TOOL_MOUSE@GOTPAGEOFF]
	br	x11
LBB0_7:
Lloh24:
	adrp	x8, _BTN_TOOL_PEN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BTN_TOOL_PEN@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	ldp	x9, x10, [x20, #8]
	str	x8, [x9]
Lloh27:
	adrp	x8, _STYLUS_DEVICE_ID@GOTPAGE
Lloh28:
	ldr	x8, [x8, _STYLUS_DEVICE_ID@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
Lloh29:
	adrp	x8, _ABS_PRESSURE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ABS_PRESSURE@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_wacom_report_abs
Lloh32:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh33:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh34:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_wacom_report_key
Lloh35:
	adrp	x8, _BTN_STYLUS@GOTPAGE
Lloh36:
	ldr	x8, [x8, _BTN_STYLUS@GOTPAGEOFF]
Lloh37:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_wacom_report_key
Lloh38:
	adrp	x8, _BTN_STYLUS2@GOTPAGE
Lloh39:
	ldr	x8, [x8, _BTN_STYLUS2@GOTPAGEOFF]
Lloh40:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_wacom_report_key
LBB0_9:
	ldr	x8, [x20, #16]
	strb	wzr, [x8]
Lloh41:
	adrp	x8, _ABS_MISC@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ABS_MISC@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_wacom_report_abs
	mov	w2, #0
	b	LBB0_23
LBB0_10:
Lloh44:
	adrp	x8, _BTN_TOOL_RUBBER@GOTPAGE
Lloh45:
	ldr	x8, [x8, _BTN_TOOL_RUBBER@GOTPAGEOFF]
Lloh46:
	ldr	x8, [x8]
	ldp	x9, x10, [x20, #8]
	str	x8, [x9]
Lloh47:
	adrp	x8, _ERASER_DEVICE_ID@GOTPAGE
Lloh48:
	ldr	x8, [x8, _ERASER_DEVICE_ID@GOTPAGEOFF]
LBB0_11:
	ldrb	w8, [x8]
	strb	w8, [x10]
	b	LBB0_20
LBB0_12:
Lloh49:
	adrp	x9, _BTN_MIDDLE@GOTPAGE
Lloh50:
	ldr	x9, [x9, _BTN_MIDDLE@GOTPAGEOFF]
Lloh51:
	ldr	x1, [x9]
	and	w2, w8, #0x4
	mov	x0, x19
	bl	_wacom_report_key
	ldr	x8, [x20, #24]
	ldr	w8, [x8]
	and	w8, w8, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_14
; %bb.13:
	ldrb	w8, [x23, #7]
	and	w9, w8, #0x4
	and	w8, w8, #0x3
	sub	w2, w9, w8
Lloh52:
	adrp	x8, _REL_WHEEL@GOTPAGE
Lloh53:
	ldr	x8, [x8, _REL_WHEEL@GOTPAGEOFF]
Lloh54:
	ldr	w1, [x8]
	b	LBB0_15
LBB0_14:
Lloh55:
	adrp	x8, _REL_WHEEL@GOTPAGE
Lloh56:
	ldr	x8, [x8, _REL_WHEEL@GOTPAGEOFF]
Lloh57:
	ldr	w1, [x8]
	ldrsb	w8, [x23, #6]
	neg	w2, w8
LBB0_15:
	mov	x0, x19
	bl	_wacom_report_rel
LBB0_16:
	ldr	x8, [x24]
	ldp	x9, x10, [x20, #8]
	str	x8, [x9]
Lloh58:
	adrp	x8, _CURSOR_DEVICE_ID@GOTPAGE
Lloh59:
	ldr	x8, [x8, _CURSOR_DEVICE_ID@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [x10]
Lloh60:
	adrp	x8, _BTN_LEFT@GOTPAGE
Lloh61:
	ldr	x8, [x8, _BTN_LEFT@GOTPAGEOFF]
Lloh62:
	ldr	x1, [x8]
	ldrb	w8, [x23, #1]
	and	w2, w8, #0x1
	mov	x0, x19
	bl	_wacom_report_key
Lloh63:
	adrp	x8, _BTN_RIGHT@GOTPAGE
Lloh64:
	ldr	x8, [x8, _BTN_RIGHT@GOTPAGEOFF]
Lloh65:
	ldr	x1, [x8]
	ldrb	w8, [x23, #1]
	and	w2, w8, #0x2
	mov	x0, x19
	bl	_wacom_report_key
	ldr	x8, [x20, #24]
	ldr	w8, [x8]
	and	w8, w8, #0xfffffffe
Lloh66:
	adrp	x9, _ABS_DISTANCE@GOTPAGE
Lloh67:
	ldr	x9, [x9, _ABS_DISTANCE@GOTPAGEOFF]
Lloh68:
	ldr	w1, [x9]
	cmp	w8, #128
	b.ne	LBB0_18
; %bb.17:
	ldrb	w8, [x23, #6]
	b	LBB0_19
LBB0_18:
	ldrb	w8, [x23, #7]
LBB0_19:
	and	w2, w8, #0x3f
	mov	x0, x19
	bl	_wacom_report_abs
LBB0_20:
	add	x0, x23, #2
	bl	_wacom_le16_to_cpu
	mov	x21, x0
	add	x0, x23, #4
	bl	_wacom_le16_to_cpu
	mov	x22, x0
Lloh69:
	adrp	x8, _ABS_X@GOTPAGE
Lloh70:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh71:
	ldr	w1, [x8]
	and	w2, w21, #0xff
	mov	x0, x19
	bl	_wacom_report_abs
Lloh72:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh73:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh74:
	ldr	w1, [x8]
	and	w2, w22, #0xff
	mov	x0, x19
	bl	_wacom_report_abs
	mov	x21, x20
	ldr	x8, [x21, #8]!
	ldr	x8, [x8]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_22
; %bb.21:
Lloh75:
	adrp	x8, _ABS_PRESSURE@GOTPAGE
Lloh76:
	ldr	x8, [x8, _ABS_PRESSURE@GOTPAGEOFF]
Lloh77:
	ldr	w1, [x8]
	ldrb	w2, [x23, #6]
	mov	x0, x19
	bl	_wacom_report_abs
Lloh78:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh79:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh80:
	ldr	x1, [x8]
	ldrb	w8, [x23, #1]
	and	w2, w8, #0x1
	mov	x0, x19
	bl	_wacom_report_key
Lloh81:
	adrp	x8, _BTN_STYLUS@GOTPAGE
Lloh82:
	ldr	x8, [x8, _BTN_STYLUS@GOTPAGEOFF]
Lloh83:
	ldr	x1, [x8]
	ldrb	w8, [x23, #1]
	and	w2, w8, #0x2
	mov	x0, x19
	bl	_wacom_report_key
Lloh84:
	adrp	x8, _BTN_STYLUS2@GOTPAGE
Lloh85:
	ldr	x8, [x8, _BTN_STYLUS2@GOTPAGEOFF]
Lloh86:
	ldr	x1, [x8]
	ldrb	w8, [x23, #1]
	and	w2, w8, #0x4
	mov	x0, x19
	bl	_wacom_report_key
LBB0_22:
Lloh87:
	adrp	x8, _ABS_MISC@GOTPAGE
Lloh88:
	ldr	x8, [x8, _ABS_MISC@GOTPAGEOFF]
Lloh89:
	ldr	w1, [x8]
	ldr	x8, [x20, #16]
	ldrb	w2, [x8]
	mov	x0, x19
	bl	_wacom_report_abs
	mov	w2, #1
LBB0_23:
	ldr	x8, [x21]
	ldr	x1, [x8]
	mov	x0, x19
	bl	_wacom_report_key
LBB0_24:
	ldr	x8, [x20, #24]
	ldr	w8, [x8]
	cmp	w8, #128
	b.eq	LBB0_29
; %bb.25:
	cmp	w8, #129
	b.ne	LBB0_38
; %bb.26:
	ldrb	w8, [x23, #7]
	cmp	w8, #8
	b.hs	LBB0_32
; %bb.27:
	ldr	x8, [x20, #16]
	ldrb	w8, [x8, #1]
	cbz	w8, LBB0_38
; %bb.28:
	mov	x0, x19
	bl	_wacom_input_sync
	ldr	x8, [x20, #16]
	strb	wzr, [x8, #1]
Lloh90:
	adrp	x8, _BTN_0@GOTPAGE
Lloh91:
	ldr	x8, [x8, _BTN_0@GOTPAGEOFF]
Lloh92:
	ldr	x1, [x8]
	ldrb	w8, [x23, #7]
	and	w2, w8, #0x40
	mov	x0, x19
	bl	_wacom_report_key
Lloh93:
	adrp	x8, _BTN_4@GOTPAGE
Lloh94:
	ldr	x8, [x8, _BTN_4@GOTPAGEOFF]
Lloh95:
	ldr	x1, [x8]
	ldrb	w8, [x23, #7]
	and	w2, w8, #0x80
	mov	x0, x19
	bl	_wacom_report_key
	b	LBB0_36
LBB0_29:
	ldrb	w8, [x23, #7]
	cmp	w8, #7
	b.hi	LBB0_31
; %bb.30:
	ldrb	w8, [x23, #8]
	cbz	w8, LBB0_34
LBB0_31:
	mov	x0, x19
	bl	_wacom_input_sync
Lloh96:
	adrp	x8, _PAD_DEVICE_ID@GOTPAGE
Lloh97:
	ldr	x8, [x8, _PAD_DEVICE_ID@GOTPAGEOFF]
Lloh98:
	ldr	x8, [x8]
	ldr	x9, [x20, #16]
	strb	w8, [x9, #1]
Lloh99:
	adrp	x8, _BTN_0@GOTPAGE
Lloh100:
	ldr	x8, [x8, _BTN_0@GOTPAGEOFF]
Lloh101:
	ldr	x1, [x8]
	ldrb	w8, [x23, #7]
	and	w2, w8, #0x8
	mov	x0, x19
	bl	_wacom_report_key
Lloh102:
	adrp	x8, _BTN_1@GOTPAGE
Lloh103:
	ldr	x8, [x8, _BTN_1@GOTPAGEOFF]
Lloh104:
	ldr	x1, [x8]
	ldrb	w8, [x23, #7]
	and	w2, w8, #0x20
	mov	x0, x19
	bl	_wacom_report_key
Lloh105:
	adrp	x8, _BTN_4@GOTPAGE
Lloh106:
	ldr	x8, [x8, _BTN_4@GOTPAGEOFF]
Lloh107:
	ldr	x1, [x8]
	ldrb	w8, [x23, #7]
	and	w2, w8, #0x10
	mov	x0, x19
	bl	_wacom_report_key
Lloh108:
	adrp	x8, _BTN_5@GOTPAGE
Lloh109:
	ldr	x8, [x8, _BTN_5@GOTPAGEOFF]
Lloh110:
	ldr	x1, [x8]
	ldrb	w8, [x23, #7]
	and	w2, w8, #0x40
	mov	x0, x19
	bl	_wacom_report_key
Lloh111:
	adrp	x8, _ABS_WHEEL@GOTPAGE
Lloh112:
	ldr	x8, [x8, _ABS_WHEEL@GOTPAGEOFF]
Lloh113:
	ldr	w1, [x8]
	ldrb	w8, [x23, #8]
	and	w2, w8, #0x7f
	mov	x0, x19
	bl	_wacom_report_abs
	b	LBB0_33
LBB0_32:
	mov	x0, x19
	bl	_wacom_input_sync
Lloh114:
	adrp	x8, _PAD_DEVICE_ID@GOTPAGE
Lloh115:
	ldr	x8, [x8, _PAD_DEVICE_ID@GOTPAGEOFF]
Lloh116:
	ldr	x8, [x8]
	ldr	x9, [x20, #16]
	strb	w8, [x9, #1]
Lloh117:
	adrp	x8, _BTN_0@GOTPAGE
Lloh118:
	ldr	x8, [x8, _BTN_0@GOTPAGEOFF]
Lloh119:
	ldr	x1, [x8]
	ldrb	w8, [x23, #7]
	and	w2, w8, #0x40
	mov	x0, x19
	bl	_wacom_report_key
Lloh120:
	adrp	x8, _BTN_4@GOTPAGE
Lloh121:
	ldr	x8, [x8, _BTN_4@GOTPAGEOFF]
Lloh122:
	ldr	x1, [x8]
	ldrb	w8, [x23, #7]
	and	w2, w8, #0x80
	mov	x0, x19
	bl	_wacom_report_key
	ldrb	w8, [x23, #7]
	lsr	w9, w8, #3
	ubfx	w8, w8, #3, #2
	and	w9, w9, #0x4
	sub	w2, w8, w9
Lloh123:
	adrp	x8, _REL_WHEEL@GOTPAGE
Lloh124:
	ldr	x8, [x8, _REL_WHEEL@GOTPAGEOFF]
Lloh125:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wacom_report_rel
LBB0_33:
Lloh126:
	adrp	x8, _BTN_TOOL_FINGER@GOTPAGE
Lloh127:
	ldr	x8, [x8, _BTN_TOOL_FINGER@GOTPAGEOFF]
Lloh128:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #240
	bl	_wacom_report_key
Lloh129:
	adrp	x8, _ABS_MISC@GOTPAGE
Lloh130:
	ldr	x8, [x8, _ABS_MISC@GOTPAGEOFF]
Lloh131:
	ldr	w1, [x8]
	ldr	x8, [x20, #16]
	ldrb	w2, [x8, #1]
	mov	x0, x19
	b	LBB0_37
LBB0_34:
	ldr	x8, [x20, #16]
	ldrb	w8, [x8, #1]
	cbz	w8, LBB0_38
; %bb.35:
	mov	x0, x19
	bl	_wacom_input_sync
	ldr	x8, [x20, #16]
	strb	wzr, [x8, #1]
Lloh132:
	adrp	x8, _BTN_0@GOTPAGE
Lloh133:
	ldr	x8, [x8, _BTN_0@GOTPAGEOFF]
Lloh134:
	ldr	x1, [x8]
	ldrb	w8, [x23, #7]
	and	w2, w8, #0x8
	mov	x0, x19
	bl	_wacom_report_key
Lloh135:
	adrp	x8, _BTN_1@GOTPAGE
Lloh136:
	ldr	x8, [x8, _BTN_1@GOTPAGEOFF]
Lloh137:
	ldr	x1, [x8]
	ldrb	w8, [x23, #7]
	and	w2, w8, #0x20
	mov	x0, x19
	bl	_wacom_report_key
Lloh138:
	adrp	x8, _BTN_4@GOTPAGE
Lloh139:
	ldr	x8, [x8, _BTN_4@GOTPAGEOFF]
Lloh140:
	ldr	x1, [x8]
	ldrb	w8, [x23, #7]
	and	w2, w8, #0x10
	mov	x0, x19
	bl	_wacom_report_key
Lloh141:
	adrp	x8, _BTN_5@GOTPAGE
Lloh142:
	ldr	x8, [x8, _BTN_5@GOTPAGEOFF]
Lloh143:
	ldr	x1, [x8]
	ldrb	w8, [x23, #7]
	and	w2, w8, #0x40
	mov	x0, x19
	bl	_wacom_report_key
Lloh144:
	adrp	x8, _ABS_WHEEL@GOTPAGE
Lloh145:
	ldr	x8, [x8, _ABS_WHEEL@GOTPAGEOFF]
Lloh146:
	ldr	w1, [x8]
	ldrb	w8, [x23, #8]
	and	w2, w8, #0x7f
	mov	x0, x19
	bl	_wacom_report_abs
LBB0_36:
Lloh147:
	adrp	x8, _BTN_TOOL_FINGER@GOTPAGE
Lloh148:
	ldr	x8, [x8, _BTN_TOOL_FINGER@GOTPAGEOFF]
Lloh149:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_wacom_report_key
Lloh150:
	adrp	x8, _ABS_MISC@GOTPAGE
Lloh151:
	ldr	x8, [x8, _ABS_MISC@GOTPAGEOFF]
Lloh152:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
LBB0_37:
	bl	_wacom_report_abs
Lloh153:
	adrp	x8, _EV_MSC@GOTPAGE
Lloh154:
	ldr	x8, [x8, _EV_MSC@GOTPAGEOFF]
Lloh155:
	ldr	w1, [x8]
Lloh156:
	adrp	x8, _MSC_SERIAL@GOTPAGE
Lloh157:
	ldr	x8, [x8, _MSC_SERIAL@GOTPAGEOFF]
Lloh158:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #240
	bl	_wacom_input_event
LBB0_38:
	mov	w0, #1
LBB0_39:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh111, Lloh112, Lloh113
	.loh AdrpLdrGotLdr	Lloh108, Lloh109, Lloh110
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh123, Lloh124, Lloh125
	.loh AdrpLdrGotLdr	Lloh120, Lloh121, Lloh122
	.loh AdrpLdrGotLdr	Lloh117, Lloh118, Lloh119
	.loh AdrpLdrGotLdr	Lloh114, Lloh115, Lloh116
	.loh AdrpLdrGotLdr	Lloh129, Lloh130, Lloh131
	.loh AdrpLdrGotLdr	Lloh126, Lloh127, Lloh128
	.loh AdrpLdrGotLdr	Lloh144, Lloh145, Lloh146
	.loh AdrpLdrGotLdr	Lloh141, Lloh142, Lloh143
	.loh AdrpLdrGotLdr	Lloh138, Lloh139, Lloh140
	.loh AdrpLdrGotLdr	Lloh135, Lloh136, Lloh137
	.loh AdrpLdrGotLdr	Lloh132, Lloh133, Lloh134
	.loh AdrpLdrGotLdr	Lloh150, Lloh151, Lloh152
	.loh AdrpLdrGotLdr	Lloh147, Lloh148, Lloh149
	.loh AdrpLdrGotLdr	Lloh156, Lloh157, Lloh158
	.loh AdrpLdrGotLdr	Lloh153, Lloh154, Lloh155
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_12-LBB0_7)>>2
	.byte	(LBB0_16-LBB0_7)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wacom_graphire_irq: received unknown report #%d"

	.comm	_BTN_TOOL_PEN,8,3               ; @BTN_TOOL_PEN
	.comm	_STYLUS_DEVICE_ID,1,0           ; @STYLUS_DEVICE_ID
	.comm	_BTN_TOOL_RUBBER,8,3            ; @BTN_TOOL_RUBBER
	.comm	_ERASER_DEVICE_ID,1,0           ; @ERASER_DEVICE_ID
	.comm	_BTN_MIDDLE,8,3                 ; @BTN_MIDDLE
	.comm	_REL_WHEEL,4,2                  ; @REL_WHEEL
	.comm	_BTN_TOOL_MOUSE,8,3             ; @BTN_TOOL_MOUSE
	.comm	_CURSOR_DEVICE_ID,1,0           ; @CURSOR_DEVICE_ID
	.comm	_BTN_LEFT,8,3                   ; @BTN_LEFT
	.comm	_BTN_RIGHT,8,3                  ; @BTN_RIGHT
	.comm	_ABS_DISTANCE,4,2               ; @ABS_DISTANCE
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_ABS_PRESSURE,4,2               ; @ABS_PRESSURE
	.comm	_BTN_TOUCH,8,3                  ; @BTN_TOUCH
	.comm	_BTN_STYLUS,8,3                 ; @BTN_STYLUS
	.comm	_BTN_STYLUS2,8,3                ; @BTN_STYLUS2
	.comm	_ABS_MISC,4,2                   ; @ABS_MISC
	.comm	_PAD_DEVICE_ID,8,3              ; @PAD_DEVICE_ID
	.comm	_BTN_0,8,3                      ; @BTN_0
	.comm	_BTN_4,8,3                      ; @BTN_4
	.comm	_BTN_TOOL_FINGER,8,3            ; @BTN_TOOL_FINGER
	.comm	_EV_MSC,4,2                     ; @EV_MSC
	.comm	_MSC_SERIAL,4,2                 ; @MSC_SERIAL
	.comm	_BTN_1,8,3                      ; @BTN_1
	.comm	_BTN_5,8,3                      ; @BTN_5
	.comm	_ABS_WHEEL,4,2                  ; @ABS_WHEEL
	.no_dead_strip	_wacom_graphire_irq
.subsections_via_symbols
