	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wacom_setup_pen_input_capabilities ## -- Begin function wacom_setup_pen_input_capabilities
	.p2align	4, 0x90
_wacom_setup_pen_input_capabilities:    ## @wacom_setup_pen_input_capabilities
	.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	%rsi, %r12
	movq	%rdi, %r15
	movq	_EV_KEY@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_BIT_MASK
	movl	%eax, %ebx
	movq	_EV_ABS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT_MASK
	orl	%ebx, %eax
	movq	(%r15), %rcx
	orl	%eax, (%rcx)
	movl	(%r12), %eax
	movq	_WACOM_DEVICETYPE_PEN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.2:
	movq	_WACOM_DEVICETYPE_DIRECT@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	jne	LBB0_3
## %bb.4:
	movq	_INPUT_PROP_POINTER@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_26
LBB0_3:
	movq	_INPUT_PROP_DIRECT@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edi
	movl	16(%r15), %esi
	callq	___set_bit
	movl	4(%r12), %eax
	movq	_HID_GENERIC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
## %bb.6:
	movl	(%r14), %esi
	movq	_BTN_STYLUS3@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_input_set_capability
	xorl	%r14d, %r14d
	jmp	LBB0_26
LBB0_7:
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%r15), %esi
	callq	___set_bit
	movq	_ABS_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r15), %esi
	callq	___set_bit
	movq	_ABS_X@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	8(%r12), %edx
	movl	12(%r12), %ecx
	subl	16(%r12), %ecx
	movl	60(%r12), %r8d
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	_ABS_Y@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	20(%r12), %edx
	movl	24(%r12), %ecx
	subl	28(%r12), %ecx
	movl	56(%r12), %r8d
	movq	%r15, %rdi
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	_ABS_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	32(%r12), %ecx
	movl	52(%r12), %r8d
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movl	(%rbx), %esi
	movl	36(%r12), %edx
	movq	%r15, %rdi
	callq	_input_abs_set_res
	movl	(%r13), %esi
	movl	40(%r12), %edx
	movq	%r15, %rdi
	callq	_input_abs_set_res
	movl	4(%r12), %eax
	leal	-128(%rax), %ecx
	cmpl	$49, %ecx
	ja	LBB0_26
## %bb.8:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_12:
	movq	_ABS_Z@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	movl	$-900, %edx                     ## imm = 0xFC7C
	movl	$899, %ecx                      ## imm = 0x383
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	$287, %edx                      ## imm = 0x11F
	callq	_input_abs_set_res
	movq	%r12, %rdi
	callq	_wacom_setup_cintiq
	jmp	LBB0_26
LBB0_16:
	movq	_ABS_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r15), %esi
	callq	___clear_bit
LBB0_17:
	movq	_BTN_TOOL_PEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%r15), %esi
	callq	___set_bit
	movq	_BTN_TOOL_RUBBER@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_13:
	movq	_ABS_DISTANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	44(%r12), %ecx
	movl	48(%r12), %r8d
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
LBB0_14:
	movq	_ABS_Z@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	$-900, %edx                     ## imm = 0xFC7C
	movl	$899, %ecx                      ## imm = 0x383
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	$287, %edx                      ## imm = 0x11F
	callq	_input_abs_set_res
LBB0_15:
	movq	%r12, %rdi
	callq	_wacom_setup_intuos
	jmp	LBB0_26
LBB0_22:
	andl	$-2, %eax
	cmpl	$152, %eax
	jne	LBB0_24
## %bb.23:
	movq	%r12, %rdi
	callq	_wacom_setup_basic_pro_pen
	jmp	LBB0_26
LBB0_24:
	movq	_ABS_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r15), %esi
	callq	___clear_bit
	movq	_BTN_TOOL_PEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%r15), %esi
	callq	___set_bit
	movq	_BTN_TOOL_RUBBER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%r15), %esi
	callq	___set_bit
	movq	_BTN_STYLUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%r15), %esi
	callq	___set_bit
	movq	_BTN_STYLUS2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%r15), %esi
	callq	___set_bit
	movq	_ABS_DISTANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	44(%r12), %ecx
	movl	48(%r12), %r8d
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	jmp	LBB0_26
LBB0_9:
	movq	_ABS_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r15), %esi
	callq	___clear_bit
