	.file	"322121.c"
	.intel_syntax noprefix
	.text
	.globl	powInt
	.type	powInt, @function
powInt:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -8[rbp], 1
	mov	DWORD PTR -4[rbp], 1
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -8[rbp]
	imul	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -8[rbp], eax
	add	DWORD PTR -4[rbp], 1
.L2:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jle	.L3
	mov	eax, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	powInt, .-powInt
	.globl	charInt
	.type	charInt, @function
charInt:
.LFB7:
	.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	eax, edi
	mov	BYTE PTR -4[rbp], al
	movsx	eax, BYTE PTR -4[rbp]
	mov	edi, eax
	call	toupper@PLT
	mov	BYTE PTR -4[rbp], al
	cmp	BYTE PTR -4[rbp], 90
	jg	.L6
	cmp	BYTE PTR -4[rbp], 64
	jle	.L6
	movsx	eax, BYTE PTR -4[rbp]
	sub	eax, 55
	jmp	.L7
.L6:
	movsx	eax, BYTE PTR -4[rbp]
	sub	eax, 48
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	charInt, .-charInt
	.globl	intChar
	.type	intChar, @function
intChar:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 9
	jle	.L9
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 55
	jmp	.L10
.L9:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 48
.L10:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	intChar, .-intChar
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"0x"
.LC2:
	.string	"%s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.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, 120
	.cfi_offset 3, -24
	mov	DWORD PTR -116[rbp], edi
	mov	QWORD PTR -128[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	jmp	.L12
.L21:
	movzx	eax, BYTE PTR -79[rbp]
	cmp	al, 120
	jne	.L13
	mov	DWORD PTR -100[rbp], 0
	lea	rax, -80[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -84[rbp], eax
	mov	DWORD PTR -92[rbp], 2
	jmp	.L14
.L15:
	mov	eax, DWORD PTR -92[rbp]
	sub	eax, 2
	mov	esi, eax
	mov	edi, 16
	call	powInt
	mov	ebx, eax
	mov	eax, DWORD PTR -84[rbp]
	add	eax, 1
	sub	eax, DWORD PTR -92[rbp]
	cdqe
	movzx	eax, BYTE PTR -80[rbp+rax]
	movsx	eax, al
	mov	edi, eax
	call	charInt
	imul	eax, ebx
	add	DWORD PTR -100[rbp], eax
	add	DWORD PTR -92[rbp], 1
.L14:
	mov	eax, DWORD PTR -92[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	jl	.L15
	mov	eax, DWORD PTR -100[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L12
.L13:
	mov	DWORD PTR -96[rbp], 0
	lea	rax, -80[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -100[rbp], eax
	jmp	.L16
.L17:
	mov	eax, DWORD PTR -100[rbp]
	cdq
	shr	edx, 28
	add	eax, edx
	and	eax, 15
	sub	eax, edx
	mov	edx, eax
	mov	ebx, DWORD PTR -96[rbp]
	lea	eax, 1[rbx]
	mov	DWORD PTR -96[rbp], eax
	mov	edi, edx
	call	intChar
	movsx	rdx, ebx
	mov	BYTE PTR -48[rbp+rdx], al
	mov	eax, DWORD PTR -100[rbp]
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	mov	DWORD PTR -100[rbp], eax
.L16:
	cmp	DWORD PTR -100[rbp], 15
	jg	.L17
	mov	ebx, DWORD PTR -96[rbp]
	lea	eax, 1[rbx]
	mov	DWORD PTR -96[rbp], eax
	mov	eax, DWORD PTR -100[rbp]
	mov	edi, eax
	call	intChar
	movsx	rdx, ebx
	mov	BYTE PTR -48[rbp+rdx], al
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -96[rbp]
	sub	eax, 1
	mov	DWORD PTR -88[rbp], eax
	jmp	.L18
.L19:
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	movzx	eax, BYTE PTR -48[rbp+rax]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	sub	DWORD PTR -88[rbp], 1
.L18:
	cmp	DWORD PTR -88[rbp], 0
	jns	.L19
	mov	edi, 10
	call	putchar@PLT
.L12:
	lea	rax, -80[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	test	eax, eax
	jle	.L20
	movzx	eax, BYTE PTR -80[rbp]
	cmp	al, 45
	jne	.L21
.L20:
	mov	eax, 0
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"322121.c"
	.text
	.align	2
	.global	powInt
	.syntax unified
	.arm
	.fpu softvfp
	.type	powInt, %function
powInt:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #1
	str	r3, [fp, #-12]
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	mul	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	ble	.L3
	ldr	r3, [fp, #-12]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	powInt, .-powInt
	.align	2
	.global	charInt
	.syntax unified
	.arm
	.fpu softvfp
	.type	charInt, %function
charInt:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	mov	r0, r3
	bl	toupper
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #90
	bhi	.L6
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #64
	bls	.L6
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	sub	r3, r3, #55
	b	.L7
.L6:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	sub	r3, r3, #48
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	charInt, .-charInt
	.align	2
	.global	intChar
	.syntax unified
	.arm
	.fpu softvfp
	.type	intChar, %function
intChar:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #9
	ble	.L9
	ldr	r3, [fp, #-8]
	and	r3, r3, #255
	add	r3, r3, #55
	and	r3, r3, #255
	b	.L10
.L9:
	ldr	r3, [fp, #-8]
	and	r3, r3, #255
	add	r3, r3, #48
	and	r3, r3, #255
.L10:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	intChar, .-intChar
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\012\000"
	.align	2
.LC1:
	.ascii	"0x\000"
	.align	2
.LC2:
	.ascii	"%s\000"
	.align	2
.LC3:
	.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
	str	r0, [fp, #-80]
	str	r1, [fp, #-84]
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	b	.L12
.L21:
	ldrb	r3, [fp, #-55]	@ zero_extendqisi2
	cmp	r3, #120
	bne	.L13
	mov	r3, #0
	str	r3, [fp, #-76]
	sub	r3, fp, #56
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-60]
	mov	r3, #2
	str	r3, [fp, #-68]
	b	.L14
.L15:
	ldr	r3, [fp, #-68]
	sub	r3, r3, #2
	mov	r1, r3
	mov	r0, #16
	bl	powInt
	mov	r4, r0
	ldr	r3, [fp, #-60]
	add	r2, r3, #1
	ldr	r3, [fp, #-68]
	sub	r3, r2, r3
	sub	r2, fp, #12
	add	r3, r2, r3
	ldrb	r3, [r3, #-44]	@ zero_extendqisi2
	mov	r0, r3
	bl	charInt
	mov	r3, r0
	mul	r3, r4, r3
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L14:
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	blt	.L15
	ldr	r1, [fp, #-76]
	ldr	r0, .L24+4
	bl	printf
	b	.L12
.L13:
	mov	r3, #0
	str	r3, [fp, #-72]
	sub	r3, fp, #56
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-76]
	b	.L16
.L17:
	ldr	r3, [fp, #-76]
	rsbs	r2, r3, #0
	and	r3, r3, #15
	and	r2, r2, #15
	rsbpl	r3, r2, #0
	ldr	r4, [fp, #-72]
	add	r2, r4, #1
	str	r2, [fp, #-72]
	mov	r0, r3
	bl	intChar
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #12
	add	r3, r3, r4
	strb	r2, [r3, #-24]
	ldr	r3, [fp, #-76]
	add	r2, r3, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #4
	str	r3, [fp, #-76]
.L16:
	ldr	r3, [fp, #-76]
	cmp	r3, #15
	bgt	.L17
	ldr	r4, [fp, #-72]
	add	r3, r4, #1
	str	r3, [fp, #-72]
	ldr	r0, [fp, #-76]
	bl	intChar
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #12
	add	r3, r3, r4
	strb	r2, [r3, #-24]
	ldr	r0, .L24+8
	bl	printf
	ldr	r3, [fp, #-72]
	sub	r3, r3, #1
	str	r3, [fp, #-64]
	b	.L18
.L19:
	sub	r2, fp, #36
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-64]
	sub	r3, r3, #1
	str	r3, [fp, #-64]
.L18:
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bge	.L19
	mov	r0, #10
	bl	putchar
.L12:
	sub	r3, fp, #56
	mov	r1, r3
	ldr	r0, .L24+12
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #0
	ble	.L20
	ldrb	r3, [fp, #-56]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L21
.L20:
	mov	r3, #0
	ldr	r2, .L24
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
