	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function report_pen_events
_report_pen_events:                     ## @report_pen_events
	.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, %r15
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movl	(%rdi), %eax
	cmpl	$128, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$130, %eax
	je	LBB0_5
## %bb.2:
	cmpl	$129, %eax
	jne	LBB0_8
## %bb.3:
	cmpl	$0, 24(%r15)
	jne	LBB0_9
## %bb.4:
	movq	_ABS_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_input_report_abs
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_input_report_key
	movq	_BTN_STYLUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_input_report_key
	movq	_BTN_STYLUS2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_input_report_key
	movq	%rbx, %rdi
	movl	$129, %esi
	xorl	%edx, %edx
	callq	_input_report_key
	movq	%rbx, %rdi
	callq	_input_sync
	movq	_BTN_TOOL_PEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	jmp	LBB0_9
LBB0_5:
	cmpl	$0, 24(%r15)
	movl	$129, %eax
	jne	LBB0_7
## %bb.6:
	movq	_BTN_TOOL_PEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	movl	%eax, (%r14)
	jmp	LBB0_9
LBB0_8:
	movq	_BTN_STYLUS2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%r15), %edx
	movq	%rbx, %rdi
	callq	_input_report_key
LBB0_9:
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	20(%r15), %edx
	movq	%rbx, %rdi
	callq	_input_report_abs
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r15), %edx
	movq	%rbx, %rdi
	callq	_input_report_abs
	movq	_ABS_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%r15), %edx
	movq	%rbx, %rdi
	callq	_input_report_abs
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r15), %edx
	movq	%rbx, %rdi
	callq	_input_report_key
	movq	_BTN_STYLUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r15), %edx
	movq	%rbx, %rdi
	callq	_input_report_key
	movl	(%r14), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_input_report_key
	movq	%rbx, %rdi
	callq	_input_sync
	cmpl	$0, (%r15)
	jne	LBB0_11
## %bb.10:
	movl	$128, (%r14)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ABS_PRESSURE,4,2               ## @ABS_PRESSURE
	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.comm	_BTN_STYLUS,4,2                 ## @BTN_STYLUS
	.comm	_BTN_STYLUS2,4,2                ## @BTN_STYLUS2
	.comm	_BTN_TOOL_PEN,4,2               ## @BTN_TOOL_PEN
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.no_dead_strip	_report_pen_events
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function report_pen_events
_report_pen_events:                     ; @report_pen_events
	.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, x1
	mov	x19, x0
	ldr	x21, [x0, #8]
Lloh0:
	adrp	x24, _ABS_PRESSURE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ABS_PRESSURE@GOTPAGEOFF]
	ldr	w8, [x0]
Lloh2:
	adrp	x23, _BTN_TOUCH@GOTPAGE
Lloh3:
	ldr	x23, [x23, _BTN_TOUCH@GOTPAGEOFF]
Lloh4:
	adrp	x22, _BTN_STYLUS@GOTPAGE
Lloh5:
	ldr	x22, [x22, _BTN_STYLUS@GOTPAGEOFF]
	cmp	w8, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w8, #130
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #129
	b.ne	LBB0_6
; %bb.3:
	ldr	w8, [x20, #24]
	cbnz	w8, LBB0_7
; %bb.4:
	ldr	w1, [x24]
	mov	x0, x21
	mov	w2, #0
	bl	_input_report_abs
	ldr	w1, [x23]
	mov	x0, x21
	mov	w2, #0
	bl	_input_report_key
	ldr	w1, [x22]
	mov	x0, x21
	mov	w2, #0
	bl	_input_report_key
Lloh6:
	adrp	x8, _BTN_STYLUS2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BTN_STYLUS2@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_input_report_key
	mov	x0, x21
	mov	w1, #129
	mov	w2, #0
	bl	_input_report_key
	mov	x0, x21
	bl	_input_sync
Lloh9:
	adrp	x8, _BTN_TOOL_PEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BTN_TOOL_PEN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_7
LBB0_5:
Lloh12:
	adrp	x8, _BTN_TOOL_PEN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BTN_TOOL_PEN@GOTPAGEOFF]
	ldr	w9, [x20, #24]
Lloh14:
	ldr	w8, [x8]
	mov	w10, #129
	cmp	w9, #0
	csel	w8, w8, w10, eq
	str	w8, [x19]
	b	LBB0_7
LBB0_6:
Lloh15:
	adrp	x8, _BTN_STYLUS2@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BTN_STYLUS2@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	w2, [x20, #24]
	mov	x0, x21
	bl	_input_report_key
LBB0_7:
Lloh18:
	adrp	x8, _ABS_X@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	w2, [x20, #20]
	mov	x0, x21
	bl	_input_report_abs
Lloh21:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	ldr	w2, [x20, #16]
	mov	x0, x21
	bl	_input_report_abs
	ldr	w1, [x24]
	ldr	w2, [x20, #12]
	mov	x0, x21
	bl	_input_report_abs
	ldr	w1, [x23]
	ldr	w2, [x20, #8]
	mov	x0, x21
	bl	_input_report_key
	ldr	w1, [x22]
	ldr	w2, [x20, #4]
	mov	x0, x21
	bl	_input_report_key
	ldr	w1, [x19]
	ldr	w2, [x20]
	mov	x0, x21
	bl	_input_report_key
	mov	x0, x21
	bl	_input_sync
	ldr	w8, [x20]
	cbnz	w8, LBB0_9
; %bb.8:
	mov	w8, #128
	str	w8, [x19]
LBB0_9:
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ABS_PRESSURE,4,2               ; @ABS_PRESSURE
	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.comm	_BTN_STYLUS,4,2                 ; @BTN_STYLUS
	.comm	_BTN_STYLUS2,4,2                ; @BTN_STYLUS2
	.comm	_BTN_TOOL_PEN,4,2               ; @BTN_TOOL_PEN
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.no_dead_strip	_report_pen_events
.subsections_via_symbols
