	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function titsc_irq
_titsc_irq:                             ## @titsc_irq
	.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, %r12
	movq	24(%rsi), %r15
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	movq	_REG_RAWIRQSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_titsc_readl
	movl	%eax, %r14d
	movq	_IRQENB_HW_PEN@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_1
## %bb.2:
	movl	$1, (%r12)
	movl	(%rax), %r13d
	movl	16(%r12), %edi
	callq	_pm_stay_awake
	jmp	LBB0_3
LBB0_1:
	xorl	%r13d, %r13d
LBB0_3:
	movq	_IRQENB_PENUP@GOTPCREL(%rip), %rbx
	testl	%r14d, (%rbx)
	je	LBB0_8
## %bb.4:
	movq	_REG_ADCFSM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_titsc_readl
	movq	_ADCFSM_STEPID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.5:
	movl	$0, (%r12)
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_input_report_key
	movq	_ABS_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_input_report_abs
	movq	%r15, %rdi
	callq	_input_sync
	movl	16(%r12), %edi
	callq	_pm_relax
	jmp	LBB0_7
LBB0_6:
	movl	$1, (%r12)
LBB0_7:
	orl	(%rbx), %r13d
LBB0_8:
	movq	_IRQENB_EOS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%r14d, %ebx
	andl	%eax, %ebx
	cmovnel	%eax, %ebx
	orl	%r13d, %ebx
	movq	_IRQENB_FIFO0THRES@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_15
## %bb.9:
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	leaq	-52(%rbp), %r8
	movq	%r12, %rdi
	callq	_titsc_read_coordinates
	cmpl	$0, (%r12)
	je	LBB0_14
