	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wacom_setup_device_quirks      ## -- Begin function wacom_setup_device_quirks
	.p2align	4, 0x90
_wacom_setup_device_quirks:             ## @wacom_setup_device_quirks
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	16(%rdi), %eax
	cmpl	$144, %eax
	je	LBB0_6
## %bb.1:
	movq	_GRAPHIRE_BT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_6
## %bb.2:
	movq	_WACOM_G4@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_6
## %bb.3:
	movq	_INTUOS3S@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_5
## %bb.4:
	movq	_WACOM_MO@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_5
LBB0_6:
	movl	20(%rbx), %ecx
	movq	_WACOM_DEVICETYPE_PEN@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_8
## %bb.7:
	movq	_WACOM_DEVICETYPE_PAD@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, 20(%rbx)
	jmp	LBB0_8
LBB0_5:
	movl	20(%rbx), %ecx
LBB0_8:
	movq	_WACOM_DEVICETYPE_TOUCH@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%ecx, %edx
	je	LBB0_11
## %bb.9:
	cmpl	$0, 24(%rbx)
	jne	LBB0_11
## %bb.10:
	movabsq	$4393751544831, %rsi            ## imm = 0x3FF000003FF
	movq	%rsi, 24(%rbx)
LBB0_11:
	movq	_INTUOS5S@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %eax
	jl	LBB0_13
## %bb.12:
	movq	_INTUOSPL@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %eax
	jle	LBB0_15
LBB0_13:
	movq	_INTUOSHT@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %eax
	jl	LBB0_26
## %bb.14:
	movq	_BAMBOO_PT@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %eax
	jg	LBB0_26
LBB0_15:
	movq	32(%rbx), %rsi
	movq	_WACOM_PKGLEN_BBTOUCH3@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	jne	LBB0_24
## %bb.16:
	cmpq	$0, 56(%rbx)
	je	LBB0_18
## %bb.17:
	orl	%edx, %ecx
	movl	%ecx, 20(%rbx)
LBB0_18:
	movq	_INTUOSHT@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %eax
	jl	LBB0_21
## %bb.19:
	movq	_BAMBOO_PT@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %eax
	jg	LBB0_21
## %bb.20:
	movq	_WACOM_DEVICETYPE_PAD@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	movl	%ecx, 20(%rbx)
LBB0_21:
	movq	_INTUOSHT2@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %eax
	jne	LBB0_23
## %bb.22:
	movslq	24(%rbx), %rsi
	imulq	$1717986919, %rsi, %rsi         ## imm = 0x66666667
	movq	%rsi, %rdi
	shrq	$63, %rdi
	sarq	$34, %rsi
	addl	%edi, %esi
	movl	%esi, 24(%rbx)
	movslq	28(%rbx), %rsi
	imulq	$1717986919, %rsi, %rsi         ## imm = 0x66666667
	movq	%rsi, %rdi
	shrq	$63, %rdi
	sarq	$34, %rsi
	addl	%edi, %esi
	movl	%esi, 28(%rbx)
	jmp	LBB0_26
LBB0_24:
	movq	_WACOM_PKGLEN_BBTOUCH@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	jne	LBB0_26
## %bb.25:
	movq	_WACOM_DEVICETYPE_PAD@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	movl	%ecx, 20(%rbx)
	jmp	LBB0_26
LBB0_23:
	movabsq	$17592186048512, %rsi           ## imm = 0x100000001000
	movq	%rsi, 24(%rbx)
LBB0_26:
	movq	_BAMBOO_PEN@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %eax
	jne	LBB0_29
## %bb.27:
	movq	32(%rbx), %rsi
	movq	_WACOM_PKGLEN_BBTOUCH3@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	jne	LBB0_29
## %bb.28:
	movq	_WACOM_DEVICETYPE_PAD@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	movl	%ecx, 20(%rbx)
LBB0_29:
	movq	_BAMBOO_PAD@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %eax
	jne	LBB0_31
## %bb.30:
	movl	%edx, 20(%rbx)
	movl	%edx, %ecx
LBB0_31:
	movq	_REMOTE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r9d
	cmpl	%r9d, %eax
	jne	LBB0_33
## %bb.32:
	movq	_WACOM_DEVICETYPE_PAD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rbx)
LBB0_33:
	movq	_INTUOSP2_BT@GOTPCREL(%rip), %rdi
	cmpl	(%rdi), %eax
	je	LBB0_35
