	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sis_ts_report_contact
_sis_ts_report_contact:                 ## @sis_ts_report_contact
	.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	8(%rdi), %r14
	movq	_SIS_CONTACT_STATUS_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rsi,%rax,8), %rbx
	movq	_SIS_STATUS_DOWN@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rbx
	je	LBB0_3
## %bb.1:
	movq	_SIS_STATUS_UP@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_3
## %bb.2:
	movq	(%rdi), %rdi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	_SIS_CONTACT_ID_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rsi
	movq	%r14, %rdi
	callq	_input_mt_get_slot_by_key
	testl	%eax, %eax
	js	LBB0_4
## %bb.6:
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_input_mt_slot
	movq	_MT_TOOL_FINGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	cmpq	(%r12), %rbx
	sete	%dl
	movq	%r14, %rdi
	callq	_input_mt_report_slot_state
	xorl	%r13d, %r13d
	cmpq	(%r12), %rbx
	jne	LBB0_15
## %bb.7:
	movq	_SIS_ALL_IN_ONE_PACKAGE@GOTPCREL(%rip), %rax
	movl	$1, %r12d
	movl	$1, %ebx
	movl	$1, %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	cmpq	%rdi, (%rax)
	je	LBB0_14
## %bb.8:
	callq	_SIS_PKT_HAS_AREA
	movl	$1, %ebx
	movl	$1, %ecx
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_SIS_CONTACT_WIDTH_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rcx
	movq	_SIS_CONTACT_HEIGHT_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rbx
LBB0_10:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_SIS_PKT_HAS_PRESSURE
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%r12, %rdi
	callq	_SIS_CONTACT_PRESSURE_OFFSET
	movq	(%r15,%rax,8), %rcx
	jmp	LBB0_13
LBB0_4:
	movq	_ENOENT@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_15:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	$1, %ecx
LBB0_13:
	movq	%rbx, %r12
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_14:
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	_SIS_CONTACT_X_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%r15,%rax,8), %rdi
	callq	_get_unaligned_le16
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_SIS_CONTACT_Y_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%r15,%rax,8), %rdi
	callq	_get_unaligned_le16
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_ABS_MT_TOUCH_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SIS_AREA_UNIT@GOTPCREL(%rip), %r15
	imulq	(%r15), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_input_report_abs
	movq	_ABS_MT_TOUCH_MINOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	imulq	(%r15), %r12
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_input_report_abs
	movq	_ABS_MT_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_input_report_abs
	movq	_ABS_MT_POSITION_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_input_report_abs
	movq	_ABS_MT_POSITION_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_input_report_abs
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_SIS_CONTACT_STATUS_OFFSET,8,3  ## @SIS_CONTACT_STATUS_OFFSET
	.comm	_SIS_STATUS_DOWN,8,3            ## @SIS_STATUS_DOWN
	.comm	_SIS_STATUS_UP,8,3              ## @SIS_STATUS_UP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unexpected touch status: %#02x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SIS_CONTACT_ID_OFFSET,8,3      ## @SIS_CONTACT_ID_OFFSET
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_MT_TOOL_FINGER,4,2             ## @MT_TOOL_FINGER
	.comm	_SIS_ALL_IN_ONE_PACKAGE,8,3     ## @SIS_ALL_IN_ONE_PACKAGE
	.comm	_SIS_CONTACT_WIDTH_OFFSET,8,3   ## @SIS_CONTACT_WIDTH_OFFSET
	.comm	_SIS_CONTACT_HEIGHT_OFFSET,8,3  ## @SIS_CONTACT_HEIGHT_OFFSET
	.comm	_SIS_CONTACT_X_OFFSET,8,3       ## @SIS_CONTACT_X_OFFSET
	.comm	_SIS_CONTACT_Y_OFFSET,8,3       ## @SIS_CONTACT_Y_OFFSET
	.comm	_ABS_MT_TOUCH_MAJOR,4,2         ## @ABS_MT_TOUCH_MAJOR
	.comm	_SIS_AREA_UNIT,8,3              ## @SIS_AREA_UNIT
	.comm	_ABS_MT_TOUCH_MINOR,4,2         ## @ABS_MT_TOUCH_MINOR
	.comm	_ABS_MT_PRESSURE,4,2            ## @ABS_MT_PRESSURE
	.comm	_ABS_MT_POSITION_X,4,2          ## @ABS_MT_POSITION_X
	.comm	_ABS_MT_POSITION_Y,4,2          ## @ABS_MT_POSITION_Y
	.no_dead_strip	_sis_ts_report_contact
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sis_ts_report_contact
_sis_ts_report_contact:                 ; @sis_ts_report_contact
	.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
