	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function edt_ft5x06_ts_isr
_edt_ft5x06_ts_isr:                     ## @edt_ft5x06_ts_isr
	.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	$296, %rsp                      ## imm = 0x128
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rsi), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_20
## %bb.1:
	movq	%rsi, %r15
	movq	16(%rsi), %rcx
	movq	%rcx, -312(%rbp)                ## 8-byte Spill
	movslq	%eax, %rbx
	leaq	l_switch.table.edt_ft5x06_ts_isr(%rip), %rax
	movl	(%rax,%rbx,4), %eax
	leaq	l_switch.table.edt_ft5x06_ts_isr.2(%rip), %rcx
	movl	(%rcx,%rbx,4), %r14d
	leaq	l_switch.table.edt_ft5x06_ts_isr.4(%rip), %rcx
	movl	(%rcx,%rbx,4), %r13d
	movl	%eax, -316(%rbp)
	leaq	-304(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$252, %edx
	callq	_memset
	movl	4(%r15), %eax
	imull	%r14d, %eax
	leaq	l_switch.table.edt_ft5x06_ts_isr.3(%rip), %rcx
	movl	(%rcx,%rbx,4), %ebx
	addl	%r13d, %ebx
	addl	%eax, %ebx
	movq	16(%r15), %rdi
	leaq	-316(%rbp), %rdx
	movl	$4, %esi
	movl	%ebx, %ecx
	movq	%r12, %r8
	callq	_edt_ft5x06_ts_readwrite
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	-312(%rbp), %rdi                ## 8-byte Reload
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err_ratelimited
	jmp	LBB0_20
LBB0_3:
	movq	-312(%rbp), %rdi                ## 8-byte Reload
	cmpl	$132, (%r15)
	jne	LBB0_9
## %bb.4:
	movl	-304(%rbp), %edx
	movl	-300(%rbp), %ecx
	movl	-296(%rbp), %r8d
	cmpl	$170, %edx
	jne	LBB0_7
## %bb.5:
	cmpl	$170, %ecx
	jne	LBB0_7
## %bb.6:
	cmpl	%ebx, %r8d
	jne	LBB0_7
## %bb.8:
	leaq	-304(%rbp), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_edt_ft5x06_ts_check_crc
	testl	%eax, %eax
	je	LBB0_20
LBB0_9:
	cmpl	$0, 4(%r15)
	jle	LBB0_19
## %bb.10:
	movq	%r14, %rcx
	leaq	12(%r15), %rax
	movq	%rax, -336(%rbp)                ## 8-byte Spill
	leaq	-296(,%r13,4), %rbx
	addq	%rbp, %rbx
	shlq	$2, %rcx
	xorl	%r14d, %r14d
	movq	_TOUCH_EVENT_RESERVED@GOTPCREL(%rip), %rdx
	movq	%rcx, -328(%rbp)                ## 8-byte Spill
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%r14
	movslq	4(%r15), %rax
	addq	%rcx, %rbx
	cmpq	%rax, %r14
	jge	LBB0_19
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	-8(%rbx), %r12d
	sarl	$6, %r12d
	cmpl	(%rdx), %r12d
	je	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$132, (%r15)
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_TOUCH_EVENT_DOWN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	je	LBB0_18
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	leaq	-8(%rbx), %rdi
	callq	_get_unaligned_be16
	andl	$4095, %eax                     ## imm = 0xFFF
	movl	%eax, -312(%rbp)                ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_get_unaligned_be16
	movl	%eax, %r13d
	andl	$4095, %r13d                    ## imm = 0xFFF
	cmpl	$129, (%r15)
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	-312(%rbp), %edi                ## 4-byte Reload
	movl	%r13d, %esi
	callq	_swap
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	(%rbx), %esi
	shrl	$4, %esi
	andl	$15, %esi
	movl	8(%r15), %edi
	callq	_input_mt_slot
	movl	8(%r15), %edi
	movq	_MT_TOOL_FINGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	movq	_TOUCH_EVENT_UP@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	setne	%dl
	callq	_input_mt_report_slot_state
	testq	%rax, %rax
	movq	-328(%rbp), %rcx                ## 8-byte Reload
	movq	_TOUCH_EVENT_RESERVED@GOTPCREL(%rip), %rdx
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	8(%r15), %edi
	movq	-336(%rbp), %rsi                ## 8-byte Reload
	movl	-312(%rbp), %edx                ## 4-byte Reload
	movl	%r13d, %ecx
	movl	$1, %r8d
	callq	_touchscreen_report_pos
	movq	_TOUCH_EVENT_RESERVED@GOTPCREL(%rip), %rdx
	movq	-328(%rbp), %rcx                ## 8-byte Reload
	jmp	LBB0_18
LBB0_19:
	movl	8(%r15), %edi
	movl	$1, %esi
	callq	_input_mt_report_pointer_emulation
	movl	8(%r15), %edi
	callq	_input_sync
	jmp	LBB0_20
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err_ratelimited
LBB0_20:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_22
## %bb.21:
	addq	$296, %rsp                      ## imm = 0x128
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to fetch data, error: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Unexpected header: %02x%02x%02x!\n"

	.comm	_TOUCH_EVENT_RESERVED,4,2       ## @TOUCH_EVENT_RESERVED
	.comm	_TOUCH_EVENT_DOWN,4,2           ## @TOUCH_EVENT_DOWN
	.comm	_MT_TOOL_FINGER,4,2             ## @MT_TOOL_FINGER
	.comm	_TOUCH_EVENT_UP,4,2             ## @TOUCH_EVENT_UP
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_edt_ft5x06_ts_isr
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.edt_ft5x06_ts_isr
l_switch.table.edt_ft5x06_ts_isr:
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	249                             ## 0xf9

	.p2align	2                               ## @switch.table.edt_ft5x06_ts_isr.2
l_switch.table.edt_ft5x06_ts_isr.2:
	.long	6                               ## 0x6
	.long	6                               ## 0x6
	.long	6                               ## 0x6
	.long	6                               ## 0x6
	.long	4                               ## 0x4

	.p2align	2                               ## @switch.table.edt_ft5x06_ts_isr.3
l_switch.table.edt_ft5x06_ts_isr.3:
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	1                               ## 0x1

	.p2align	2                               ## @switch.table.edt_ft5x06_ts_isr.4
l_switch.table.edt_ft5x06_ts_isr.4:
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	5                               ## 0x5

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function edt_ft5x06_ts_isr
_edt_ft5x06_ts_isr:                     ; @edt_ft5x06_ts_isr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #384
	.cfi_def_cfa_offset 384
	stp	x28, x27, [sp, #288]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #304]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #320]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #336]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #352]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #368]            ; 16-byte Folded Spill
	add	x29, sp, #368
	.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, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	ldr	w8, [x1]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_19
; %bb.1:
	mov	x19, x1
	sbfiz	x8, x8, #2, #32
Lloh3:
	adrp	x9, l_switch.table.edt_ft5x06_ts_isr@PAGE
Lloh4:
	add	x9, x9, l_switch.table.edt_ft5x06_ts_isr@PAGEOFF
	ldr	w9, [x9, x8]
Lloh5:
	adrp	x10, l_switch.table.edt_ft5x06_ts_isr.2@PAGE
Lloh6:
	add	x10, x10, l_switch.table.edt_ft5x06_ts_isr.2@PAGEOFF
	ldr	w22, [x10, x8]
Lloh7:
	adrp	x10, l_switch.table.edt_ft5x06_ts_isr.3@PAGE
Lloh8:
	add	x10, x10, l_switch.table.edt_ft5x06_ts_isr.3@PAGEOFF
	ldr	w21, [x10, x8]
	ldr	x20, [x1, #16]
Lloh9:
	adrp	x10, l_switch.table.edt_ft5x06_ts_isr.4@PAGE
Lloh10:
	add	x10, x10, l_switch.table.edt_ft5x06_ts_isr.4@PAGEOFF
	ldr	w23, [x10, x8]
	str	w9, [sp, #16]
	add	x0, sp, #20
	mov	w1, #0
	mov	w2, #252
	bl	_memset
	ldr	w8, [x19, #4]
	add	w9, w23, w21
	madd	w21, w8, w22, w9
	ldr	x0, [x19, #16]
	add	x2, sp, #16
	add	x4, sp, #20
	mov	w1, #4
	mov	x3, x21
	bl	_edt_ft5x06_ts_readwrite
	cbz	w0, LBB0_4
; %bb.2:
	mov	x2, x0
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
LBB0_3:
	mov	x0, x20
	bl	_dev_err_ratelimited
	b	LBB0_19
LBB0_4:
	ldr	w8, [x19]
	cmp	w8, #132
	b.ne	LBB0_9
; %bb.5:
	ldp	w2, w8, [sp, #20]
	ldr	w9, [sp, #28]
	cmp	w2, #170
	b.ne	LBB0_21
; %bb.6:
	cmp	w8, #170
	b.ne	LBB0_21
; %bb.7:
	cmp	w9, w21
	b.ne	LBB0_21
; %bb.8:
	add	x1, sp, #20
	mov	x0, x19
	mov	x2, x21
	bl	_edt_ft5x06_ts_check_crc
	cbz	w0, LBB0_19
LBB0_9:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.10:
	mov	x24, #0
	add	x20, x19, #12
	add	x8, sp, #20
	add	x8, x8, x23, lsl #2
	add	x21, x8, #8
	lsl	x25, x22, #2
Lloh13:
	adrp	x26, _TOUCH_EVENT_RESERVED@GOTPAGE
Lloh14:
	ldr	x26, [x26, _TOUCH_EVENT_RESERVED@GOTPAGEOFF]
Lloh15:
	adrp	x27, _TOUCH_EVENT_DOWN@GOTPAGE
Lloh16:
	ldr	x27, [x27, _TOUCH_EVENT_DOWN@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x19, #4]
	add	x21, x21, x25
	cmp	x24, x8
	b.ge	LBB0_18
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	ldr	w8, [x0, #-8]!
	asr	w28, w8, #6
	ldr	w8, [x26]
	cmp	w28, w8
	b.eq	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [x19]
	ldr	w9, [x27]
	cmp	w8, #132
	ccmp	w28, w9, #0, eq
	b.eq	LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	bl	_get_unaligned_be16
	and	w22, w0, #0xfff
	mov	x0, x21
	bl	_get_unaligned_be16
	and	w23, w0, #0xfff
	ldr	w8, [x19]
	cmp	w8, #129
	b.ne	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x22
	mov	x1, x23
	bl	_swap
LBB0_16:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [x21]
	ubfx	w1, w8, #4, #4
	ldr	w0, [x19, #8]
	bl	_input_mt_slot
	ldr	w0, [x19, #8]
Lloh17:
	adrp	x8, _MT_TOOL_FINGER@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MT_TOOL_FINGER@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _TOUCH_EVENT_UP@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TOUCH_EVENT_UP@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w28, w8
	cset	w2, ne
	bl	_input_mt_report_slot_state
	cbz	x0, LBB0_11
; %bb.17:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w0, [x19, #8]
	mov	x1, x20
	mov	x2, x22
	mov	x3, x23
	mov	w4, #1
	bl	_touchscreen_report_pos
	b	LBB0_11
LBB0_18:
	ldr	w0, [x19, #8]
	mov	w1, #1
	bl	_input_mt_report_pointer_emulation
	ldr	w0, [x19, #8]
	bl	_input_sync
LBB0_19:
Lloh23:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	ldur	x8, [x29, #-96]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.20:
	ldp	x29, x30, [sp, #368]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #352]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #336]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #320]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #304]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #288]            ; 16-byte Folded Reload
	add	sp, sp, #384
	ret
LBB0_21:
	stp	x8, x9, [sp]
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to fetch data, error: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Unexpected header: %02x%02x%02x!\n"

	.comm	_TOUCH_EVENT_RESERVED,4,2       ; @TOUCH_EVENT_RESERVED
	.comm	_TOUCH_EVENT_DOWN,4,2           ; @TOUCH_EVENT_DOWN
	.comm	_MT_TOOL_FINGER,4,2             ; @MT_TOOL_FINGER
	.comm	_TOUCH_EVENT_UP,4,2             ; @TOUCH_EVENT_UP
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_edt_ft5x06_ts_isr
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.edt_ft5x06_ts_isr
l_switch.table.edt_ft5x06_ts_isr:
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	249                             ; 0xf9

	.p2align	2                               ; @switch.table.edt_ft5x06_ts_isr.2
l_switch.table.edt_ft5x06_ts_isr.2:
	.long	6                               ; 0x6
	.long	6                               ; 0x6
	.long	6                               ; 0x6
	.long	6                               ; 0x6
	.long	4                               ; 0x4

	.p2align	2                               ; @switch.table.edt_ft5x06_ts_isr.3
l_switch.table.edt_ft5x06_ts_isr.3:
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	1                               ; 0x1

	.p2align	2                               ; @switch.table.edt_ft5x06_ts_isr.4
l_switch.table.edt_ft5x06_ts_isr.4:
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	5                               ; 0x5

.subsections_via_symbols
