	.file	"61784.c"
	.intel_syntax noprefix
	.text
	.globl	atoi
	.type	atoi, @function
atoi:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	cmp	QWORD PTR -24[rbp], 0
	jne	.L2
	mov	eax, -1
	jmp	.L3
.L2:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L4
.L6:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -5[rbp], al
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	movsx	rax, BYTE PTR -5[rbp]
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	jne	.L5
	mov	eax, -1
	jmp	.L3
.L5:
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	DWORD PTR -4[rbp], eax
	movsx	eax, BYTE PTR -5[rbp]
	sub	eax, 48
	add	DWORD PTR -4[rbp], eax
.L4:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L6
	mov	eax, DWORD PTR -4[rbp]
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	atoi, .-atoi
	.globl	itoa
	.type	itoa, @function
itoa:
.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, 176
	mov	DWORD PTR -164[rbp], edi
	mov	QWORD PTR -176[rbp], rsi
	mov	DWORD PTR -168[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -152[rbp], 0
	mov	DWORD PTR -156[rbp], 0
	cmp	QWORD PTR -176[rbp], 0
	je	.L19
	cmp	DWORD PTR -164[rbp], 0
	jns	.L11
	mov	DWORD PTR -156[rbp], 1
	neg	DWORD PTR -164[rbp]
	jmp	.L11
.L13:
	mov	rcx, QWORD PTR -152[rbp]
	lea	rax, 1[rcx]
	mov	QWORD PTR -152[rbp], rax
	mov	eax, DWORD PTR -164[rbp]
	cdq
	idiv	DWORD PTR -168[rbp]
	mov	eax, edx
	mov	DWORD PTR -144[rbp+rcx*4], eax
	mov	eax, DWORD PTR -164[rbp]
	cdq
	idiv	DWORD PTR -168[rbp]
	mov	DWORD PTR -164[rbp], eax
	cmp	DWORD PTR -164[rbp], 0
	je	.L20
.L11:
	cmp	QWORD PTR -152[rbp], 31
	jbe	.L13
	jmp	.L12
.L20:
	nop
.L12:
	cmp	DWORD PTR -156[rbp], 0
	je	.L15
	mov	rax, QWORD PTR -176[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -176[rbp], rdx
	mov	BYTE PTR [rax], 45
	jmp	.L15
.L16:
	sub	QWORD PTR -152[rbp], 1
	mov	rax, QWORD PTR -152[rbp]
	mov	ecx, DWORD PTR -144[rbp+rax*4]
	mov	rax, QWORD PTR -176[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -176[rbp], rdx
	movsx	rdx, ecx
	lea	rcx, DIGIT_CHARS.0[rip]
	movzx	edx, BYTE PTR [rdx+rcx]
	mov	BYTE PTR [rax], dl
.L15:
	cmp	QWORD PTR -152[rbp], 0
	jne	.L16
	mov	rax, QWORD PTR -176[rbp]
	mov	BYTE PTR [rax], 0
	jmp	.L9
.L19:
	nop
.L9:
	mov	rax, QWORD PTR -176[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	itoa, .-itoa
	.section	.rodata
	.align 32
	.type	DIGIT_CHARS.0, @object
	.size	DIGIT_CHARS.0, 36
DIGIT_CHARS.0:
	.ascii	"0123456789abcdefghijklmnopqrstuvwxyz"
	.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	"61784.c"
	.text
	.align	2
	.global	atoi
	.syntax unified
	.arm
	.fpu softvfp
	.type	atoi, %function
atoi:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L2
	mvn	r3, #0
	b	.L3
.L2:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L4
.L6:
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	str	r2, [fp, #-16]
	ldrb	r3, [r3]
	strb	r3, [fp, #-9]
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	bne	.L5
	mvn	r3, #0
	b	.L3
.L5:
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	str	r3, [fp, #-8]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	sub	r3, r3, #48
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-8]
.L4:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L6
	ldr	r3, [fp, #-8]
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	atoi, .-atoi
	.global	__aeabi_idivmod
	.global	__aeabi_idiv
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	itoa
	.syntax unified
	.arm
	.fpu softvfp
	.type	itoa, %function
itoa:
	@ args = 0, pretend = 0, frame = 160
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #164
	str	r0, [fp, #-160]
	str	r1, [fp, #-164]
	str	r2, [fp, #-168]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-152]
	mov	r3, #0
	str	r3, [fp, #-148]
	ldr	r3, [fp, #-164]
	cmp	r3, #0
	beq	.L19
	ldr	r3, [fp, #-160]
	cmp	r3, #0
	bge	.L11
	mov	r3, #1
	str	r3, [fp, #-148]
	ldr	r3, [fp, #-160]
	rsb	r3, r3, #0
	str	r3, [fp, #-160]
	b	.L11
.L13:
	ldr	r4, [fp, #-152]
	add	r3, r4, #1
	str	r3, [fp, #-152]
	ldr	r3, [fp, #-160]
	ldr	r1, [fp, #-168]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r2, r3
	lsl	r3, r4, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-132]
	ldr	r1, [fp, #-168]
	ldr	r0, [fp, #-160]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-160]
	ldr	r3, [fp, #-160]
	cmp	r3, #0
	beq	.L20
.L11:
	ldr	r3, [fp, #-152]
	cmp	r3, #31
	bls	.L13
	b	.L12
.L20:
	nop
.L12:
	ldr	r3, [fp, #-148]
	cmp	r3, #0
	beq	.L15
	ldr	r3, [fp, #-164]
	add	r2, r3, #1
	str	r2, [fp, #-164]
	mov	r2, #45
	strb	r2, [r3]
	b	.L15
.L16:
	ldr	r3, [fp, #-152]
	sub	r3, r3, #1
	str	r3, [fp, #-152]
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [r3, #-132]
	ldr	r3, [fp, #-164]
	add	r1, r3, #1
	str	r1, [fp, #-164]
	ldr	r1, .L21+4
	ldrb	r2, [r1, r2]	@ zero_extendqisi2
	strb	r2, [r3]
.L15:
	ldr	r3, [fp, #-152]
	cmp	r3, #0
	bne	.L16
	ldr	r3, [fp, #-164]
	mov	r2, #0
	strb	r2, [r3]
	b	.L9
.L19:
	nop
.L9:
	ldr	r3, [fp, #-164]
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC0
	.word	DIGIT_CHARS.4904
	.size	itoa, .-itoa
	.section	.rodata
	.align	2
	.type	DIGIT_CHARS.4904, %object
	.size	DIGIT_CHARS.4904, 36
DIGIT_CHARS.4904:
	.ascii	"0123456789abcdefghijklmnopqrstuvwxyz"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