## %bb.34:
	movq	_INTUOSP2S_BT@GOTPCREL(%rip), %rdi
	cmpl	(%rdi), %eax
	jne	LBB0_36
LBB0_35:
	movq	_WACOM_DEVICETYPE_PEN@GOTPCREL(%rip), %rdi
	movq	_WACOM_DEVICETYPE_PAD@GOTPCREL(%rip), %r8
	orl	(%rdi), %edx
	orl	(%r8), %edx
	orl	%edx, %ecx
	movl	%ecx, 20(%rbx)
	movq	_WACOM_QUIRK_BATTERY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, 48(%rbx)
LBB0_36:
	movq	_INTUOSHT3_BT@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_38
## %bb.37:
	movq	_WACOM_DEVICETYPE_PEN@GOTPCREL(%rip), %rdx
	movq	_WACOM_DEVICETYPE_PAD@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	orl	(%rdx), %edi
	orl	%edi, %ecx
	movl	%ecx, 20(%rbx)
	movq	_WACOM_QUIRK_BATTERY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, 48(%rbx)
LBB0_38:
	leal	-128(%rax), %edx
	cmpl	$21, %edx
	ja	LBB0_40
## %bb.39:
	movq	_WACOM_DEVICETYPE_DIRECT@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, 20(%rbx)
LBB0_40:
	movq	(%rbx), %rdx
	movq	(%rdx), %rdi
	movq	_BUS_BLUETOOTH@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdi
	jne	LBB0_42
## %bb.41:
	movq	_WACOM_QUIRK_BATTERY@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	%esi, 48(%rbx)
LBB0_42:
	movq	_BAMBOO_PT@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %eax
	je	LBB0_44
## %bb.43:
	movq	_BAMBOO_TOUCH@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %eax
	jne	LBB0_46
LBB0_44:
	movq	32(%rbx), %rsi
	movq	_WACOM_PKGLEN_BBTOUCH@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	jne	LBB0_46
## %bb.45:
	shll	$5, 24(%rbx)
	shll	$5, 28(%rbx)
	shll	$5, 40(%rbx)
	shll	$5, 44(%rbx)
	movq	_WACOM_QUIRK_BBTOUCH_LOWRES@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	%esi, 48(%rbx)
LBB0_46:
	movq	_WIRELESS@GOTPCREL(%rip), %rsi
	movq	_WACOM_DEVICETYPE_WL_MONITOR@GOTPCREL(%rip), %rdi
	cmpl	(%rsi), %eax
	jne	LBB0_49
## %bb.47:
	cmpl	(%rdi), %ecx
	jne	LBB0_49
## %bb.48:
	movq	_WACOM_QUIRK_BATTERY@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	%esi, 48(%rbx)
LBB0_49:
	cmpl	%r9d, %eax
	jne	LBB0_51
## %bb.50:
	orl	(%rdi), %ecx
	movl	%ecx, 20(%rbx)
LBB0_51:
	movl	8(%rdx), %eax
	cmpl	$898, %eax                      ## imm = 0x382
	je	LBB0_54
## %bb.52:
	cmpl	$893, %eax                      ## imm = 0x37D
	jne	LBB0_53
LBB0_54:
	movq	_WACOM_QUIRK_TOOLSERIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 48(%rbx)
	movq	_BTN_TOOL_BRUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rax
	movl	12(%rax), %esi
	callq	___clear_bit
	movq	_BTN_TOOL_PENCIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rax
	movl	12(%rax), %esi
	callq	___clear_bit
	movq	_BTN_TOOL_AIRBRUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rax
	movl	12(%rax), %esi
	callq	___clear_bit
	movq	_ABS_Z@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rax
	movl	8(%rax), %esi
	callq	___clear_bit
	movq	_ABS_DISTANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rax
	movl	8(%rax), %esi
	callq	___clear_bit
	movq	_ABS_TILT_X@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rax
	movl	8(%rax), %esi
	callq	___clear_bit
	movq	_ABS_TILT_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rax
	movl	8(%rax), %esi
	callq	___clear_bit
	movq	_ABS_WHEEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rax
	movl	8(%rax), %esi
	callq	___clear_bit
	movq	_ABS_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rax
	movl	8(%rax), %esi
	callq	___clear_bit
	movq	_MSC_SERIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rax
	movl	4(%rax), %esi
	callq	___clear_bit
	movq	_EV_MSC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	___clear_bit                    ## TAILCALL
