	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elan_i2c_report_input
_elan_i2c_report_input:                 ## @elan_i2c_report_input
	.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	%rsi, %r15
	movq	(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_ELAN_MAX_FINGERS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_6
## %bb.1:
	movq	%rdi, %r12
	leaq	8(%r15), %r13
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_elan_report_mt_slot
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	movq	_ELAN_MAX_FINGERS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r15), %r14d
	leal	3(%rbx), %edi
	callq	_BIT
	movq	%r12, %rdi
	testl	%r14d, %eax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_elan_report_mt_slot
	movq	_ELAN_FINGER_DATA_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%r13,%rax,4), %r13
	jmp	LBB0_5
LBB0_6:
	movq	_BTN_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r15), %edx
	andl	$1, %edx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_input_report_key
	movq	%rbx, %rdi
	callq	_input_mt_sync_frame
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ELAN_MAX_FINGERS,4,2           ## @ELAN_MAX_FINGERS
	.comm	_ELAN_FINGER_DATA_LEN,4,2       ## @ELAN_FINGER_DATA_LEN
	.comm	_BTN_LEFT,4,2                   ## @BTN_LEFT
	.no_dead_strip	_elan_i2c_report_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elan_i2c_report_input
_elan_i2c_report_input:                 ; @elan_i2c_report_input
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	ldr	x19, [x0]
Lloh0:
	adrp	x24, _ELAN_MAX_FINGERS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ELAN_MAX_FINGERS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x21, x0
	mov	w22, #0
	add	x23, x20, #8
Lloh2:
	adrp	x25, _ELAN_FINGER_DATA_LEN@GOTPAGE
Lloh3:
	ldr	x25, [x25, _ELAN_FINGER_DATA_LEN@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, #0
	mov	x2, x22
	bl	_elan_report_mt_slot
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w22, w22, #1
	ldr	w8, [x24]
	cmp	w22, w8
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w26, [x20, #4]
	add	w0, w22, #3
	bl	_BIT
	tst	w0, w26
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	bl	_elan_report_mt_slot
	ldrsw	x8, [x25]
	add	x23, x23, x8, lsl #2
	b	LBB0_3
LBB0_6:
Lloh4:
	adrp	x8, _BTN_LEFT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BTN_LEFT@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	ldr	w8, [x20, #4]
	and	w2, w8, #0x1
	mov	x0, x19
	bl	_input_report_key
	mov	x0, x19
	bl	_input_mt_sync_frame
	mov	x0, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_input_sync
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ELAN_MAX_FINGERS,4,2           ; @ELAN_MAX_FINGERS
	.comm	_ELAN_FINGER_DATA_LEN,4,2       ; @ELAN_FINGER_DATA_LEN
	.comm	_BTN_LEFT,4,2                   ; @BTN_LEFT
	.no_dead_strip	_elan_i2c_report_input
.subsections_via_symbols