Lloh0:
	adrp	x8, _SIS_CONTACT_STATUS_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIS_CONTACT_STATUS_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x22, [x1, x8, lsl #3]
Lloh3:
	adrp	x23, _SIS_STATUS_DOWN@GOTPAGE
Lloh4:
	ldr	x23, [x23, _SIS_STATUS_DOWN@GOTPAGEOFF]
	ldr	x8, [x23]
Lloh5:
	adrp	x9, _SIS_STATUS_UP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SIS_STATUS_UP@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x22, x8
	ccmp	x22, x9, #4, ne
	b.ne	LBB0_5
; %bb.1:
	mov	x21, x2
	mov	x20, x1
	ldr	x19, [x0, #8]
Lloh8:
	adrp	x8, _SIS_CONTACT_ID_OFFSET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SIS_CONTACT_ID_OFFSET@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x1, [x1, x8, lsl #3]
	mov	x0, x19
	bl	_input_mt_get_slot_by_key
	tbnz	w0, #31, LBB0_6
; %bb.2:
	mov	x1, x0
	mov	x0, x19
	bl	_input_mt_slot
Lloh11:
	adrp	x8, _MT_TOOL_FINGER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MT_TOOL_FINGER@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	x8, [x23]
	cmp	x22, x8
	cset	w2, eq
	mov	x0, x19
	bl	_input_mt_report_slot_state
	ldr	x8, [x23]
	cmp	x22, x8
	b.ne	LBB0_15
; %bb.3:
Lloh14:
	adrp	x8, _SIS_ALL_IN_ONE_PACKAGE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SIS_ALL_IN_ONE_PACKAGE@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_8
; %bb.4:
	mov	w23, #1
	mov	w24, #1
	b	LBB0_13
LBB0_5:
	ldr	x0, [x0]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_dev_err
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh21:
	adrp	x8, _ENOENT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_16
LBB0_8:
	mov	x0, x21
	bl	_SIS_PKT_HAS_AREA
	cbz	x0, LBB0_10
; %bb.9:
Lloh23:
	adrp	x8, _SIS_CONTACT_WIDTH_OFFSET@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SIS_CONTACT_WIDTH_OFFSET@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	ldr	x24, [x20, x8, lsl #3]
Lloh26:
	adrp	x8, _SIS_CONTACT_HEIGHT_OFFSET@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SIS_CONTACT_HEIGHT_OFFSET@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	ldr	x23, [x20, x8, lsl #3]
	b	LBB0_11
LBB0_10:
	mov	w23, #1
	mov	w24, #1
LBB0_11:
	mov	x0, x21
	bl	_SIS_PKT_HAS_PRESSURE
	cbz	x0, LBB0_13
; %bb.12:
	mov	x0, x21
	bl	_SIS_CONTACT_PRESSURE_OFFSET
	ldr	x21, [x20, x0, lsl #3]
	b	LBB0_14
LBB0_13:
	mov	w21, #1
LBB0_14:
Lloh29:
	adrp	x8, _SIS_CONTACT_X_OFFSET@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SIS_CONTACT_X_OFFSET@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	add	x0, x20, x8, lsl #3
	bl	_get_unaligned_le16
	mov	x22, x0
Lloh32:
	adrp	x8, _SIS_CONTACT_Y_OFFSET@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SIS_CONTACT_Y_OFFSET@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	add	x0, x20, x8, lsl #3
	bl	_get_unaligned_le16
	mov	x20, x0
Lloh35:
	adrp	x8, _ABS_MT_TOUCH_MAJOR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ABS_MT_TOUCH_MAJOR@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
Lloh38:
	adrp	x25, _SIS_AREA_UNIT@GOTPAGE
Lloh39:
	ldr	x25, [x25, _SIS_AREA_UNIT@GOTPAGEOFF]
	ldr	x8, [x25]
	mul	x2, x8, x24
	mov	x0, x19
	bl	_input_report_abs
Lloh40:
	adrp	x8, _ABS_MT_TOUCH_MINOR@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ABS_MT_TOUCH_MINOR@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	ldr	x8, [x25]
	mul	x2, x8, x23
	mov	x0, x19
	bl	_input_report_abs
Lloh43:
	adrp	x8, _ABS_MT_PRESSURE@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ABS_MT_PRESSURE@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_input_report_abs
Lloh46:
	adrp	x8, _ABS_MT_POSITION_X@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ABS_MT_POSITION_X@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_input_report_abs
Lloh49:
	adrp	x8, _ABS_MT_POSITION_Y@GOTPAGE
Lloh50:
	ldr	x8, [x8, _ABS_MT_POSITION_Y@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_input_report_abs
LBB0_15:
	mov	w0, #0
LBB0_16:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_SIS_CONTACT_STATUS_OFFSET,8,3  ; @SIS_CONTACT_STATUS_OFFSET
	.comm	_SIS_STATUS_DOWN,8,3            ; @SIS_STATUS_DOWN
	.comm	_SIS_STATUS_UP,8,3              ; @SIS_STATUS_UP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unexpected touch status: %#02x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SIS_CONTACT_ID_OFFSET,8,3      ; @SIS_CONTACT_ID_OFFSET
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_MT_TOOL_FINGER,4,2             ; @MT_TOOL_FINGER
	.comm	_SIS_ALL_IN_ONE_PACKAGE,8,3     ; @SIS_ALL_IN_ONE_PACKAGE
	.comm	_SIS_CONTACT_WIDTH_OFFSET,8,3   ; @SIS_CONTACT_WIDTH_OFFSET
	.comm	_SIS_CONTACT_HEIGHT_OFFSET,8,3  ; @SIS_CONTACT_HEIGHT_OFFSET
	.comm	_SIS_CONTACT_X_OFFSET,8,3       ; @SIS_CONTACT_X_OFFSET
	.comm	_SIS_CONTACT_Y_OFFSET,8,3       ; @SIS_CONTACT_Y_OFFSET
	.comm	_ABS_MT_TOUCH_MAJOR,4,2         ; @ABS_MT_TOUCH_MAJOR
	.comm	_SIS_AREA_UNIT,8,3              ; @SIS_AREA_UNIT
	.comm	_ABS_MT_TOUCH_MINOR,4,2         ; @ABS_MT_TOUCH_MINOR
	.comm	_ABS_MT_PRESSURE,4,2            ; @ABS_MT_PRESSURE
	.comm	_ABS_MT_POSITION_X,4,2          ; @ABS_MT_POSITION_X
	.comm	_ABS_MT_POSITION_Y,4,2          ; @ABS_MT_POSITION_Y
	.no_dead_strip	_sis_ts_report_contact
.subsections_via_symbols
