	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wacom_intuos_gen3_bt_pad
_wacom_intuos_gen3_bt_pad:              ## @wacom_intuos_gen3_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	16(%rdi), %r14
	movzbl	44(%rax), %r15d
	xorl	%r12d, %r12d
	testl	%r15d, %r15d
	setne	%r12b
	movq	%r14, %rdi
	movl	$4, %esi
	movl	%r15d, %edx
	callq	_wacom_report_numbered_buttons
	movq	8(%rbx), %rax
	movl	4(%rax), %esi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_input_report_key
	movq	_ABS_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.1:
	movq	_PAD_DEVICE_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_2:
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_input_report_abs
	movq	_EV_MSC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MSC_SERIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$-1, %ecx
	callq	_input_event
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.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_gen3_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_gen3_bt_pad
_wacom_intuos_gen3_bt_pad:              ; @wacom_intuos_gen3_bt_pad
	.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, x0
	ldr	x20, [x0, #16]
	ldr	x8, [x0]
	ldrb	w21, [x8, #44]
	cmp	w21, #0
	cset	w22, ne
	mov	x0, x20
	mov	w1, #4
	mov	x2, x21
	bl	_wacom_report_numbered_buttons
	ldr	x8, [x19, #8]
	ldr	w1, [x8, #4]
	mov	x0, x20
	mov	x2, x22
	bl	_input_report_key
Lloh0:
	adrp	x8, _ABS_MISC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ABS_MISC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _PAD_DEVICE_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAD_DEVICE_ID@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w21, #0
	csel	w2, wzr, w8, eq
	mov	x0, x20
	bl	_input_report_abs
Lloh6:
	adrp	x8, _EV_MSC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EV_MSC@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _MSC_SERIAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSC_SERIAL@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #-1
	bl	_input_event
	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_sync
	.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_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_gen3_bt_pad
.subsections_via_symbols
