	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wacom_map_usage
_wacom_map_usage:                       ## @wacom_map_usage
	.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
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movq	%r8, %r12
	movl	%ecx, %ebx
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_input_get_drvdata
	movq	%rax, %r15
	movl	(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movl	4(%r13), %r13d
	movl	16(%r14), %edi
	callq	_wacom_equivalent_usage
	movq	_HID_DG_TWIST@GOTPCREL(%rip), %rcx
	movq	%r12, %rdx
	movl	%r12d, %esi
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	movq	_ABS_RZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
LBB0_2:
	movq	_HID_GD_X@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.4:
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	addl	24(%r15), %r12d
	subl	16(%r15), %r13d
	jmp	LBB0_5
LBB0_3:
	movl	-44(%rbp), %r12d                ## 4-byte Reload
LBB0_5:
	movq	_HID_GD_Y@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	jne	LBB0_7
## %bb.6:
	addl	8(%r15), %r12d
	subl	(%r15), %r13d
LBB0_7:
	movl	%ebx, (%r14)
	movq	%rdx, 8(%r14)
	movq	%rdx, %r14
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15), %esi
	movl	%ebx, %edi
	callq	_set_bit
	addl	$-128, %ebx
	cmpl	$3, %ebx
	ja	LBB0_14
## %bb.8:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_13:
	movq	%r15, %rdi
	movl	$128, %esi
	jmp	LBB0_11
LBB0_14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	%r15, %rdi
	movl	$129, %esi
	jmp	LBB0_11
LBB0_10:
	movq	%r15, %rdi
	movl	$130, %esi
LBB0_11:
	movq	%r14, %rdx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_set_capability           ## TAILCALL
LBB0_9:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_hidinput_calc_abs_res
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_abs_set_res              ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_13
	.long	L0_0_set_12
	.long	L0_0_set_10
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_HID_DG_TWIST,4,2               ## @HID_DG_TWIST
	.comm	_ABS_RZ,4,2                     ## @ABS_RZ
	.comm	_HID_GD_X,4,2                   ## @HID_GD_X
	.comm	_HID_GD_Y,4,2                   ## @HID_GD_Y
	.no_dead_strip	_wacom_map_usage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wacom_map_usage
_wacom_map_usage:                       ; @wacom_map_usage
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x5
	mov	x19, x4
	mov	x25, x3
	mov	x21, x2
	mov	x27, x1
	mov	x20, x0
	bl	_input_get_drvdata
	mov	x28, x0
	ldp	w24, w23, [x21]
	ldr	w0, [x27, #16]
	bl	_wacom_equivalent_usage
Lloh0:
	adrp	x8, _HID_DG_TWIST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HID_DG_TWIST@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ABS_RZ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ABS_RZ@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w0, w8
	csel	w26, w9, w19, eq
Lloh6:
	adrp	x8, _HID_GD_X@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HID_GD_X@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x28, #24]
	add	w24, w24, w8
	ldr	w8, [x28, #16]
	sub	w23, w23, w8
LBB0_2:
Lloh9:
	adrp	x8, _HID_GD_Y@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HID_GD_Y@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x28, #8]
	add	w24, w24, w8
	ldr	w8, [x28]
	sub	w23, w23, w8
LBB0_4:
	str	w25, [x27]
	str	x19, [x27, #8]
	ldr	w1, [x20]
	mov	x0, x25
	bl	_set_bit
	sub	w8, w25, #128
	cmp	w8, #3
	b.hi	LBB0_7
; %bb.5:
Lloh12:
	adrp	x9, lJTI0_0@PAGE
Lloh13:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
	mov	x0, x20
	mov	w1, #128
	b	LBB0_10
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x0, x20
	mov	w1, #129
	b	LBB0_10
LBB0_9:
	mov	x0, x20
	mov	w1, #130
LBB0_10:
	mov	x2, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_input_set_capability
LBB0_11:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	mov	x3, x23
	mov	x4, x22
	mov	w5, #0
	bl	_input_set_abs_params
	mov	x0, x21
	mov	x1, x26
	bl	_hidinput_calc_abs_res
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_input_abs_set_res
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_8-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
                                        ; -- End function
	.comm	_HID_DG_TWIST,4,2               ; @HID_DG_TWIST
	.comm	_ABS_RZ,4,2                     ; @ABS_RZ
	.comm	_HID_GD_X,4,2                   ; @HID_GD_X
	.comm	_HID_GD_Y,4,2                   ; @HID_GD_Y
	.no_dead_strip	_wacom_map_usage
.subsections_via_symbols
