	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function report_pen_down
_report_pen_down:                       ## @report_pen_down
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	$4095, %eax                     ## imm = 0xFFF
	movl	(%rdi), %ecx
	andl	%eax, %ecx
	movl	$1024, %edx                     ## imm = 0x400
	subl	%ecx, %edx
	cmpq	$0, 24(%rdi)
	cmovel	%ecx, %edx
	movl	$1024, %r14d                    ## imm = 0x400
	andl	4(%rdi), %eax
	subl	%eax, %r14d
	cmpq	$0, 16(%rdi)
	cmovel	%eax, %r14d
	movl	8(%rdi), %edi
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_input_report_abs
	movl	8(%rbx), %edi
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edx
	callq	_input_report_abs
	movl	8(%rbx), %edi
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_input_report_key
	movl	8(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.no_dead_strip	_report_pen_down
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function report_pen_down
_report_pen_down:                       ; @report_pen_down
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldp	w8, w9, [x0]
	and	w8, w8, #0xfff
	mov	w10, #1024
	ldp	x12, x11, [x0, #16]
	cmp	x11, #0
	sub	w11, w10, w8
	csel	w2, w8, w11, eq
	and	w8, w9, #0xfff
	sub	w9, w10, w8
	cmp	x12, #0
	csel	w20, w8, w9, eq
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x8, _ABS_X@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_input_report_abs
	ldr	w0, [x19, #8]
Lloh3:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_input_report_abs
	ldr	w0, [x19, #8]
Lloh6:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_input_report_key
	ldr	w0, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_input_sync
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.no_dead_strip	_report_pen_down
.subsections_via_symbols
