	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iproc_touchscreen_interrupt
_iproc_touchscreen_interrupt:           ## @iproc_touchscreen_interrupt
	.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, %rdi
	callq	_platform_get_drvdata
	movq	%rax, %r12
	movl	48(%rax), %edi
	movq	_INTERRUPT_STATUS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	movq	_TS_PEN_INTR_MASK@GOTPCREL(%rip), %rbx
	movq	_TS_FIFO_INTR_MASK@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	orl	(%rbx), %edx
	andl	-44(%rbp), %edx
	movl	%edx, -44(%rbp)
	je	LBB0_1
## %bb.2:
	movl	48(%r12), %edi
	movl	(%r15), %esi
	callq	_regmap_write
	movl	-44(%rbp), %eax
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.4:
	movl	48(%r12), %edi
	movq	_CONTROLLER_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdx
	callq	_regmap_read
	movq	_TS_PEN_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r12), %eax
	jne	LBB0_5
## %bb.6:
	movq	_PEN_UP_STATUS@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rbx
	jmp	LBB0_20
LBB0_3:
	xorl	%r13d, %r13d
	testl	%eax, (%r14)
	jne	LBB0_9
	jmp	LBB0_18
LBB0_5:
	movq	_PEN_DOWN_STATUS@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %edx
	movl	%edx, (%r12)
	movl	4(%r12), %edi
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_input_report_key
	movq	8(%r12), %rdi
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	$1, %r13d
	movl	-44(%rbp), %eax
	testl	%eax, (%r14)
	je	LBB0_18
LBB0_9:
	cmpl	$0, 16(%r12)
	jle	LBB0_18
