	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mms114_process_mt
_mms114_process_mt:                     ## @mms114_process_mt
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	16(%rdi), %rdi
	movl	(%rsi), %ebx
	movq	_MMS114_MAX_TOUCH@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jle	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	jmp	LBB0_2
LBB0_3:
	movq	%rsi, %r13
	movl	4(%rsi), %ecx
	movq	_MMS114_TYPE_TOUCHSCREEN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_4
## %bb.5:
	movq	8(%r15), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	12(%r13), %r12d
	shll	$8, %r12d
	orl	8(%r13), %r12d
	movl	20(%r13), %r14d
	shll	$8, %r14d
	orl	16(%r13), %r14d
	decl	%ebx
	movl	32(%r13), %r8d
	movl	28(%r13), %r10d
	movl	24(%r13), %eax
	subq	$8, %rsp
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	movl	%r12d, %r9d
	pushq	%rax
	pushq	%r10
	pushq	%r14
	callq	_dev_dbg
	addq	$32, %rsp
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movq	%rdi, %rbx
	callq	_input_mt_slot
	movq	_MT_TOOL_FINGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	32(%r13), %edx
	movq	%rbx, %rdi
	callq	_input_mt_report_slot_state
	cmpl	$0, 32(%r13)
	je	LBB0_6
## %bb.7:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	movl	$1, %r8d
	callq	_touchscreen_report_pos
	movq	_ABS_MT_TOUCH_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	28(%r13), %edx
	movq	%rbx, %rdi
	callq	_input_report_abs
	movq	_ABS_MT_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%r13), %edx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_report_abs               ## TAILCALL
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movl	%ecx, %edx
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMS114_MAX_TOUCH,4,2           ## @MMS114_MAX_TOUCH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Wrong touch id (%d)\n"

	.comm	_MMS114_TYPE_TOUCHSCREEN,4,2    ## @MMS114_TYPE_TOUCHSCREEN
L_.str.1:                               ## @.str.1
	.asciz	"Wrong touch type (%d)\n"

L_.str.2:                               ## @.str.2
	.asciz	"id: %d, type: %d, pressed: %d, x: %d, y: %d, width: %d, strength: %d\n"

	.comm	_MT_TOOL_FINGER,4,2             ## @MT_TOOL_FINGER
	.comm	_ABS_MT_TOUCH_MAJOR,4,2         ## @ABS_MT_TOUCH_MAJOR
	.comm	_ABS_MT_PRESSURE,4,2            ## @ABS_MT_PRESSURE
	.no_dead_strip	_mms114_process_mt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mms114_process_mt
_mms114_process_mt:                     ; @mms114_process_mt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x0
	ldr	x0, [x0, #16]
	ldr	w2, [x1]
Lloh0:
	adrp	x8, _MMS114_MAX_TOUCH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMS114_MAX_TOUCH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w2, w8
	b.le	LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_2:
	mov	x19, x1
	ldr	w3, [x1, #4]
Lloh5:
	adrp	x8, _MMS114_TYPE_TOUCHSCREEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MMS114_TYPE_TOUCHSCREEN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w3, w8
	b.ne	LBB0_5
; %bb.3:
	ldr	x20, [x21, #8]
	sub	w24, w2, #1
	ldp	w8, w9, [x19, #8]
	orr	w22, w8, w9, lsl #8
	ldp	w8, w9, [x19, #16]
	orr	w23, w8, w9, lsl #8
	ldp	w7, w4, [x19, #28]
	ldr	w8, [x19, #24]
	str	w8, [sp]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x24
	mov	x5, x22
	mov	x6, x23
	bl	_dev_dbg
	mov	x0, x20
	mov	x1, x24
	bl	_input_mt_slot
Lloh10:
	adrp	x8, _MT_TOOL_FINGER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MT_TOOL_FINGER@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldr	w2, [x19, #32]
	mov	x0, x20
	bl	_input_mt_report_slot_state
	ldr	w8, [x19, #32]
	cbz	w8, LBB0_7
; %bb.4:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	mov	w4, #1
	bl	_touchscreen_report_pos
Lloh13:
	adrp	x8, _ABS_MT_TOUCH_MAJOR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ABS_MT_TOUCH_MAJOR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldr	w2, [x19, #28]
	mov	x0, x20
	bl	_input_report_abs
Lloh16:
	adrp	x8, _ABS_MT_PRESSURE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ABS_MT_PRESSURE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldr	w2, [x19, #24]
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_input_report_abs
LBB0_5:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x3
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_dev_err
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_MMS114_MAX_TOUCH,4,2           ; @MMS114_MAX_TOUCH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Wrong touch id (%d)\n"

	.comm	_MMS114_TYPE_TOUCHSCREEN,4,2    ; @MMS114_TYPE_TOUCHSCREEN
l_.str.1:                               ; @.str.1
	.asciz	"Wrong touch type (%d)\n"

l_.str.2:                               ; @.str.2
	.asciz	"id: %d, type: %d, pressed: %d, x: %d, y: %d, width: %d, strength: %d\n"

	.comm	_MT_TOOL_FINGER,4,2             ; @MT_TOOL_FINGER
	.comm	_ABS_MT_TOUCH_MAJOR,4,2         ; @ABS_MT_TOUCH_MAJOR
	.comm	_ABS_MT_PRESSURE,4,2            ; @ABS_MT_PRESSURE
	.no_dead_strip	_mms114_process_mt
.subsections_via_symbols
