	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wacom_intuos_pro2_bt_pad
_wacom_intuos_pro2_bt_pad:              ## @wacom_intuos_pro2_bt_pad
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	16(%rdi), %r12
	movzbl	282(%rax), %ecx
	movzbl	281(%rax), %edx
	movzbl	285(%rax), %ebx
	movl	%ebx, %eax
	andl	$127, %eax
	cmpl	$13, %eax
	movl	$84, %esi
	movl	$12, %r15d
	cmovael	%esi, %r15d
	subl	%eax, %r15d
	andl	$64, %edx
	leal	(%rcx,%rdx,4), %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %r14d
	andl	$-128, %r14d
	shrl	$7, %ebx
	xorl	%r13d, %r13d
	movl	%edx, %eax
	orl	%r14d, %eax
	setne	%r13b
	movq	%r12, %rdi
	movl	$9, %esi
	callq	_wacom_report_numbered_buttons
	movq	_ABS_WHEEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%ebx, %ebx
	cmovnel	%r15d, %ebx
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_input_report_abs
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	4(%rax), %esi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_input_report_key
	xorl	%edx, %edx
	orl	-44(%rbp), %r14d                ## 4-byte Folded Reload
	movq	_ABS_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	je	LBB0_2
## %bb.1:
	movq	_PAD_DEVICE_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_2:
	movq	%r12, %rdi
	callq	_input_report_abs
	movq	_EV_MSC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MSC_SERIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$-1, %ecx
	callq	_input_event
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ABS_WHEEL,4,2                  ## @ABS_WHEEL
	.comm	_ABS_MISC,4,2                   ## @ABS_MISC
	.comm	_PAD_DEVICE_ID,4,2              ## @PAD_DEVICE_ID
	.comm	_EV_MSC,4,2                     ## @EV_MSC
	.comm	_MSC_SERIAL,4,2                 ## @MSC_SERIAL
	.no_dead_strip	_wacom_intuos_pro2_bt_pad
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wacom_intuos_pro2_bt_pad
_wacom_intuos_pro2_bt_pad:              ; @wacom_intuos_pro2_bt_pad
	.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, x0
	ldr	x19, [x0, #16]
	ldr	x8, [x0]
	ldrb	w2, [x8, #282]
	ldrb	w9, [x8, #281]
	ldrb	w8, [x8, #285]
	and	w10, w8, #0x7f
	mov	w11, #12
	mov	w12, #84
	cmp	w10, #12
	csel	w11, w12, w11, hi
	sub	w10, w11, w10
	and	w9, w9, #0x40
	lsr	w9, w9, #6
	bfi	w2, w9, #8, #1
	ands	w8, w8, #0x80
	orr	w23, w2, w8
	csel	w21, w10, wzr, ne
	cmp	w23, #0
	cset	w22, ne
	mov	x0, x19
	mov	w1, #9
	bl	_wacom_report_numbered_buttons
Lloh0:
	adrp	x8, _ABS_WHEEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ABS_WHEEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_input_report_abs
	ldr	x8, [x20, #8]
	ldr	w1, [x8, #4]
	mov	x0, x19
	mov	x2, x22
	bl	_input_report_key
Lloh3:
	adrp	x8, _ABS_MISC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ABS_MISC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _PAD_DEVICE_ID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PAD_DEVICE_ID@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w23, #0
	csel	w2, w8, wzr, ne
	mov	x0, x19
	bl	_input_report_abs
Lloh9:
	adrp	x8, _EV_MSC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EV_MSC@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _MSC_SERIAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MSC_SERIAL@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #-1
	bl	_input_event
	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	_input_sync
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ABS_WHEEL,4,2                  ; @ABS_WHEEL
	.comm	_ABS_MISC,4,2                   ; @ABS_MISC
	.comm	_PAD_DEVICE_ID,4,2              ; @PAD_DEVICE_ID
	.comm	_EV_MSC,4,2                     ; @EV_MSC
	.comm	_MSC_SERIAL,4,2                 ; @MSC_SERIAL
	.no_dead_strip	_wacom_intuos_pro2_bt_pad
.subsections_via_symbols
