	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wacom_intuos_pad
_wacom_intuos_pad:                      ## @wacom_intuos_pad
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r15
	movq	24(%rdi), %r14
	movl	32(%rdi), %r13d
	movb	(%r15), %cl
	movq	_WACOM_REPORT_INTUOSPAD@GOTPCREL(%rip), %rax
	cmpb	(%rax), %cl
	je	LBB0_3
## %bb.1:
	movq	_WACOM_REPORT_INTUOS5PAD@GOTPCREL(%rip), %rax
	cmpb	(%rax), %cl
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	movq	_WACOM_REPORT_CINTIQPAD@GOTPCREL(%rip), %rdx
	cmpb	(%rdx), %cl
	jne	LBB0_48
LBB0_3:
	movq	40(%rdi), %rax
	movq	_INTUOS4S@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	jl	LBB0_9
## %bb.4:
	movq	_INTUOS4L@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_9
## %bb.5:
	movzbl	3(%r15), %eax
	movzbl	2(%r15), %ecx
	andl	$1, %ecx
	leal	(%rcx,%rax,2), %edx
	movb	1(%r15), %al
LBB0_6:
	xorl	%r11d, %r11d
	xorl	%r15d, %r15d
	jmp	LBB0_7
LBB0_9:
	movq	_DTK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.10:
	movzbl	6(%r15), %edx
	jmp	LBB0_11
LBB0_12:
	movq	_WACOM_13HD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
LBB0_13:
	movzbl	4(%r15), %eax
	movzbl	3(%r15), %ecx
	andl	$1, %ecx
	leal	(%rcx,%rax,2), %edx
LBB0_11:
	xorl	%r11d, %r11d
	xorl	%r15d, %r15d
	xorl	%eax, %eax
LBB0_7:
	xorl	%ecx, %ecx
	xorl	%r10d, %r10d
	xorl	%r8d, %r8d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%r12d, %r12d
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
LBB0_8:
	xorl	%edi, %edi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
LBB0_39:
	movzbl	%r12b, %esi
	movl	%esi, -68(%rbp)                 ## 4-byte Spill
	movzbl	%cl, %esi
	movzbl	%al, %ebx
	movl	$-1, %edi
	movl	$-1, %eax
	movl	%r13d, %ecx
	shll	%cl, %eax
	notl	%eax
	andl	%edx, %eax
	movl	%r15d, %ecx
	shll	%cl, %edi
	notl	%edi
	andl	%r11d, %edi
	movl	%ebx, -80(%rbp)                 ## 4-byte Spill
	andl	$-128, %ebx
	movl	%ebx, -72(%rbp)                 ## 4-byte Spill
	orl	%ebx, %edi
	orl	%eax, %edi
	movl	%edi, -88(%rbp)                 ## 4-byte Spill
	movl	%esi, -84(%rbp)                 ## 4-byte Spill
	andl	$-128, %esi
	movl	%r10d, -60(%rbp)                ## 4-byte Spill
	movl	%esi, -76(%rbp)                 ## 4-byte Spill
	orl	%esi, %r10d
	movl	%r8d, -92(%rbp)                 ## 4-byte Spill
	orl	%r8d, %r10d
	movl	%r10d, -64(%rbp)                ## 4-byte Spill
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%r11d, %r12d
	callq	_wacom_report_numbered_buttons
	testl	%r15d, %r15d
	movl	%r15d, %eax
	movq	%r14, %r15
	je	LBB0_42
## %bb.40:
	movl	%eax, %ebx
	xorl	%r14d, %r14d
	movq	_KEY_PROG1@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_41:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rsi
	addq	%r14, %rsi
	movl	$1, %edx
	movl	%r14d, %ecx
	shll	%cl, %edx
	andl	%r12d, %edx
	movq	%r15, %rdi
	callq	_input_report_key
	incq	%r14
	cmpq	%r14, %rbx
	jne	LBB0_41
LBB0_42:
	movl	-88(%rbp), %r12d                ## 4-byte Reload
	orl	-64(%rbp), %r12d                ## 4-byte Folded Reload
	movq	_KEY_BUTTONCONFIG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_input_report_key
	movq	_KEY_ONSCREEN_KEYBOARD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	callq	_input_report_key
	movq	_KEY_CONTROLPANEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_input_report_key
	movq	_KEY_INFO@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_input_report_key
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movq	16(%r14), %rax
	testq	%rax, %rax
	je	LBB0_45
