	.file	"117820.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.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	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 88
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	lea	rax, -124[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -124[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -72[rbp], rdx
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	movsx	rdx, eax
	mov	r12, rdx
	mov	r13d, 0
	cdqe
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	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 -64[rbp], rax
	mov	DWORD PTR -108[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -108[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -108[rbp], 1
.L5:
	mov	eax, DWORD PTR -124[rbp]
	cmp	DWORD PTR -108[rbp], eax
	jl	.L6
	mov	DWORD PTR -112[rbp], 1
	mov	DWORD PTR -116[rbp], 0
	jmp	.L7
.L10:
	mov	rdx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 57
	je	.L8
	mov	DWORD PTR -112[rbp], 0
	jmp	.L9
.L8:
	add	DWORD PTR -116[rbp], 1
.L7:
	mov	eax, DWORD PTR -124[rbp]
	cmp	DWORD PTR -116[rbp], eax
	jl	.L10
.L9:
	cmp	DWORD PTR -112[rbp], 1
	jne	.L11
	mov	DWORD PTR -120[rbp], 0
	jmp	.L12
.L16:
	cmp	DWORD PTR -120[rbp], 0
	je	.L13
	mov	eax, DWORD PTR -124[rbp]
	cmp	DWORD PTR -120[rbp], eax
	jne	.L14
.L13:
	mov	edi, 49
	call	putchar@PLT
	jmp	.L15
.L14:
	mov	edi, 48
	call	putchar@PLT
.L15:
	add	DWORD PTR -120[rbp], 1
.L12:
	mov	eax, DWORD PTR -124[rbp]
	cmp	DWORD PTR -120[rbp], eax
	jle	.L16
	mov	eax, 0
	jmp	.L17
.L11:
	mov	DWORD PTR -104[rbp], 0
	jmp	.L18
.L21:
	mov	rdx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	movzx	ecx, BYTE PTR [rdx+rax]
	mov	eax, DWORD PTR -124[rbp]
	sub	eax, 1
	sub	eax, DWORD PTR -104[rbp]
	mov	rdx, QWORD PTR -64[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	cl, al
	je	.L19
	mov	DWORD PTR -112[rbp], 1
	jmp	.L20
.L19:
	add	DWORD PTR -104[rbp], 1
.L18:
	mov	eax, DWORD PTR -124[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cmp	DWORD PTR -104[rbp], eax
	jl	.L21
.L20:
	cmp	DWORD PTR -112[rbp], 0
	jne	.L22
	mov	eax, DWORD PTR -124[rbp]
	and	eax, 1
	test	eax, eax
	jne	.L23
	mov	eax, DWORD PTR -124[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	sub	eax, 1
	mov	DWORD PTR -100[rbp], eax
	jmp	.L24
.L25:
	mov	rdx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], 48
	mov	eax, DWORD PTR -124[rbp]
	sub	eax, 1
	sub	eax, DWORD PTR -100[rbp]
	mov	rdx, QWORD PTR -64[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], 48
	sub	DWORD PTR -100[rbp], 1
.L24:
	mov	rdx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 57
	jne	.L25
	mov	rdx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	add	eax, 1
	mov	ecx, eax
	mov	rdx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], cl
	jmp	.L26
.L23:
	mov	eax, DWORD PTR -124[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -96[rbp], eax
	jmp	.L27
.L28:
	mov	rdx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], 48
	mov	eax, DWORD PTR -124[rbp]
	sub	eax, 1
	sub	eax, DWORD PTR -96[rbp]
	mov	rdx, QWORD PTR -64[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], 48
	sub	DWORD PTR -96[rbp], 1
.L27:
	mov	rdx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 57
	jne	.L28
	mov	rdx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	add	eax, 1
	mov	ecx, eax
	mov	rdx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], cl
	jmp	.L26
.L22:
	mov	DWORD PTR -92[rbp], 0
	mov	DWORD PTR -88[rbp], -1
	mov	eax, DWORD PTR -124[rbp]
	and	eax, 1
	test	eax, eax
	jne	.L29
	mov	eax, DWORD PTR -124[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	sub	eax, 1
	jmp	.L30
.L29:
	mov	eax, DWORD PTR -124[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
.L30:
	mov	DWORD PTR -84[rbp], eax
	jmp	.L31
.L36:
	cmp	DWORD PTR -92[rbp], 1
	jne	.L32
	mov	eax, DWORD PTR -124[rbp]
	sub	eax, 1
	sub	eax, DWORD PTR -84[rbp]
	mov	esi, eax
	mov	rdx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	movzx	ecx, BYTE PTR [rdx+rax]
	mov	rdx, QWORD PTR -64[rbp]
	movsx	rax, esi
	mov	BYTE PTR [rdx+rax], cl
	jmp	.L33
.L32:
	mov	rdx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	movzx	ecx, BYTE PTR [rdx+rax]
	mov	eax, DWORD PTR -124[rbp]
	sub	eax, 1
	sub	eax, DWORD PTR -84[rbp]
	mov	rdx, QWORD PTR -64[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	cl, al
	jle	.L34
	mov	eax, DWORD PTR -124[rbp]
	sub	eax, 1
	sub	eax, DWORD PTR -84[rbp]
	mov	esi, eax
	mov	rdx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	movzx	ecx, BYTE PTR [rdx+rax]
	mov	rdx, QWORD PTR -64[rbp]
	movsx	rax, esi
	mov	BYTE PTR [rdx+rax], cl
	jmp	.L33
.L34:
	mov	rdx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	movzx	ecx, BYTE PTR [rdx+rax]
	mov	eax, DWORD PTR -124[rbp]
	sub	eax, 1
	sub	eax, DWORD PTR -84[rbp]
	mov	rdx, QWORD PTR -64[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	cl, al
	jge	.L33
	mov	rdx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	mov	BYTE PTR -126[rbp], al
	mov	rdx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	movsx	ecx, al
	mov	eax, DWORD PTR -124[rbp]
	sub	eax, 1
	sub	eax, DWORD PTR -84[rbp]
	mov	rdx, QWORD PTR -64[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	movsx	eax, al
	add	eax, ecx
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	BYTE PTR -125[rbp], al
	movzx	eax, BYTE PTR -126[rbp]
	cmp	al, BYTE PTR -125[rbp]
	jge	.L35
	mov	DWORD PTR -92[rbp], 1
	mov	eax, DWORD PTR -84[rbp]
	mov	DWORD PTR -88[rbp], eax
.L35:
	mov	rdx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	movzx	ecx, BYTE PTR -125[rbp]
	mov	BYTE PTR [rdx+rax], cl
	mov	eax, DWORD PTR -124[rbp]
	sub	eax, 1
	sub	eax, DWORD PTR -84[rbp]
	mov	rdx, QWORD PTR -64[rbp]
	cdqe
	movzx	ecx, BYTE PTR -125[rbp]
	mov	BYTE PTR [rdx+rax], cl
.L33:
	sub	DWORD PTR -84[rbp], 1
.L31:
	cmp	DWORD PTR -84[rbp], 0
	jns	.L36
	cmp	DWORD PTR -92[rbp], 1
	jne	.L26
	mov	eax, DWORD PTR -88[rbp]
	add	eax, 1
	mov	DWORD PTR -80[rbp], eax
	jmp	.L37
.L40:
	mov	rdx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], 48
	mov	eax, DWORD PTR -124[rbp]
	sub	eax, DWORD PTR -80[rbp]
	sub	eax, 1
	mov	rdx, QWORD PTR -64[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], 48
	add	DWORD PTR -80[rbp], 1
.L37:
	mov	eax, DWORD PTR -124[rbp]
	and	eax, 1
	test	eax, eax
	jne	.L38
	mov	eax, DWORD PTR -124[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	sub	eax, 1
	jmp	.L39
.L38:
	mov	eax, DWORD PTR -124[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
.L39:
	cmp	eax, DWORD PTR -80[rbp]
	jge	.L40
.L26:
	mov	DWORD PTR -76[rbp], 0
	jmp	.L41
.L42:
	mov	rdx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	add	DWORD PTR -76[rbp], 1
.L41:
	mov	eax, DWORD PTR -124[rbp]
	cmp	DWORD PTR -76[rbp], eax
	jl	.L42
	mov	eax, 0
.L17:
	mov	rsp, rbx
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L44
	call	__stack_chk_fail@PLT
.L44:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.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	"117820.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\012\000"
	.align	2
.LC1:
	.ascii	"%c\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #76
	ldr	r3, .L42
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	sub	r3, fp, #76
	mov	r1, r3
	ldr	r0, .L42+4
	bl	__isoc99_scanf
	ldr	ip, [fp, #-76]
	sub	r3, ip, #1
	str	r3, [fp, #-24]
	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, #-20]
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L2
.L3:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-60]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L42+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L2:
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-60]
	cmp	r2, r3
	blt	.L3
	mov	r3, #1
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L4
.L7:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-68]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #57
	beq	.L5
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L6
.L5:
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L4:
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-68]
	cmp	r2, r3
	blt	.L7
.L6:
	ldr	r3, [fp, #-64]
	cmp	r3, #1
	bne	.L8
	mov	r3, #0
	str	r3, [fp, #-72]
	b	.L9
.L13:
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-72]
	cmp	r2, r3
	bne	.L11
.L10:
	mov	r0, #49
	bl	putchar
	b	.L12
.L11:
	mov	r0, #48
	bl	putchar
.L12:
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L9:
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-72]
	cmp	r2, r3
	ble	.L13
	mov	r3, #0
	b	.L14
.L8:
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L15
.L18:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-76]
	sub	r1, r3, #1
	ldr	r3, [fp, #-56]
	sub	r3, r1, r3
	ldr	r1, [fp, #-20]
	ldrb	r3, [r1, r3]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L16
	mov	r3, #1
	str	r3, [fp, #-64]
	b	.L17
.L16:
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L15:
	ldr	r3, [fp, #-76]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-56]
	cmp	r3, r2
	blt	.L18
.L17:
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bne	.L19
	ldr	r3, [fp, #-76]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L20
	ldr	r3, [fp, #-76]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	sub	r3, r3, #1
	str	r3, [fp, #-52]
	b	.L21
.L22:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-52]
	add	r3, r2, r3
	mov	r2, #48
	strb	r2, [r3]
	ldr	r3, [fp, #-76]
	sub	r2, r3, #1
	ldr	r3, [fp, #-52]
	sub	r3, r2, r3
	ldr	r2, [fp, #-20]
	mov	r1, #48
	strb	r1, [r2, r3]
	ldr	r3, [fp, #-52]
	sub	r3, r3, #1
	str	r3, [fp, #-52]
.L21:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-52]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #57
	bne	.L22
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-52]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r3, #1
	and	r1, r3, #255
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-52]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	b	.L23
.L20:
	ldr	r3, [fp, #-76]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-48]
	b	.L24
.L25:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	mov	r2, #48
	strb	r2, [r3]
	ldr	r3, [fp, #-76]
	sub	r2, r3, #1
	ldr	r3, [fp, #-48]
	sub	r3, r2, r3
	ldr	r2, [fp, #-20]
	mov	r1, #48
	strb	r1, [r2, r3]
	ldr	r3, [fp, #-48]
	sub	r3, r3, #1
	str	r3, [fp, #-48]
.L24:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #57
	bne	.L25
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r3, #1
	and	r1, r3, #255
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	b	.L23
.L19:
	mov	r3, #0
	str	r3, [fp, #-44]
	mvn	r3, #0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-76]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L26
	ldr	r3, [fp, #-76]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	sub	r3, r3, #1
	b	.L27
.L26:
	ldr	r3, [fp, #-76]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
.L27:
	str	r3, [fp, #-36]
	b	.L28
.L33:
	ldr	r3, [fp, #-44]
	cmp	r3, #1
	bne	.L29
	ldr	r3, [fp, #-76]
	sub	r2, r3, #1
	ldr	r3, [fp, #-36]
	sub	r3, r2, r3
	ldr	r1, [fp, #-20]
	ldr	r2, [fp, #-36]
	add	r2, r1, r2
	ldrb	r1, [r2]	@ zero_extendqisi2
	ldr	r2, [fp, #-20]
	strb	r1, [r2, r3]
	b	.L30
.L29:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-76]
	sub	r1, r3, #1
	ldr	r3, [fp, #-36]
	sub	r3, r1, r3
	ldr	r1, [fp, #-20]
	ldrb	r3, [r1, r3]	@ zero_extendqisi2
	cmp	r2, r3
	bls	.L31
	ldr	r3, [fp, #-76]
	sub	r2, r3, #1
	ldr	r3, [fp, #-36]
	sub	r3, r2, r3
	ldr	r1, [fp, #-20]
	ldr	r2, [fp, #-36]
	add	r2, r1, r2
	ldrb	r1, [r2]	@ zero_extendqisi2
	ldr	r2, [fp, #-20]
	strb	r1, [r2, r3]
	b	.L30
.L31:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-76]
	sub	r1, r3, #1
	ldr	r3, [fp, #-36]
	sub	r3, r1, r3
	ldr	r1, [fp, #-20]
	ldrb	r3, [r1, r3]	@ zero_extendqisi2
	cmp	r2, r3
	bcs	.L30
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-78]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-76]
	sub	r2, r3, #1
	ldr	r3, [fp, #-36]
	sub	r3, r2, r3
	ldr	r2, [fp, #-20]
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	add	r3, r1, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	strb	r3, [fp, #-77]
	ldrb	r2, [fp, #-78]	@ zero_extendqisi2
	ldrb	r3, [fp, #-77]	@ zero_extendqisi2
	cmp	r2, r3
	bcs	.L32
	mov	r3, #1
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-40]
.L32:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	ldrb	r2, [fp, #-77]
	strb	r2, [r3]
	ldr	r3, [fp, #-76]
	sub	r2, r3, #1
	ldr	r3, [fp, #-36]
	sub	r3, r2, r3
	ldr	r2, [fp, #-20]
	ldrb	r1, [fp, #-77]
	strb	r1, [r2, r3]
.L30:
	ldr	r3, [fp, #-36]
	sub	r3, r3, #1
	str	r3, [fp, #-36]
.L28:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bge	.L33
	ldr	r3, [fp, #-44]
	cmp	r3, #1
	bne	.L23
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-32]
	b	.L34
.L37:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	mov	r2, #48
	strb	r2, [r3]
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-32]
	sub	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-20]
	mov	r1, #48
	strb	r1, [r2, r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L34:
	ldr	r3, [fp, #-76]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L35
	ldr	r3, [fp, #-76]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	sub	r3, r3, #1
	b	.L36
.L35:
	ldr	r3, [fp, #-76]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
.L36:
	ldr	r2, [fp, #-32]
	cmp	r3, r2
	bge	.L37
.L23:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L38
.L39:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L38:
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	blt	.L39
	mov	r3, #0
.L14:
	mov	sp, r4
	ldr	r2, .L42
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L41
	bl	__stack_chk_fail
.L41:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L43:
	.align	2
.L42:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
