	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elan_usb_report_input
_elan_usb_report_input:                 ## @elan_usb_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
	subq	$24, %rsp
	.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, %r13
	movq	8(%rdi), %rbx
	movl	(%rsi), %eax
	movq	_ELAN_SINGLE_FINGER@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
## %bb.1:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_ELAN_MAX_FINGERS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_7
## %bb.2:
	leaq	12(%r15), %r12
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%esi, %esi
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %edx
	callq	_elan_report_mt_slot
	incl	%ebx
	movq	_ELAN_MAX_FINGERS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jge	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r15), %r14d
	leal	3(%rbx), %edi
	callq	_BIT
	movq	%r13, %rdi
	testl	%r14d, %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rsi
	jmp	LBB0_6
LBB0_7:
	movq	_BTN_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r15), %edx
	andl	$1, %edx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_input_report_key
	movl	(%r15), %eax
LBB0_8:
	movq	_ELAN_MT_FIRST_FINGER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	jne	LBB0_9
## %bb.23:
	movq	(%r13), %rdi
	movq	%r15, %rsi
	movl	$8, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memcpy                         ## TAILCALL
LBB0_9:
	movq	_ELAN_MT_SECOND_FINGER@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_21
## %bb.10:
	movq	(%r13), %rdx
	cmpl	%ecx, (%rdx)
	jne	LBB0_22
## %bb.11:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_ELAN_MAX_FINGERS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_20
## %bb.12:
	addq	$4, %r15
	leaq	12(%rdx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_elan_report_mt_slot
LBB0_19:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r14, %rdx
	incl	%ebx
	movq	_ELAN_MAX_FINGERS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jge	LBB0_20
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%rdx, %r14
	movl	8(%rdx), %r12d
	leal	3(%rbx), %edi
	callq	_BIT
	testl	%r12d, %eax
	je	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r13, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	%ebx, %edx
	callq	_elan_report_mt_slot
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_19
LBB0_22:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	_BTN_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%rdx), %edx
	andl	$1, %edx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_input_report_key
LBB0_21:
	movq	%rbx, %rdi
	callq	_input_mt_sync_frame
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ELAN_SINGLE_FINGER,4,2         ## @ELAN_SINGLE_FINGER
	.comm	_ELAN_MAX_FINGERS,4,2           ## @ELAN_MAX_FINGERS
	.comm	_BTN_LEFT,4,2                   ## @BTN_LEFT
	.comm	_ELAN_MT_FIRST_FINGER,4,2       ## @ELAN_MT_FIRST_FINGER
	.comm	_ELAN_MT_SECOND_FINGER,4,2      ## @ELAN_MT_SECOND_FINGER
	.no_dead_strip	_elan_usb_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_usb_report_input
_elan_usb_report_input:                 ; @elan_usb_report_input
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x21, x1
	mov	x20, x0
	ldr	x19, [x0, #8]
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _ELAN_SINGLE_FINGER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ELAN_SINGLE_FINGER@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.1:
Lloh3:
	adrp	x24, _ELAN_MAX_FINGERS@GOTPAGE
Lloh4:
	ldr	x24, [x24, _ELAN_MAX_FINGERS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.2:
	mov	w22, #0
	add	x23, x21, #12
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, #0
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x2, x22
	bl	_elan_report_mt_slot
	add	w22, w22, #1
	ldr	w8, [x24]
	cmp	w22, w8
	b.ge	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w25, [x21, #8]
	add	w0, w22, #3
	bl	_BIT
	tst	w0, w25
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x23
	b	LBB0_4
LBB0_7:
Lloh5:
	adrp	x8, _BTN_LEFT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BTN_LEFT@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w8, [x21, #8]
	and	w2, w8, #0x1
	mov	x0, x19
	bl	_input_report_key
	ldr	w8, [x21]
LBB0_8:
Lloh8:
	adrp	x9, _ELAN_MT_FIRST_FINGER@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ELAN_MT_FIRST_FINGER@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.9:
	ldr	x0, [x20]
	mov	x1, x21
	mov	w2, #8
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_memcpy
LBB0_10:
Lloh11:
	adrp	x10, _ELAN_MT_SECOND_FINGER@GOTPAGE
Lloh12:
	ldr	x10, [x10, _ELAN_MT_SECOND_FINGER@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	cmp	w8, w10
	b.ne	LBB0_23
; %bb.11:
	ldr	x24, [x20]
	ldr	w8, [x24]
	cmp	w8, w9
	b.ne	LBB0_21
; %bb.12:
Lloh14:
	adrp	x25, _ELAN_MAX_FINGERS@GOTPAGE
Lloh15:
	ldr	x25, [x25, _ELAN_MAX_FINGERS@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.13:
	mov	w22, #0
	mov	w26, #0
	add	x21, x21, #4
	add	x23, x24, #12
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x20
	mov	x1, #0
	mov	x2, x22
	bl	_elan_report_mt_slot
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	w22, w22, #1
	ldr	w8, [x25]
	cmp	w22, w8
	b.ge	LBB0_22
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	w27, [x24, #8]
	add	w0, w22, #3
	bl	_BIT
	tst	w0, w27
	b.eq	LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x20
	cbz	w26, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x1, x21
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x1, x23
LBB0_20:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x2, x22
	bl	_elan_report_mt_slot
	mov	w26, #1
	b	LBB0_15
LBB0_21:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_22:
Lloh16:
	adrp	x8, _BTN_LEFT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BTN_LEFT@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldr	w8, [x24, #8]
	and	w2, w8, #0x1
	mov	x0, x19
	bl	_input_report_key
LBB0_23:
	mov	x0, x19
	bl	_input_mt_sync_frame
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_input_sync
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ELAN_SINGLE_FINGER,4,2         ; @ELAN_SINGLE_FINGER
	.comm	_ELAN_MAX_FINGERS,4,2           ; @ELAN_MAX_FINGERS
	.comm	_BTN_LEFT,4,2                   ; @BTN_LEFT
	.comm	_ELAN_MT_FIRST_FINGER,4,2       ; @ELAN_MT_FIRST_FINGER
	.comm	_ELAN_MT_SECOND_FINGER,4,2      ; @ELAN_MT_SECOND_FINGER
	.no_dead_strip	_elan_usb_report_input
.subsections_via_symbols
