	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elants_i2c_mt_event
_elants_i2c_mt_event:                   ## @elants_i2c_mt_event
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rax
	movq	(%rdi), %rdi
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_FW_POS_STATE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movl	4(%rsi,%rax,4), %ebx
	movl	%ebx, %r14d
	andl	$15, %r14d
	andl	$48, %ebx
	shll	$4, %ebx
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	orl	(%rsi,%rax,4), %ebx
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_MAX_CONTACT_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.1:
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.2:
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	testb	$1, %bl
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_FW_POS_XY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r12d, %eax
	cltq
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movl	(%rcx,%rax,4), %r14d
	movl	%r14d, %r13d
	shll	$4, %r13d
	andl	$3840, %r13d                    ## imm = 0xF00
	orl	4(%rcx,%rax,4), %r13d
	andl	$15, %r14d
	shll	$8, %r14d
	orl	8(%rcx,%rax,4), %r14d
	movq	_FW_POS_PRESSURE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	%r15, %rax
	movl	(%rcx,%rax,4), %r9d
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	_FW_POS_WIDTH@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	%r15, %rax
	movl	(%rcx,%rax,4), %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movl	%ecx, (%rsp)
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	movl	%r13d, %ecx
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_input_mt_slot
	movq	_MT_TOOL_FINGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_input_mt_report_slot_state
	movq	_EV_ABS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ABS_MT_POSITION_X@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r13d, %ecx
	callq	_input_event
	movq	_EV_ABS@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_ABS_MT_POSITION_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %ecx
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	callq	_input_event
	movl	(%r13), %esi
	movq	_ABS_MT_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_input_event
	movl	(%r13), %esi
	movq	_ABS_MT_TOUCH_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	callq	_input_event
	decl	%r14d
	movq	_MAX_CONTACT_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	cmpl	%eax, %r15d
	jge	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	sarl	%ebx
	addl	$3, %r12d
	testl	%r14d, %r14d
	jne	LBB0_3
LBB0_7:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_input_mt_sync_frame
	movq	%rbx, %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FW_POS_STATE,4,2               ## @FW_POS_STATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"n_fingers: %u, state: %04x\n"

	.comm	_MAX_CONTACT_NUM,4,2            ## @MAX_CONTACT_NUM
	.comm	_FW_POS_XY,4,2                  ## @FW_POS_XY
	.comm	_FW_POS_PRESSURE,4,2            ## @FW_POS_PRESSURE
	.comm	_FW_POS_WIDTH,4,2               ## @FW_POS_WIDTH
L_.str.1:                               ## @.str.1
	.asciz	"i=%d x=%d y=%d p=%d w=%d\n"

	.comm	_MT_TOOL_FINGER,4,2             ## @MT_TOOL_FINGER
	.comm	_EV_ABS,4,2                     ## @EV_ABS
	.comm	_ABS_MT_POSITION_X,4,2          ## @ABS_MT_POSITION_X
	.comm	_ABS_MT_POSITION_Y,4,2          ## @ABS_MT_POSITION_Y
	.comm	_ABS_MT_PRESSURE,4,2            ## @ABS_MT_PRESSURE
	.comm	_ABS_MT_TOUCH_MAJOR,4,2         ## @ABS_MT_TOUCH_MAJOR
	.no_dead_strip	_elants_i2c_mt_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elants_i2c_mt_event
