	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wacom_setup_cintiq
_wacom_setup_cintiq:                    ## @wacom_setup_cintiq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	callq	_wacom_setup_basic_pro_pen
	movq	_BTN_TOOL_RUBBER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	___set_bit
	movq	_BTN_TOOL_BRUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	___set_bit
	movq	_BTN_TOOL_PENCIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	___set_bit
	movq	_BTN_TOOL_AIRBRUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	___set_bit
	movq	_ABS_WHEEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$1023, %ecx                     ## imm = 0x3FF
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	_ABS_TILT_X@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	(%r14), %r8d
	movq	%rbx, %rdi
	movl	$-64, %edx
	movl	$63, %ecx
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	$57, %edx
	callq	_input_abs_set_res
	movq	_ABS_TILT_Y@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	(%r14), %r8d
	movq	%rbx, %rdi
	movl	$-64, %edx
	movl	$63, %ecx
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	$57, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_abs_set_res              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BTN_TOOL_RUBBER,4,2            ## @BTN_TOOL_RUBBER
	.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_WHEEL,4,2                  ## @ABS_WHEEL
	.comm	_ABS_TILT_X,4,2                 ## @ABS_TILT_X
	.comm	_ABS_TILT_Y,4,2                 ## @ABS_TILT_Y
	.no_dead_strip	_wacom_setup_cintiq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wacom_setup_cintiq
_wacom_setup_cintiq:                    ; @wacom_setup_cintiq
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
	ldr	x19, [x0, #8]
	bl	_wacom_setup_basic_pro_pen
Lloh0:
	adrp	x8, _BTN_TOOL_RUBBER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BTN_TOOL_RUBBER@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	___set_bit
Lloh3:
	adrp	x8, _BTN_TOOL_BRUSH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BTN_TOOL_BRUSH@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	___set_bit
Lloh6:
	adrp	x8, _BTN_TOOL_PENCIL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BTN_TOOL_PENCIL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	___set_bit
Lloh9:
	adrp	x8, _BTN_TOOL_AIRBRUSH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BTN_TOOL_AIRBRUSH@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	___set_bit
Lloh12:
	adrp	x8, _ABS_WHEEL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ABS_WHEEL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #1023
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
Lloh15:
	adrp	x21, _ABS_TILT_X@GOTPAGE
Lloh16:
	ldr	x21, [x21, _ABS_TILT_X@GOTPAGEOFF]
	ldr	w1, [x21]
	ldr	w4, [x20]
	mov	x0, x19
	mov	w2, #-64
	mov	w3, #63
	mov	w5, #0
	bl	_input_set_abs_params
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #57
	bl	_input_abs_set_res
Lloh17:
	adrp	x21, _ABS_TILT_Y@GOTPAGE
Lloh18:
	ldr	x21, [x21, _ABS_TILT_Y@GOTPAGEOFF]
	ldr	w1, [x21]
	ldr	w4, [x20]
	mov	x0, x19
	mov	w2, #-64
	mov	w3, #63
	mov	w5, #0
	bl	_input_set_abs_params
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #57
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_input_abs_set_res
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BTN_TOOL_RUBBER,4,2            ; @BTN_TOOL_RUBBER
	.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_WHEEL,4,2                  ; @ABS_WHEEL
	.comm	_ABS_TILT_X,4,2                 ; @ABS_TILT_X
	.comm	_ABS_TILT_Y,4,2                 ; @ABS_TILT_Y
	.no_dead_strip	_wacom_setup_cintiq
.subsections_via_symbols
