	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amikbd_interrupt
_amikbd_interrupt:                      ## @amikbd_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	_ciaa@GOTPCREL(%rip), %r12
	movb	(%r12), %r15b
	movl	%r15d, %ebx
	notb	%bl
	orb	$64, 4(%r12)
	movl	$85, %edi
	callq	_udelay
	andb	$-65, 4(%r12)
	shrb	%bl
	cmpb	$16, %r15b
	jb	LBB0_5
## %bb.1:
	cmpb	$98, %bl
	jne	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	movl	$98, %esi
	movl	$1, %edx
	callq	_input_report_key
	movq	%r14, %rdi
	movl	$98, %esi
	xorl	%edx, %edx
	jmp	LBB0_4
LBB0_5:
	movq	_amikbd_messages@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movzbl	%bl, %ecx
	addl	$-120, %ecx
	movl	(%rax,%rcx,4), %edi
	callq	_printk
	jmp	LBB0_6
LBB0_3:
	andb	$1, %r15b
	movzbl	%bl, %esi
	movzbl	%r15b, %edx
	movq	%r14, %rdi
LBB0_4:
	callq	_input_report_key
	movq	%r14, %rdi
	callq	_input_sync
LBB0_6:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ciaa,8,2                       ## @ciaa
	.comm	_amikbd_messages,8,3            ## @amikbd_messages
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_amikbd_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amikbd_interrupt
_amikbd_interrupt:                      ; @amikbd_interrupt
	.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	x19, x1
Lloh0:
	adrp	x21, _ciaa@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ciaa@GOTPAGEOFF]
	ldrb	w20, [x21]
	mvn	w22, w20
	ldr	w8, [x21, #4]
	orr	w8, w8, #0x40
	str	w8, [x21, #4]
	mov	w0, #85
	bl	_udelay
	ldr	w8, [x21, #4]
	and	w8, w8, #0xffffffbf
	str	w8, [x21, #4]
	ubfx	w1, w22, #1, #7
	cmp	w20, #16
	b.lo	LBB0_3
; %bb.1:
	cmp	w1, #98
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x19
	mov	w2, #1
	bl	_input_report_key
	mov	x0, x19
	mov	w1, #98
	mov	w2, #0
	b	LBB0_5
LBB0_3:
Lloh2:
	adrp	x8, _amikbd_messages@GOTPAGE
Lloh3:
	ldr	x8, [x8, _amikbd_messages@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	sub	w9, w1, #120
	ldr	w0, [x8, w9, uxtw #2]
	bl	_printk
	b	LBB0_6
LBB0_4:
	and	w2, w20, #0x1
	mov	x0, x19
LBB0_5:
	bl	_input_report_key
	mov	x0, x19
	bl	_input_sync
LBB0_6:
Lloh5:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ciaa,8,2                       ; @ciaa
	.comm	_amikbd_messages,8,3            ; @amikbd_messages
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_amikbd_interrupt
.subsections_via_symbols
