	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rmi_f11_finger_handler
_rmi_f11_finger_handler:                ## @rmi_f11_finger_handler
	.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, %r14
	movq	%rdi, %r15
	movl	(%rsi), %r12d
	movq	_RMI_F11_ABS_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %eax
	imull	%r12d, %eax
	cmpq	$0, 56(%rsi)
	je	LBB0_17
## %bb.1:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	(%r15), %r15
	cmpl	%edx, %eax
	jle	LBB0_3
## %bb.2:
	movl	%edx, %eax
	cltd
	idivl	%ecx
	movl	%eax, %r12d
LBB0_3:
	movl	%r12d, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	testl	%r12d, %r12d
	jle	LBB0_9
## %bb.4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(,%rax,4), %rbx
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	24(%r14), %rdx
	addq	%r12, %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	%eax, %ecx
	movl	%r13d, %r8d
	callq	_rmi_f11_abs_pos_process
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	incl	%r13d
	addq	$4, %r12
	cmpq	%r12, %rbx
	je	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_rmi_f11_parse_finger_state
	movq	_F11_RESERVED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_pr_err
	jmp	LBB0_8
LBB0_9:
	cmpq	$0, 48(%r14)
	je	LBB0_11
## %bb.10:
	movl	(%r14), %ecx
	movl	16(%r14), %edi
	movl	40(%r14), %esi
	movl	36(%r14), %edx
	movl	32(%r14), %r8d
	callq	_input_mt_assign_slots
LBB0_11:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_16
## %bb.12:
	shlq	$2, -48(%rbp)                   ## 8-byte Folded Spill
	xorl	%r12d, %r12d
	movq	_F11_RESERVED@GOTPCREL(%rip), %r13
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	incl	%ebx
	addq	$4, %r12
	cmpq	%r12, -48(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_16
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_rmi_f11_parse_finger_state
	cmpl	(%r13), %eax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	24(%r14), %rsi
	addq	%r12, %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_rmi_2d_sensor_abs_report
	jmp	LBB0_15
LBB0_16:
	movl	16(%r14), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_mt_sync_frame            ## TAILCALL
LBB0_17:
	cmpq	$0, 8(%r14)
	je	LBB0_23
## %bb.18:
	movq	_RMI_F11_REL_BYTES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %esi
	imull	%r12d, %esi
	addl	%eax, %esi
	cmpl	%edx, %esi
	jle	LBB0_20
## %bb.19:
	subl	%eax, %edx
	movl	%edx, %eax
	cltd
	idivl	%ecx
	movl	%eax, %r12d
LBB0_20:
	testl	%r12d, %r12d
	jle	LBB0_23
## %bb.21:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_rmi_f11_rel_pos_report
	incl	%ebx
	cmpl	%ebx, %r12d
	jne	LBB0_22
LBB0_23:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RMI_F11_ABS_BYTES,4,2          ## @RMI_F11_ABS_BYTES
	.comm	_F11_RESERVED,4,2               ## @F11_RESERVED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid finger state[%d]: 0x%02x"

	.comm	_RMI_F11_REL_BYTES,4,2          ## @RMI_F11_REL_BYTES
	.no_dead_strip	_rmi_f11_finger_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rmi_f11_finger_handler
_rmi_f11_finger_handler:                ; @rmi_f11_finger_handler
	.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	x19, x1
	mov	x21, x0
	ldr	w24, [x1]
Lloh0:
	adrp	x8, _RMI_F11_ABS_BYTES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RMI_F11_ABS_BYTES@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	mul	w8, w9, w24
	ldr	x10, [x1, #56]
	cbz	x10, LBB0_17
; %bb.1:
	ldr	x20, [x21]
	cmp	w8, w2
	b.le	LBB0_3
; %bb.2:
	sdiv	w24, w2, w9
LBB0_3:
	mov	w26, w24
Lloh3:
	adrp	x25, _F11_RESERVED@GOTPAGE
Lloh4:
	ldr	x25, [x25, _F11_RESERVED@GOTPAGEOFF]
	cmp	w24, #1
	b.lt	LBB0_9
; %bb.4:
	mov	x27, #0
	mov	w22, #0
	lsl	x28, x26, #2
Lloh5:
	adrp	x23, l_.str@PAGE
Lloh6:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19, #24]
	add	x2, x8, x27
	mov	x0, x21
	mov	x1, x19
	mov	x4, x22
	bl	_rmi_f11_abs_pos_process
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w22, w22, #1
	add	x27, x27, #4
	cmp	x28, x27
	b.eq	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_rmi_f11_parse_finger_state
	mov	x3, x0
	ldr	w8, [x25]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x23
	mov	x1, x22
	mov	x2, x3
	bl	_pr_err
	b	LBB0_6
LBB0_9:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_11
; %bb.10:
	ldr	w0, [x19, #16]
	ldp	w2, w1, [x19, #36]
	ldr	w3, [x19]
	ldr	w4, [x19, #32]
	bl	_input_mt_assign_slots
LBB0_11:
	cmp	w24, #1
	b.lt	LBB0_16
; %bb.12:
	mov	x22, #0
	mov	w21, #0
	lsl	x23, x26, #2
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	w21, w21, #1
	add	x22, x22, #4
	cmp	x23, x22
	b.eq	LBB0_16
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_rmi_f11_parse_finger_state
	ldr	w8, [x25]
	cmp	w0, w8
	b.eq	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x19, #24]
	add	x1, x8, x22
	mov	x0, x19
	mov	x2, x21
	bl	_rmi_2d_sensor_abs_report
	b	LBB0_13
LBB0_16:
	ldr	w0, [x19, #16]
	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_mt_sync_frame
LBB0_17:
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_23
; %bb.18:
Lloh7:
	adrp	x9, _RMI_F11_REL_BYTES@GOTPAGE
Lloh8:
	ldr	x9, [x9, _RMI_F11_REL_BYTES@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	madd	w10, w9, w24, w8
	cmp	w10, w2
	b.le	LBB0_20
; %bb.19:
	sub	w8, w2, w8
	sdiv	w24, w8, w9
LBB0_20:
	cmp	w24, #1
	b.lt	LBB0_23
; %bb.21:
	mov	w19, #0
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x19
	bl	_rmi_f11_rel_pos_report
	add	w19, w19, #1
	cmp	w24, w19
	b.ne	LBB0_22
LBB0_23:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_RMI_F11_ABS_BYTES,4,2          ; @RMI_F11_ABS_BYTES
	.comm	_F11_RESERVED,4,2               ; @F11_RESERVED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid finger state[%d]: 0x%02x"

	.comm	_RMI_F11_REL_BYTES,4,2          ; @RMI_F11_REL_BYTES
	.no_dead_strip	_rmi_f11_finger_handler
.subsections_via_symbols
