	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sx8654_irq
_sx8654_irq:                            ## @sx8654_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	(%rsi), %rdi
	movq	_CMD_READ_REGISTER@GOTPCREL(%rip), %rax
	movq	_I2C_REG_IRQSRC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	testl	%ebx, %ebx
	js	LBB0_7
## %bb.1:
	movq	_IRQ_PENRELEASE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_3
## %bb.2:
	movq	(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	8(%r14), %edi
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_input_report_key
	movl	8(%r14), %edi
	callq	_input_sync
LBB0_3:
	movq	_IRQ_PENTOUCH_TOUCHCONVDONE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_7
## %bb.4:
	movq	(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	(%r14), %rdi
	leaq	-48(%rbp), %rsi
	movl	$16, %edx
	callq	_i2c_master_recv
	cmpl	$16, %eax
	jne	LBB0_7
## %bb.5:
	movzbl	-48(%rbp), %eax
	movzbl	-40(%rbp), %edi
	orl	%eax, %edi
	shrl	$7, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movl	-48(%rbp), %ebx
	movl	-40(%rbp), %r15d
	andl	$15, %ebx
	shll	$8, %ebx
	orl	-44(%rbp), %ebx
	andl	$15, %r15d
	shll	$8, %r15d
	orl	-36(%rbp), %r15d
	movl	8(%r14), %edi
	leaq	12(%r14), %rsi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	xorl	%r8d, %r8d
	callq	_touchscreen_report_pos
	movl	8(%r14), %edi
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_input_report_key
	movl	8(%r14), %edi
	callq	_input_sync
	movq	(%r14), %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_7:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_READ_REGISTER,4,2          ## @CMD_READ_REGISTER
	.comm	_I2C_REG_IRQSRC,4,2             ## @I2C_REG_IRQSRC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"irqsrc = 0x%x"

	.comm	_IRQ_PENRELEASE,4,2             ## @IRQ_PENRELEASE
L_.str.1:                               ## @.str.1
	.asciz	"pen release interrupt"

	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.comm	_IRQ_PENTOUCH_TOUCHCONVDONE,4,2 ## @IRQ_PENTOUCH_TOUCHCONVDONE
L_.str.2:                               ## @.str.2
	.asciz	"pen touch interrupt"

L_.str.3:                               ## @.str.3
	.asciz	"point(%4d,%4d)\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sx8654_irq
_sx8654_irq:                            ; @sx8654_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x8, _CMD_READ_REGISTER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CMD_READ_REGISTER@GOTPAGEOFF]
	ldr	x0, [x1]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _I2C_REG_IRQSRC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _I2C_REG_IRQSRC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_i2c_smbus_read_byte_data
	mov	x20, x0
	ldr	x0, [x19]
	str	x20, [sp]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	tbnz	w20, #31, LBB0_7
; %bb.1:
Lloh11:
	adrp	x8, _IRQ_PENRELEASE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IRQ_PENRELEASE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_3
; %bb.2:
	ldr	x0, [x19]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	ldr	w0, [x19, #8]
Lloh16:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_input_report_key
	ldr	w0, [x19, #8]
	bl	_input_sync
LBB0_3:
Lloh19:
	adrp	x8, _IRQ_PENTOUCH_TOUCHCONVDONE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IRQ_PENTOUCH_TOUCHCONVDONE@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.4:
	ldr	x0, [x19]
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
	ldr	x0, [x19]
	add	x1, sp, #24
	mov	w2, #16
	bl	_i2c_master_recv
	cmp	w0, #16
	b.ne	LBB0_7
; %bb.5:
	ldr	w8, [sp, #24]
	ldr	w9, [sp, #32]
	orr	w8, w8, w9
	ubfx	w0, w8, #7, #1
	bl	_unlikely
	cbnz	x0, LBB0_7
; %bb.6:
	ldp	w8, w9, [sp, #24]
	ubfiz	w8, w8, #8, #4
	orr	w20, w8, w9
	ldp	w8, w9, [sp, #32]
	ubfiz	w8, w8, #8, #4
	orr	w21, w8, w9
	ldr	w0, [x19, #8]
	add	x1, x19, #12
	mov	x2, x20
	mov	x3, x21
	mov	w4, #0
	bl	_touchscreen_report_pos
	ldr	w0, [x19, #8]
Lloh24:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_input_report_key
	ldr	w0, [x19, #8]
	bl	_input_sync
	ldr	x0, [x19]
	stp	x20, x21, [sp]
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_dbg
LBB0_7:
Lloh29:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh30:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	ldr	x8, [sp, #40]
Lloh32:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh33:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	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
	add	sp, sp, #96
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_READ_REGISTER,4,2          ; @CMD_READ_REGISTER
	.comm	_I2C_REG_IRQSRC,4,2             ; @I2C_REG_IRQSRC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"irqsrc = 0x%x"

	.comm	_IRQ_PENRELEASE,4,2             ; @IRQ_PENRELEASE
l_.str.1:                               ; @.str.1
	.asciz	"pen release interrupt"

	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.comm	_IRQ_PENTOUCH_TOUCHCONVDONE,4,2 ; @IRQ_PENTOUCH_TOUCHCONVDONE
l_.str.2:                               ; @.str.2
	.asciz	"pen touch interrupt"

l_.str.3:                               ; @.str.3
	.asciz	"point(%4d,%4d)\n"

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