	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max7359_interrupt
_max7359_interrupt:                     ## @max7359_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, %r15
	movq	8(%rsi), %rdi
	movq	16(%rsi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_MAX7359_REG_KEYFIFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_max7359_read_reg
	movl	%eax, %ebx
	movl	%eax, %r12d
	andl	$7, %r12d
	movl	%eax, %r13d
	shrl	$3, %r13d
	andl	$7, %r13d
	andl	$64, %ebx
	movq	_MAX7359_ROW_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %edi
	movl	%r13d, %esi
	callq	_MATRIX_SCAN_CODE
	movl	%eax, %r14d
	movq	8(%r15), %rdi
	testl	%ebx, %ebx
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %r8
	cmoveq	%rax, %r8
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	callq	_dev_dbg
	movq	_EV_MSC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MSC_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	%r14d, %ecx
	callq	_input_event
	movq	(%r15), %rax
	movslq	%r14d, %rcx
	movl	(%rax,%rcx,4), %esi
	shrl	$6, %ebx
	xorl	$1, %ebx
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_input_report_key
	movq	%r12, %rdi
	callq	_input_sync
	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
	.comm	_MAX7359_REG_KEYFIFO,4,2        ## @MAX7359_REG_KEYFIFO
	.comm	_MAX7359_ROW_SHIFT,4,2          ## @MAX7359_ROW_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"key[%d:%d] %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"release"

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

	.comm	_EV_MSC,4,2                     ## @EV_MSC
	.comm	_MSC_SCAN,4,2                   ## @MSC_SCAN
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_max7359_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max7359_interrupt
_max7359_interrupt:                     ; @max7359_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	x19, x1
	ldp	x0, x20, [x1, #8]
Lloh0:
	adrp	x8, _MAX7359_REG_KEYFIFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX7359_REG_KEYFIFO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_max7359_read_reg
	mov	x21, x0
	and	w22, w0, #0x7
	ubfx	w23, w0, #3, #3
Lloh3:
	adrp	x8, _MAX7359_ROW_SHIFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX7359_ROW_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x23
	bl	_MATRIX_SCAN_CODE
	mov	x24, x0
	ldr	x0, [x19, #8]
Lloh6:
	adrp	x8, l_.str.1@PAGE
Lloh7:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh8:
	adrp	x9, l_.str.2@PAGE
Lloh9:
	add	x9, x9, l_.str.2@PAGEOFF
	ands	w21, w21, #0x40
	csel	x4, x9, x8, eq
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	mov	x3, x23
	bl	_dev_dbg
Lloh12:
	adrp	x8, _EV_MSC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EV_MSC@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _MSC_SCAN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSC_SCAN@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x24
	bl	_input_event
	ldr	x8, [x19]
	ldr	w1, [x8, w24, sxtw #2]
	lsr	w8, w21, #6
	eor	w2, w8, #0x1
	mov	x0, x20
	bl	_input_report_key
	mov	x0, x20
	bl	_input_sync
Lloh18:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh20:
	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 AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX7359_REG_KEYFIFO,4,2        ; @MAX7359_REG_KEYFIFO
	.comm	_MAX7359_ROW_SHIFT,4,2          ; @MAX7359_ROW_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"key[%d:%d] %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"release"

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

	.comm	_EV_MSC,4,2                     ; @EV_MSC
	.comm	_MSC_SCAN,4,2                   ; @MSC_SCAN
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_max7359_interrupt
.subsections_via_symbols
