	.file	"194427.c"
	.intel_syntax noprefix
	.text
	.globl	esc_up
	.section	.rodata
	.align 16
	.type	esc_up, @object
	.size	esc_up, 24
esc_up:
	.zero	16
	.value	1
	.value	1
	.long	0
	.globl	ctrl_up
	.align 16
	.type	ctrl_up, @object
	.size	ctrl_up, 24
ctrl_up:
	.zero	16
	.value	1
	.value	29
	.long	0
	.globl	capslock_up
	.align 16
	.type	capslock_up, @object
	.size	capslock_up, 24
capslock_up:
	.zero	16
	.value	1
	.value	58
	.long	0
	.globl	esc_down
	.align 16
	.type	esc_down, @object
	.size	esc_down, 24
esc_down:
	.zero	16
	.value	1
	.value	1
	.long	1
	.globl	ctrl_down
	.align 16
	.type	ctrl_down, @object
	.size	ctrl_down, 24
ctrl_down:
	.zero	16
	.value	1
	.value	29
	.long	1
	.globl	capslock_down
	.align 16
	.type	capslock_down, @object
	.size	capslock_down, 24
capslock_down:
	.zero	16
	.value	1
	.value	58
	.long	1
	.globl	esc_repeat
	.align 16
	.type	esc_repeat, @object
	.size	esc_repeat, 24
esc_repeat:
	.zero	16
	.value	1
	.value	1
	.long	2
	.globl	ctrl_repeat
	.align 16
	.type	ctrl_repeat, @object
	.size	ctrl_repeat, 24
ctrl_repeat:
	.zero	16
	.value	1
	.value	29
	.long	2
	.globl	capslock_repeat
	.align 16
	.type	capslock_repeat, @object
	.size	capslock_repeat, 24
capslock_repeat:
	.zero	16
	.value	1
	.value	58
	.long	2
	.globl	syn
	.align 16
	.type	syn, @object
	.size	syn, 24
syn:
	.zero	24
	.text
	.globl	equal
	.type	equal, @function
