	.file	"192331471.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Program to transform an integer to string base is b."
.LC1:
	.string	"Please input the base b: "
.LC2:
	.string	"%d"
	.align 8
.LC3:
	.string	"The base is %d, Please input an integer to transform: \n"
.LC4:
	.string	"%d -> %s\n"
.LC5:
	.string	"Invalid input."
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 1024
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
.L4:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rax, -1020[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -1012[rbp], eax
	cmp	DWORD PTR -1012[rbp], -1
	jne	.L2
	mov	eax, -1
	jmp	.L8
.L2:
	cmp	DWORD PTR -1012[rbp], 1
	jne	.L4
.L7:
	mov	eax, DWORD PTR -1020[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -1016[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -1012[rbp], eax
	cmp	DWORD PTR -1012[rbp], 1
	jne	.L5
	mov	edx, DWORD PTR -1020[rbp]
	mov	eax, DWORD PTR -1016[rbp]
	lea	rcx, -1008[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	itob
	mov	eax, DWORD PTR -1016[rbp]
	lea	rdx, -1008[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L6
.L5:
	lea	rdi, .LC5[rip]
	call	puts@PLT
.L6:
	cmp	DWORD PTR -1012[rbp], -1
	jne	.L7
	mov	eax, 0
.L8:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	reverse
	.type	reverse, @function
reverse:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	eax, 1
	mov	DWORD PTR -8[rbp], eax
	mov	DWORD PTR -12[rbp], 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -12[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -4[rbp]
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -12[rbp], 1
	sub	DWORD PTR -8[rbp], 1
.L11:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jl	.L12
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	reverse, .-reverse
	.section	.rodata
.LC6:
	.string	"Cannot support base %d\n"
	.text
	.globl	itob
	.type	itob, @function
itob:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -24[rbp], edx
	cmp	DWORD PTR -24[rbp], 1
	jle	.L14
	cmp	DWORD PTR -24[rbp], 36
	jle	.L15
.L14:
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -24[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	mov	DWORD PTR -8[rbp], 0
.L18:
	mov	eax, DWORD PTR -20[rbp]
	cdq
	idiv	DWORD PTR -24[rbp]
	mov	eax, edx
	cdq
	xor	eax, edx
	sub	eax, edx
	add	eax, 48
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 57
	jle	.L16
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 7
	mov	ecx, eax
	jmp	.L17
.L16:
	mov	eax, DWORD PTR -4[rbp]
	mov	ecx, eax
.L17:
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -8[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], cl
	mov	eax, DWORD PTR -20[rbp]
	cdq
	idiv	DWORD PTR -24[rbp]
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jne	.L18
	cmp	DWORD PTR -20[rbp], 0
	jns	.L19
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -8[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 45
.L19:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	reverse
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	itob, .-itob
	.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	"192331471.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Program to transform an integer to string base is b"
	.ascii	".\000"
	.align	2
.LC1:
	.ascii	"Please input the base b: \000"
	.align	2
.LC2:
	.ascii	"%d\000"
	.align	2
.LC3:
	.ascii	"The base is %d, Please input an integer to transfor"
	.ascii	"m: \012\000"
	.align	2
.LC4:
	.ascii	"%d -> %s\012\000"
	.align	2
.LC5:
	.ascii	"Invalid input.\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1016
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1016
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L10+4
	bl	puts
.L4:
	ldr	r0, .L10+8
	bl	puts
	sub	r3, fp, #1020
	mov	r1, r3
	ldr	r0, .L10+12
	bl	__isoc99_scanf
	str	r0, [fp, #-1012]
	ldr	r3, [fp, #-1012]
	cmn	r3, #1
	bne	.L2
	mvn	r3, #0
	b	.L8
.L2:
	ldr	r3, [fp, #-1012]
	cmp	r3, #1
	bne	.L4
.L7:
	ldr	r3, [fp, #-1020]
	mov	r1, r3
	ldr	r0, .L10+16
	bl	printf
	sub	r3, fp, #1016
	mov	r1, r3
	ldr	r0, .L10+12
	bl	__isoc99_scanf
	str	r0, [fp, #-1012]
	ldr	r3, [fp, #-1012]
	cmp	r3, #1
	bne	.L5
	ldr	r3, [fp, #-1016]
	ldr	r2, [fp, #-1020]
	sub	r1, fp, #1008
	mov	r0, r3
	bl	itob
	ldr	r3, [fp, #-1016]
	sub	r2, fp, #1008
	mov	r1, r3
	ldr	r0, .L10+20
	bl	printf
	b	.L6
.L5:
	ldr	r0, .L10+24
	bl	puts
.L6:
	ldr	r3, [fp, #-1012]
	cmn	r3, #1
	bne	.L7
	mov	r3, #0
.L8:
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.align	2
	.global	reverse
	.syntax unified
	.arm
	.fpu softvfp
	.type	reverse, %function
reverse:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L13
.L14:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-24]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
.L13:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	blt	.L14
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	reverse, .-reverse
	.section	.rodata
	.align	2
.LC7:
	.ascii	"Cannot support base %d\012\000"
	.global	__aeabi_idivmod
	.global	__aeabi_idiv
	.text
	.align	2
	.global	itob
	.syntax unified
	.arm
	.fpu softvfp
	.type	itob, %function
itob:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	ble	.L16
	ldr	r3, [fp, #-24]
	cmp	r3, #36
	ble	.L17
.L16:
	ldr	r3, .L22
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	ldr	r1, .L22+4
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L17:
	mov	r3, #0
	str	r3, [fp, #-12]
.L20:
	ldr	r3, [fp, #-16]
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #0
	rsblt	r3, r3, #0
	add	r3, r3, #48
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #57
	ble	.L18
	ldr	r3, [fp, #-8]
	and	r3, r3, #255
	add	r3, r3, #7
	and	r3, r3, #255
	b	.L19
.L18:
	ldr	r3, [fp, #-8]
	and	r3, r3, #255
.L19:
	ldr	r2, [fp, #-12]
	add	r1, r2, #1
	str	r1, [fp, #-12]
	mov	r1, r2
	ldr	r2, [fp, #-20]
	add	r2, r2, r1
	strb	r3, [r2]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-16]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L20
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L21
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	mov	r2, #45
	strb	r2, [r3]
.L21:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r0, [fp, #-20]
	bl	reverse
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	stderr
	.word	.LC7
	.size	itob, .-itob
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
