	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max11801_ts_interrupt
_max11801_ts_interrupt:                 ## @max11801_ts_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, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rsi), %r15
	movq	_XY_BUFSIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_GENERNAL_STATUS_REG@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_read_register
	movq	_MAX11801_FIFO_INT@GOTPCREL(%rip), %rcx
	movq	_MAX11801_FIFO_OVERFLOW@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_15
## %bb.1:
	movq	8(%r14), %rdi
	movl	(%r13), %esi
	callq	_read_register
	movq	_FIFO_RD_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	movq	%r15, %rdi
	movq	%rbx, %rcx
	callq	_i2c_smbus_read_i2c_block_data
	movl	(%r12), %r11d
	cmpl	%r11d, %eax
	jl	LBB0_15
## %bb.2:
	testl	%r11d, %r11d
	jle	LBB0_3
## %bb.4:
	movq	_MEASURE_TAG_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_MEASURE_X_TAG@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_MEASURE_Y_TAG@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_XY_BUF_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r11, %r12
	shrq	%r12
	movl	$-1, %r15d
	xorl	%eax, %eax
	movl	$-1, %edx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rbx,%rax,4), %edx
	shll	%cl, %edx
	sarl	%cl, %edi
	addl	%edx, %edi
	movl	%edi, %edx
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	addq	%r12, %rax
	cmpq	%r11, %rax
	jae	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rbx,%rax,4), %edi
	movl	%r9d, %esi
	andl	%edi, %esi
	cmpl	%r10d, %esi
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%r8d, %esi
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rbx,%rax,4), %esi
	shll	%cl, %esi
	sarl	%cl, %edi
	addl	%esi, %edi
	movl	%edi, %r15d
	jmp	LBB0_9
LBB0_3:
	movl	$-1, %edx
	movl	$-1, %r15d
LBB0_10:
	movq	_EVENT_TAG_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	4(%rbx), %eax
	andl	%ecx, %eax
	andl	12(%rbx), %ecx
	cmpl	%ecx, %eax
	jne	LBB0_15
## %bb.11:
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_12
## %bb.13:
	movl	(%r14), %edi
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_input_report_abs
	movl	(%r14), %edi
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	callq	_input_report_abs
	movl	$1, %ecx
	jmp	LBB0_14
LBB0_12:
	xorl	%ecx, %ecx
	cmpl	$128, %eax
	jne	LBB0_15
LBB0_14:
	movl	(%r14), %edi
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_input_event
	movl	(%r14), %edi
	callq	_input_sync
LBB0_15:
	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_17
## %bb.16:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_XY_BUFSIZE,4,2                 ## @XY_BUFSIZE
	.comm	_GENERNAL_STATUS_REG,4,2        ## @GENERNAL_STATUS_REG
	.comm	_MAX11801_FIFO_INT,4,2          ## @MAX11801_FIFO_INT
	.comm	_MAX11801_FIFO_OVERFLOW,4,2     ## @MAX11801_FIFO_OVERFLOW
	.comm	_FIFO_RD_CMD,4,2                ## @FIFO_RD_CMD
	.comm	_MEASURE_TAG_MASK,4,2           ## @MEASURE_TAG_MASK
	.comm	_MEASURE_X_TAG,4,2              ## @MEASURE_X_TAG
	.comm	_XY_BUF_OFFSET,4,2              ## @XY_BUF_OFFSET
	.comm	_MEASURE_Y_TAG,4,2              ## @MEASURE_Y_TAG
	.comm	_EVENT_TAG_MASK,4,2             ## @EVENT_TAG_MASK
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_max11801_ts_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max11801_ts_interrupt
_max11801_ts_interrupt:                 ; @max11801_ts_interrupt
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x21, [x1, #8]
Lloh3:
	adrp	x22, _XY_BUFSIZE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _XY_BUFSIZE@GOTPAGEOFF]
	ldr	w8, [x22]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh7:
	adrp	x23, _GENERNAL_STATUS_REG@GOTPAGE