LBB0_53:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GRAPHIRE_BT,4,2                ## @GRAPHIRE_BT
	.comm	_WACOM_G4,4,2                   ## @WACOM_G4
	.comm	_INTUOS3S,4,2                   ## @INTUOS3S
	.comm	_WACOM_MO,4,2                   ## @WACOM_MO
	.comm	_WACOM_DEVICETYPE_PEN,4,2       ## @WACOM_DEVICETYPE_PEN
	.comm	_WACOM_DEVICETYPE_PAD,4,2       ## @WACOM_DEVICETYPE_PAD
	.comm	_WACOM_DEVICETYPE_TOUCH,4,2     ## @WACOM_DEVICETYPE_TOUCH
	.comm	_INTUOS5S,4,2                   ## @INTUOS5S
	.comm	_INTUOSPL,4,2                   ## @INTUOSPL
	.comm	_INTUOSHT,4,2                   ## @INTUOSHT
	.comm	_BAMBOO_PT,4,2                  ## @BAMBOO_PT
	.comm	_WACOM_PKGLEN_BBTOUCH3,8,3      ## @WACOM_PKGLEN_BBTOUCH3
	.comm	_INTUOSHT2,4,2                  ## @INTUOSHT2
	.comm	_WACOM_PKGLEN_BBTOUCH,8,3       ## @WACOM_PKGLEN_BBTOUCH
	.comm	_BAMBOO_PEN,4,2                 ## @BAMBOO_PEN
	.comm	_BAMBOO_PAD,4,2                 ## @BAMBOO_PAD
	.comm	_REMOTE,4,2                     ## @REMOTE
	.comm	_INTUOSP2_BT,4,2                ## @INTUOSP2_BT
	.comm	_INTUOSP2S_BT,4,2               ## @INTUOSP2S_BT
	.comm	_WACOM_QUIRK_BATTERY,4,2        ## @WACOM_QUIRK_BATTERY
	.comm	_INTUOSHT3_BT,4,2               ## @INTUOSHT3_BT
	.comm	_WACOM_DEVICETYPE_DIRECT,4,2    ## @WACOM_DEVICETYPE_DIRECT
	.comm	_BUS_BLUETOOTH,8,3              ## @BUS_BLUETOOTH
	.comm	_BAMBOO_TOUCH,4,2               ## @BAMBOO_TOUCH
	.comm	_WACOM_QUIRK_BBTOUCH_LOWRES,4,2 ## @WACOM_QUIRK_BBTOUCH_LOWRES
	.comm	_WIRELESS,4,2                   ## @WIRELESS
	.comm	_WACOM_DEVICETYPE_WL_MONITOR,4,2 ## @WACOM_DEVICETYPE_WL_MONITOR
	.comm	_WACOM_QUIRK_TOOLSERIAL,4,2     ## @WACOM_QUIRK_TOOLSERIAL
	.comm	_BTN_TOOL_BRUSH,4,2             ## @BTN_TOOL_BRUSH
	.comm	_BTN_TOOL_PENCIL,4,2            ## @BTN_TOOL_PENCIL
	.comm	_BTN_TOOL_AIRBRUSH,4,2          ## @BTN_TOOL_AIRBRUSH
	.comm	_ABS_Z,4,2                      ## @ABS_Z
	.comm	_ABS_DISTANCE,4,2               ## @ABS_DISTANCE
	.comm	_ABS_TILT_X,4,2                 ## @ABS_TILT_X
	.comm	_ABS_TILT_Y,4,2                 ## @ABS_TILT_Y
	.comm	_ABS_WHEEL,4,2                  ## @ABS_WHEEL
	.comm	_ABS_MISC,4,2                   ## @ABS_MISC
	.comm	_MSC_SERIAL,4,2                 ## @MSC_SERIAL
	.comm	_EV_MSC,4,2                     ## @EV_MSC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wacom_setup_device_quirks      ; -- Begin function wacom_setup_device_quirks
	.p2align	2
