	.file	"233213.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"hexadecimal = "
.LC1:
	.string	"%s"
.LC2:
	.string	"decimal = %d\n"
.LC3:
	.string	"binary = %d"
	.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
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -17[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -192[rbp], 0
	mov	DWORD PTR -188[rbp], 0
	mov	DWORD PTR -184[rbp], 1
	mov	DWORD PTR -180[rbp], 8
	jmp	.L2
.L6:
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	movzx	eax, BYTE PTR -17[rbp+rax]
	test	al, al
	jne	.L3
	mov	DWORD PTR -188[rbp], 1
.L3:
	cmp	DWORD PTR -188[rbp], 0
	je	.L4
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	movzx	eax, BYTE PTR -17[rbp+rax]
	cmp	al, 47
	jle	.L5
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	movzx	eax, BYTE PTR -17[rbp+rax]
	cmp	al, 57
	jg	.L5
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	movzx	eax, BYTE PTR -17[rbp+rax]
	movsx	eax, al
	sub	eax, 48
	imul	eax, DWORD PTR -184[rbp]
	add	DWORD PTR -192[rbp], eax
	sal	DWORD PTR -184[rbp], 4
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	movzx	eax, BYTE PTR -17[rbp+rax]
	cmp	al, 64
	jle	.L4
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	movzx	eax, BYTE PTR -17[rbp+rax]
	cmp	al, 70
	jg	.L4
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	movzx	eax, BYTE PTR -17[rbp+rax]
	movsx	eax, al
	sub	eax, 55
	imul	eax, DWORD PTR -184[rbp]
	add	DWORD PTR -192[rbp], eax
	sal	DWORD PTR -184[rbp], 4
.L4:
	sub	DWORD PTR -180[rbp], 1
.L2:
	cmp	DWORD PTR -180[rbp], 0
	jns	.L6
	mov	eax, DWORD PTR -192[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -176[rbp], 0
	mov	DWORD PTR -172[rbp], 0
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -172[rbp]
	cdqe
	mov	DWORD PTR -160[rbp+rax*4], 0
	add	DWORD PTR -172[rbp], 1
.L7:
	cmp	DWORD PTR -172[rbp], 31
	jle	.L8
	mov	DWORD PTR -168[rbp], 0
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -192[rbp]
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	mov	edx, eax
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	mov	DWORD PTR -160[rbp+rax*4], edx
	mov	eax, DWORD PTR -192[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -192[rbp], eax
	add	DWORD PTR -168[rbp], 1
.L9:
	cmp	DWORD PTR -192[rbp], 0
	jne	.L10
	mov	DWORD PTR -164[rbp], 31
	jmp	.L11
.L12:
	mov	edx, DWORD PTR -176[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	DWORD PTR -176[rbp], eax
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	mov	eax, DWORD PTR -160[rbp+rax*4]
	add	DWORD PTR -176[rbp], eax
	sub	DWORD PTR -164[rbp], 1
.L11:
	cmp	DWORD PTR -164[rbp], 0
	jns	.L12
	mov	eax, DWORD PTR -176[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	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	"233213.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"hexadecimal = \000"
	.align	2
.LC1:
	.ascii	"%s\000"
	.align	2
.LC2:
	.ascii	"decimal = %d\012\000"
	.align	2
.LC3:
	.ascii	"binary = %d\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 176
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #176
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L15+4
	bl	printf
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L15+8
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-180]
	mov	r3, #0
	str	r3, [fp, #-176]
	mov	r3, #1
	str	r3, [fp, #-172]
	mov	r3, #8
	str	r3, [fp, #-168]
	b	.L2
.L6:
	sub	r2, fp, #20
	ldr	r3, [fp, #-168]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L3
	mov	r3, #1
	str	r3, [fp, #-176]
.L3:
	ldr	r3, [fp, #-176]
	cmp	r3, #0
	beq	.L4
	sub	r2, fp, #20
	ldr	r3, [fp, #-168]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L5
	sub	r2, fp, #20
	ldr	r3, [fp, #-168]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #57
	bhi	.L5
	sub	r2, fp, #20
	ldr	r3, [fp, #-168]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	ldr	r2, [fp, #-172]
	mul	r3, r2, r3
	ldr	r2, [fp, #-180]
	add	r3, r2, r3
	str	r3, [fp, #-180]
	ldr	r3, [fp, #-172]
	lsl	r3, r3, #4
	str	r3, [fp, #-172]
	b	.L4
.L5:
	sub	r2, fp, #20
	ldr	r3, [fp, #-168]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #64
	bls	.L4
	sub	r2, fp, #20
	ldr	r3, [fp, #-168]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #70
	bhi	.L4
	sub	r2, fp, #20
	ldr	r3, [fp, #-168]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #55
	ldr	r2, [fp, #-172]
	mul	r3, r2, r3
	ldr	r2, [fp, #-180]
	add	r3, r2, r3
	str	r3, [fp, #-180]
	ldr	r3, [fp, #-172]
	lsl	r3, r3, #4
	str	r3, [fp, #-172]
.L4:
	ldr	r3, [fp, #-168]
	sub	r3, r3, #1
	str	r3, [fp, #-168]
.L2:
	ldr	r3, [fp, #-168]
	cmp	r3, #0
	bge	.L6
	ldr	r1, [fp, #-180]
	ldr	r0, .L15+12
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-164]
	mov	r3, #0
	str	r3, [fp, #-160]
	b	.L7
.L8:
	ldr	r3, [fp, #-160]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-144]
	ldr	r3, [fp, #-160]
	add	r3, r3, #1
	str	r3, [fp, #-160]
.L7:
	ldr	r3, [fp, #-160]
	cmp	r3, #31
	ble	.L8
	mov	r3, #0
	str	r3, [fp, #-156]
	b	.L9
.L10:
	ldr	r3, [fp, #-180]
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	mov	r2, r3
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-144]
	ldr	r3, [fp, #-180]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-180]
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	str	r3, [fp, #-156]
.L9:
	ldr	r3, [fp, #-180]
	cmp	r3, #0
	bne	.L10
	mov	r3, #31
	str	r3, [fp, #-152]
	b	.L11
.L12:
	ldr	r2, [fp, #-164]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	str	r3, [fp, #-164]
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-144]
	ldr	r2, [fp, #-164]
	add	r3, r2, r3
	str	r3, [fp, #-164]
	ldr	r3, [fp, #-152]
	sub	r3, r3, #1
	str	r3, [fp, #-152]
.L11:
	ldr	r3, [fp, #-152]
	cmp	r3, #0
	bge	.L12
	ldr	r1, [fp, #-164]
	ldr	r0, .L15+16
	bl	printf
	mov	r3, #0
	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	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
