	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtouch_process_format_tablet
_mtouch_process_format_tablet:          ## @mtouch_process_format_tablet
	.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), %rax
	movq	16(%rdi), %r14
	movq	_MTOUCH_FORMAT_TABLET_LENGTH@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	incq	%rax
	movq	%rax, (%rdi)
	cmpq	%rax, %rcx
	jne	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	8(%rdi), %edi
	callq	_MTOUCH_GET_XC
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%rax, %rdx
	callq	_input_report_abs
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_MTOUCH_MAX_YC@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movl	8(%rbx), %edi
	callq	_MTOUCH_GET_YC
	subq	%rax, %r12
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%r12, %rdx
	callq	_input_report_abs
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	8(%rbx), %edi
	callq	_MTOUCH_GET_TOUCHED
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_input_report_key
	movq	%r14, %rdi
	callq	_input_sync
	movq	$0, (%rbx)
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MTOUCH_FORMAT_TABLET_LENGTH,8,3 ## @MTOUCH_FORMAT_TABLET_LENGTH
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_MTOUCH_MAX_YC,8,3              ## @MTOUCH_MAX_YC
	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.no_dead_strip	_mtouch_process_format_tablet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtouch_process_format_tablet
_mtouch_process_format_tablet:          ; @mtouch_process_format_tablet
	.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
Lloh0:
	adrp	x8, _MTOUCH_FORMAT_TABLET_LENGTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MTOUCH_FORMAT_TABLET_LENGTH@GOTPAGEOFF]
	ldr	x20, [x0, #16]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x0]
	add	x9, x9, #1
	str	x9, [x0]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _ABS_X@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	ldr	w0, [x0, #8]
	bl	_MTOUCH_GET_XC
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_input_report_abs
Lloh6:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
Lloh9:
	adrp	x8, _MTOUCH_MAX_YC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MTOUCH_MAX_YC@GOTPAGEOFF]
Lloh11:
	ldr	x22, [x8]
	ldr	w0, [x19, #8]
	bl	_MTOUCH_GET_YC
	sub	x2, x22, x0
	mov	x0, x20
	mov	x1, x21
	bl	_input_report_abs
Lloh12:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh14:
	ldr	w21, [x8]
	ldr	w0, [x19, #8]
	bl	_MTOUCH_GET_TOUCHED
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_input_report_key
	mov	x0, x20
	bl	_input_sync
	str	xzr, [x19]
LBB0_2:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MTOUCH_FORMAT_TABLET_LENGTH,8,3 ; @MTOUCH_FORMAT_TABLET_LENGTH
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_MTOUCH_MAX_YC,8,3              ; @MTOUCH_MAX_YC
	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.no_dead_strip	_mtouch_process_format_tablet
.subsections_via_symbols