_wacom_setup_device_quirks:             ; @wacom_setup_device_quirks
	.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	w8, [x0, #16]
Lloh0:
	adrp	x9, _GRAPHIRE_BT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GRAPHIRE_BT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _WACOM_G4@GOTPAGE
Lloh4:
	ldr	x10, [x10, _WACOM_G4@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w8, #144
	ccmp	w8, w9, #4, ne
	ccmp	w8, w10, #4, ne
Lloh6:
	adrp	x10, _WACOM_DEVICETYPE_PEN@GOTPAGE
Lloh7:
	ldr	x10, [x10, _WACOM_DEVICETYPE_PEN@GOTPAGEOFF]
	b.eq	LBB0_3
; %bb.1:
Lloh8:
	adrp	x9, _INTUOS3S@GOTPAGE
Lloh9:
	ldr	x9, [x9, _INTUOS3S@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x11, _WACOM_MO@GOTPAGE
Lloh12:
	ldr	x11, [x11, _WACOM_MO@GOTPAGEOFF]
Lloh13:
	ldr	w11, [x11]
	cmp	w8, w9
	ccmp	w8, w11, #0, ge
	b.le	LBB0_3
; %bb.2:
	ldr	w9, [x19, #20]
	b	LBB0_5
LBB0_3:
	ldr	w9, [x19, #20]
	ldr	w11, [x10]
	tst	w11, w9
	b.eq	LBB0_5
; %bb.4:
Lloh14:
	adrp	x11, _WACOM_DEVICETYPE_PAD@GOTPAGE
Lloh15:
	ldr	x11, [x11, _WACOM_DEVICETYPE_PAD@GOTPAGEOFF]
Lloh16:
	ldr	w11, [x11]
	orr	w9, w11, w9
	str	w9, [x19, #20]
LBB0_5:
Lloh17:
	adrp	x11, _WACOM_DEVICETYPE_TOUCH@GOTPAGE
Lloh18:
	ldr	x11, [x11, _WACOM_DEVICETYPE_TOUCH@GOTPAGEOFF]
Lloh19:
	ldr	w12, [x11]
	tst	w12, w9
	b.eq	LBB0_8
; %bb.6:
	ldr	w11, [x19, #24]
	cbnz	w11, LBB0_8
; %bb.7:
	movi.2s	v0, #3, msl #8
	str	d0, [x19, #24]
LBB0_8:
Lloh20:
	adrp	x11, _INTUOS5S@GOTPAGE
Lloh21:
	ldr	x11, [x11, _INTUOS5S@GOTPAGEOFF]
Lloh22:
	ldr	w11, [x11]
Lloh23:
	adrp	x13, _INTUOSPL@GOTPAGE
Lloh24:
	ldr	x13, [x13, _INTUOSPL@GOTPAGEOFF]
Lloh25:
	ldr	w13, [x13]
	cmp	w8, w11
	ccmp	w8, w13, #0, ge
Lloh26:
	adrp	x11, _BAMBOO_PT@GOTPAGE
Lloh27:
	ldr	x11, [x11, _BAMBOO_PT@GOTPAGEOFF]
Lloh28:
	adrp	x13, _WACOM_PKGLEN_BBTOUCH3@GOTPAGE
Lloh29:
	ldr	x13, [x13, _WACOM_PKGLEN_BBTOUCH3@GOTPAGEOFF]
	b.le	LBB0_10
; %bb.9:
Lloh30:
	adrp	x14, _INTUOSHT@GOTPAGE
Lloh31:
	ldr	x14, [x14, _INTUOSHT@GOTPAGEOFF]
Lloh32:
	ldr	w14, [x14]
	ldr	w15, [x11]
	cmp	w8, w14
	ccmp	w8, w15, #0, ge
	b.gt	LBB0_21
LBB0_10:
	ldr	x14, [x19, #32]
	ldr	x15, [x13]
	cmp	x14, x15
	b.ne	LBB0_18
; %bb.11:
	ldr	x14, [x19, #56]
	cbz	x14, LBB0_13
; %bb.12:
	orr	w9, w12, w9
	str	w9, [x19, #20]
LBB0_13:
Lloh33:
	adrp	x14, _INTUOSHT@GOTPAGE
Lloh34:
	ldr	x14, [x14, _INTUOSHT@GOTPAGEOFF]
Lloh35:
	ldr	w14, [x14]
	cmp	w8, w14
	b.lt	LBB0_16
; %bb.14:
	ldr	w14, [x11]
	cmp	w8, w14
	b.gt	LBB0_16
; %bb.15:
Lloh36:
	adrp	x14, _WACOM_DEVICETYPE_PAD@GOTPAGE
Lloh37:
	ldr	x14, [x14, _WACOM_DEVICETYPE_PAD@GOTPAGEOFF]
Lloh38:
	ldr	w14, [x14]
	orr	w9, w9, w14
	str	w9, [x19, #20]
LBB0_16:
Lloh39:
	adrp	x14, _INTUOSHT2@GOTPAGE
Lloh40:
	ldr	x14, [x14, _INTUOSHT2@GOTPAGEOFF]
Lloh41:
	ldr	w14, [x14]
	cmp	w8, w14
	b.ne	LBB0_20
; %bb.17:
	mov	w14, #26215
	movk	w14, #26214, lsl #16
	ldpsw	x15, x16, [x19, #24]
	mul	x15, x15, x14
	lsr	x17, x15, #63
	asr	x15, x15, #34
	add	w15, w15, w17
	mul	x14, x16, x14
	lsr	x16, x14, #63
	asr	x14, x14, #34
	add	w14, w14, w16
	stp	w15, w14, [x19, #24]
	b	LBB0_21
LBB0_18:
Lloh42:
	adrp	x15, _WACOM_PKGLEN_BBTOUCH@GOTPAGE
Lloh43:
	ldr	x15, [x15, _WACOM_PKGLEN_BBTOUCH@GOTPAGEOFF]
Lloh44:
	ldr	x15, [x15]
	cmp	x14, x15
	b.ne	LBB0_21
; %bb.19:
Lloh45:
	adrp	x14, _WACOM_DEVICETYPE_PAD@GOTPAGE
Lloh46:
	ldr	x14, [x14, _WACOM_DEVICETYPE_PAD@GOTPAGEOFF]
Lloh47:
	ldr	w14, [x14]
	orr	w9, w14, w9
	str	w9, [x19, #20]
	b	LBB0_21
LBB0_20:
	movi.2s	v0, #16, lsl #8
	str	d0, [x19, #24]
LBB0_21:
Lloh48:
	adrp	x14, _BAMBOO_PEN@GOTPAGE
Lloh49:
	ldr	x14, [x14, _BAMBOO_PEN@GOTPAGEOFF]
Lloh50:
	ldr	w14, [x14]
	cmp	w8, w14
	b.ne	LBB0_24
; %bb.22:
	ldr	x14, [x19, #32]
	ldr	x13, [x13]
	cmp	x14, x13
	b.ne	LBB0_24
; %bb.23:
Lloh51:
	adrp	x13, _WACOM_DEVICETYPE_PAD@GOTPAGE
Lloh52:
	ldr	x13, [x13, _WACOM_DEVICETYPE_PAD@GOTPAGEOFF]
Lloh53:
	ldr	w13, [x13]
	orr	w9, w9, w13
	str	w9, [x19, #20]
LBB0_24:
Lloh54:
	adrp	x13, _BAMBOO_PAD@GOTPAGE
Lloh55:
	ldr	x13, [x13, _BAMBOO_PAD@GOTPAGEOFF]
Lloh56:
	ldr	w13, [x13]
	cmp	w8, w13
	b.ne	LBB0_26
; %bb.25:
	str	w12, [x19, #20]
	mov	x9, x12
LBB0_26:
Lloh57:
	adrp	x13, _REMOTE@GOTPAGE
Lloh58:
	ldr	x13, [x13, _REMOTE@GOTPAGEOFF]
Lloh59:
	ldr	w13, [x13]
	cmp	w8, w13
	b.ne	LBB0_28
; %bb.27:
Lloh60:
	adrp	x9, _WACOM_DEVICETYPE_PAD@GOTPAGE
Lloh61:
	ldr	x9, [x9, _WACOM_DEVICETYPE_PAD@GOTPAGEOFF]
Lloh62:
	ldr	w9, [x9]
	str	w9, [x19, #20]
LBB0_28:
Lloh63:
	adrp	x14, _INTUOSP2_BT@GOTPAGE
Lloh64:
	ldr	x14, [x14, _INTUOSP2_BT@GOTPAGEOFF]
Lloh65:
	ldr	w15, [x14]
Lloh66:
	adrp	x14, _WACOM_QUIRK_BATTERY@GOTPAGE
Lloh67:
	ldr	x14, [x14, _WACOM_QUIRK_BATTERY@GOTPAGEOFF]
	cmp	w8, w15
	b.eq	LBB0_30
; %bb.29:
Lloh68:
	adrp	x15, _INTUOSP2S_BT@GOTPAGE
Lloh69:
	ldr	x15, [x15, _INTUOSP2S_BT@GOTPAGEOFF]
Lloh70:
	ldr	w15, [x15]
	cmp	w8, w15
	b.ne	LBB0_31
LBB0_30:
	ldr	w15, [x10]
Lloh71:
	adrp	x16, _WACOM_DEVICETYPE_PAD@GOTPAGE
Lloh72:
	ldr	x16, [x16, _WACOM_DEVICETYPE_PAD@GOTPAGEOFF]
Lloh73:
	ldr	w16, [x16]
	orr	w12, w15, w12
	orr	w12, w12, w16
	orr	w9, w12, w9
	str	w9, [x19, #20]
	ldr	w12, [x14]
	ldr	w15, [x19, #48]
	orr	w12, w15, w12
	str	w12, [x19, #48]
LBB0_31:
Lloh74:
	adrp	x12, _INTUOSHT3_BT@GOTPAGE
Lloh75:
	ldr	x12, [x12, _INTUOSHT3_BT@GOTPAGEOFF]
Lloh76:
	ldr	w12, [x12]
	cmp	w8, w12
	b.ne	LBB0_33
; %bb.32:
	ldr	w10, [x10]
Lloh77:
	adrp	x12, _WACOM_DEVICETYPE_PAD@GOTPAGE
Lloh78:
	ldr	x12, [x12, _WACOM_DEVICETYPE_PAD@GOTPAGEOFF]
Lloh79:
	ldr	w12, [x12]
	orr	w10, w12, w10
	orr	w9, w10, w9
	str	w9, [x19, #20]
	ldr	w10, [x14]
	ldr	w12, [x19, #48]
	orr	w10, w12, w10
	str	w10, [x19, #48]
LBB0_33:
	sub	w10, w8, #128
	cmp	w10, #21
	b.hi	LBB0_35
; %bb.34:
Lloh80:
	adrp	x10, _WACOM_DEVICETYPE_DIRECT@GOTPAGE
Lloh81:
	ldr	x10, [x10, _WACOM_DEVICETYPE_DIRECT@GOTPAGEOFF]
Lloh82:
	ldr	w10, [x10]
	orr	w9, w9, w10
	str	w9, [x19, #20]
LBB0_35:
	ldr	x10, [x19]
	ldr	x12, [x10]
Lloh83:
	adrp	x15, _BUS_BLUETOOTH@GOTPAGE
Lloh84:
	ldr	x15, [x15, _BUS_BLUETOOTH@GOTPAGEOFF]
Lloh85:
	ldr	x15, [x15]
	cmp	x12, x15
	b.ne	LBB0_37
; %bb.36:
	ldr	w12, [x14]
	ldr	w15, [x19, #48]
	orr	w12, w15, w12
	str	w12, [x19, #48]
LBB0_37:
	ldr	w11, [x11]
	cmp	w8, w11
	b.eq	LBB0_39
; %bb.38:
Lloh86:
	adrp	x11, _BAMBOO_TOUCH@GOTPAGE
Lloh87:
	ldr	x11, [x11, _BAMBOO_TOUCH@GOTPAGEOFF]
Lloh88:
	ldr	w11, [x11]
	cmp	w8, w11
	b.ne	LBB0_41
LBB0_39:
	ldr	x11, [x19, #32]
Lloh89:
	adrp	x12, _WACOM_PKGLEN_BBTOUCH@GOTPAGE
Lloh90:
	ldr	x12, [x12, _WACOM_PKGLEN_BBTOUCH@GOTPAGEOFF]
Lloh91:
	ldr	x12, [x12]
	cmp	x11, x12
	b.ne	LBB0_41
; %bb.40:
	ldr	d0, [x19, #24]
	shl.2s	v0, v0, #5
	str	d0, [x19, #24]
	ldr	d0, [x19, #40]
	shl.2s	v0, v0, #5
	str	d0, [x19, #40]
Lloh92:
	adrp	x11, _WACOM_QUIRK_BBTOUCH_LOWRES@GOTPAGE
Lloh93:
	ldr	x11, [x11, _WACOM_QUIRK_BBTOUCH_LOWRES@GOTPAGEOFF]
Lloh94:
	ldr	w11, [x11]
	ldr	w12, [x19, #48]
	orr	w11, w12, w11
	str	w11, [x19, #48]
LBB0_41:
Lloh95:
	adrp	x11, _WIRELESS@GOTPAGE
Lloh96:
	ldr	x11, [x11, _WIRELESS@GOTPAGEOFF]
Lloh97:
	ldr	w12, [x11]
Lloh98:
	adrp	x11, _WACOM_DEVICETYPE_WL_MONITOR@GOTPAGE
Lloh99:
	ldr	x11, [x11, _WACOM_DEVICETYPE_WL_MONITOR@GOTPAGEOFF]
	cmp	w8, w12
	b.ne	LBB0_44
; %bb.42:
	ldr	w12, [x11]
	cmp	w9, w12
	b.ne	LBB0_44
; %bb.43:
	ldr	w12, [x14]
	ldr	w14, [x19, #48]
	orr	w12, w14, w12
	str	w12, [x19, #48]
LBB0_44:
	cmp	w8, w13
	b.ne	LBB0_46
; %bb.45:
	ldr	w8, [x11]
	orr	w8, w9, w8
	str	w8, [x19, #20]
LBB0_46:
	ldr	w8, [x10, #8]
	cmp	w8, #898
	b.eq	LBB0_48
; %bb.47:
	cmp	w8, #893
	b.ne	LBB0_49
LBB0_48:
Lloh100:
	adrp	x8, _WACOM_QUIRK_TOOLSERIAL@GOTPAGE
Lloh101:
	ldr	x8, [x8, _WACOM_QUIRK_TOOLSERIAL@GOTPAGEOFF]
Lloh102:
	ldr	w8, [x8]
	ldr	w9, [x19, #48]
	bic	w8, w9, w8
	str	w8, [x19, #48]
Lloh103:
	adrp	x8, _BTN_TOOL_BRUSH@GOTPAGE
Lloh104:
	ldr	x8, [x8, _BTN_TOOL_BRUSH@GOTPAGEOFF]
Lloh105:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	ldr	w1, [x8, #12]
	bl	___clear_bit
Lloh106:
	adrp	x8, _BTN_TOOL_PENCIL@GOTPAGE
Lloh107:
	ldr	x8, [x8, _BTN_TOOL_PENCIL@GOTPAGEOFF]
Lloh108:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	ldr	w1, [x8, #12]
	bl	___clear_bit
Lloh109:
	adrp	x8, _BTN_TOOL_AIRBRUSH@GOTPAGE
Lloh110:
	ldr	x8, [x8, _BTN_TOOL_AIRBRUSH@GOTPAGEOFF]
Lloh111:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	ldr	w1, [x8, #12]
	bl	___clear_bit
Lloh112:
	adrp	x8, _ABS_Z@GOTPAGE
Lloh113:
	ldr	x8, [x8, _ABS_Z@GOTPAGEOFF]
Lloh114:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	ldr	w1, [x8, #8]
	bl	___clear_bit
Lloh115:
	adrp	x8, _ABS_DISTANCE@GOTPAGE
Lloh116:
	ldr	x8, [x8, _ABS_DISTANCE@GOTPAGEOFF]
Lloh117:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	ldr	w1, [x8, #8]
	bl	___clear_bit
Lloh118:
	adrp	x8, _ABS_TILT_X@GOTPAGE
Lloh119:
	ldr	x8, [x8, _ABS_TILT_X@GOTPAGEOFF]
Lloh120:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	ldr	w1, [x8, #8]
	bl	___clear_bit
Lloh121:
	adrp	x8, _ABS_TILT_Y@GOTPAGE
Lloh122:
	ldr	x8, [x8, _ABS_TILT_Y@GOTPAGEOFF]
Lloh123:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	ldr	w1, [x8, #8]
	bl	___clear_bit
Lloh124:
	adrp	x8, _ABS_WHEEL@GOTPAGE
Lloh125:
	ldr	x8, [x8, _ABS_WHEEL@GOTPAGEOFF]
Lloh126:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	ldr	w1, [x8, #8]
	bl	___clear_bit
Lloh127:
	adrp	x8, _ABS_MISC@GOTPAGE
Lloh128:
	ldr	x8, [x8, _ABS_MISC@GOTPAGEOFF]
Lloh129:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	ldr	w1, [x8, #8]
	bl	___clear_bit
Lloh130:
	adrp	x8, _MSC_SERIAL@GOTPAGE
Lloh131:
	ldr	x8, [x8, _MSC_SERIAL@GOTPAGEOFF]
Lloh132:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	ldr	w1, [x8, #4]
	bl	___clear_bit
Lloh133:
	adrp	x8, _EV_MSC@GOTPAGE
Lloh134:
	ldr	x8, [x8, _EV_MSC@GOTPAGEOFF]
Lloh135:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	___clear_bit
LBB0_49:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGot	Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh133, Lloh134, Lloh135
	.loh AdrpLdrGotLdr	Lloh130, Lloh131, Lloh132
	.loh AdrpLdrGotLdr	Lloh127, Lloh128, Lloh129
	.loh AdrpLdrGotLdr	Lloh124, Lloh125, Lloh126
	.loh AdrpLdrGotLdr	Lloh121, Lloh122, Lloh123
	.loh AdrpLdrGotLdr	Lloh118, Lloh119, Lloh120
	.loh AdrpLdrGotLdr	Lloh115, Lloh116, Lloh117
	.loh AdrpLdrGotLdr	Lloh112, Lloh113, Lloh114
	.loh AdrpLdrGotLdr	Lloh109, Lloh110, Lloh111
	.loh AdrpLdrGotLdr	Lloh106, Lloh107, Lloh108
	.loh AdrpLdrGotLdr	Lloh103, Lloh104, Lloh105
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.cfi_endproc
                                        ; -- End function
	.comm	_GRAPHIRE_BT,4,2                ; @GRAPHIRE_BT
	.comm	_WACOM_G4,4,2                   ; @WACOM_G4
	.comm	_INTUOS3S,4,2                   ; @INTUOS3S
	.comm	_WACOM_MO,4,2                   ; @WACOM_MO
	.comm	_WACOM_DEVICETYPE_PEN,4,2       ; @WACOM_DEVICETYPE_PEN
	.comm	_WACOM_DEVICETYPE_PAD,4,2       ; @WACOM_DEVICETYPE_PAD
	.comm	_WACOM_DEVICETYPE_TOUCH,4,2     ; @WACOM_DEVICETYPE_TOUCH
	.comm	_INTUOS5S,4,2                   ; @INTUOS5S
	.comm	_INTUOSPL,4,2                   ; @INTUOSPL
	.comm	_INTUOSHT,4,2                   ; @INTUOSHT
	.comm	_BAMBOO_PT,4,2                  ; @BAMBOO_PT
	.comm	_WACOM_PKGLEN_BBTOUCH3,8,3      ; @WACOM_PKGLEN_BBTOUCH3
	.comm	_INTUOSHT2,4,2                  ; @INTUOSHT2
	.comm	_WACOM_PKGLEN_BBTOUCH,8,3       ; @WACOM_PKGLEN_BBTOUCH
	.comm	_BAMBOO_PEN,4,2                 ; @BAMBOO_PEN
	.comm	_BAMBOO_PAD,4,2                 ; @BAMBOO_PAD
	.comm	_REMOTE,4,2                     ; @REMOTE
	.comm	_INTUOSP2_BT,4,2                ; @INTUOSP2_BT
	.comm	_INTUOSP2S_BT,4,2               ; @INTUOSP2S_BT
	.comm	_WACOM_QUIRK_BATTERY,4,2        ; @WACOM_QUIRK_BATTERY
	.comm	_INTUOSHT3_BT,4,2               ; @INTUOSHT3_BT
	.comm	_WACOM_DEVICETYPE_DIRECT,4,2    ; @WACOM_DEVICETYPE_DIRECT
	.comm	_BUS_BLUETOOTH,8,3              ; @BUS_BLUETOOTH
	.comm	_BAMBOO_TOUCH,4,2               ; @BAMBOO_TOUCH
	.comm	_WACOM_QUIRK_BBTOUCH_LOWRES,4,2 ; @WACOM_QUIRK_BBTOUCH_LOWRES
	.comm	_WIRELESS,4,2                   ; @WIRELESS
	.comm	_WACOM_DEVICETYPE_WL_MONITOR,4,2 ; @WACOM_DEVICETYPE_WL_MONITOR
	.comm	_WACOM_QUIRK_TOOLSERIAL,4,2     ; @WACOM_QUIRK_TOOLSERIAL
	.comm	_BTN_TOOL_BRUSH,4,2             ; @BTN_TOOL_BRUSH
	.comm	_BTN_TOOL_PENCIL,4,2            ; @BTN_TOOL_PENCIL
	.comm	_BTN_TOOL_AIRBRUSH,4,2          ; @BTN_TOOL_AIRBRUSH
	.comm	_ABS_Z,4,2                      ; @ABS_Z
	.comm	_ABS_DISTANCE,4,2               ; @ABS_DISTANCE
	.comm	_ABS_TILT_X,4,2                 ; @ABS_TILT_X
	.comm	_ABS_TILT_Y,4,2                 ; @ABS_TILT_Y
	.comm	_ABS_WHEEL,4,2                  ; @ABS_WHEEL
	.comm	_ABS_MISC,4,2                   ; @ABS_MISC
	.comm	_MSC_SERIAL,4,2                 ; @MSC_SERIAL
	.comm	_EV_MSC,4,2                     ; @EV_MSC
.subsections_via_symbols
