	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wacom_wac_finger_usage_mapping
_wacom_wac_finger_usage_mapping:        ## @wacom_wac_finger_usage_mapping
	.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	%rdx, %r12
	movq	%rsi, %r14
	callq	_hid_get_drvdata
	movq	%rax, %rbx
	movq	16(%rax), %r15
	movl	12(%rax), %r13d
	movl	4(%r12), %edi
	callq	_wacom_equivalent_usage
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$6, %eax
	ja	LBB0_15
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_10:
	movq	_EV_ABS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movq	_ABS_MT_TOUCH_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	xorl	%r9d, %r9d
	callq	_wacom_map_usage
	movl	(%rbx), %ecx
	movq	_ABS_MT_TOUCH_MINOR@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	xorl	%r9d, %r9d
	callq	_wacom_map_usage
	movq	_ABS_MT_ORIENTATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_set_abs_params           ## TAILCALL
LBB0_7:
	movq	_EV_ABS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	$1, %r13d
	jne	LBB0_9
## %bb.8:
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_EV_ABS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	$1, %r13d
	jne	LBB0_6
## %bb.3:
	movq	_ABS_X@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_13:
	movl	(%r14), %eax
	subl	4(%r14), %eax
	cmpl	%r13d, %eax
	jae	LBB0_15
## %bb.14:
	movl	$255, (%r14)
	jmp	LBB0_15
LBB0_11:
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	xorl	%r9d, %r9d
	jmp	LBB0_5
LBB0_12:
	movq	16(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	8(%r14), %eax
	movl	%eax, 4(%rbx)
	movl	(%r12), %eax
	movl	%eax, (%rbx)
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_ABS_MT_POSITION_Y@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_6:
	movq	_ABS_MT_POSITION_X@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	movl	$4, %r9d
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wacom_map_usage                ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_2
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_10
	.long	L0_0_set_13
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_EV_ABS,4,2                     ## @EV_ABS
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_MT_POSITION_X,4,2          ## @ABS_MT_POSITION_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_ABS_MT_POSITION_Y,4,2          ## @ABS_MT_POSITION_Y
	.comm	_ABS_MT_TOUCH_MAJOR,4,2         ## @ABS_MT_TOUCH_MAJOR
	.comm	_ABS_MT_TOUCH_MINOR,4,2         ## @ABS_MT_TOUCH_MINOR
	.comm	_ABS_MT_ORIENTATION,4,2         ## @ABS_MT_ORIENTATION
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.no_dead_strip	_wacom_wac_finger_usage_mapping
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wacom_wac_finger_usage_mapping
_wacom_wac_finger_usage_mapping:        ; @wacom_wac_finger_usage_mapping
	.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, x2
	mov	x19, x1
	bl	_hid_get_drvdata
	mov	x22, x0
	ldr	x21, [x0, #16]
	ldr	w23, [x0, #12]
	ldr	w0, [x20, #4]
	bl	_wacom_equivalent_usage
	sub	w8, w0, #128
	cmp	w8, #6
	b.hi	LBB0_11
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x22, _EV_ABS@GOTPAGE
Lloh3:
	ldr	x22, [x22, _EV_ABS@GOTPAGEOFF]
	ldr	w3, [x22]
Lloh4:
	adrp	x8, _ABS_MT_TOUCH_MAJOR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ABS_MT_TOUCH_MAJOR@GOTPAGEOFF]
Lloh6:
	ldr	w4, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	w5, #0
	bl	_wacom_map_usage
	ldr	w3, [x22]
Lloh7:
	adrp	x8, _ABS_MT_TOUCH_MINOR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ABS_MT_TOUCH_MINOR@GOTPAGEOFF]
Lloh9:
	ldr	w4, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	w5, #0
	bl	_wacom_map_usage
Lloh10:
	adrp	x8, _ABS_MT_ORIENTATION@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ABS_MT_ORIENTATION@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	mov	w3, #1
	mov	w4, #0
	mov	w5, #0
	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	_input_set_abs_params
LBB0_3:
Lloh13:
	adrp	x8, _EV_ABS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EV_ABS@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
	cmp	w23, #1
	b.ne	LBB0_12
; %bb.4:
Lloh16:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
	b	LBB0_14
LBB0_5:
Lloh18:
	adrp	x8, _EV_ABS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EV_ABS@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	cmp	w23, #1
	b.ne	LBB0_13
; %bb.6:
Lloh21:
	adrp	x8, _ABS_X@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
	b	LBB0_14
LBB0_7:
	ldp	w8, w9, [x19]
	sub	w8, w8, w9
	cmp	w8, w23
	b.hs	LBB0_11
; %bb.8:
	mov	w8, #255
	str	w8, [x19]
	b	LBB0_11
LBB0_9:
Lloh23:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
Lloh26:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh27:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh28:
	ldr	w4, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	w5, #0
	b	LBB0_15
LBB0_10:
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	str	w8, [x22, #8]
	ldr	w8, [x19, #8]
	ldr	w9, [x20]
	stp	w9, w8, [x22]
LBB0_11:
	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_12:
Lloh29:
	adrp	x8, _ABS_MT_POSITION_Y@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ABS_MT_POSITION_Y@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh31:
	adrp	x8, _ABS_MT_POSITION_X@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ABS_MT_POSITION_X@GOTPAGEOFF]
LBB0_14:
	ldr	w4, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	w5, #4
LBB0_15:
	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_map_usage
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
                                        ; -- End function
	.comm	_EV_ABS,4,2                     ; @EV_ABS
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_MT_POSITION_X,4,2          ; @ABS_MT_POSITION_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_ABS_MT_POSITION_Y,4,2          ; @ABS_MT_POSITION_Y
	.comm	_ABS_MT_TOUCH_MAJOR,4,2         ; @ABS_MT_TOUCH_MAJOR
	.comm	_ABS_MT_TOUCH_MINOR,4,2         ; @ABS_MT_TOUCH_MINOR
	.comm	_ABS_MT_ORIENTATION,4,2         ; @ABS_MT_ORIENTATION
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.no_dead_strip	_wacom_wac_finger_usage_mapping
.subsections_via_symbols