## %bb.10:
	leaq	-48(%rbp), %r14
	xorl	%r15d, %r15d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	4(%r12), %edi
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edx
	callq	_input_report_abs
	movl	4(%r12), %edi
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	callq	_input_report_abs
	movq	8(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	$1, %r13d
LBB0_17:                                ##   in Loop: Header=BB0_11 Depth=1
	incl	%r15d
	cmpl	16(%r12), %r15d
	jge	LBB0_18
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	48(%r12), %edi
	movq	_FIFO_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_regmap_read
	movl	-48(%rbp), %ebx
	movq	_INVALID_COORD@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_X_COORD_SHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	movl	%ebx, %r13d
	sarl	%cl, %r13d
	movq	_Y_COORD_SHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	sarl	%cl, %ebx
	movq	_FIFO_DATA_X_Y_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%eax, %r13d
	andl	%eax, %ebx
	shrl	$4, %r13d
	andl	$4095, %r13d                    ## imm = 0xFFF
	shrl	$4, %ebx
	cmpq	$0, 40(%r12)
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	20(%r12), %eax
	subl	%r13d, %eax
	movl	%eax, %r13d
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	andl	$4095, %ebx                     ## imm = 0xFFF
	cmpq	$0, 32(%r12)
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	24(%r12), %eax
	subl	%ebx, %eax
	movl	%eax, %ebx
	jmp	LBB0_16
LBB0_18:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rbx
	testl	%r13d, %r13d
	je	LBB0_20
## %bb.19:
	movl	4(%r12), %edi
	callq	_input_sync
LBB0_20:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INTERRUPT_STATUS,4,2           ## @INTERRUPT_STATUS
	.comm	_TS_PEN_INTR_MASK,4,2           ## @TS_PEN_INTR_MASK
	.comm	_TS_FIFO_INTR_MASK,4,2          ## @TS_FIFO_INTR_MASK
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_CONTROLLER_STATUS,4,2          ## @CONTROLLER_STATUS
	.comm	_TS_PEN_DOWN,4,2                ## @TS_PEN_DOWN
	.comm	_PEN_DOWN_STATUS,4,2            ## @PEN_DOWN_STATUS
	.comm	_PEN_UP_STATUS,4,2              ## @PEN_UP_STATUS
	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pen up-down (%d)\n"

	.comm	_FIFO_DATA,4,2                  ## @FIFO_DATA
	.comm	_INVALID_COORD,4,2              ## @INVALID_COORD
	.comm	_X_COORD_SHIFT,4,2              ## @X_COORD_SHIFT
	.comm	_FIFO_DATA_X_Y_MASK,4,2         ## @FIFO_DATA_X_Y_MASK
	.comm	_Y_COORD_SHIFT,4,2              ## @Y_COORD_SHIFT
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
L_.str.1:                               ## @.str.1
	.asciz	"xy (0x%x 0x%x)\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_iproc_touchscreen_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iproc_touchscreen_interrupt
_iproc_touchscreen_interrupt:           ; @iproc_touchscreen_interrupt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x0, x1
	bl	_platform_get_drvdata
	mov	x19, x0
	ldr	w0, [x0, #48]
Lloh0:
	adrp	x21, _INTERRUPT_STATUS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _INTERRUPT_STATUS@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	bl	_regmap_read
Lloh2:
	adrp	x22, _TS_PEN_INTR_MASK@GOTPAGE
Lloh3:
	ldr	x22, [x22, _TS_PEN_INTR_MASK@GOTPAGEOFF]
Lloh4:
	adrp	x20, _TS_FIFO_INTR_MASK@GOTPAGE
Lloh5:
	ldr	x20, [x20, _TS_FIFO_INTR_MASK@GOTPAGEOFF]
	ldr	w8, [x22]
	ldr	w9, [x20]
	orr	w8, w9, w8
	ldr	w9, [sp, #12]
	ands	w2, w9, w8
	str	w2, [sp, #12]
	b.eq	LBB0_3
; %bb.1:
	ldr	w0, [x19, #48]
	ldr	w1, [x21]
	bl	_regmap_write
	ldr	w8, [sp, #12]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	ldr	w0, [x19, #48]
Lloh6:
	adrp	x8, _CONTROLLER_STATUS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CONTROLLER_STATUS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_regmap_read
Lloh9:
	adrp	x8, _TS_PEN_DOWN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TS_PEN_DOWN@GOTPAGEOFF]
Lloh11:
	adrp	x9, _PEN_UP_STATUS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PEN_UP_STATUS@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x10, _PEN_DOWN_STATUS@GOTPAGE
Lloh15:
	ldr	x10, [x10, _PEN_DOWN_STATUS@GOTPAGEOFF]
	ldp	w11, w0, [x19]
	tst	w8, w11
	csel	x8, x9, x10, eq
	ldr	w2, [x8]
	str	w2, [x19]
Lloh16:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	bl	_input_report_key
	ldr	x0, [x19, #8]
	ldr	w2, [x19]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	mov	w21, #1
	ldr	w8, [sp, #12]
	b	LBB0_5
LBB0_3:
Lloh21:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_18
LBB0_4:
	mov	w21, #0
LBB0_5:
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.6:
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.7:
	mov	w23, #0
Lloh23:
	adrp	x24, _FIFO_DATA@GOTPAGE
Lloh24:
	ldr	x24, [x24, _FIFO_DATA@GOTPAGEOFF]
Lloh25:
	adrp	x25, _INVALID_COORD@GOTPAGE
Lloh26:
	ldr	x25, [x25, _INVALID_COORD@GOTPAGEOFF]
Lloh27:
	adrp	x28, _Y_COORD_SHIFT@GOTPAGE
Lloh28:
	ldr	x28, [x28, _Y_COORD_SHIFT@GOTPAGEOFF]
Lloh29:
	adrp	x26, _ABS_X@GOTPAGE
Lloh30:
	ldr	x26, [x26, _ABS_X@GOTPAGEOFF]
Lloh31:
	adrp	x20, l_.str.1@PAGE
Lloh32:
	add	x20, x20, l_.str.1@PAGEOFF
Lloh33:
	adrp	x27, _ABS_Y@GOTPAGE
Lloh34:
	ldr	x27, [x27, _ABS_Y@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	w0, [x19, #4]
	ldr	w1, [x26]
	mov	x2, x21
	bl	_input_report_abs
	ldr	w0, [x19, #4]
	ldr	w1, [x27]
	mov	x2, x22
	bl	_input_report_abs
	ldr	x0, [x19, #8]
	str	x22, [sp]
	mov	x1, x20
	mov	x2, x21
	bl	_dev_dbg
	mov	w21, #1
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	w23, w23, #1
	ldr	w8, [x19, #16]
	cmp	w23, w8
	b.ge	LBB0_15
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #48]
	ldr	w1, [x24]
	add	x2, sp, #8
	bl	_regmap_read
	ldr	w8, [sp, #8]
	ldr	w9, [x25]
	cmp	w8, w9
	b.eq	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
Lloh35:
	adrp	x9, _X_COORD_SHIFT@GOTPAGE
Lloh36:
	ldr	x9, [x9, _X_COORD_SHIFT@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	asr	w10, w8, w9
Lloh38:
	adrp	x9, _FIFO_DATA_X_Y_MASK@GOTPAGE
Lloh39:
	ldr	x9, [x9, _FIFO_DATA_X_Y_MASK@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	and	w10, w10, w9
	ubfx	w21, w10, #4, #12
	ldr	x10, [x19, #40]
	cbz	x10, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w10, [x19, #20]
	sub	w21, w10, w21
LBB0_13:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	w10, [x28]
	asr	w8, w8, w10
	and	w8, w8, w9
	ubfx	w22, w8, #4, #12
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_8
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x19, #24]
	sub	w22, w8, w22
	b	LBB0_8
LBB0_15:
	cbz	w21, LBB0_17
; %bb.16:
	ldr	w0, [x19, #4]
	bl	_input_sync
LBB0_17:
Lloh41:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh42:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_18:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_INTERRUPT_STATUS,4,2           ; @INTERRUPT_STATUS
	.comm	_TS_PEN_INTR_MASK,4,2           ; @TS_PEN_INTR_MASK
	.comm	_TS_FIFO_INTR_MASK,4,2          ; @TS_FIFO_INTR_MASK
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_CONTROLLER_STATUS,4,2          ; @CONTROLLER_STATUS
	.comm	_TS_PEN_DOWN,4,2                ; @TS_PEN_DOWN
	.comm	_PEN_DOWN_STATUS,4,2            ; @PEN_DOWN_STATUS
	.comm	_PEN_UP_STATUS,4,2              ; @PEN_UP_STATUS
	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pen up-down (%d)\n"

	.comm	_FIFO_DATA,4,2                  ; @FIFO_DATA
	.comm	_INVALID_COORD,4,2              ; @INVALID_COORD
	.comm	_X_COORD_SHIFT,4,2              ; @X_COORD_SHIFT
	.comm	_FIFO_DATA_X_Y_MASK,4,2         ; @FIFO_DATA_X_Y_MASK
	.comm	_Y_COORD_SHIFT,4,2              ; @Y_COORD_SHIFT
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
l_.str.1:                               ; @.str.1
	.asciz	"xy (0x%x 0x%x)\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_iproc_touchscreen_interrupt
.subsections_via_symbols
