	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sun4i_ts_irq_handle_input
_sun4i_ts_irq_handle_input:             ## @sun4i_ts_irq_handle_input
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_FIFO_DATA_PENDING@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_4
## %bb.1:
	movq	_TP_DATA@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movl	%eax, %r12d
	movq	(%r15), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	cmpl	$0, (%rbx)
	je	LBB0_2
## %bb.3:
	movl	$0, (%rbx)
	jmp	LBB0_4
LBB0_2:
	movl	%eax, %r15d
	movl	4(%rbx), %edi
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edx
	callq	_input_report_abs
	movl	4(%rbx), %edi
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	callq	_input_report_abs
	movl	4(%rbx), %edi
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_input_report_key
	movl	4(%rbx), %edi
	callq	_input_sync
LBB0_4:
	movq	_TP_UP_PENDING@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_5
## %bb.6:
	movl	$1, (%rbx)
	movl	4(%rbx), %edi
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_input_report_key
	movl	4(%rbx), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FIFO_DATA_PENDING,4,2          ## @FIFO_DATA_PENDING
	.comm	_TP_DATA,8,3                    ## @TP_DATA
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.comm	_TP_UP_PENDING,4,2              ## @TP_UP_PENDING
	.no_dead_strip	_sun4i_ts_irq_handle_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sun4i_ts_irq_handle_input
_sun4i_ts_irq_handle_input:             ; @sun4i_ts_irq_handle_input
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _FIFO_DATA_PENDING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FIFO_DATA_PENDING@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_4
; %bb.1:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x21, _TP_DATA@GOTPAGE
Lloh4:
	ldr	x21, [x21, _TP_DATA@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
	mov	x22, x0
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x19]
	cbz	w8, LBB0_3
; %bb.2:
	str	wzr, [x19]
	b	LBB0_4
LBB0_3:
	mov	x21, x0
	ldr	w0, [x19, #4]
Lloh5:
	adrp	x8, _ABS_X@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x2, x22
	bl	_input_report_abs
	ldr	w0, [x19, #4]
Lloh8:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_input_report_abs
	ldr	w0, [x19, #4]
Lloh11:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_input_report_key
	ldr	w0, [x19, #4]
	bl	_input_sync
LBB0_4:
Lloh14:
	adrp	x8, _TP_UP_PENDING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TP_UP_PENDING@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.5:
	mov	w8, #1
	str	w8, [x19]
	ldr	w0, [x19, #4]
Lloh17:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_input_report_key
	ldr	w0, [x19, #4]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_input_sync
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_FIFO_DATA_PENDING,4,2          ; @FIFO_DATA_PENDING
	.comm	_TP_DATA,8,3                    ; @TP_DATA
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.comm	_TP_UP_PENDING,4,2              ; @TP_UP_PENDING
	.no_dead_strip	_sun4i_ts_irq_handle_input
.subsections_via_symbols
