	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wacom_intuos_general
_wacom_intuos_general:                  ## @wacom_intuos_general
	.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	%rsi, %r14
	movq	(%rdi), %rbx
	movb	1(%rbx), %al
	movl	%eax, %ecx
	andb	$-72, %cl
	cmpb	$-96, %cl
	jne	LBB0_9
## %bb.1:
	movzbl	6(%rbx), %ecx
	movzbl	7(%rbx), %edx
	shrl	$6, %edx
	leal	(%rdx,%rcx,4), %r15d
	movq	8(%rdi), %rcx
	movq	(%rcx), %rcx
	movq	_INTUOS4S@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jl	LBB0_3
## %bb.2:
	movq	_INTUOS4L@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jle	LBB0_7
LBB0_3:
	movq	_INTUOS5S@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jl	LBB0_5
## %bb.4:
	movq	_INTUOS5L@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jle	LBB0_7
LBB0_5:
	movq	_WACOM_21UX2@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jl	LBB0_8
## %bb.6:
	movq	_WACOM_24HD@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jg	LBB0_8
LBB0_7:
	movzbl	%al, %eax
	andl	$1, %eax
	leal	(%rax,%r15,2), %r15d
LBB0_8:
	movq	_ABS_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	%r15b, %edx
	movq	%r14, %rdi
	callq	_wacom_report_abs
	movq	_ABS_TILT_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movb	7(%rbx), %al
	movb	8(%rbx), %cl
	shrb	$7, %cl
	addb	%al, %al
	orb	%cl, %al
	andb	$127, %al
	movzbl	%al, %edx
	movq	%r14, %rdi
	callq	_wacom_report_abs
	movq	_ABS_TILT_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	8(%rbx), %edx
	andl	$127, %edx
	movq	%r14, %rdi
	callq	_wacom_report_abs
	movq	_BTN_STYLUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	1(%rbx), %edx
	andl	$2, %edx
	movq	%r14, %rdi
	callq	_wacom_report_key
	movq	_BTN_STYLUS2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	1(%rbx), %edx
	andl	$4, %edx
	movq	%r14, %rdi
	callq	_wacom_report_key
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	cmpl	$11, %r15d
	setae	%dl
	movq	%r14, %rdi
	callq	_wacom_report_key
	movb	1(%rbx), %al
LBB0_9:
	andb	$-68, %al
	cmpb	$-76, %al
	jne	LBB0_10
## %bb.11:
	movq	_ABS_WHEEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movb	6(%rbx), %al
	movb	7(%rbx), %cl
	shrb	$6, %cl
	shlb	$2, %al
	orb	%cl, %al
	movzbl	%al, %edx
	movq	%r14, %rdi
	callq	_wacom_report_abs
	movq	_ABS_TILT_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movb	7(%rbx), %al
	movb	8(%rbx), %cl
	shrb	$7, %cl
	addb	%al, %al
	orb	%cl, %al
	andb	$127, %al
	movzbl	%al, %edx
	movq	%r14, %rdi
	callq	_wacom_report_abs
	movq	_ABS_TILT_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	8(%rbx), %edx
	andl	$127, %edx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wacom_report_abs               ## TAILCALL
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INTUOS4S,8,3                   ## @INTUOS4S
	.comm	_INTUOS4L,8,3                   ## @INTUOS4L
	.comm	_INTUOS5S,8,3                   ## @INTUOS5S
	.comm	_INTUOS5L,8,3                   ## @INTUOS5L
	.comm	_WACOM_21UX2,8,3                ## @WACOM_21UX2
	.comm	_WACOM_24HD,8,3                 ## @WACOM_24HD
	.comm	_ABS_PRESSURE,4,2               ## @ABS_PRESSURE
	.comm	_ABS_TILT_X,4,2                 ## @ABS_TILT_X
	.comm	_ABS_TILT_Y,4,2                 ## @ABS_TILT_Y
	.comm	_BTN_STYLUS,4,2                 ## @BTN_STYLUS
	.comm	_BTN_STYLUS2,4,2                ## @BTN_STYLUS2
	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.comm	_ABS_WHEEL,4,2                  ## @ABS_WHEEL
	.no_dead_strip	_wacom_intuos_general
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wacom_intuos_general
_wacom_intuos_general:                  ; @wacom_intuos_general
	.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	x20, [x0]
	ldrb	w8, [x20, #1]
	mov	w9, #184
	and	w9, w8, w9
Lloh0:
	adrp	x22, _ABS_TILT_X@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ABS_TILT_X@GOTPAGEOFF]
Lloh2:
	adrp	x21, _ABS_TILT_Y@GOTPAGE
Lloh3:
	ldr	x21, [x21, _ABS_TILT_Y@GOTPAGEOFF]
	cmp	w9, #160
	b.ne	LBB0_6
