	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wacom_usage_mapping
_wacom_usage_mapping:                   ## @wacom_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_hid_get_drvdata
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_WACOM_FINGER_FIELD
	movl	%eax, %r14d
	movq	%rbx, %r12
	movq	%rbx, %rdi
	callq	_WACOM_PEN_FIELD
	movl	%eax, %r13d
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movl	(%r15), %edi
	callq	_wacom_equivalent_usage
	movl	%eax, %r15d
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	testl	%r13d, %r13d
	je	LBB0_2
## %bb.1:
	movl	%r14d, %r13d
	movq	_WACOM_DEVICETYPE_PEN@GOTPCREL(%rip), %rax
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_4
LBB0_2:
	testl	%r14d, %r14d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_17
## %bb.3:
	movl	%r14d, %r13d
	movq	_WACOM_DEVICETYPE_TOUCH@GOTPCREL(%rip), %rax
LBB0_4:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	(%rax), %eax
	orl	%eax, 36(%r14)
	movq	%rdi, %rbx
	movq	%r12, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_wacom_hid_usage_quirk
	cmpl	$128, %r15d
	je	LBB0_12
## %bb.5:
	cmpl	$130, %r15d
	je	LBB0_14
## %bb.6:
	cmpl	$129, %r15d
	movq	%rbx, %rdi
	jne	LBB0_16
## %bb.7:
	movl	(%r12), %eax
	movl	%eax, 32(%r14)
	testl	%r13d, %r13d
	je	LBB0_16
## %bb.8:
	movl	12(%r12), %eax
	movl	%eax, 28(%r14)
	jmp	LBB0_9
LBB0_12:
	movl	(%r12), %eax
	movl	%eax, 24(%r14)
	testl	%r13d, %r13d
	movq	%rbx, %rdi
	je	LBB0_16
## %bb.13:
	movl	12(%r12), %eax
	movl	%eax, 20(%r14)
LBB0_9:
	movq	(%r14), %rax
	movq	_BAMBOO_PT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_16
## %bb.10:
	movq	_BAMBOO_TOUCH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_16
## %bb.11:
	movl	8(%r12), %eax
	movl	%eax, 16(%r14)
	movl	4(%r12), %eax
	movl	%eax, 12(%r14)
	jmp	LBB0_16
LBB0_14:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movq	%rbx, %rdi
	je	LBB0_16
## %bb.15:
	movl	(%r12), %eax
	movl	%eax, 8(%r14)
LBB0_16:
	movq	(%r14), %rax
	movq	_HID_GENERIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.18:
	movq	%r12, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wacom_wac_usage_mapping        ## TAILCALL
LBB0_17:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WACOM_DEVICETYPE_PEN,4,2       ## @WACOM_DEVICETYPE_PEN
	.comm	_WACOM_DEVICETYPE_TOUCH,4,2     ## @WACOM_DEVICETYPE_TOUCH
	.comm	_BAMBOO_PT,8,3                  ## @BAMBOO_PT
	.comm	_BAMBOO_TOUCH,8,3               ## @BAMBOO_TOUCH
	.comm	_HID_GENERIC,8,3                ## @HID_GENERIC
	.no_dead_strip	_wacom_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_usage_mapping
_wacom_usage_mapping:                   ; @wacom_usage_mapping
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_hid_get_drvdata
	mov	x22, x0
	mov	x0, x20
	bl	_WACOM_FINGER_FIELD
	mov	x23, x0
	mov	x0, x20
	bl	_WACOM_PEN_FIELD
	mov	x24, x0
	ldr	w0, [x19]
	bl	_wacom_equivalent_usage
	mov	x25, x0
	cbz	w24, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _WACOM_DEVICETYPE_PEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WACOM_DEVICETYPE_PEN@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	cbz	w23, LBB0_17
; %bb.3:
Lloh2:
	adrp	x8, _WACOM_DEVICETYPE_TOUCH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WACOM_DEVICETYPE_TOUCH@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	ldr	w9, [x22, #36]
	orr	w8, w9, w8
	str	w8, [x22, #36]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_wacom_hid_usage_quirk
	cmp	w25, #128
	b.eq	LBB0_9
; %bb.5:
	cmp	w25, #130
	b.eq	LBB0_13
; %bb.6:
	cmp	w25, #129
	b.ne	LBB0_15
; %bb.7:
	ldr	w8, [x20]
	str	w8, [x22, #32]
	cbz	w23, LBB0_15
; %bb.8:
	ldr	w8, [x20, #12]
	str	w8, [x22, #28]
	b	LBB0_11
LBB0_9:
	ldr	w8, [x20]
	str	w8, [x22, #24]
	cbz	w23, LBB0_15
; %bb.10:
	ldr	w8, [x20, #12]
	str	w8, [x22, #20]
LBB0_11:
	ldr	x8, [x22]
Lloh4:
	adrp	x9, _BAMBOO_PT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _BAMBOO_PT@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
Lloh7:
	adrp	x10, _BAMBOO_TOUCH@GOTPAGE
Lloh8:
	ldr	x10, [x10, _BAMBOO_TOUCH@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_15
; %bb.12:
	ldur	d0, [x20, #4]
	stur	d0, [x22, #12]
	b	LBB0_15
LBB0_13:
	cbz	w24, LBB0_15
; %bb.14:
	ldr	w8, [x20]
	str	w8, [x22, #8]
LBB0_15:
	ldr	x8, [x22]
Lloh10:
	adrp	x9, _HID_GENERIC@GOTPAGE
Lloh11:
	ldr	x9, [x9, _HID_GENERIC@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.16:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_wacom_wac_usage_mapping
LBB0_17:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_WACOM_DEVICETYPE_PEN,4,2       ; @WACOM_DEVICETYPE_PEN
	.comm	_WACOM_DEVICETYPE_TOUCH,4,2     ; @WACOM_DEVICETYPE_TOUCH
	.comm	_BAMBOO_PT,8,3                  ; @BAMBOO_PT
	.comm	_BAMBOO_TOUCH,8,3               ; @BAMBOO_TOUCH
	.comm	_HID_GENERIC,8,3                ; @HID_GENERIC
	.no_dead_strip	_wacom_usage_mapping
.subsections_via_symbols
