	.file	"228235.c"
	.intel_syntax noprefix
	.text
	.globl	getchar
	.type	getchar, @function
getchar:
.LFB0:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -16[rbp]
	lea	rax, -12[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rsi, rax
	mov	edi, 0
	mov	eax, 0
	call	Bios_Read@PLT
	test	eax, eax
	je	.L2
	mov	eax, -1
	jmp	.L4
.L2:
	movzx	eax, BYTE PTR -12[rbp]
	movsx	eax, al
	movzx	eax, al
.L4:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	getchar, .-getchar
	.globl	putchar
	.type	putchar, @function
putchar:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	eax, edi
	mov	BYTE PTR -20[rbp], al
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	BYTE PTR -20[rbp], 10
	jne	.L7
	mov	BYTE PTR -12[rbp], 13
	movzx	eax, BYTE PTR -20[rbp]
	mov	BYTE PTR -11[rbp], al
	mov	DWORD PTR -16[rbp], 2
	jmp	.L8
.L7:
	movzx	eax, BYTE PTR -20[rbp]
	mov	BYTE PTR -12[rbp], al
	mov	DWORD PTR -16[rbp], 1
.L8:
	mov	edx, DWORD PTR -16[rbp]
	lea	rcx, -16[rbp]
	lea	rax, -12[rbp]
	mov	rsi, rax
	mov	edi, 1
	mov	eax, 0
	call	Bios_Write@PLT
	test	eax, eax
	je	.L9
	mov	eax, -1
	jmp	.L11
.L9:
	mov	eax, 0
.L11:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	putchar, .-putchar
	.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	"228235.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getchar
	.syntax unified
	.arm
	.fpu softvfp
	.type	getchar, %function
getchar:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #16
	sub	r1, fp, #12
	mov	r2, #1
	mov	r0, #0
	bl	Bios_Read
	mov	r3, r0
	cmp	r3, #0
	beq	.L2
	mvn	r3, #0
	b	.L4
.L2:
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
.L4:
	ldr	r2, .L6
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC0
	.size	getchar, .-getchar
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	putchar
	.syntax unified
	.arm
	.fpu softvfp
	.type	putchar, %function
putchar:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	mov	r3, r0
	strb	r3, [fp, #-24]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldrb	r3, [fp, #-24]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L9
	mov	r3, #13
	strb	r3, [fp, #-12]
	ldrb	r3, [fp, #-24]
	strb	r3, [fp, #-11]
	mov	r3, #2
	str	r3, [fp, #-16]
	b	.L10
.L9:
	ldrb	r3, [fp, #-24]
	strb	r3, [fp, #-12]
	mov	r3, #1
	str	r3, [fp, #-16]
.L10:
	ldr	r2, [fp, #-16]
	sub	r3, fp, #16
	sub	r1, fp, #12
	mov	r0, #1
	bl	Bios_Write
	mov	r3, r0
	cmp	r3, #0
	beq	.L11
	mvn	r3, #0
	b	.L13
.L11:
	mov	r3, #0
.L13:
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC1
	.size	putchar, .-putchar
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
