	.file	"740809.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"0123456789abcdefghijklmnopqrstuvwxyz"
.LC1:
	.string	"base %d too large\n"
	.text
	.globl	to_base
	.type	to_base, @function
to_base:
.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, 144
	mov	QWORD PTR -136[rbp], rdi
	mov	DWORD PTR -140[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC0[rip]
	mov	QWORD PTR -96[rbp], rax
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[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	WORD PTR -16[rbp], 0
	mov	DWORD PTR -112[rbp], 0
	mov	DWORD PTR -108[rbp], 0
	cmp	DWORD PTR -140[rbp], 36
	jle	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -140[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	jmp	.L10
.L2:
	mov	rax, QWORD PTR -136[rbp]
	shr	rax, 63
	movzx	eax, al
	mov	DWORD PTR -108[rbp], eax
	cmp	DWORD PTR -108[rbp], 0
	je	.L4
	mov	rax, QWORD PTR -136[rbp]
	neg	rax
	jmp	.L5
.L4:
	mov	rax, QWORD PTR -136[rbp]
.L5:
	mov	QWORD PTR -104[rbp], rax
.L6:
	mov	eax, DWORD PTR -140[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -104[rbp]
	mov	edx, 0
	div	rcx
	mov	rax, QWORD PTR -96[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -112[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -112[rbp], edx
	movzx	edx, BYTE PTR [rcx]
	cdqe
	mov	BYTE PTR -80[rbp+rax], dl
	mov	eax, DWORD PTR -140[rbp]
	movsx	rsi, eax
	mov	rax, QWORD PTR -104[rbp]
	mov	edx, 0
	div	rsi
	mov	QWORD PTR -104[rbp], rax
	cmp	QWORD PTR -104[rbp], 0
	jne	.L6
	mov	edx, DWORD PTR -112[rbp]
	mov	eax, DWORD PTR -108[rbp]
	add	eax, edx
	add	eax, 1
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -88[rbp], rax
	mov	eax, DWORD PTR -108[rbp]
	mov	DWORD PTR -116[rbp], eax
	jmp	.L7
.L8:
	sub	DWORD PTR -112[rbp], 1
	mov	eax, DWORD PTR -116[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -88[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -112[rbp]
	cdqe
	movzx	eax, BYTE PTR -80[rbp+rax]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -116[rbp], 1
.L7:
	cmp	DWORD PTR -112[rbp], 0
	jg	.L8
	cmp	DWORD PTR -108[rbp], 0
	je	.L9
	mov	rax, QWORD PTR -88[rbp]
	mov	BYTE PTR [rax], 45
.L9:
	mov	rax, QWORD PTR -88[rbp]
.L10:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	to_base, .-to_base
	.globl	from_base
	.type	from_base, @function
from_base:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, DWORD PTR -44[rbp]
	lea	rcx, -16[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	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
.LFE7:
	.size	from_base, .-from_base
	.section	.rodata
.LC2:
	.string	"%lld in base 2: %s\n"
.LC3:
	.string	"%lld in base 16: %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 16
	movabs	rax, -9223372036854775808
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	to_base
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	QWORD PTR -8[rbp], 383
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 16
	mov	rdi, rax
	call	to_base
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"740809.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"0123456789abcdefghijklmnopqrstuvwxyz\000"
	.align	2
.LC1:
	.ascii	"base %d too large\012\000"
	.global	__aeabi_uldivmod
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	to_base
	.syntax unified
	.arm
	.fpu softvfp
	.type	to_base, %function
to_base:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	str	r0, [fp, #-116]
	str	r1, [fp, #-112]
	str	r2, [fp, #-120]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L12+4
	str	r3, [fp, #-96]
	mov	r3, #0
	str	r3, [fp, #-76]
	sub	r3, fp, #72
	mov	r2, #62
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-100]
	mov	r3, #0
	str	r3, [fp, #-92]
	ldr	r3, [fp, #-120]
	cmp	r3, #36
	ble	.L2
	ldr	r3, .L12+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-120]
	ldr	r1, .L12+12
	mov	r0, r3
	bl	fprintf
	mov	r3, #0
	b	.L10
.L2:
	ldr	r3, [fp, #-112]
	lsr	r3, r3, #31
	and	r3, r3, #255
	str	r3, [fp, #-92]
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	beq	.L4
	sub	r3, fp, #116
	ldmia	r3, {r2-r3}
	rsbs	r2, r2, #0
	rsc	r3, r3, #0
	b	.L5
.L4:
	sub	r3, fp, #116
	ldmia	r3, {r2-r3}
.L5:
	str	r2, [fp, #-84]
	str	r3, [fp, #-80]
.L6:
	ldr	r3, [fp, #-120]
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #84
	ldmia	r1, {r0-r1}
	bl	__aeabi_uldivmod
	ldr	r3, [fp, #-96]
	add	r2, r3, r2
	ldr	r3, [fp, #-100]
	add	r1, r3, #1
	str	r1, [fp, #-100]
	ldrb	r2, [r2]	@ zero_extendqisi2
	sub	r1, fp, #4
	add	r3, r1, r3
	strb	r2, [r3, #-72]
	ldr	r3, [fp, #-120]
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #84
	ldmia	r1, {r0-r1}
	bl	__aeabi_uldivmod
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-84]
	str	r3, [fp, #-80]
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	bne	.L6
	ldr	r2, [fp, #-100]
	ldr	r3, [fp, #-92]
	add	r3, r2, r3
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-92]
	str	r3, [fp, #-104]
	b	.L7
.L8:
	ldr	r3, [fp, #-100]
	sub	r3, r3, #1
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-104]
	ldr	r2, [fp, #-88]
	add	r3, r2, r3
	sub	r1, fp, #76
	ldr	r2, [fp, #-100]
	add	r2, r1, r2
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
.L7:
	ldr	r3, [fp, #-100]
	cmp	r3, #0
	bgt	.L8
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	beq	.L9
	ldr	r3, [fp, #-88]
	mov	r2, #45
	strb	r2, [r3]
.L9:
	ldr	r3, [fp, #-88]
.L10:
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC2
	.word	.LC0
	.word	stderr
	.word	.LC1
	.size	to_base, .-to_base
	.section	.rodata
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	from_base
	.syntax unified
	.arm
	.fpu softvfp
	.type	from_base, %function
from_base:
	@ 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]
	str	r1, [fp, #-28]
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #16
	ldr	r2, [fp, #-28]
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	strtol
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC3
	.size	from_base, .-from_base
	.section	.rodata
	.align	2
.LC4:
	.ascii	"%lld in base 2: %s\012\000"
	.align	2
.LC5:
	.ascii	"%lld in base 16: %s\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r2, #0
	mov	r3, #-2147483648
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	mov	r2, #2
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	to_base
	mov	r3, r0
	str	r3, [sp]
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	ldr	r0, .L21
	bl	printf
	ldr	r2, .L21+4
	mov	r3, #0
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	mov	r2, #16
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	to_base
	mov	r3, r0
	str	r3, [sp]
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	ldr	r0, .L21+8
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC4
	.word	383
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