LBB0_10:
	movq	_ABS_DISTANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	44(%r12), %ecx
	movl	48(%r12), %r8d
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
LBB0_11:
	movq	_EV_REL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REL_WHEEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_input_set_capability
	movq	_BTN_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%r15), %esi
	callq	___set_bit
	movq	_BTN_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%r15), %esi
	callq	___set_bit
	movq	_BTN_MIDDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%r15), %esi
	callq	___set_bit
	movq	_BTN_TOOL_RUBBER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%r15), %esi
	callq	___set_bit
	movq	_BTN_TOOL_PEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%r15), %esi
	callq	___set_bit
	movq	_BTN_TOOL_MOUSE@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %edi
	movl	12(%r15), %esi
	callq	___set_bit
	movq	_BTN_STYLUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%r15), %esi
	callq	___set_bit
	movq	_BTN_STYLUS2@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %edi
	movl	12(%r15), %esi
	callq	___set_bit
LBB0_26:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movq	_ABS_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r15), %esi
	callq	___clear_bit
	jmp	LBB0_26
LBB0_20:
	movq	_BTN_STYLUS2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%r15), %esi
	callq	___set_bit
LBB0_21:
	movq	_BTN_TOOL_PEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%r15), %esi
	callq	___set_bit
	movq	_BTN_TOOL_RUBBER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%r15), %esi
	callq	___set_bit
	movq	_BTN_STYLUS@GOTPCREL(%rip), %rax
	jmp	LBB0_19
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_12
	.long	L0_0_set_16
	.long	L0_0_set_12
	.long	L0_0_set_16
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_20
	.long	L0_0_set_17
	.long	L0_0_set_21
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_22
	.long	L0_0_set_22
	.long	L0_0_set_22
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_15
	.long	L0_0_set_9
	.long	L0_0_set_11
	.long	L0_0_set_17
	.long	L0_0_set_17
	.long	L0_0_set_17
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_22
	.long	L0_0_set_22
	.long	L0_0_set_25
	.end_data_region
                                        ## -- End function
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_EV_ABS,4,2                     ## @EV_ABS
	.comm	_WACOM_DEVICETYPE_PEN,4,2       ## @WACOM_DEVICETYPE_PEN
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_WACOM_DEVICETYPE_DIRECT,4,2    ## @WACOM_DEVICETYPE_DIRECT
	.comm	_INPUT_PROP_DIRECT,4,2          ## @INPUT_PROP_DIRECT
	.comm	_INPUT_PROP_POINTER,4,2         ## @INPUT_PROP_POINTER
	.comm	_HID_GENERIC,4,2                ## @HID_GENERIC
	.comm	_BTN_STYLUS3,4,2                ## @BTN_STYLUS3
	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.comm	_ABS_MISC,4,2                   ## @ABS_MISC
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_ABS_PRESSURE,4,2               ## @ABS_PRESSURE
	.comm	_ABS_DISTANCE,4,2               ## @ABS_DISTANCE
	.comm	_EV_REL,4,2                     ## @EV_REL
	.comm	_REL_WHEEL,4,2                  ## @REL_WHEEL
	.comm	_BTN_LEFT,4,2                   ## @BTN_LEFT
	.comm	_BTN_RIGHT,4,2                  ## @BTN_RIGHT
	.comm	_BTN_MIDDLE,4,2                 ## @BTN_MIDDLE
	.comm	_BTN_TOOL_RUBBER,4,2            ## @BTN_TOOL_RUBBER
	.comm	_BTN_TOOL_PEN,4,2               ## @BTN_TOOL_PEN
	.comm	_BTN_TOOL_MOUSE,4,2             ## @BTN_TOOL_MOUSE
	.comm	_BTN_STYLUS,4,2                 ## @BTN_STYLUS
	.comm	_BTN_STYLUS2,4,2                ## @BTN_STYLUS2
	.comm	_ABS_Z,4,2                      ## @ABS_Z
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wacom_setup_pen_input_capabilities ; -- Begin function wacom_setup_pen_input_capabilities
	.p2align	2
