	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wacom_wac_pad_usage_mapping
_wacom_wac_pad_usage_mapping:           ## @wacom_wac_pad_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, %rbx
	movq	%rsi, %r15
	callq	_hid_get_drvdata
	movq	%rax, %r14
	movq	16(%rax), %r12
	movl	8(%rbx), %edi
	callq	_wacom_equivalent_usage
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$19, %eax
	ja	LBB0_18
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_5:
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	28(%r14), %edi
	callq	_wacom_numbered_button_to_key
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movl	%r13d, %ecx
	movl	%eax, %r8d
	xorl	%r9d, %r9d
	callq	_wacom_map_usage
	incl	28(%r14)
	jmp	LBB0_17
LBB0_6:
	movl	$1, (%r14)
	movq	_EV_SW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	_SW_MUTE_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_17
LBB0_9:
	movq	_EV_ABS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ABS_RY@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_EV_ABS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ABS_RX@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_11:
	movq	_EV_ABS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, 4(%rbx)
	movq	_ABS_WHEEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rbx)
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_set_bit
	jmp	LBB0_17
LBB0_10:
	movq	_EV_ABS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ABS_WHEEL@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_13:
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_KEY_ONSCREEN_KEYBOARD@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_15:
	cmpl	$0, 4(%r14)
	jne	LBB0_17
## %bb.16:
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 4(%r14)
	jmp	LBB0_17
LBB0_14:
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_KEY_CONTROLPANEL@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_12:
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_KEY_BUTTONCONFIG@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	movq	_INPUT_PROP_ACCELEROMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r12), %esi
	callq	___set_bit
	movq	_EV_ABS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ABS_Z@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_3:
	movq	_INPUT_PROP_ACCELEROMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r12), %esi
	callq	___set_bit
	movq	_EV_ABS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_2:
	movq	_INPUT_PROP_ACCELEROMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r12), %esi
	callq	___set_bit
	movq	_EV_ABS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ABS_X@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %r8d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	xorl	%r9d, %r9d
	callq	_wacom_map_usage
LBB0_17:
	movq	_WACOM_DEVICETYPE_PAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%r14)
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_7
	.long	L0_0_set_11
	.long	L0_0_set_10
	.long	L0_0_set_6
	.long	L0_0_set_13
	.long	L0_0_set_6
	.long	L0_0_set_15
	.long	L0_0_set_18
	.long	L0_0_set_14
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_12
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_3
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_INPUT_PROP_ACCELEROMETER,4,2   ## @INPUT_PROP_ACCELEROMETER
	.comm	_EV_ABS,4,2                     ## @EV_ABS
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_WACOM_DEVICETYPE_PAD,4,2       ## @WACOM_DEVICETYPE_PAD
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_ABS_Z,4,2                      ## @ABS_Z
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_EV_SW,4,2                      ## @EV_SW
	.comm	_SW_MUTE_DEVICE,4,2             ## @SW_MUTE_DEVICE
	.comm	_ABS_RX,4,2                     ## @ABS_RX
	.comm	_ABS_RY,4,2                     ## @ABS_RY
	.comm	_ABS_WHEEL,4,2                  ## @ABS_WHEEL
	.comm	_KEY_BUTTONCONFIG,4,2           ## @KEY_BUTTONCONFIG
	.comm	_KEY_ONSCREEN_KEYBOARD,4,2      ## @KEY_ONSCREEN_KEYBOARD
	.comm	_KEY_CONTROLPANEL,4,2           ## @KEY_CONTROLPANEL
	.no_dead_strip	_wacom_wac_pad_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_pad_usage_mapping
_wacom_wac_pad_usage_mapping:           ; @wacom_wac_pad_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	x21, x1
	bl	_hid_get_drvdata
	mov	x19, x0
	ldr	x22, [x0, #16]
	ldr	w0, [x20, #8]
	bl	_wacom_equivalent_usage
	sub	w8, w0, #128
	cmp	w8, #19
	b.hi	LBB0_18
; %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	x8, _EV_KEY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh4:
	ldr	w23, [x8]
	ldr	w0, [x19, #28]
	bl	_wacom_numbered_button_to_key
	mov	x4, x0
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	mov	x3, x23
	mov	w5, #0
	bl	_wacom_map_usage
	ldr	w8, [x19, #28]
	add	w8, w8, #1
	str	w8, [x19, #28]
	b	LBB0_17
LBB0_3:
	mov	w8, #1
	str	w8, [x19]
Lloh5:
	adrp	x8, _EV_SW@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EV_SW@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _SW_MUTE_DEVICE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SW_MUTE_DEVICE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [x20]
	b	LBB0_17
LBB0_4:
Lloh11:
	adrp	x8, _EV_ABS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EV_ABS@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
Lloh14:
	adrp	x8, _ABS_RY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ABS_RY@GOTPAGEOFF]
	b	LBB0_16
LBB0_5:
Lloh16:
	adrp	x8, _EV_ABS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EV_ABS@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
Lloh19:
	adrp	x8, _ABS_RX@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ABS_RX@GOTPAGEOFF]
	b	LBB0_16
LBB0_6:
Lloh21:
	adrp	x8, _EV_ABS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EV_ABS@GOTPAGEOFF]
Lloh23:
	adrp	x9, _ABS_WHEEL@GOTPAGE
Lloh24:
	ldr	x9, [x9, _ABS_WHEEL@GOTPAGEOFF]
	ldr	w10, [x8]
Lloh25:
	ldr	w9, [x9]
	stp	w9, w10, [x20]
	ldr	w0, [x8]
	ldr	w1, [x22]
	bl	_set_bit
	b	LBB0_17
LBB0_7:
Lloh26:
	adrp	x8, _EV_ABS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EV_ABS@GOTPAGEOFF]
Lloh28:
	ldr	w3, [x8]
Lloh29:
	adrp	x8, _ABS_WHEEL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ABS_WHEEL@GOTPAGEOFF]
	b	LBB0_16
