	.file	"823621.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"10\354\247\204\354\210\230 \354\236\205\353\240\245: "
.LC1:
	.string	"%d"
.LC2:
	.string	"\n[2\354\247\204\354\210\230] "
.LC3:
	.string	"\n[8\354\247\204\354\210\230] "
.LC4:
	.string	"%o"
.LC5:
	.string	"\n[16\354\247\204\354\210\230] "
.LC6:
	.string	"%x"
	.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
	sub	rsp, 192
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -144[rbp], 0
	mov	QWORD PTR -136[rbp], 0
	mov	QWORD PTR -128[rbp], 0
	mov	QWORD PTR -120[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -184[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -184[rbp]
	cmp	eax, 1023
	jg	.L2
	mov	eax, DWORD PTR -184[rbp]
	test	eax, eax
	jns	.L3
.L2:
	mov	eax, -1
	jmp	.L17
.L3:
	mov	DWORD PTR -180[rbp], 0
	mov	eax, DWORD PTR -184[rbp]
	mov	DWORD PTR -176[rbp], eax
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -176[rbp]
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	mov	edx, eax
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	mov	DWORD PTR -144[rbp+rax*4], edx
	mov	eax, DWORD PTR -176[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -176[rbp], eax
	add	DWORD PTR -180[rbp], 1
.L5:
	cmp	DWORD PTR -180[rbp], 9
	jle	.L6
	mov	DWORD PTR -172[rbp], 0
	mov	eax, DWORD PTR -184[rbp]
	mov	DWORD PTR -168[rbp], eax
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -168[rbp]
	cdq
	shr	edx, 29
	add	eax, edx
	and	eax, 7
	sub	eax, edx
	mov	edx, eax
	mov	eax, DWORD PTR -172[rbp]
	cdqe
	mov	DWORD PTR -96[rbp+rax*4], edx
	mov	eax, DWORD PTR -168[rbp]
	lea	edx, 7[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 3
	mov	DWORD PTR -168[rbp], eax
	add	DWORD PTR -172[rbp], 1
.L7:
	cmp	DWORD PTR -172[rbp], 9
	jle	.L8
	mov	DWORD PTR -164[rbp], 0
	mov	eax, DWORD PTR -184[rbp]
	mov	DWORD PTR -160[rbp], eax
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -160[rbp]
	cdq
	shr	edx, 28
	add	eax, edx
	and	eax, 15
	sub	eax, edx
	mov	edx, eax
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	mov	DWORD PTR -48[rbp+rax*4], edx
	mov	eax, DWORD PTR -160[rbp]
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	mov	DWORD PTR -160[rbp], eax
	add	DWORD PTR -164[rbp], 1
.L9:
	cmp	DWORD PTR -164[rbp], 9
	jle	.L10
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -156[rbp], 9
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -156[rbp]
	cdqe
	mov	eax, DWORD PTR -144[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	sub	DWORD PTR -156[rbp], 1
.L11:
	cmp	DWORD PTR -156[rbp], 0
	jns	.L12
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -152[rbp], 9
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -152[rbp]
	cdqe
	mov	eax, DWORD PTR -96[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	sub	DWORD PTR -152[rbp], 1
.L13:
	cmp	DWORD PTR -152[rbp], 0
	jns	.L14
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -148[rbp], 9
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -148[rbp]
	cdqe
	mov	eax, DWORD PTR -48[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	sub	DWORD PTR -148[rbp], 1
.L15:
	cmp	DWORD PTR -148[rbp], 0
	jns	.L16
	mov	edi, 10
	call	putchar@PLT
	mov	eax, 0
.L17:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	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	"823621.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"10\354\247\204\354\210\230 \354\236\205\353\240\245"
	.ascii	": \000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"\012[2\354\247\204\354\210\230] \000"
	.align	2
.LC3:
	.ascii	"\012[8\354\247\204\354\210\230] \000"
	.align	2
.LC4:
	.ascii	"%o\000"
	.align	2
.LC5:
	.ascii	"\012[16\354\247\204\354\210\230] \000"
	.align	2
.LC6:
	.ascii	"%x\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 168
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #168
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #128
	mov	r2, #40
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #88
	mov	r2, #40
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #48
	mov	r2, #40
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, .L19+4
	bl	printf
	sub	r3, fp, #168
	mov	r1, r3
	ldr	r0, .L19+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-168]
	cmp	r3, #1024
	bge	.L2
	ldr	r3, [fp, #-168]
	cmp	r3, #0
	bge	.L3
.L2:
	mvn	r3, #0
	b	.L17
.L3:
	mov	r3, #0
	str	r3, [fp, #-164]
	ldr	r3, [fp, #-168]
	str	r3, [fp, #-160]
	b	.L5
.L6:
	ldr	r3, [fp, #-160]
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	mov	r2, r3
	ldr	r3, [fp, #-164]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-124]
	ldr	r3, [fp, #-160]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-160]
	ldr	r3, [fp, #-164]
	add	r3, r3, #1
	str	r3, [fp, #-164]
.L5:
	ldr	r3, [fp, #-164]
	cmp	r3, #9
	ble	.L6
	mov	r3, #0
	str	r3, [fp, #-156]
	ldr	r3, [fp, #-168]
	str	r3, [fp, #-152]
	b	.L7
.L8:
	ldr	r3, [fp, #-152]
	rsbs	r1, r3, #0
	and	r2, r3, #7
	and	r3, r1, #7
	rsbpl	r2, r3, #0
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-84]
	ldr	r3, [fp, #-152]
	add	r2, r3, #7
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #3
	str	r3, [fp, #-152]
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	str	r3, [fp, #-156]
.L7:
	ldr	r3, [fp, #-156]
	cmp	r3, #9
	ble	.L8
	mov	r3, #0
	str	r3, [fp, #-148]
	ldr	r3, [fp, #-168]
	str	r3, [fp, #-144]
	b	.L9
.L10:
	ldr	r3, [fp, #-144]
	rsbs	r1, r3, #0
	and	r2, r3, #15
	and	r3, r1, #15
	rsbpl	r2, r3, #0
	ldr	r3, [fp, #-148]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-44]
	ldr	r3, [fp, #-144]
	add	r2, r3, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #4
	str	r3, [fp, #-144]
	ldr	r3, [fp, #-148]
	add	r3, r3, #1
	str	r3, [fp, #-148]
.L9:
	ldr	r3, [fp, #-148]
	cmp	r3, #9
	ble	.L10
	ldr	r0, .L19+12
	bl	printf
	mov	r3, #9
	str	r3, [fp, #-140]
	b	.L11
.L12:
	ldr	r3, [fp, #-140]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-124]
	mov	r1, r3
	ldr	r0, .L19+8
	bl	printf
	ldr	r3, [fp, #-140]
	sub	r3, r3, #1
	str	r3, [fp, #-140]
.L11:
	ldr	r3, [fp, #-140]
	cmp	r3, #0
	bge	.L12
	ldr	r0, .L19+16
	bl	printf
	mov	r3, #9
	str	r3, [fp, #-136]
	b	.L13
.L14:
	ldr	r3, [fp, #-136]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-84]
	mov	r1, r3
	ldr	r0, .L19+20
	bl	printf
	ldr	r3, [fp, #-136]
	sub	r3, r3, #1
	str	r3, [fp, #-136]
.L13:
	ldr	r3, [fp, #-136]
	cmp	r3, #0
	bge	.L14
	ldr	r0, .L19+24
	bl	printf
	mov	r3, #9
	str	r3, [fp, #-132]
	b	.L15
.L16:
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-44]
	mov	r1, r3
	ldr	r0, .L19+28
	bl	printf
	ldr	r3, [fp, #-132]
	sub	r3, r3, #1
	str	r3, [fp, #-132]
.L15:
	ldr	r3, [fp, #-132]
	cmp	r3, #0
	bge	.L16
	mov	r0, #10
	bl	putchar
	mov	r3, #0
.L17:
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
