	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function taos_interrupt
_taos_interrupt:                        ## @taos_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %ebx
	callq	_serio_get_drvdata
	movl	(%rax), %ecx
	cmpl	$128, %ecx
	je	LBB0_6
## %bb.1:
	cmpl	$130, %ecx
	je	LBB0_9
## %bb.2:
	cmpl	$129, %ecx
	jne	LBB0_10
## %bb.3:
	movq	8(%rax), %rcx
	movq	16(%rax), %rdx
	leaq	1(%rdx), %rsi
	movq	%rsi, 16(%rax)
	movb	%bl, (%rcx,%rdx)
	movq	16(%rax), %rcx
	cmpb	$58, %bl
	je	LBB0_5
## %bb.4:
	movq	_TAOS_BUFFER_SIZE@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	decq	%rdx
	cmpq	%rdx, %rcx
	jne	LBB0_10
LBB0_5:
	addq	8(%rax), %rcx
	jmp	LBB0_8
LBB0_6:
	movq	8(%rax), %rcx
	movq	16(%rax), %rdx
	leaq	1(%rdx), %rsi
	movq	%rsi, 16(%rax)
	movb	%bl, (%rcx,%rdx)
	cmpb	$93, %bl
	jne	LBB0_10
## %bb.7:
	movq	8(%rax), %rcx
	addq	16(%rax), %rcx
LBB0_8:
	movb	$0, (%rcx)
LBB0_9:
	movq	_TAOS_STATE_IDLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movq	_wq@GOTPCREL(%rip), %rdi
	callq	_wake_up_interruptible
LBB0_10:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TAOS_BUFFER_SIZE,4,2           ## @TAOS_BUFFER_SIZE
	.comm	_TAOS_STATE_IDLE,8,3            ## @TAOS_STATE_IDLE
	.comm	_wq,4,2                         ## @wq
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_taos_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function taos_interrupt
_taos_interrupt:                        ; @taos_interrupt
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_serio_get_drvdata
	ldr	w8, [x0]
	cmp	w8, #128
	b.eq	LBB0_6
; %bb.1:
	cmp	w8, #130
	b.eq	LBB0_9
; %bb.2:
	cmp	w8, #129
	b.ne	LBB0_10
; %bb.3:
	ldp	x8, x9, [x0, #8]
	add	x10, x9, #1
	str	x10, [x0, #16]
	strb	w19, [x8, x9]
	ldr	x8, [x0, #16]
	cmp	w19, #58
	b.eq	LBB0_5
; %bb.4:
Lloh0:
	adrp	x9, _TAOS_BUFFER_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TAOS_BUFFER_SIZE@GOTPAGEOFF]
Lloh2:
	ldrsw	x9, [x9]
	sub	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_10
LBB0_5:
	ldr	x9, [x0, #8]
	add	x8, x9, x8
	b	LBB0_8
LBB0_6:
	ldp	x8, x9, [x0, #8]
	add	x10, x9, #1
	str	x10, [x0, #16]
	strb	w19, [x8, x9]
	cmp	w19, #93
	b.ne	LBB0_10
; %bb.7:
	ldp	x8, x9, [x0, #8]
	add	x8, x8, x9
LBB0_8:
	strb	wzr, [x8]
LBB0_9:
Lloh3:
	adrp	x8, _TAOS_STATE_IDLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TAOS_STATE_IDLE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	w8, [x0]
Lloh6:
	adrp	x0, _wq@GOTPAGE
Lloh7:
	ldr	x0, [x0, _wq@GOTPAGEOFF]
	bl	_wake_up_interruptible
LBB0_10:
Lloh8:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_TAOS_BUFFER_SIZE,4,2           ; @TAOS_BUFFER_SIZE
	.comm	_TAOS_STATE_IDLE,8,3            ; @TAOS_STATE_IDLE
	.comm	_wq,4,2                         ; @wq
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_taos_interrupt
.subsections_via_symbols