Lloh8:
	ldr	x23, [x23, _GENERNAL_STATUS_REG@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x21
	bl	_read_register
Lloh9:
	adrp	x8, _MAX11801_FIFO_INT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MAX11801_FIFO_INT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _MAX11801_FIFO_OVERFLOW@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MAX11801_FIFO_OVERFLOW@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w0
	b.eq	LBB0_16
; %bb.1:
	ldr	x0, [x19, #8]
	ldr	w1, [x23]
	bl	_read_register
Lloh15:
	adrp	x8, _FIFO_RD_CMD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FIFO_RD_CMD@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	w2, [x22]
	mov	x0, x21
	mov	x3, x20
	bl	_i2c_smbus_read_i2c_block_data
	ldr	w8, [x22]
	cmp	w0, w8
	b.lt	LBB0_16
; %bb.2:
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.3:
	mov	x9, #0
Lloh18:
	adrp	x10, _MEASURE_TAG_MASK@GOTPAGE
Lloh19:
	ldr	x10, [x10, _MEASURE_TAG_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
Lloh21:
	adrp	x11, _MEASURE_X_TAG@GOTPAGE
Lloh22:
	ldr	x11, [x11, _MEASURE_X_TAG@GOTPAGEOFF]
Lloh23:
	ldr	w11, [x11]
Lloh24:
	adrp	x12, _MEASURE_Y_TAG@GOTPAGE
Lloh25:
	ldr	x12, [x12, _MEASURE_Y_TAG@GOTPAGEOFF]
Lloh26:
	ldr	w12, [x12]
Lloh27:
	adrp	x13, _XY_BUF_OFFSET@GOTPAGE
Lloh28:
	ldr	x13, [x13, _XY_BUF_OFFSET@GOTPAGEOFF]
Lloh29:
	ldr	w13, [x13]
	lsr	x14, x8, #1
	mov	w21, #-1
	mov	w2, #-1
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w16, [x20, x9, lsl #2]
	lsl	w16, w16, w13
	asr	w15, w15, w13
	add	w2, w16, w15
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x9, x9, x14
	cmp	x9, x8
	b.hs	LBB0_10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x15, x20, x9, lsl #2
	ldr	w15, [x15, #4]
	and	w16, w10, w15
	cmp	w16, w11
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w16, w12
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w16, [x20, x9, lsl #2]
	lsl	w16, w16, w13
	asr	w15, w15, w13
	add	w21, w16, w15
	b	LBB0_5
LBB0_9:
	mov	w2, #-1
	mov	w21, #-1
LBB0_10:
Lloh30:
	adrp	x8, _EVENT_TAG_MASK@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EVENT_TAG_MASK@GOTPAGEOFF]
	ldr	w9, [x20, #4]
Lloh32:
	ldr	w10, [x8]
	and	w8, w10, w9
	ldr	w9, [x20, #12]
	and	w9, w9, w10
	cmp	w8, w9
	b.ne	LBB0_16
; %bb.11:
	sub	w9, w8, #129
	cmp	w9, #2
	b.hs	LBB0_13
; %bb.12:
	ldr	w0, [x19]
Lloh33:
	adrp	x8, _ABS_X@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	bl	_input_report_abs
	ldr	w0, [x19]
Lloh36:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_input_report_abs
	mov	w3, #1
	b	LBB0_15
LBB0_13:
	cmp	w8, #128
	b.ne	LBB0_16
; %bb.14:
	mov	w3, #0
LBB0_15:
	ldr	w0, [x19]
Lloh39:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh40:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
Lloh42:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh43:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh44:
	ldr	w2, [x8]
	bl	_input_event
	ldr	w0, [x19]
	bl	_input_sync
LBB0_16:
Lloh45:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh46:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
	ldur	x8, [x29, #-56]
Lloh48:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh49:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh50:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_XY_BUFSIZE,4,2                 ; @XY_BUFSIZE
	.comm	_GENERNAL_STATUS_REG,4,2        ; @GENERNAL_STATUS_REG
	.comm	_MAX11801_FIFO_INT,4,2          ; @MAX11801_FIFO_INT
	.comm	_MAX11801_FIFO_OVERFLOW,4,2     ; @MAX11801_FIFO_OVERFLOW
	.comm	_FIFO_RD_CMD,4,2                ; @FIFO_RD_CMD
	.comm	_MEASURE_TAG_MASK,4,2           ; @MEASURE_TAG_MASK
	.comm	_MEASURE_X_TAG,4,2              ; @MEASURE_X_TAG
	.comm	_XY_BUF_OFFSET,4,2              ; @XY_BUF_OFFSET
	.comm	_MEASURE_Y_TAG,4,2              ; @MEASURE_Y_TAG
	.comm	_EVENT_TAG_MASK,4,2             ; @EVENT_TAG_MASK
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_max11801_ts_interrupt
.subsections_via_symbols