LBB0_8:
Lloh31:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh33:
	ldr	w3, [x8]
Lloh34:
	adrp	x8, _KEY_ONSCREEN_KEYBOARD@GOTPAGE
Lloh35:
	ldr	x8, [x8, _KEY_ONSCREEN_KEYBOARD@GOTPAGEOFF]
	b	LBB0_16
LBB0_9:
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_17
; %bb.10:
	movi.2s	v0, #1
	stur	d0, [x19, #4]
	b	LBB0_17
LBB0_11:
Lloh36:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh37:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh38:
	ldr	w3, [x8]
Lloh39:
	adrp	x8, _KEY_CONTROLPANEL@GOTPAGE
Lloh40:
	ldr	x8, [x8, _KEY_CONTROLPANEL@GOTPAGEOFF]
	b	LBB0_16
LBB0_12:
Lloh41:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh43:
	ldr	w3, [x8]
Lloh44:
	adrp	x8, _KEY_BUTTONCONFIG@GOTPAGE
Lloh45:
	ldr	x8, [x8, _KEY_BUTTONCONFIG@GOTPAGEOFF]
	b	LBB0_16
LBB0_13:
Lloh46:
	adrp	x8, _INPUT_PROP_ACCELEROMETER@GOTPAGE
Lloh47:
	ldr	x8, [x8, _INPUT_PROP_ACCELEROMETER@GOTPAGEOFF]
Lloh48:
	ldr	w0, [x8]
	ldr	w1, [x22, #4]
	bl	___set_bit
Lloh49:
	adrp	x8, _EV_ABS@GOTPAGE
Lloh50:
	ldr	x8, [x8, _EV_ABS@GOTPAGEOFF]
Lloh51:
	ldr	w3, [x8]
Lloh52:
	adrp	x8, _ABS_Z@GOTPAGE
Lloh53:
	ldr	x8, [x8, _ABS_Z@GOTPAGEOFF]
	b	LBB0_16
LBB0_14:
Lloh54:
	adrp	x8, _INPUT_PROP_ACCELEROMETER@GOTPAGE
Lloh55:
	ldr	x8, [x8, _INPUT_PROP_ACCELEROMETER@GOTPAGEOFF]
Lloh56:
	ldr	w0, [x8]
	ldr	w1, [x22, #4]
	bl	___set_bit
Lloh57:
	adrp	x8, _EV_ABS@GOTPAGE
Lloh58:
	ldr	x8, [x8, _EV_ABS@GOTPAGEOFF]
Lloh59:
	ldr	w3, [x8]
Lloh60:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh61:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
Lloh62:
	adrp	x8, _INPUT_PROP_ACCELEROMETER@GOTPAGE
Lloh63:
	ldr	x8, [x8, _INPUT_PROP_ACCELEROMETER@GOTPAGEOFF]
Lloh64:
	ldr	w0, [x8]
	ldr	w1, [x22, #4]
	bl	___set_bit
Lloh65:
	adrp	x8, _EV_ABS@GOTPAGE
Lloh66:
	ldr	x8, [x8, _EV_ABS@GOTPAGEOFF]
Lloh67:
	ldr	w3, [x8]
Lloh68:
	adrp	x8, _ABS_X@GOTPAGE
Lloh69:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
LBB0_16:
	ldr	w4, [x8]
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	mov	w5, #0
	bl	_wacom_map_usage
LBB0_17:
Lloh70:
	adrp	x8, _WACOM_DEVICETYPE_PAD@GOTPAGE
Lloh71:
	ldr	x8, [x8, _WACOM_DEVICETYPE_PAD@GOTPAGEOFF]
Lloh72:
	ldr	w8, [x8]
	ldr	w9, [x19, #24]
	orr	w8, w9, w8
	str	w8, [x19, #24]
LBB0_18:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_18-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
                                        ; -- End function
	.comm	_INPUT_PROP_ACCELEROMETER,4,2   ; @INPUT_PROP_ACCELEROMETER
	.comm	_EV_ABS,4,2                     ; @EV_ABS
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_WACOM_DEVICETYPE_PAD,4,2       ; @WACOM_DEVICETYPE_PAD
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_ABS_Z,4,2                      ; @ABS_Z
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_EV_SW,4,2                      ; @EV_SW
	.comm	_SW_MUTE_DEVICE,4,2             ; @SW_MUTE_DEVICE
	.comm	_ABS_RX,4,2                     ; @ABS_RX
	.comm	_ABS_RY,4,2                     ; @ABS_RY
	.comm	_ABS_WHEEL,4,2                  ; @ABS_WHEEL
	.comm	_KEY_BUTTONCONFIG,4,2           ; @KEY_BUTTONCONFIG
	.comm	_KEY_ONSCREEN_KEYBOARD,4,2      ; @KEY_ONSCREEN_KEYBOARD
	.comm	_KEY_CONTROLPANEL,4,2           ; @KEY_CONTROLPANEL
	.no_dead_strip	_wacom_wac_pad_usage_mapping
.subsections_via_symbols