## %bb.10:
	movl	-56(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_14
## %bb.11:
	movl	-52(%rbp), %esi
	testl	%esi, %esi
	je	LBB0_14
## %bb.12:
	subl	%esi, %eax
	movl	-48(%rbp), %ecx
	imull	%ecx, %eax
	imull	4(%r12), %eax
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, %r13d
	addl	$2047, %r13d                    ## imm = 0x7FF
	shrl	$12, %r13d
	movq	_MAX_12BIT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	ja	LBB0_14
## %bb.13:
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ecx, %edx
	callq	_input_report_abs
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edx
	movq	%r15, %rdi
	callq	_input_report_abs
	movq	_ABS_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	_input_report_abs
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_input_report_key
	movq	%r15, %rdi
	callq	_input_sync
LBB0_14:
	movq	_IRQENB_FIFO0THRES@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_15:
	testl	%ebx, %ebx
	je	LBB0_16
## %bb.17:
	movq	_REG_IRQSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_titsc_writel
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rbx
	movq	_IRQENB_EOS@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_19
## %bb.18:
	movl	8(%r12), %esi
	movl	12(%r12), %edi
	callq	_am335x_tsc_se_set_cache
	jmp	LBB0_19
LBB0_16:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rbx
LBB0_19:
	movl	(%rbx), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_RAWIRQSTATUS,4,2           ## @REG_RAWIRQSTATUS
	.comm	_IRQENB_HW_PEN,4,2              ## @IRQENB_HW_PEN
	.comm	_IRQENB_PENUP,4,2               ## @IRQENB_PENUP
	.comm	_REG_ADCFSM,4,2                 ## @REG_ADCFSM
	.comm	_ADCFSM_STEPID,4,2              ## @ADCFSM_STEPID
	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.comm	_ABS_PRESSURE,4,2               ## @ABS_PRESSURE
	.comm	_IRQENB_EOS,4,2                 ## @IRQENB_EOS
	.comm	_IRQENB_FIFO0THRES,4,2          ## @IRQENB_FIFO0THRES
	.comm	_MAX_12BIT,4,2                  ## @MAX_12BIT
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_REG_IRQSTATUS,4,2              ## @REG_IRQSTATUS
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.no_dead_strip	_titsc_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function titsc_irq
_titsc_irq:                             ; @titsc_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x1
	ldr	x21, [x1, #24]
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _REG_RAWIRQSTATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_RAWIRQSTATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_titsc_readl
	mov	x20, x0
Lloh3:
	adrp	x8, _IRQENB_HW_PEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRQENB_HW_PEN@GOTPAGEOFF]
	ldr	w9, [x8]
	tst	w9, w0
	b.eq	LBB0_2
; %bb.1:
	mov	w9, #1
	str	w9, [x19]
	ldr	w22, [x8]
	ldr	w0, [x19, #16]
	bl	_pm_stay_awake
	b	LBB0_3
LBB0_2:
	mov	w22, #0
LBB0_3:
Lloh5:
	adrp	x23, _IRQENB_PENUP@GOTPAGE
Lloh6:
	ldr	x23, [x23, _IRQENB_PENUP@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w8, w20
	b.eq	LBB0_8
; %bb.4:
Lloh7:
	adrp	x8, _REG_ADCFSM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _REG_ADCFSM@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_titsc_readl
Lloh10:
	adrp	x8, _ADCFSM_STEPID@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ADCFSM_STEPID@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.5:
	str	wzr, [x19]
Lloh13:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_input_report_key
Lloh16:
	adrp	x8, _ABS_PRESSURE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ABS_PRESSURE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_input_report_abs
	mov	x0, x21
	bl	_input_sync
	ldr	w0, [x19, #16]
	bl	_pm_relax
	b	LBB0_7
LBB0_6:
	mov	w8, #1
	str	w8, [x19]
LBB0_7:
	ldr	w8, [x23]
	orr	w22, w8, w22
LBB0_8:
Lloh19:
	adrp	x24, _IRQENB_EOS@GOTPAGE
Lloh20:
	ldr	x24, [x24, _IRQENB_EOS@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w20
	csel	w8, wzr, w8, eq
	orr	w22, w8, w22
Lloh21:
	adrp	x25, _IRQENB_FIFO0THRES@GOTPAGE
Lloh22:
	ldr	x25, [x25, _IRQENB_FIFO0THRES@GOTPAGEOFF]
	ldr	w8, [x25]
	tst	w8, w20
	b.eq	LBB0_15
; %bb.9:
	add	x1, sp, #12
	add	x2, sp, #8
	add	x3, sp, #4
	mov	x4, sp
	mov	x0, x19
	bl	_titsc_read_coordinates
	ldr	w8, [x19]
	cbz	w8, LBB0_14
; %bb.10:
	ldr	w8, [sp, #4]
	cbz	w8, LBB0_14
; %bb.11:
	ldr	w9, [sp]
	cbz	w9, LBB0_14
; %bb.12:
	sub	w8, w8, w9
	ldr	w2, [sp, #12]
	mul	w8, w2, w8
	ldr	w10, [x19, #4]
	mul	w8, w8, w10
	udiv	w8, w8, w9
	add	w8, w8, #2047
	lsr	w23, w8, #12
Lloh23:
	adrp	x8, _MAX_12BIT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MAX_12BIT@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	cmp	w23, w8
	b.hi	LBB0_14
; %bb.13:
Lloh26:
	adrp	x8, _ABS_X@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_input_report_abs
Lloh29:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	ldr	w2, [sp, #8]
	mov	x0, x21
	bl	_input_report_abs
Lloh32:
	adrp	x8, _ABS_PRESSURE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ABS_PRESSURE@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x23
	bl	_input_report_abs
Lloh35:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh36:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #1
	bl	_input_report_key
	mov	x0, x21
	bl	_input_sync
LBB0_14:
	ldr	w8, [x25]
	orr	w22, w8, w22
LBB0_15:
	cbz	w22, LBB0_19
; %bb.16:
Lloh38:
	adrp	x8, _REG_IRQSTATUS@GOTPAGE
Lloh39:
	ldr	x8, [x8, _REG_IRQSTATUS@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_titsc_writel
	ldr	w8, [x24]
	tst	w8, w20
	b.eq	LBB0_18
; %bb.17:
	ldp	w1, w0, [x19, #8]
	bl	_am335x_tsc_se_set_cache
LBB0_18:
Lloh41:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh42:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_20
LBB0_19:
Lloh43:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh44:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_20:
	ldr	w0, [x8]
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_RAWIRQSTATUS,4,2           ; @REG_RAWIRQSTATUS
	.comm	_IRQENB_HW_PEN,4,2              ; @IRQENB_HW_PEN
	.comm	_IRQENB_PENUP,4,2               ; @IRQENB_PENUP
	.comm	_REG_ADCFSM,4,2                 ; @REG_ADCFSM
	.comm	_ADCFSM_STEPID,4,2              ; @ADCFSM_STEPID
	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.comm	_ABS_PRESSURE,4,2               ; @ABS_PRESSURE
	.comm	_IRQENB_EOS,4,2                 ; @IRQENB_EOS
	.comm	_IRQENB_FIFO0THRES,4,2          ; @IRQENB_FIFO0THRES
	.comm	_MAX_12BIT,4,2                  ; @MAX_12BIT
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_REG_IRQSTATUS,4,2              ; @REG_IRQSTATUS
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.no_dead_strip	_titsc_irq
.subsections_via_symbols