_elants_i2c_mt_event:                   ; @elants_i2c_mt_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _FW_POS_STATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FW_POS_STATE@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	stp	x1, x0, [sp, #32]               ; 16-byte Folded Spill
	add	x8, x1, x8, lsl #2
	ldp	w8, w9, [x8]
	and	w22, w9, #0xf
	lsl	w9, w9, #4
	and	w9, w9, #0x300
	orr	w23, w9, w8
	ldp	x0, x21, [x0]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	mov	x3, x23
	bl	_dev_dbg
Lloh5:
	adrp	x8, _MAX_CONTACT_NUM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAX_CONTACT_NUM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, #1
	ccmp	w22, #0, #4, ge
	b.eq	LBB0_6
; %bb.1:
	mov	w20, #0
	mov	x24, #0
Lloh8:
	adrp	x19, _EV_ABS@GOTPAGE
Lloh9:
	ldr	x19, [x19, _EV_ABS@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	tbz	w23, #0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh10:
	adrp	x8, _FW_POS_XY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FW_POS_XY@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	add	w8, w20, w8
	ldr	x12, [sp, #32]                  ; 8-byte Folded Reload
	add	x8, x12, w8, sxtw #2
	ldp	w9, w10, [x8]
	lsl	w11, w9, #4
	and	w11, w11, #0xf00
	orr	w27, w11, w10
	ubfiz	w9, w9, #8, #4
	ldr	w8, [x8, #8]
Lloh13:
	adrp	x10, _FW_POS_PRESSURE@GOTPAGE
Lloh14:
	ldr	x10, [x10, _FW_POS_PRESSURE@GOTPAGEOFF]
Lloh15:
	ldrsw	x10, [x10]
	add	x10, x24, x10
	ldr	w28, [x12, x10, lsl #2]
	orr	w25, w9, w8
Lloh16:
	adrp	x8, _FW_POS_WIDTH@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FW_POS_WIDTH@GOTPAGEOFF]
Lloh18:
	ldrsw	x8, [x8]
	add	x8, x24, x8
	ldr	w26, [x12, x8, lsl #2]
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	x0, [x8]
	stp	x28, x26, [sp, #8]
	str	x25, [sp]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x24
	mov	x3, x27
	bl	_dev_dbg
	mov	x0, x21
	mov	x1, x24
	bl	_input_mt_slot
Lloh21:
	adrp	x8, _MT_TOOL_FINGER@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MT_TOOL_FINGER@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #1
	bl	_input_mt_report_slot_state
	ldr	w1, [x19]
Lloh24:
	adrp	x8, _ABS_MT_POSITION_X@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ABS_MT_POSITION_X@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x3, x27
	bl	_input_event
	ldr	w1, [x19]
Lloh27:
	adrp	x8, _ABS_MT_POSITION_Y@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ABS_MT_POSITION_Y@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x3, x25
	bl	_input_event
	ldr	w1, [x19]
Lloh30:
	adrp	x8, _ABS_MT_PRESSURE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ABS_MT_PRESSURE@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x3, x28
	bl	_input_event
	ldr	w1, [x19]
Lloh33:
	adrp	x8, _ABS_MT_TOUCH_MAJOR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ABS_MT_TOUCH_MAJOR@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x3, x26
	bl	_input_event
	sub	w22, w22, #1
Lloh36:
	adrp	x8, _MAX_CONTACT_NUM@GOTPAGE
Lloh37:
	ldr	x8, [x8, _MAX_CONTACT_NUM@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x24, x24, #1
	cmp	w24, w8
	b.ge	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	asr	w23, w23, #1
	add	w20, w20, #3
	cbnz	w22, LBB0_2
LBB0_6:
	mov	x0, x21
	bl	_input_mt_sync_frame
	mov	x0, x21
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_input_sync
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_FW_POS_STATE,4,2               ; @FW_POS_STATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"n_fingers: %u, state: %04x\n"

	.comm	_MAX_CONTACT_NUM,4,2            ; @MAX_CONTACT_NUM
	.comm	_FW_POS_XY,4,2                  ; @FW_POS_XY
	.comm	_FW_POS_PRESSURE,4,2            ; @FW_POS_PRESSURE
	.comm	_FW_POS_WIDTH,4,2               ; @FW_POS_WIDTH
l_.str.1:                               ; @.str.1
	.asciz	"i=%d x=%d y=%d p=%d w=%d\n"

	.comm	_MT_TOOL_FINGER,4,2             ; @MT_TOOL_FINGER
	.comm	_EV_ABS,4,2                     ; @EV_ABS
	.comm	_ABS_MT_POSITION_X,4,2          ; @ABS_MT_POSITION_X
	.comm	_ABS_MT_POSITION_Y,4,2          ; @ABS_MT_POSITION_Y
	.comm	_ABS_MT_PRESSURE,4,2            ; @ABS_MT_PRESSURE
	.comm	_ABS_MT_TOUCH_MAJOR,4,2         ; @ABS_MT_TOUCH_MAJOR
	.no_dead_strip	_elants_i2c_mt_event
.subsections_via_symbols
