	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wacom_bpt3_button_msg
_wacom_bpt3_button_msg:                 ## @wacom_bpt3_button_msg
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %rax
	movq	_INTUOSHT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_INTUOSHT2@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%al
	orb	%cl, %al
	movq	_BTN_LEFT@GOTPCREL(%rip), %rbx
	movq	_BTN_BACK@GOTPCREL(%rip), %rcx
	movzbl	1(%rsi), %edx
	shrl	%edx
	andl	$1, %edx
	testb	%al, %al
	movq	%rcx, %rax
	cmovneq	%rbx, %rax
	movq	8(%rdi), %r15
	movl	(%rax), %esi
	cmovneq	%rcx, %rbx
	movq	%r15, %rdi
	callq	_input_report_key
	movl	(%rbx), %esi
	movzbl	1(%r14), %edx
	shrl	$3, %edx
	andl	$1, %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	_BTN_FORWARD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	1(%r14), %edx
	shrl	$2, %edx
	andl	$1, %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	_BTN_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	1(%r14), %edx
	andl	$1, %edx
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_report_key               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_INTUOSHT,8,3                   ## @INTUOSHT
	.comm	_INTUOSHT2,8,3                  ## @INTUOSHT2
	.comm	_BTN_LEFT,4,2                   ## @BTN_LEFT
	.comm	_BTN_BACK,4,2                   ## @BTN_BACK
	.comm	_BTN_FORWARD,4,2                ## @BTN_FORWARD
	.comm	_BTN_RIGHT,4,2                  ## @BTN_RIGHT
	.no_dead_strip	_wacom_bpt3_button_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wacom_bpt3_button_msg
_wacom_bpt3_button_msg:                 ; @wacom_bpt3_button_msg
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	ldp	x8, x20, [x0]
Lloh0:
	adrp	x9, _INTUOSHT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INTUOSHT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh3:
	adrp	x9, _INTUOSHT2@GOTPAGE
Lloh4:
	ldr	x9, [x9, _INTUOSHT2@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
Lloh6:
	adrp	x8, _BTN_LEFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BTN_LEFT@GOTPAGEOFF]
Lloh8:
	adrp	x9, _BTN_BACK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BTN_BACK@GOTPAGEOFF]
	csel	x10, x8, x9, eq
	ldr	w1, [x10]
	ldrb	w10, [x19, #1]
	ubfx	w2, w10, #1, #1
	csel	x21, x9, x8, eq
	mov	x0, x20
	bl	_input_report_key
	ldr	w1, [x21]
	ldrb	w8, [x19, #1]
	ubfx	w2, w8, #3, #1
	mov	x0, x20
	bl	_input_report_key
Lloh10:
	adrp	x8, _BTN_FORWARD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BTN_FORWARD@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldrb	w8, [x19, #1]
	ubfx	w2, w8, #2, #1
	mov	x0, x20
	bl	_input_report_key
Lloh13:
	adrp	x8, _BTN_RIGHT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BTN_RIGHT@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldrb	w8, [x19, #1]
	and	w2, w8, #0x1
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_input_report_key
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INTUOSHT,8,3                   ; @INTUOSHT
	.comm	_INTUOSHT2,8,3                  ; @INTUOSHT2
	.comm	_BTN_LEFT,4,2                   ; @BTN_LEFT
	.comm	_BTN_BACK,4,2                   ; @BTN_BACK
	.comm	_BTN_FORWARD,4,2                ; @BTN_FORWARD
	.comm	_BTN_RIGHT,4,2                  ; @BTN_RIGHT
	.no_dead_strip	_wacom_bpt3_button_msg
.subsections_via_symbols
