	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcs_touchkey_interrupt
_mcs_touchkey_interrupt:                ## @mcs_touchkey_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, %rbx
	movq	16(%rsi), %r15
	movq	24(%rsi), %r14
	movl	48(%rsi), %esi
	movq	%r14, %rdi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	32(%rbx), %ecx
	movl	$1, %r12d
	shll	%cl, %r12d
	andl	%eax, %r12d
	shrl	%cl, %r12d
	xorl	36(%rbx), %r12d
	je	LBB0_3
## %bb.4:
	movb	$8, %dl
	subb	%cl, %dl
	movl	$255, %r8d
	movl	%edx, %ecx
	shrl	%cl, %r8d
	andl	%eax, %r8d
	je	LBB0_7
## %bb.5:
	subl	40(%rbx), %r8d
	movq	8(%rbx), %rax
	movl	(%rax,%r8,4), %eax
	movl	%eax, 4(%rbx)
	movl	%r8d, (%rbx)
	leaq	L_.str.2(%rip), %r13
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_7
LBB0_3:
	movl	(%rbx), %r8d
	leaq	L_.str.3(%rip), %r13
LBB0_6:
	movq	_EV_MSC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MSC_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r8d, %ecx
	callq	_input_event
	movl	4(%rbx), %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_input_report_key
	movq	%r15, %rdi
	callq	_input_sync
	movl	(%rbx), %edx
	movl	4(%rbx), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movq	%r13, %r8
	callq	_dev_dbg
LBB0_7:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i2c read error [%d]\n"

	.comm	_EV_MSC,4,2                     ## @EV_MSC
	.comm	_MSC_SCAN,4,2                   ## @MSC_SCAN
L_.str.1:                               ## @.str.1
	.asciz	"key %d %d %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"pressed"

L_.str.3:                               ## @.str.3
	.asciz	"released"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcs_touchkey_interrupt
_mcs_touchkey_interrupt:                ; @mcs_touchkey_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
	mov	x20, x1
	ldp	x21, x19, [x1, #16]
	ldr	w1, [x1, #48]
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
	mov	x2, x0
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	w9, #1
	ldp	w8, w10, [x20, #32]
	lsl	w9, w9, w8
	and	w9, w9, w2
	lsr	w9, w9, w8
	eor	w22, w9, w10
	cbz	w22, LBB0_5
; %bb.2:
	mov	w9, #8
	sub	w8, w9, w8
	mov	w9, #255
	lsr	w8, w9, w8
	ands	w8, w8, w2
	b.eq	LBB0_7
; %bb.3:
	ldr	w9, [x20, #40]
	sub	w3, w8, w9
	ldr	x8, [x20, #8]
	ldr	w8, [x8, w3, uxtw #2]
	stp	w3, w8, [x20]
Lloh0:
	adrp	x23, l_.str.2@PAGE
Lloh1:
	add	x23, x23, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_7
LBB0_5:
	ldr	w3, [x20]
Lloh4:
	adrp	x23, l_.str.3@PAGE
Lloh5:
	add	x23, x23, l_.str.3@PAGEOFF
LBB0_6:
Lloh6:
	adrp	x8, _EV_MSC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EV_MSC@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _MSC_SCAN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSC_SCAN@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_input_event
	ldr	w1, [x20, #4]
	mov	x0, x21
	mov	x2, x22
	bl	_input_report_key
	mov	x0, x21
	bl	_input_sync
	ldp	w2, w3, [x20]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x4, x23
	bl	_dev_dbg
LBB0_7:
Lloh14:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i2c read error [%d]\n"

	.comm	_EV_MSC,4,2                     ; @EV_MSC
	.comm	_MSC_SCAN,4,2                   ; @MSC_SCAN
l_.str.1:                               ; @.str.1
	.asciz	"key %d %d %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"pressed"

l_.str.3:                               ; @.str.3
	.asciz	"released"

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