equal:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, WORD PTR 16[rax]
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, WORD PTR 16[rax]
	cmp	dx, ax
	jne	.L2
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, WORD PTR 18[rax]
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, WORD PTR 18[rax]
	cmp	dx, ax
	jne	.L2
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 20[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 20[rax]
	cmp	edx, eax
	jne	.L2
	mov	eax, 1
	jmp	.L4
.L2:
	mov	eax, 0
.L4:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	equal, .-equal
	.globl	read_event
	.type	read_event, @function
read_event:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rdx, QWORD PTR stdin[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 24
	mov	rdi, rax
	call	fread@PLT
	cmp	rax, 1
	sete	al
	movzx	eax, al
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	read_event, .-read_event
	.globl	write_event
	.type	write_event, @function
write_event:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rdx, QWORD PTR stdout[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 24
	mov	rdi, rax
	call	fwrite@PLT
	cmp	rax, 1
	je	.L9
	mov	edi, 1
	call	exit@PLT
.L9:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	write_event, .-write_event
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -44[rbp], 0
	mov	DWORD PTR -40[rbp], 0
	mov	DWORD PTR -36[rbp], 0
	mov	rax, QWORD PTR stdin[rip]
	mov	esi, 0
	mov	rdi, rax
	call	setbuf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	esi, 0
	mov	rdi, rax
	call	setbuf@PLT
	jmp	.L11
.L26:
	movzx	eax, WORD PTR -16[rbp]
	cmp	ax, 4
	jne	.L12
	movzx	eax, WORD PTR -14[rbp]
	cmp	ax, 4
	jne	.L12
	jmp	.L11
.L12:
	movzx	eax, WORD PTR -16[rbp]
	cmp	ax, 1
	je	.L13
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	write_event
	jmp	.L11
.L13:
	cmp	DWORD PTR -44[rbp], 0
	je	.L14
	lea	rax, -32[rbp]
	lea	rsi, capslock_down[rip]
	mov	rdi, rax
	call	equal
	test	eax, eax
	jne	.L11
	lea	rax, -32[rbp]
	lea	rsi, capslock_repeat[rip]
	mov	rdi, rax
	call	equal
	test	eax, eax
	je	.L16
	jmp	.L11
.L16:
	lea	rax, -32[rbp]
	lea	rsi, capslock_up[rip]
	mov	rdi, rax
	call	equal
	test	eax, eax
	je	.L17
	mov	DWORD PTR -44[rbp], 0
	cmp	DWORD PTR -36[rbp], 0
	je	.L18
	mov	DWORD PTR -36[rbp], 0
	lea	rdi, ctrl_up[rip]
	call	write_event
	jmp	.L11
.L18:
	lea	rdi, esc_down[rip]
	call	write_event
	lea	rdi, syn[rip]
	call	write_event
	mov	edi, 20000
	call	usleep@PLT
	lea	rdi, esc_up[rip]
	call	write_event
	jmp	.L11
.L17:
	cmp	DWORD PTR -36[rbp], 0
	jne	.L19
	mov	eax, DWORD PTR -12[rbp]
	test	eax, eax
	je	.L19
	mov	DWORD PTR -36[rbp], 1
	lea	rdi, ctrl_down[rip]
	call	write_event
	lea	rdi, syn[rip]
	call	write_event
	mov	edi, 20000
	call	usleep@PLT
	jmp	.L19
.L14:
	lea	rax, -32[rbp]
	lea	rsi, capslock_down[rip]
	mov	rdi, rax
	call	equal
	test	eax, eax
	je	.L19
	mov	DWORD PTR -44[rbp], 1
	jmp	.L11
.L19:
	cmp	DWORD PTR -40[rbp], 0
	je	.L20
	lea	rax, -32[rbp]
	lea	rsi, ctrl_down[rip]
	mov	rdi, rax
	call	equal
	test	eax, eax
	jne	.L11
	lea	rax, -32[rbp]
	lea	rsi, ctrl_repeat[rip]
	mov	rdi, rax
	call	equal
	test	eax, eax
	je	.L22
	jmp	.L11
.L22:
	lea	rax, -32[rbp]
	lea	rsi, ctrl_up[rip]
	mov	rdi, rax
	call	equal
	test	eax, eax
	je	.L23
	mov	DWORD PTR -40[rbp], 0
	cmp	DWORD PTR -36[rbp], 0
	je	.L24
	mov	DWORD PTR -36[rbp], 0
	lea	rdi, ctrl_up[rip]
	call	write_event
	jmp	.L11
.L24:
	lea	rdi, esc_down[rip]
	call	write_event
	lea	rdi, syn[rip]
	call	write_event
	mov	edi, 20000
	call	usleep@PLT
	lea	rdi, esc_up[rip]
	call	write_event
	jmp	.L11
.L23:
	cmp	DWORD PTR -36[rbp], 0
	jne	.L25
	mov	eax, DWORD PTR -12[rbp]
	test	eax, eax
	je	.L25
	mov	DWORD PTR -36[rbp], 1
	lea	rdi, ctrl_down[rip]
	call	write_event
	lea	rdi, syn[rip]
	call	write_event
	mov	edi, 20000
	call	usleep@PLT
	jmp	.L25
.L20:
	lea	rax, -32[rbp]
	lea	rsi, ctrl_down[rip]
	mov	rdi, rax
	call	equal
	test	eax, eax
	je	.L25
	mov	DWORD PTR -40[rbp], 1
	jmp	.L11
.L25:
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	write_event
.L11:
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	read_event
	test	eax, eax
	jne	.L26
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"194427.c"
	.text
	.global	esc_up
	.section	.rodata
	.align	2
	.type	esc_up, %object
	.size	esc_up, 16
esc_up:
	.space	8
	.short	1
	.short	1
	.word	0
	.global	ctrl_up
	.align	2
	.type	ctrl_up, %object
	.size	ctrl_up, 16
ctrl_up:
	.space	8
	.short	1
	.short	29
	.word	0
	.global	capslock_up
	.align	2
	.type	capslock_up, %object
	.size	capslock_up, 16
capslock_up:
	.space	8
	.short	1
	.short	58
	.word	0
	.global	esc_down
	.align	2
	.type	esc_down, %object
	.size	esc_down, 16
esc_down:
	.space	8
	.short	1
	.short	1
	.word	1
	.global	ctrl_down
	.align	2
	.type	ctrl_down, %object
	.size	ctrl_down, 16
ctrl_down:
	.space	8
	.short	1
	.short	29
	.word	1
	.global	capslock_down
	.align	2
	.type	capslock_down, %object
	.size	capslock_down, 16
capslock_down:
	.space	8
	.short	1
	.short	58
	.word	1
	.global	esc_repeat
	.align	2
	.type	esc_repeat, %object
	.size	esc_repeat, 16
esc_repeat:
	.space	8
	.short	1
	.short	1
	.word	2
	.global	ctrl_repeat
	.align	2
	.type	ctrl_repeat, %object
	.size	ctrl_repeat, 16
ctrl_repeat:
	.space	8
	.short	1
	.short	29
	.word	2
	.global	capslock_repeat
	.align	2
	.type	capslock_repeat, %object
	.size	capslock_repeat, 16
capslock_repeat:
	.space	8
	.short	1
	.short	58
	.word	2
	.global	syn
	.align	2
	.type	syn, %object
	.size	syn, 16
syn:
	.space	16
	.text
	.align	2
	.global	equal
	.syntax unified
	.arm
	.fpu softvfp
	.type	equal, %function
equal:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldrh	r2, [r3, #8]
	ldr	r3, [fp, #-12]
	ldrh	r3, [r3, #8]
	cmp	r2, r3
	bne	.L2
	ldr	r3, [fp, #-8]
	ldrh	r2, [r3, #10]
	ldr	r3, [fp, #-12]
	ldrh	r3, [r3, #10]
	cmp	r2, r3
	bne	.L2
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #12]
	cmp	r2, r3
	bne	.L2
	mov	r3, #1
	b	.L4
.L2:
	mov	r3, #0
.L4:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	equal, .-equal
	.align	2
	.global	read_event
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_event, %function
read_event:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, .L7
	ldr	r3, [r3]
	mov	r2, #1
	mov	r1, #16
	ldr	r0, [fp, #-8]
	bl	fread
	mov	r3, r0
	cmp	r3, #1
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	stdin
	.size	read_event, .-read_event
	.align	2
	.global	write_event
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_event, %function
write_event:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, .L12
	ldr	r3, [r3]
	mov	r2, #1
	mov	r1, #16
	ldr	r0, [fp, #-8]
	bl	fwrite
	mov	r3, r0
	cmp	r3, #1
	beq	.L11
	mov	r0, #1
	bl	exit
.L11:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	stdout
	.size	write_event, .-write_event
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	ldr	r3, .L33+4
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	setbuf
	ldr	r3, .L33+8
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	setbuf
	b	.L15
.L30:
	ldrh	r3, [fp, #-16]
	cmp	r3, #4
	bne	.L16
	ldrh	r3, [fp, #-14]
	cmp	r3, #4
	bne	.L16
	b	.L15
.L16:
	ldrh	r3, [fp, #-16]
	cmp	r3, #1
	beq	.L17
	sub	r3, fp, #24
	mov	r0, r3
	bl	write_event
	b	.L15
.L17:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L18
	sub	r3, fp, #24
	ldr	r1, .L33+12
	mov	r0, r3
	bl	equal
	mov	r3, r0
	cmp	r3, #0
	bne	.L15
	sub	r3, fp, #24
	ldr	r1, .L33+16
	mov	r0, r3
	bl	equal
	mov	r3, r0
	cmp	r3, #0
	beq	.L20
	b	.L15
.L20:
	sub	r3, fp, #24
	ldr	r1, .L33+20
	mov	r0, r3
	bl	equal
	mov	r3, r0
	cmp	r3, #0
	beq	.L21
	mov	r3, #0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L22
	mov	r3, #0
	str	r3, [fp, #-28]
	ldr	r0, .L33+24
	bl	write_event
	b	.L15
.L22:
	ldr	r0, .L33+28
	bl	write_event
	ldr	r0, .L33+32
	bl	write_event
	ldr	r0, .L33+36
	bl	usleep
	ldr	r0, .L33+40
	bl	write_event
	b	.L15
.L21:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L23
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L23
	mov	r3, #1
	str	r3, [fp, #-28]
	ldr	r0, .L33+44
	bl	write_event
	ldr	r0, .L33+32
	bl	write_event
	ldr	r0, .L33+36
	bl	usleep
	b	.L23
.L18:
	sub	r3, fp, #24
	ldr	r1, .L33+12
	mov	r0, r3
	bl	equal
	mov	r3, r0
	cmp	r3, #0
	beq	.L23
	mov	r3, #1
	str	r3, [fp, #-36]
	b	.L15
.L23:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L24
	sub	r3, fp, #24
	ldr	r1, .L33+44
	mov	r0, r3
	bl	equal
	mov	r3, r0
	cmp	r3, #0
	bne	.L15
	sub	r3, fp, #24
	ldr	r1, .L33+48
	mov	r0, r3
	bl	equal
	mov	r3, r0
	cmp	r3, #0
	beq	.L26
	b	.L15
.L26:
	sub	r3, fp, #24
	ldr	r1, .L33+24
	mov	r0, r3
	bl	equal
	mov	r3, r0
	cmp	r3, #0
	beq	.L27
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L28
	mov	r3, #0
	str	r3, [fp, #-28]
	ldr	r0, .L33+24
	bl	write_event
	b	.L15
.L28:
	ldr	r0, .L33+28
	bl	write_event
	ldr	r0, .L33+32
	bl	write_event
	ldr	r0, .L33+36
	bl	usleep
	ldr	r0, .L33+40
	bl	write_event
	b	.L15
.L27:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L29
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L29
	mov	r3, #1
	str	r3, [fp, #-28]
	ldr	r0, .L33+44
	bl	write_event
	ldr	r0, .L33+32
	bl	write_event
	ldr	r0, .L33+36
	bl	usleep
	b	.L29
.L24:
	sub	r3, fp, #24
	ldr	r1, .L33+44
	mov	r0, r3
	bl	equal
	mov	r3, r0
	cmp	r3, #0
	beq	.L29
	mov	r3, #1
	str	r3, [fp, #-32]
	b	.L15
.L29:
	sub	r3, fp, #24
	mov	r0, r3
	bl	write_event
.L15:
	sub	r3, fp, #24
	mov	r0, r3
	bl	read_event
	mov	r3, r0
	cmp	r3, #0
	bne	.L30
	mov	r3, #0
	ldr	r2, .L33
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L32
	bl	__stack_chk_fail
.L32:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC0
	.word	stdin
	.word	stdout
	.word	capslock_down
	.word	capslock_repeat
	.word	capslock_up
	.word	ctrl_up
	.word	esc_down
	.word	syn
	.word	20000
	.word	esc_up
	.word	ctrl_down
	.word	ctrl_repeat
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
