	.file	"32126.c"
	.intel_syntax noprefix
	.text
	.globl	reformatNumber
	.type	reformatNumber, @function
reformatNumber:
.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, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	DWORD PTR -48[rbp], 0
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -16[rbp], rax
.L3:
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	je	.L2
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L2
	add	DWORD PTR -48[rbp], 1
.L2:
	add	QWORD PTR -16[rbp], 1
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L3
	mov	eax, DWORD PTR -48[rbp]
	mov	DWORD PTR -44[rbp], eax
	mov	DWORD PTR -40[rbp], 0
	jmp	.L4
.L5:
	sub	DWORD PTR -44[rbp], 3
	add	DWORD PTR -40[rbp], 1
.L4:
	cmp	DWORD PTR -44[rbp], 4
	jg	.L5
	mov	edx, DWORD PTR -48[rbp]
	mov	eax, DWORD PTR -40[rbp]
	add	eax, edx
	lea	edx, 1[rax]
	cmp	DWORD PTR -44[rbp], 4
	sete	al
	movzx	eax, al
	add	eax, edx
	mov	DWORD PTR -20[rbp], eax
	mov	DWORD PTR -36[rbp], 0
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 1
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -32[rbp], 0
	cmp	DWORD PTR -40[rbp], 0
	setle	al
	movzx	eax, al
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -40[rbp], 0
	jg	.L6
	cmp	DWORD PTR -44[rbp], 4
	je	.L7
	mov	eax, DWORD PTR -44[rbp]
	jmp	.L9
.L7:
	mov	eax, 2
	jmp	.L9
.L6:
	mov	eax, 3
.L9:
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -40[rbp], 0
	jg	.L10
	cmp	DWORD PTR -44[rbp], 4
	jne	.L11
	mov	eax, 2
	jmp	.L13
.L11:
	mov	eax, 0
	jmp	.L13
.L10:
	mov	eax, DWORD PTR -40[rbp]
.L13:
	mov	DWORD PTR -40[rbp], eax
	jmp	.L14
.L16:
	add	QWORD PTR -56[rbp], 1
.L14:
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L15
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	je	.L16
.L15:
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L16
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jne	.L17
	mov	eax, DWORD PTR -36[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -36[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 45
	mov	DWORD PTR -32[rbp], 0
	sub	DWORD PTR -40[rbp], 1
	cmp	DWORD PTR -40[rbp], 0
	jg	.L14
	cmp	DWORD PTR -28[rbp], 0
	jne	.L28
	cmp	DWORD PTR -44[rbp], 4
	jne	.L21
	mov	eax, 2
	jmp	.L22
.L21:
	mov	eax, 1
.L22:
	mov	DWORD PTR -40[rbp], eax
	cmp	DWORD PTR -44[rbp], 4
	je	.L23
	mov	eax, DWORD PTR -44[rbp]
	jmp	.L24
.L23:
	mov	eax, 2
.L24:
	mov	DWORD PTR -24[rbp], eax
	mov	DWORD PTR -28[rbp], 1
	jmp	.L14
.L17:
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -56[rbp], rdx
	mov	edx, DWORD PTR -36[rbp]
	lea	ecx, 1[rdx]
	mov	DWORD PTR -36[rbp], ecx
	movsx	rcx, edx
	mov	rdx, QWORD PTR -8[rbp]
	add	rdx, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -32[rbp], 1
	jmp	.L14
.L28:
	nop
	sub	DWORD PTR -36[rbp], 1
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	reformatNumber, .-reformatNumber
	.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	"32126.c"
	.text
	.align	2
	.global	reformatNumber
	.syntax unified
	.arm
	.fpu softvfp
	.type	reformatNumber, %function
reformatNumber:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-40]
.L3:
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	beq	.L2
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L2
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L2:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L4
.L5:
	ldr	r3, [fp, #-36]
	sub	r3, r3, #3
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L4:
	ldr	r3, [fp, #-36]
	cmp	r3, #4
	bgt	.L5
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	add	r3, r3, #1
	ldr	r2, [fp, #-36]
	cmp	r2, #4
	moveq	r2, #1
	movne	r2, #0
	and	r2, r2, #255
	add	r3, r3, r2
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	movle	r3, #1
	movgt	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bgt	.L6
	ldr	r3, [fp, #-36]
	cmp	r3, #4
	beq	.L7
	ldr	r3, [fp, #-36]
	b	.L9
.L7:
	mov	r3, #2
	b	.L9
.L6:
	mov	r3, #3
.L9:
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bgt	.L10
	ldr	r3, [fp, #-36]
	cmp	r3, #4
	bne	.L11
	mov	r3, #2
	b	.L13
.L11:
	mov	r3, #0
	b	.L13
.L10:
	ldr	r3, [fp, #-32]
.L13:
	str	r3, [fp, #-32]
	b	.L14
.L16:
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L14:
	ldr	r3, [fp, #-48]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L15
	ldr	r3, [fp, #-48]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	beq	.L16
.L15:
	ldr	r3, [fp, #-48]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L16
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bne	.L17
	ldr	r3, [fp, #-28]
	add	r2, r3, #1
	str	r2, [fp, #-28]
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	mov	r2, #45
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bgt	.L14
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L28
	ldr	r3, [fp, #-36]
	cmp	r3, #4
	bne	.L21
	mov	r3, #2
	b	.L22
.L21:
	mov	r3, #1
.L22:
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-36]
	cmp	r3, #4
	beq	.L23
	ldr	r3, [fp, #-36]
	b	.L24
.L23:
	mov	r3, #2
.L24:
	str	r3, [fp, #-16]
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L14
.L17:
	ldr	r3, [fp, #-48]
	add	r2, r3, #1
	str	r2, [fp, #-48]
	ldr	r2, [fp, #-28]
	add	r1, r2, #1
	str	r1, [fp, #-28]
	mov	r1, r2
	ldr	r2, [fp, #-8]
	add	r2, r2, r1
	ldrb	r3, [r3]	@ zero_extendqisi2
	strb	r3, [r2]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	b	.L14
.L28:
	nop
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	reformatNumber, .-reformatNumber
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
