	.file	"621904.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%c"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 152
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	mov	DWORD PTR -148[rbp], 0
	mov	eax, DWORD PTR -148[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -144[rbp], rdx
	movsx	rdx, eax
	mov	r8, rdx
	mov	r9d, 0
	movsx	rdx, eax
	mov	rsi, rdx
	mov	edi, 0
	cdqe
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L2:
	cmp	rsp, rdx
	je	.L3
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L2
.L3:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L4
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L4:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -136[rbp], rax
	mov	DWORD PTR -148[rbp], 0
	jmp	.L5
.L11:
	lea	rdx, -128[rbp]
	mov	eax, DWORD PTR -148[rbp]
	cdqe
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	nop
	mov	eax, DWORD PTR -148[rbp]
	cdqe
	movzx	eax, BYTE PTR -128[rbp+rax]
	test	al, al
	jne	.L14
	mov	eax, 0
	jmp	.L7
.L14:
	mov	eax, DWORD PTR -148[rbp]
	cdqe
	movzx	eax, BYTE PTR -128[rbp+rax]
	movsx	eax, al
	sub	eax, 48
	add	eax, eax
	mov	ecx, eax
	mov	rdx, QWORD PTR -136[rbp]
	mov	eax, DWORD PTR -148[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], cl
	mov	rdx, QWORD PTR -136[rbp]
	mov	eax, DWORD PTR -148[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 122
	jle	.L9
	mov	rdx, QWORD PTR -136[rbp]
	mov	eax, DWORD PTR -148[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	sub	eax, 26
	mov	ecx, eax
	mov	rdx, QWORD PTR -136[rbp]
	mov	eax, DWORD PTR -148[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], cl
	mov	rdx, QWORD PTR -136[rbp]
	mov	eax, DWORD PTR -148[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	jmp	.L10
.L9:
	mov	rdx, QWORD PTR -136[rbp]
	mov	eax, DWORD PTR -148[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
.L10:
	add	DWORD PTR -148[rbp], 1
.L5:
	cmp	DWORD PTR -148[rbp], 100
	jle	.L11
	mov	eax, 0
.L7:
	mov	rsp, rbx
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"621904.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%c\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #124
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	mov	r3, #0
	str	r3, [fp, #-128]
	ldr	ip, [fp, #-128]
	sub	r3, ip, #1
	str	r3, [fp, #-124]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-120]
	mov	r3, #0
	str	r3, [fp, #-128]
	b	.L2
.L8:
	sub	r2, fp, #116
	ldr	r3, [fp, #-128]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L12+4
	bl	__isoc99_scanf
	nop
	sub	r2, fp, #116
	ldr	r3, [fp, #-128]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L11
	mov	r3, #0
	b	.L4
.L11:
	sub	r2, fp, #116
	ldr	r3, [fp, #-128]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	and	r3, r3, #255
	lsl	r3, r3, #1
	and	r1, r3, #255
	ldr	r2, [fp, #-120]
	ldr	r3, [fp, #-128]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r2, [fp, #-120]
	ldr	r3, [fp, #-128]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #122
	bls	.L6
	ldr	r2, [fp, #-120]
	ldr	r3, [fp, #-128]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #26
	and	r1, r3, #255
	ldr	r2, [fp, #-120]
	ldr	r3, [fp, #-128]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r2, [fp, #-120]
	ldr	r3, [fp, #-128]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	b	.L7
.L6:
	ldr	r2, [fp, #-120]
	ldr	r3, [fp, #-128]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
.L7:
	ldr	r3, [fp, #-128]
	add	r3, r3, #1
	str	r3, [fp, #-128]
.L2:
	ldr	r3, [fp, #-128]
	cmp	r3, #100
	ble	.L8
	mov	r3, #0
.L4:
	mov	sp, r4
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC1
	.word	.LC0
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