## %bb.43:
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_45
## %bb.44:
	movq	_SW_MUTE_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	xorl	%edx, %edx
	cmpl	$0, (%rax)
	sete	%dl
	callq	_input_report_switch
	movq	16(%r14), %rax
	movq	8(%rax), %rdi
	callq	_input_sync
LBB0_45:
	movq	_ABS_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	callq	_input_report_abs
	movq	_ABS_RY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	-92(%rbp), %edx                 ## 4-byte Reload
	callq	_input_report_abs
	movq	_ABS_WHEEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-80(%rbp), %edx                 ## 4-byte Reload
	andl	$127, %edx
	movl	-72(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	cmovel	%eax, %edx
	movq	%r15, %rdi
	callq	_input_report_abs
	movq	_ABS_THROTTLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-84(%rbp), %edx                 ## 4-byte Reload
	andl	$127, %edx
	movl	-76(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	cmovel	%eax, %edx
	movq	%r15, %rdi
	callq	_input_report_abs
	movq	8(%r14), %rax
	movq	8(%rax), %rsi
	xorl	%edx, %edx
	testl	%r12d, %r12d
	setne	%dl
	movq	%r15, %rdi
	callq	_input_report_key
	movq	_ABS_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%r12d, %r12d
	je	LBB0_47
## %bb.46:
	movq	_PAD_DEVICE_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_47:
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_input_report_abs
	movq	_EV_MSC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MSC_SERIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$-1, %ecx
	callq	_input_event
	movl	$1, %eax
LBB0_48:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_WACOM_24HD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.15:
	movzbl	8(%r15), %eax
	shll	$8, %eax
	movzbl	6(%r15), %edx
	orl	%eax, %edx
	movb	1(%r15), %al
	movb	2(%r15), %cl
	xorl	%r10d, %r10d
	testb	$28, 3(%r15)
	setne	%r10b
	leal	(,%r10,4), %r8d
	movzbl	4(%r15), %r9d
	xorl	%r12d, %r12d
	testb	$-32, %r9b
	setne	%r12b
	leal	(%r8,%r12,2), %r11d
	xorl	%esi, %esi
	testb	$7, %r9b
	setne	%sil
	orl	%esi, %r11d
	movl	$3, %r15d
	cmpq	$0, 48(%rdi)
	movq	%r10, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_16
## %bb.17:
	xorl	%r10d, %r10d
	testb	$7, %r9b
	je	LBB0_18
## %bb.19:
	movq	16(%rdi), %r8
	xorl	%edi, %edi
	cmpl	$0, (%r8)
	sete	%dil
	movl	%edi, (%r8)
LBB0_18:
	xorl	%r8d, %r8d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_39
LBB0_20:
	movq	_WACOM_27QHD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_26
## %bb.21:
	movzbl	2(%r15), %edx
	movl	%edx, %r12d
	andl	$2, %r12d
	shrl	%r12d
	cmpq	$0, 48(%rdi)
	je	LBB0_24
## %bb.22:
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	testb	$4, %dl
	je	LBB0_25
## %bb.23:
	movq	16(%rdi), %rax
	xorl	%ecx, %ecx
	cmpl	$0, (%rax)
	sete	%cl
	movl	%ecx, (%rax)
	jmp	LBB0_25
LBB0_26:
	movq	_CINTIQ_HYBRID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.27:
	movq	_CINTIQ_COMPANION_2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_29
## %bb.28:
	movzbl	2(%r15), %eax
	movl	%eax, %ecx
	andl	$-16, %ecx
	shll	$3, %ecx
	movzbl	1(%r15), %esi
	movl	%esi, %edi
	shll	$4, %edi
	andl	$64, %edi
	andl	$15, %eax
	andl	$3, %esi
	leal	(%rcx,%rax,4), %edx
	orl	%esi, %edx
	orl	%edi, %edx
	jmp	LBB0_11
LBB0_16:
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	xorl	%r10d, %r10d
	xorl	%r8d, %r8d
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_39
LBB0_24:
	movl	%edx, %eax
	shrl	$2, %eax
	andl	$1, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
LBB0_25:
	movl	%edx, %eax
	andl	$7, %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	andl	$1, %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	4(%r15), %rdi
	callq	_be16_to_cpup
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_input_report_abs
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	6(%r15), %rdi
	callq	_be16_to_cpup
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_input_report_abs
	movq	_ABS_Z@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_be16_to_cpup
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_input_report_abs
	movl	-60(%rbp), %r11d                ## 4-byte Reload
	movl	$3, %r15d
	xorl	%edx, %edx
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	xorl	%r10d, %r10d
	xorl	%r8d, %r8d
	jmp	LBB0_8
LBB0_29:
	movq	_INTUOS5S@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_32
## %bb.30:
	movq	_INTUOSPL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_32
## %bb.31:
	movzbl	4(%r15), %eax
	movzbl	3(%r15), %ecx
	andl	$1, %ecx
	leal	(%rcx,%rax,2), %edx
	movb	2(%r15), %al
	jmp	LBB0_6
LBB0_32:
	movq	_WACOM_21UX2@GOTPCREL(%rip), %rdx
	movq	_WACOM_22HD@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	(%rdx), %rax
	je	LBB0_34
## %bb.33:
	cmpq	%rcx, %rax
	je	LBB0_34
## %bb.36:
	movzbl	6(%r15), %eax
	movl	%eax, %ecx
	andl	$16, %ecx
	shll	$5, %ecx
	movzbl	5(%r15), %edx
	movl	%edx, %esi
	andl	$16, %esi
	shll	$4, %esi
	shll	$4, %eax
	movzbl	%al, %eax
	orl	%ecx, %eax
	andl	$15, %edx
	orl	%eax, %edx
	orl	%esi, %edx
	xorl	%r11d, %r11d
	jmp	LBB0_37
LBB0_34:
	movzbl	8(%r15), %edx
	shll	$10, %edx
	movzbl	7(%r15), %esi
	andl	$1, %esi
	shll	$9, %esi
	orl	%edx, %esi
	movzbl	6(%r15), %edx
	leal	(%rsi,%rdx,2), %esi
	movzbl	5(%r15), %edx
	andl	$1, %edx
	orl	%esi, %edx
	xorl	%r11d, %r11d
	cmpq	%rcx, %rax
	jne	LBB0_37
## %bb.35:
	movzbl	9(%r15), %eax
	movl	%eax, %r11d
	andl	$7, %r11d
	movl	%eax, %ecx
	andl	$1, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	shrl	%eax
	andl	$1, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$3, %edi
	jmp	LBB0_38
LBB0_37:
	xorl	%edi, %edi
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_38:
	movzbl	1(%r15), %eax
	andl	$31, %eax
	shll	$8, %eax
	movzbl	2(%r15), %r10d
	orl	%eax, %r10d
	movzbl	3(%r15), %eax
	andl	$31, %eax
	shll	$8, %eax
	movzbl	4(%r15), %r8d
	orl	%eax, %r8d
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	xorl	%r12d, %r12d
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movl	%edi, %r15d
	jmp	LBB0_39
	.cfi_endproc
                                        ## -- End function
	.comm	_WACOM_REPORT_INTUOSPAD,1,0     ## @WACOM_REPORT_INTUOSPAD
	.comm	_WACOM_REPORT_INTUOS5PAD,1,0    ## @WACOM_REPORT_INTUOS5PAD
	.comm	_WACOM_REPORT_CINTIQPAD,1,0     ## @WACOM_REPORT_CINTIQPAD
	.comm	_INTUOS4S,8,3                   ## @INTUOS4S
	.comm	_INTUOS4L,8,3                   ## @INTUOS4L
	.comm	_DTK,8,3                        ## @DTK
	.comm	_WACOM_13HD,8,3                 ## @WACOM_13HD
	.comm	_WACOM_24HD,8,3                 ## @WACOM_24HD
	.comm	_WACOM_27QHD,8,3                ## @WACOM_27QHD
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_ABS_Z,4,2                      ## @ABS_Z
	.comm	_CINTIQ_HYBRID,8,3              ## @CINTIQ_HYBRID
	.comm	_CINTIQ_COMPANION_2,8,3         ## @CINTIQ_COMPANION_2
	.comm	_INTUOS5S,8,3                   ## @INTUOS5S
	.comm	_INTUOSPL,8,3                   ## @INTUOSPL
	.comm	_WACOM_21UX2,8,3                ## @WACOM_21UX2
	.comm	_WACOM_22HD,8,3                 ## @WACOM_22HD
	.comm	_KEY_PROG1,8,3                  ## @KEY_PROG1
	.comm	_KEY_BUTTONCONFIG,8,3           ## @KEY_BUTTONCONFIG
	.comm	_KEY_ONSCREEN_KEYBOARD,8,3      ## @KEY_ONSCREEN_KEYBOARD
	.comm	_KEY_CONTROLPANEL,8,3           ## @KEY_CONTROLPANEL
	.comm	_KEY_INFO,8,3                   ## @KEY_INFO
	.comm	_SW_MUTE_DEVICE,4,2             ## @SW_MUTE_DEVICE
	.comm	_ABS_RX,4,2                     ## @ABS_RX
	.comm	_ABS_RY,4,2                     ## @ABS_RY
	.comm	_ABS_WHEEL,4,2                  ## @ABS_WHEEL
	.comm	_ABS_THROTTLE,4,2               ## @ABS_THROTTLE
	.comm	_ABS_MISC,4,2                   ## @ABS_MISC
	.comm	_PAD_DEVICE_ID,4,2              ## @PAD_DEVICE_ID
	.comm	_EV_MSC,4,2                     ## @EV_MSC
	.comm	_MSC_SERIAL,4,2                 ## @MSC_SERIAL
	.no_dead_strip	_wacom_intuos_pad
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wacom_intuos_pad
_wacom_intuos_pad:                      ; @wacom_intuos_pad
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x24, [x0]
	ldrb	w8, [x24]
Lloh0:
	adrp	x9, _WACOM_REPORT_INTUOSPAD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WACOM_REPORT_INTUOSPAD@GOTPAGEOFF]
	ldrb	w9, [x9]
Lloh2:
	adrp	x10, _WACOM_REPORT_INTUOS5PAD@GOTPAGE
Lloh3:
	ldr	x10, [x10, _WACOM_REPORT_INTUOS5PAD@GOTPAGEOFF]
	ldrb	w10, [x10]
Lloh4:
	adrp	x11, _WACOM_REPORT_CINTIQPAD@GOTPAGE
Lloh5:
	ldr	x11, [x11, _WACOM_REPORT_CINTIQPAD@GOTPAGEOFF]
	ldrb	w11, [x11]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	ccmp	w8, w11, #4, ne
	b.ne	LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	x19, [x0, #24]
	ldr	w1, [x0, #32]
	ldr	x8, [x0, #40]
Lloh6:
	adrp	x9, _INTUOS4S@GOTPAGE
Lloh7:
	ldr	x9, [x9, _INTUOS4S@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _INTUOS4L@GOTPAGE
Lloh10:
	ldr	x10, [x10, _INTUOS4L@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #0, ge
	b.le	LBB0_5
; %bb.2:
Lloh12:
	adrp	x9, _DTK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DTK@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	mov	w28, #0
	mov	w25, #0
	mov	w12, #0
	mov	w10, #0
	mov	w11, #0
	stp	xzr, xzr, [sp, #16]             ; 16-byte Folded Spill
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
	ldrb	w2, [x24, #6]
	b	LBB0_25
LBB0_4:
	mov	w0, #0
	b	LBB0_31
LBB0_5:
	mov	w28, #0
	mov	w25, #0
	mov	w10, #0
	mov	w11, #0
	stp	xzr, xzr, [sp, #16]             ; 16-byte Folded Spill
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
	ldrb	w8, [x24, #3]
	ldrb	w9, [x24, #2]
	and	w2, w9, #0x1
	bfi	w2, w8, #1, #8
	ldrb	w12, [x24, #1]
	b	LBB0_25
LBB0_6:
Lloh15:
	adrp	x9, _WACOM_13HD@GOTPAGE
Lloh16:
	ldr	x9, [x9, _WACOM_13HD@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
LBB0_7:
	mov	w28, #0
	mov	w25, #0
	mov	w12, #0
	mov	w10, #0
	mov	w11, #0
	stp	xzr, xzr, [sp, #16]             ; 16-byte Folded Spill
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
	ldrb	w8, [x24, #4]
	ldrb	w9, [x24, #3]
	and	w2, w9, #0x1
	bfi	w2, w8, #1, #8
	b	LBB0_25
LBB0_8:
Lloh18:
	adrp	x9, _WACOM_24HD@GOTPAGE
Lloh19:
	ldr	x9, [x9, _WACOM_24HD@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.9:
	ldrb	w8, [x24, #8]
	ldrb	w2, [x24, #6]
	bfi	w2, w8, #8, #8
	ldrb	w12, [x24, #1]
	ldrb	w10, [x24, #2]
	ldrb	w8, [x24, #3]
	tst	w8, #0x1c
	cset	w14, ne
	lsl	w9, w14, #2
	ldrb	w8, [x24, #4]
	tst	w8, #0xe0
	cset	w13, ne
	bfi	w9, w13, #1, #1
	ands	w8, w8, #0x7
	cset	w11, ne
	orr	w28, w9, w11
	ldr	x9, [x20, #48]
	stp	w14, w13, [sp, #24]             ; 8-byte Folded Spill
	cbz	x9, LBB0_19
; %bb.10:
	mov	w11, #0
	cbz	w8, LBB0_20
; %bb.11:
	str	xzr, [sp, #16]                  ; 8-byte Folded Spill
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
	ldr	x8, [x20, #16]
	ldr	w9, [x8]
	cmp	w9, #0
	cset	w9, eq
	str	w9, [x8]
	mov	w25, #3
	b	LBB0_25
LBB0_12:
Lloh21:
	adrp	x9, _WACOM_27QHD@GOTPAGE
Lloh22:
	ldr	x9, [x9, _WACOM_27QHD@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.13:
	ldrb	w8, [x24, #2]
	and	w28, w8, #0x7
	and	w10, w8, #0x1
	ubfx	w11, w8, #1, #1
	ldr	x9, [x20, #48]
	str	w10, [sp, #20]                  ; 4-byte Folded Spill
	str	w11, [sp, #28]                  ; 4-byte Folded Spill
	mov	x21, x1
	cbz	x9, LBB0_22
; %bb.14:
	tbnz	w8, #2, LBB0_23
; %bb.15:
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
	b	LBB0_24
LBB0_16:
Lloh24:
	adrp	x9, _CINTIQ_HYBRID@GOTPAGE
Lloh25:
	ldr	x9, [x9, _CINTIQ_HYBRID@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.17:
Lloh27:
	adrp	x9, _CINTIQ_COMPANION_2@GOTPAGE
Lloh28:
	ldr	x9, [x9, _CINTIQ_COMPANION_2@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_32
; %bb.18:
	mov	w28, #0
	mov	w25, #0
	mov	w12, #0
	mov	w10, #0
	mov	w11, #0
	stp	xzr, xzr, [sp, #16]             ; 16-byte Folded Spill
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
	ldrb	w8, [x24, #2]
	lsl	w9, w8, #3
	and	w2, w9, #0x780
	bfi	w2, w8, #2, #4
	ldrb	w8, [x24, #1]
	bfxil	w2, w8, #0, #2
	lsr	w8, w8, #2
	bfi	w2, w8, #6, #1
	b	LBB0_25
LBB0_19:
	stp	wzr, w11, [sp, #16]             ; 8-byte Folded Spill
	mov	w11, #0
	b	LBB0_21
LBB0_20:
	str	xzr, [sp, #16]                  ; 8-byte Folded Spill
LBB0_21:
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
	mov	w25, #3
	b	LBB0_25
LBB0_22:
	ubfx	w8, w8, #2, #1
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	b	LBB0_24
LBB0_23:
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
	ldr	x8, [x20, #16]
	ldr	w9, [x8]
	cmp	w9, #0
	cset	w9, eq
	str	w9, [x8]
LBB0_24:
Lloh30:
	adrp	x8, _ABS_X@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh32:
	ldr	w25, [x8]
	add	x0, x24, #4
	bl	_be16_to_cpup
	mov	x2, x0
	mov	x0, x19
	mov	x1, x25
	bl	_input_report_abs
Lloh33:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh35:
	ldr	w25, [x8]
	add	x0, x24, #6
	bl	_be16_to_cpup
	mov	x2, x0
	mov	x0, x19
	mov	x1, x25
	bl	_input_report_abs
Lloh36:
	adrp	x8, _ABS_Z@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ABS_Z@GOTPAGEOFF]
Lloh38:
	ldr	w25, [x8]
	add	x0, x24, #8
	bl	_be16_to_cpup
	mov	x2, x0
	mov	x0, x19
	mov	x1, x25
	bl	_input_report_abs
	mov	w2, #0
	mov	w12, #0
	mov	w10, #0
	mov	w11, #0
	str	wzr, [sp, #16]                  ; 4-byte Folded Spill
	str	wzr, [sp, #24]                  ; 4-byte Folded Spill
	mov	w25, #3
	mov	x1, x21
LBB0_25:
	mov	w8, #-1
	lsl	w9, w8, w1
	bic	w9, w2, w9
	lsl	w8, w8, w25
	bic	w8, w28, w8
	orr	w8, w8, w9
	mov	x26, x12
	and	w21, w12, #0x80
	orr	w8, w8, w21
	mov	x23, x10
	and	w24, w10, #0x80
	mov	x27, x11
	orr	w8, w8, w11
	orr	w22, w8, w24
	mov	x0, x19
	bl	_wacom_report_numbered_buttons
	cbz	w25, LBB0_27
; %bb.26:
Lloh39:
	adrp	x25, _KEY_PROG1@GOTPAGE
Lloh40:
	ldr	x25, [x25, _KEY_PROG1@GOTPAGEOFF]
	ldr	x1, [x25]
	and	w2, w28, #0x1
	mov	x0, x19
	bl	_input_report_key
	ldr	x8, [x25]
	add	x1, x8, #1
	and	w2, w28, #0x2
	mov	x0, x19
	bl	_input_report_key
	ldr	x8, [x25]
	add	x1, x8, #2
	and	w2, w28, #0x4
	mov	x0, x19
	bl	_input_report_key
LBB0_27:
	ldp	w8, w2, [sp, #16]               ; 8-byte Folded Reload
	orr	w25, w22, w8
	mov	x22, x8
Lloh41:
	adrp	x8, _KEY_BUTTONCONFIG@GOTPAGE
Lloh42:
	ldr	x8, [x8, _KEY_BUTTONCONFIG@GOTPAGEOFF]
Lloh43:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_input_report_key
Lloh44:
	adrp	x8, _KEY_ONSCREEN_KEYBOARD@GOTPAGE
Lloh45:
	ldr	x8, [x8, _KEY_ONSCREEN_KEYBOARD@GOTPAGEOFF]
Lloh46:
	ldr	x1, [x8]
	mov	x0, x19
	ldr	w2, [sp, #28]                   ; 4-byte Folded Reload
	bl	_input_report_key
Lloh47:
	adrp	x8, _KEY_CONTROLPANEL@GOTPAGE
Lloh48:
	ldr	x8, [x8, _KEY_CONTROLPANEL@GOTPAGEOFF]
Lloh49:
	ldr	x1, [x8]
	mov	x0, x19
	ldr	w2, [sp, #12]                   ; 4-byte Folded Reload
	bl	_input_report_key
Lloh50:
	adrp	x8, _KEY_INFO@GOTPAGE
Lloh51:
	ldr	x8, [x8, _KEY_INFO@GOTPAGEOFF]
Lloh52:
	ldr	x1, [x8]
	mov	x0, x19
	ldr	w2, [sp, #24]                   ; 4-byte Folded Reload
	bl	_input_report_key
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_30
; %bb.28:
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_30
; %bb.29:
Lloh53:
	adrp	x9, _SW_MUTE_DEVICE@GOTPAGE
Lloh54:
	ldr	x9, [x9, _SW_MUTE_DEVICE@GOTPAGEOFF]
Lloh55:
	ldr	w1, [x9]
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w2, eq
	bl	_input_report_switch
	ldr	x8, [x20, #16]
	ldr	x0, [x8, #8]
	bl	_input_sync
LBB0_30:
Lloh56:
	adrp	x8, _ABS_RX@GOTPAGE
Lloh57:
	ldr	x8, [x8, _ABS_RX@GOTPAGEOFF]
Lloh58:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x27
	bl	_input_report_abs
Lloh59:
	adrp	x8, _ABS_RY@GOTPAGE
Lloh60:
	ldr	x8, [x8, _ABS_RY@GOTPAGEOFF]
Lloh61:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_input_report_abs
Lloh62:
	adrp	x8, _ABS_WHEEL@GOTPAGE
Lloh63:
	ldr	x8, [x8, _ABS_WHEEL@GOTPAGEOFF]
Lloh64:
	ldr	w1, [x8]
	and	w8, w26, #0x7f
	cmp	w21, #0
	csel	w2, wzr, w8, eq
	mov	x0, x19
	bl	_input_report_abs
Lloh65:
	adrp	x8, _ABS_THROTTLE@GOTPAGE
Lloh66:
	ldr	x8, [x8, _ABS_THROTTLE@GOTPAGEOFF]
Lloh67:
	ldr	w1, [x8]
	and	w8, w23, #0x7f
	cmp	w24, #0
	csel	w2, wzr, w8, eq
	mov	x0, x19
	bl	_input_report_abs
	ldr	x8, [x20, #8]
	ldr	x1, [x8, #8]
	cmp	w25, #0
	cset	w2, ne
	mov	x0, x19
	bl	_input_report_key
Lloh68:
	adrp	x8, _ABS_MISC@GOTPAGE
Lloh69:
	ldr	x8, [x8, _ABS_MISC@GOTPAGEOFF]
Lloh70:
	ldr	w1, [x8]
Lloh71:
	adrp	x8, _PAD_DEVICE_ID@GOTPAGE
Lloh72:
	ldr	x8, [x8, _PAD_DEVICE_ID@GOTPAGEOFF]
Lloh73:
	ldr	w8, [x8]
	cmp	w25, #0
	csel	w2, wzr, w8, eq
	mov	x0, x19
	bl	_input_report_abs
Lloh74:
	adrp	x8, _EV_MSC@GOTPAGE
Lloh75:
	ldr	x8, [x8, _EV_MSC@GOTPAGEOFF]
Lloh76:
	ldr	w1, [x8]
Lloh77:
	adrp	x8, _MSC_SERIAL@GOTPAGE
Lloh78:
	ldr	x8, [x8, _MSC_SERIAL@GOTPAGEOFF]
Lloh79:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #-1
	bl	_input_event
	mov	w0, #1
LBB0_31:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_32:
Lloh80:
	adrp	x9, _INTUOS5S@GOTPAGE
Lloh81:
	ldr	x9, [x9, _INTUOS5S@GOTPAGEOFF]
Lloh82:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_35
; %bb.33:
Lloh83:
	adrp	x9, _INTUOSPL@GOTPAGE
Lloh84:
	ldr	x9, [x9, _INTUOSPL@GOTPAGEOFF]
Lloh85:
	ldr	x9, [x9]
	cmp	x8, x9
	b.gt	LBB0_35
; %bb.34:
	mov	w28, #0
	mov	w25, #0
	mov	w10, #0
	mov	w11, #0
	stp	xzr, xzr, [sp, #16]             ; 16-byte Folded Spill
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
	ldrb	w8, [x24, #4]
	ldrb	w9, [x24, #3]
	and	w2, w9, #0x1
	bfi	w2, w8, #1, #8
	ldrb	w12, [x24, #2]
	b	LBB0_25
LBB0_35:
Lloh86:
	adrp	x9, _WACOM_21UX2@GOTPAGE
Lloh87:
	ldr	x9, [x9, _WACOM_21UX2@GOTPAGEOFF]
Lloh88:
	ldr	x10, [x9]
Lloh89:
	adrp	x9, _WACOM_22HD@GOTPAGE
Lloh90:
	ldr	x9, [x9, _WACOM_22HD@GOTPAGEOFF]
Lloh91:
	ldr	x9, [x9]
	cmp	x8, x10
	b.eq	LBB0_38
; %bb.36:
	cmp	x8, x9
	b.eq	LBB0_38
; %bb.37:
	mov	w28, #0
	mov	w25, #0
	stp	wzr, wzr, [sp, #20]             ; 8-byte Folded Spill
	ldrb	w8, [x24, #6]
	lsl	w9, w8, #5
	and	w2, w9, #0x200
	ldrb	w9, [x24, #5]
	lsr	w10, w9, #4
	bfi	w2, w8, #4, #4
	bfxil	w2, w9, #0, #4
	bfi	w2, w10, #8, #1
	b	LBB0_41
LBB0_38:
	ldrb	w10, [x24, #8]
	lsl	w2, w10, #10
	ldrb	w10, [x24, #7]
	and	w10, w10, #0x1
	bfi	w2, w10, #9, #1
	ldrb	w10, [x24, #6]
	bfi	w2, w10, #1, #8
	ldrb	w10, [x24, #5]
	bfxil	w2, w10, #0, #1
	cmp	x8, x9
	b.ne	LBB0_40
; %bb.39:
	ldrb	w8, [x24, #9]
	and	w28, w8, #0x7
	and	w9, w8, #0x1
	ubfx	w8, w8, #1, #1
	stp	w8, w9, [sp, #20]               ; 8-byte Folded Spill
	mov	w25, #3
	b	LBB0_41
LBB0_40:
	mov	w28, #0
	mov	w25, #0
	stp	wzr, wzr, [sp, #20]             ; 8-byte Folded Spill
LBB0_41:
	mov	w12, #0
	mov	w10, #0
	str	wzr, [sp, #28]                  ; 4-byte Folded Spill
	ldrb	w8, [x24, #1]
	and	w8, w8, #0x1f
	ldrb	w11, [x24, #2]
	bfi	w11, w8, #8, #5
	ldrb	w8, [x24, #3]
	and	w8, w8, #0x1f
	ldrb	w9, [x24, #4]
	bfi	w9, w8, #8, #5
	stp	wzr, w9, [sp, #12]              ; 8-byte Folded Spill
	b	LBB0_25
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.cfi_endproc
                                        ; -- End function
	.comm	_WACOM_REPORT_INTUOSPAD,1,0     ; @WACOM_REPORT_INTUOSPAD
	.comm	_WACOM_REPORT_INTUOS5PAD,1,0    ; @WACOM_REPORT_INTUOS5PAD
	.comm	_WACOM_REPORT_CINTIQPAD,1,0     ; @WACOM_REPORT_CINTIQPAD
	.comm	_INTUOS4S,8,3                   ; @INTUOS4S
	.comm	_INTUOS4L,8,3                   ; @INTUOS4L
	.comm	_DTK,8,3                        ; @DTK
	.comm	_WACOM_13HD,8,3                 ; @WACOM_13HD
	.comm	_WACOM_24HD,8,3                 ; @WACOM_24HD
	.comm	_WACOM_27QHD,8,3                ; @WACOM_27QHD
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_ABS_Z,4,2                      ; @ABS_Z
	.comm	_CINTIQ_HYBRID,8,3              ; @CINTIQ_HYBRID
	.comm	_CINTIQ_COMPANION_2,8,3         ; @CINTIQ_COMPANION_2
	.comm	_INTUOS5S,8,3                   ; @INTUOS5S
	.comm	_INTUOSPL,8,3                   ; @INTUOSPL
	.comm	_WACOM_21UX2,8,3                ; @WACOM_21UX2
	.comm	_WACOM_22HD,8,3                 ; @WACOM_22HD
	.comm	_KEY_PROG1,8,3                  ; @KEY_PROG1
	.comm	_KEY_BUTTONCONFIG,8,3           ; @KEY_BUTTONCONFIG
	.comm	_KEY_ONSCREEN_KEYBOARD,8,3      ; @KEY_ONSCREEN_KEYBOARD
	.comm	_KEY_CONTROLPANEL,8,3           ; @KEY_CONTROLPANEL
	.comm	_KEY_INFO,8,3                   ; @KEY_INFO
	.comm	_SW_MUTE_DEVICE,4,2             ; @SW_MUTE_DEVICE
	.comm	_ABS_RX,4,2                     ; @ABS_RX
	.comm	_ABS_RY,4,2                     ; @ABS_RY
	.comm	_ABS_WHEEL,4,2                  ; @ABS_WHEEL
	.comm	_ABS_THROTTLE,4,2               ; @ABS_THROTTLE
	.comm	_ABS_MISC,4,2                   ; @ABS_MISC
	.comm	_PAD_DEVICE_ID,4,2              ; @PAD_DEVICE_ID
	.comm	_EV_MSC,4,2                     ; @EV_MSC
	.comm	_MSC_SERIAL,4,2                 ; @MSC_SERIAL
	.no_dead_strip	_wacom_intuos_pad
.subsections_via_symbols