; %bb.1:
	ldrb	w10, [x20, #6]
	ldrb	w9, [x20, #7]
	lsr	w9, w9, #6
	bfi	w9, w10, #2, #8
	ldr	x10, [x0, #8]
	ldr	x10, [x10]
Lloh4:
	adrp	x11, _INTUOS4S@GOTPAGE
Lloh5:
	ldr	x11, [x11, _INTUOS4S@GOTPAGEOFF]
Lloh6:
	ldr	x11, [x11]
Lloh7:
	adrp	x12, _INTUOS4L@GOTPAGE
Lloh8:
	ldr	x12, [x12, _INTUOS4L@GOTPAGEOFF]
Lloh9:
	ldr	x12, [x12]
	cmp	x10, x11
	ccmp	x10, x12, #0, ge
	b.le	LBB0_4
; %bb.2:
Lloh10:
	adrp	x11, _INTUOS5S@GOTPAGE
Lloh11:
	ldr	x11, [x11, _INTUOS5S@GOTPAGEOFF]
Lloh12:
	ldr	x11, [x11]
Lloh13:
	adrp	x12, _INTUOS5L@GOTPAGE
Lloh14:
	ldr	x12, [x12, _INTUOS5L@GOTPAGEOFF]
Lloh15:
	ldr	x12, [x12]
	cmp	x10, x11
	ccmp	x10, x12, #0, ge
	b.le	LBB0_4
; %bb.3:
Lloh16:
	adrp	x11, _WACOM_21UX2@GOTPAGE
Lloh17:
	ldr	x11, [x11, _WACOM_21UX2@GOTPAGEOFF]
Lloh18:
	ldr	x11, [x11]
Lloh19:
	adrp	x12, _WACOM_24HD@GOTPAGE
Lloh20:
	ldr	x12, [x12, _WACOM_24HD@GOTPAGEOFF]
Lloh21:
	ldr	x12, [x12]
	cmp	x10, x11
	ccmp	x10, x12, #0, ge
	mov	x23, x9
	b.gt	LBB0_5
LBB0_4:
	and	w23, w8, #0x1
	bfi	w23, w9, #1, #10
LBB0_5:
Lloh22:
	adrp	x8, _ABS_PRESSURE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ABS_PRESSURE@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	and	w2, w23, #0xff
	mov	x0, x19
	bl	_wacom_report_abs
	ldr	w1, [x22]
	ldrb	w8, [x20, #7]
	ldrb	w9, [x20, #8]
	lsr	w2, w9, #7
	bfi	w2, w8, #1, #6
	mov	x0, x19
	bl	_wacom_report_abs
	ldr	w1, [x21]
	ldrb	w8, [x20, #8]
	and	w2, w8, #0x7f
	mov	x0, x19
	bl	_wacom_report_abs
Lloh25:
	adrp	x8, _BTN_STYLUS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _BTN_STYLUS@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	ldrb	w8, [x20, #1]
	and	w2, w8, #0x2
	mov	x0, x19
	bl	_wacom_report_key
Lloh28:
	adrp	x8, _BTN_STYLUS2@GOTPAGE
Lloh29:
	ldr	x8, [x8, _BTN_STYLUS2@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	ldrb	w8, [x20, #1]
	and	w2, w8, #0x4
	mov	x0, x19
	bl	_wacom_report_key
Lloh31:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh32:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	cmp	w23, #10
	cset	w2, hi
	mov	x0, x19
	bl	_wacom_report_key
	ldrb	w8, [x20, #1]
LBB0_6:
	mov	w9, #188
	and	w8, w8, w9
	cmp	w8, #180
	b.ne	LBB0_8
; %bb.7:
Lloh34:
	adrp	x8, _ABS_WHEEL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ABS_WHEEL@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	ldrb	w8, [x20, #6]
	ldrb	w9, [x20, #7]
	lsl	w9, w9, #24
	extr	w8, w8, w9, #30
	and	w2, w8, #0xff
	mov	x0, x19
	bl	_wacom_report_abs
	ldr	w1, [x22]
	ldrb	w8, [x20, #7]
	ldrb	w9, [x20, #8]
	lsr	w2, w9, #7
	bfi	w2, w8, #1, #6
	mov	x0, x19
	bl	_wacom_report_abs
	ldr	w1, [x21]
	ldrb	w8, [x20, #8]
	and	w2, w8, #0x7f
	mov	x0, x19
	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
	b	_wacom_report_abs
LBB0_8:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_INTUOS4S,8,3                   ; @INTUOS4S
	.comm	_INTUOS4L,8,3                   ; @INTUOS4L
	.comm	_INTUOS5S,8,3                   ; @INTUOS5S
	.comm	_INTUOS5L,8,3                   ; @INTUOS5L
	.comm	_WACOM_21UX2,8,3                ; @WACOM_21UX2
	.comm	_WACOM_24HD,8,3                 ; @WACOM_24HD
	.comm	_ABS_PRESSURE,4,2               ; @ABS_PRESSURE
	.comm	_ABS_TILT_X,4,2                 ; @ABS_TILT_X
	.comm	_ABS_TILT_Y,4,2                 ; @ABS_TILT_Y
	.comm	_BTN_STYLUS,4,2                 ; @BTN_STYLUS
	.comm	_BTN_STYLUS2,4,2                ; @BTN_STYLUS2
	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.comm	_ABS_WHEEL,4,2                  ; @ABS_WHEEL
	.no_dead_strip	_wacom_intuos_general
.subsections_via_symbols