_wacom_setup_pen_input_capabilities:    ; @wacom_setup_pen_input_capabilities
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _EV_KEY@GOTPAGE
Lloh1:
	ldr	x22, [x22, _EV_KEY@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_BIT_MASK
	mov	x21, x0
Lloh2:
	adrp	x8, _EV_ABS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EV_ABS@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_BIT_MASK
	orr	w8, w0, w21
	ldr	x9, [x19]
	ldr	w10, [x9]
	orr	w8, w8, w10
	str	w8, [x9]
	ldr	w8, [x20]
Lloh5:
	adrp	x9, _WACOM_DEVICETYPE_PEN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _WACOM_DEVICETYPE_PEN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
Lloh8:
	adrp	x9, _WACOM_DEVICETYPE_DIRECT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _WACOM_DEVICETYPE_DIRECT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _INPUT_PROP_POINTER@GOTPAGE
Lloh12:
	ldr	x10, [x10, _INPUT_PROP_POINTER@GOTPAGEOFF]
Lloh13:
	adrp	x11, _INPUT_PROP_DIRECT@GOTPAGE
Lloh14:
	ldr	x11, [x11, _INPUT_PROP_DIRECT@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x10, x11, eq
	ldr	w0, [x8]
	ldr	w1, [x19, #16]
	bl	___set_bit
	ldr	w8, [x20, #4]
Lloh15:
	adrp	x9, _HID_GENERIC@GOTPAGE
Lloh16:
	ldr	x9, [x9, _HID_GENERIC@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.2:
	ldr	w1, [x22]
Lloh18:
	adrp	x8, _BTN_STYLUS3@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BTN_STYLUS3@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_input_set_capability
	b	LBB0_20
LBB0_3:
Lloh21:
	adrp	x8, _ENODEV@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_21
LBB0_4:
Lloh24:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	ldr	w1, [x19, #12]
	bl	___set_bit
Lloh27:
	adrp	x21, _ABS_MISC@GOTPAGE
Lloh28:
	ldr	x21, [x21, _ABS_MISC@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	w1, [x19, #8]
	bl	___set_bit
Lloh29:
	adrp	x22, _ABS_X@GOTPAGE
Lloh30:
	ldr	x22, [x22, _ABS_X@GOTPAGEOFF]
	ldr	w1, [x22]
	ldp	w2, w8, [x20, #8]
	ldr	w9, [x20, #16]
	sub	w3, w8, w9
	ldr	w4, [x20, #60]
	mov	x0, x19
	mov	w5, #0
	bl	_input_set_abs_params
Lloh31:
	adrp	x23, _ABS_Y@GOTPAGE
Lloh32:
	ldr	x23, [x23, _ABS_Y@GOTPAGEOFF]
	ldr	w1, [x23]
	ldp	w2, w8, [x20, #20]
	ldr	w9, [x20, #28]
	sub	w3, w8, w9
	ldr	w4, [x20, #56]
	mov	x0, x19
	mov	w5, #0
	bl	_input_set_abs_params
Lloh33:
	adrp	x8, _ABS_PRESSURE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ABS_PRESSURE@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	ldr	w3, [x20, #32]
	ldr	w4, [x20, #52]
	mov	x0, x19
	mov	w2, #0
	mov	w5, #0
	bl	_input_set_abs_params
	ldr	w1, [x22]
	ldr	w2, [x20, #36]
	mov	x0, x19
	bl	_input_abs_set_res
	ldr	w1, [x23]
	ldr	w2, [x20, #40]
	mov	x0, x19
	bl	_input_abs_set_res
	ldr	w8, [x20, #4]
	sub	w9, w8, #128
	cmp	w9, #49
	b.hi	LBB0_20
; %bb.5:
Lloh36:
	adrp	x10, lJTI0_0@PAGE
Lloh37:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_6
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_6:
Lloh38:
	adrp	x21, _ABS_Z@GOTPAGE
Lloh39:
	ldr	x21, [x21, _ABS_Z@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #-900
	mov	w3, #899
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #287
	bl	_input_abs_set_res
	mov	x0, x20
	bl	_wacom_setup_cintiq
	b	LBB0_20
LBB0_7:
	ldr	w0, [x21]
	ldr	w1, [x19, #8]
	bl	___clear_bit
LBB0_8:
Lloh40:
	adrp	x8, _BTN_TOOL_PEN@GOTPAGE
Lloh41:
	ldr	x8, [x8, _BTN_TOOL_PEN@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
	ldr	w1, [x19, #12]
	bl	___set_bit
Lloh43:
	adrp	x8, _BTN_TOOL_RUBBER@GOTPAGE
Lloh44:
	ldr	x8, [x8, _BTN_TOOL_RUBBER@GOTPAGEOFF]
	b	LBB0_18
LBB0_9:
Lloh45:
	adrp	x8, _ABS_DISTANCE@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ABS_DISTANCE@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	ldp	w3, w4, [x20, #44]
	mov	x0, x19
	mov	w2, #0
	mov	w5, #0
	bl	_input_set_abs_params
LBB0_10:
Lloh48:
	adrp	x21, _ABS_Z@GOTPAGE
Lloh49:
	ldr	x21, [x21, _ABS_Z@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #-900
	mov	w3, #899
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #287
	bl	_input_abs_set_res
LBB0_11:
	mov	x0, x20
	bl	_wacom_setup_intuos
	b	LBB0_20
LBB0_12:
	and	w8, w8, #0xfffffffe
	cmp	w8, #152
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x20
	bl	_wacom_setup_basic_pro_pen
	b	LBB0_20
LBB0_14:
	ldr	w0, [x21]
	ldr	w1, [x19, #8]
	bl	___clear_bit
Lloh50:
	adrp	x8, _BTN_TOOL_PEN@GOTPAGE
Lloh51:
	ldr	x8, [x8, _BTN_TOOL_PEN@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
	ldr	w1, [x19, #12]
	bl	___set_bit
Lloh53:
	adrp	x8, _BTN_TOOL_RUBBER@GOTPAGE
Lloh54:
	ldr	x8, [x8, _BTN_TOOL_RUBBER@GOTPAGEOFF]
Lloh55:
	ldr	w0, [x8]
	ldr	w1, [x19, #12]
	bl	___set_bit
Lloh56:
	adrp	x8, _BTN_STYLUS@GOTPAGE
Lloh57:
	ldr	x8, [x8, _BTN_STYLUS@GOTPAGEOFF]
Lloh58:
	ldr	w0, [x8]
	ldr	w1, [x19, #12]
	bl	___set_bit
Lloh59:
	adrp	x8, _BTN_STYLUS2@GOTPAGE
Lloh60:
	ldr	x8, [x8, _BTN_STYLUS2@GOTPAGEOFF]
Lloh61:
	ldr	w0, [x8]
	ldr	w1, [x19, #12]
	bl	___set_bit
Lloh62:
	adrp	x8, _ABS_DISTANCE@GOTPAGE
Lloh63:
	ldr	x8, [x8, _ABS_DISTANCE@GOTPAGEOFF]
Lloh64:
	ldr	w1, [x8]
	ldp	w3, w4, [x20, #44]
	mov	x0, x19
	mov	w2, #0
	mov	w5, #0
	bl	_input_set_abs_params
	b	LBB0_20
LBB0_15:
	ldr	w0, [x21]
	ldr	w1, [x19, #8]
	bl	___clear_bit
LBB0_16:
Lloh65:
	adrp	x8, _ABS_DISTANCE@GOTPAGE
Lloh66:
	ldr	x8, [x8, _ABS_DISTANCE@GOTPAGEOFF]
Lloh67:
	ldr	w1, [x8]
	ldp	w3, w4, [x20, #44]
	mov	x0, x19
	mov	w2, #0
	mov	w5, #0
	bl	_input_set_abs_params
LBB0_17:
Lloh68:
	adrp	x8, _EV_REL@GOTPAGE
Lloh69:
	ldr	x8, [x8, _EV_REL@GOTPAGEOFF]
Lloh70:
	ldr	w1, [x8]
Lloh71:
	adrp	x8, _REL_WHEEL@GOTPAGE
Lloh72:
	ldr	x8, [x8, _REL_WHEEL@GOTPAGEOFF]
Lloh73:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_input_set_capability
Lloh74:
	adrp	x8, _BTN_LEFT@GOTPAGE
Lloh75:
	ldr	x8, [x8, _BTN_LEFT@GOTPAGEOFF]
Lloh76:
	ldr	w0, [x8]
	ldr	w1, [x19, #12]
	bl	___set_bit
Lloh77:
	adrp	x8, _BTN_RIGHT@GOTPAGE
Lloh78:
	ldr	x8, [x8, _BTN_RIGHT@GOTPAGEOFF]
Lloh79:
	ldr	w0, [x8]
	ldr	w1, [x19, #12]
	bl	___set_bit
Lloh80:
	adrp	x8, _BTN_MIDDLE@GOTPAGE
Lloh81:
	ldr	x8, [x8, _BTN_MIDDLE@GOTPAGEOFF]
Lloh82:
	ldr	w0, [x8]
	ldr	w1, [x19, #12]
	bl	___set_bit
Lloh83:
	adrp	x8, _BTN_TOOL_RUBBER@GOTPAGE
Lloh84:
	ldr	x8, [x8, _BTN_TOOL_RUBBER@GOTPAGEOFF]
Lloh85:
	ldr	w0, [x8]
	ldr	w1, [x19, #12]
	bl	___set_bit
Lloh86:
	adrp	x8, _BTN_TOOL_PEN@GOTPAGE
Lloh87:
	ldr	x8, [x8, _BTN_TOOL_PEN@GOTPAGEOFF]
Lloh88:
	ldr	w0, [x8]
	ldr	w1, [x19, #12]
	bl	___set_bit
Lloh89:
	adrp	x8, _BTN_TOOL_MOUSE@GOTPAGE
Lloh90:
	ldr	x8, [x8, _BTN_TOOL_MOUSE@GOTPAGEOFF]
LBB0_18:
	ldr	w0, [x8]
	ldr	w1, [x19, #12]
	bl	___set_bit
Lloh91:
	adrp	x8, _BTN_STYLUS@GOTPAGE
Lloh92:
	ldr	x8, [x8, _BTN_STYLUS@GOTPAGEOFF]
Lloh93:
	ldr	w0, [x8]
	ldr	w1, [x19, #12]
	bl	___set_bit
Lloh94:
	adrp	x8, _BTN_STYLUS2@GOTPAGE
Lloh95:
	ldr	x8, [x8, _BTN_STYLUS2@GOTPAGEOFF]
LBB0_19:
	ldr	w0, [x8]
	ldr	w1, [x19, #12]
	bl	___set_bit
LBB0_20:
	mov	w0, #0
LBB0_21:
	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
LBB0_22:
	ldr	w0, [x21]
	ldr	w1, [x19, #8]
	bl	___clear_bit
	b	LBB0_20
LBB0_23:
Lloh96:
	adrp	x8, _BTN_STYLUS2@GOTPAGE
Lloh97:
	ldr	x8, [x8, _BTN_STYLUS2@GOTPAGEOFF]
Lloh98:
	ldr	w0, [x8]
	ldr	w1, [x19, #12]
	bl	___set_bit
LBB0_24:
Lloh99:
	adrp	x8, _BTN_TOOL_PEN@GOTPAGE
Lloh100:
	ldr	x8, [x8, _BTN_TOOL_PEN@GOTPAGEOFF]
Lloh101:
	ldr	w0, [x8]
	ldr	w1, [x19, #12]
	bl	___set_bit
Lloh102:
	adrp	x8, _BTN_TOOL_RUBBER@GOTPAGE
Lloh103:
	ldr	x8, [x8, _BTN_TOOL_RUBBER@GOTPAGEOFF]
Lloh104:
	ldr	w0, [x8]
	ldr	w1, [x19, #12]
	bl	___set_bit
Lloh105:
	adrp	x8, _BTN_STYLUS@GOTPAGE
Lloh106:
	ldr	x8, [x8, _BTN_STYLUS@GOTPAGEOFF]
	b	LBB0_19
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGot	Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGot	Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpLdrGot	Lloh105, Lloh106
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_16-LBB0_6)>>2
	.byte	(LBB0_16-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_7-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_7-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_7-LBB0_6)>>2
	.byte	(LBB0_7-LBB0_6)>>2
	.byte	(LBB0_7-LBB0_6)>>2
	.byte	(LBB0_23-LBB0_6)>>2
	.byte	(LBB0_8-LBB0_6)>>2
	.byte	(LBB0_24-LBB0_6)>>2
	.byte	(LBB0_7-LBB0_6)>>2
	.byte	(LBB0_7-LBB0_6)>>2
	.byte	(LBB0_7-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
	.byte	(LBB0_12-LBB0_6)>>2
	.byte	(LBB0_12-LBB0_6)>>2
	.byte	(LBB0_12-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
	.byte	(LBB0_15-LBB0_6)>>2
	.byte	(LBB0_17-LBB0_6)>>2
	.byte	(LBB0_8-LBB0_6)>>2
	.byte	(LBB0_8-LBB0_6)>>2
	.byte	(LBB0_8-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_12-LBB0_6)>>2
	.byte	(LBB0_12-LBB0_6)>>2
	.byte	(LBB0_22-LBB0_6)>>2
                                        ; -- End function
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_EV_ABS,4,2                     ; @EV_ABS
	.comm	_WACOM_DEVICETYPE_PEN,4,2       ; @WACOM_DEVICETYPE_PEN
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_WACOM_DEVICETYPE_DIRECT,4,2    ; @WACOM_DEVICETYPE_DIRECT
	.comm	_INPUT_PROP_DIRECT,4,2          ; @INPUT_PROP_DIRECT
	.comm	_INPUT_PROP_POINTER,4,2         ; @INPUT_PROP_POINTER
	.comm	_HID_GENERIC,4,2                ; @HID_GENERIC
	.comm	_BTN_STYLUS3,4,2                ; @BTN_STYLUS3
	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.comm	_ABS_MISC,4,2                   ; @ABS_MISC
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_ABS_PRESSURE,4,2               ; @ABS_PRESSURE
	.comm	_ABS_DISTANCE,4,2               ; @ABS_DISTANCE
	.comm	_EV_REL,4,2                     ; @EV_REL
	.comm	_REL_WHEEL,4,2                  ; @REL_WHEEL
	.comm	_BTN_LEFT,4,2                   ; @BTN_LEFT
	.comm	_BTN_RIGHT,4,2                  ; @BTN_RIGHT
	.comm	_BTN_MIDDLE,4,2                 ; @BTN_MIDDLE
	.comm	_BTN_TOOL_RUBBER,4,2            ; @BTN_TOOL_RUBBER
	.comm	_BTN_TOOL_PEN,4,2               ; @BTN_TOOL_PEN
	.comm	_BTN_TOOL_MOUSE,4,2             ; @BTN_TOOL_MOUSE
	.comm	_BTN_STYLUS,4,2                 ; @BTN_STYLUS
	.comm	_BTN_STYLUS2,4,2                ; @BTN_STYLUS2
	.comm	_ABS_Z,4,2                      ; @ABS_Z
.subsections_via_symbols
