	.file	"1094638.c"
	.intel_syntax noprefix
	.text
	.globl	g_fmt
	.type	g_fmt, @function
g_fmt:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	push	rbx
	sub	rsp, 72
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	mov	rbx, rdi
	movsd	QWORD PTR -88[rbp], xmm0
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -56[rbp], rbx
	lea	rsi, -64[rbp]
	lea	rcx, -72[rbp]
	lea	rdx, -76[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	r8, rsi
	mov	esi, 0
	mov	edi, 0
	movq	xmm0, rax
	call	g_dtoa@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	r12, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -72[rbp]
	test	eax, eax
	je	.L2
	mov	rax, rbx
	lea	rbx, 1[rax]
	mov	BYTE PTR [rax], 45
.L2:
	mov	eax, DWORD PTR -76[rbp]
	cmp	eax, 9999
	jne	.L3
	nop
.L4:
	mov	rdx, r12
	lea	r12, 1[rdx]
	mov	rax, rbx
	lea	rbx, 1[rax]
	movzx	edx, BYTE PTR [rdx]
	mov	BYTE PTR [rax], dl
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L4
	jmp	.L5
.L3:
	mov	eax, DWORD PTR -76[rbp]
	cmp	eax, -3
	jl	.L6
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	mov	rdx, QWORD PTR -64[rbp]
	sub	rdx, r12
	add	rdx, 5
	cmp	rax, rdx
	jle	.L7
.L6:
	mov	rdx, r12
	lea	r12, 1[rdx]
	mov	rax, rbx
	lea	rbx, 1[rax]
	movzx	edx, BYTE PTR [rdx]
	mov	BYTE PTR [rax], dl
	movzx	eax, BYTE PTR [r12]
	test	al, al
	je	.L8
	mov	rax, rbx
	lea	rbx, 1[rax]
	mov	BYTE PTR [rax], 46
	jmp	.L9
.L10:
	add	rbx, 1
.L9:
	mov	rax, r12
	lea	r12, 1[rax]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rbx], al
	movzx	eax, BYTE PTR [rbx]
	test	al, al
	jne	.L10
.L8:
	mov	rax, rbx
	lea	rbx, 1[rax]
	mov	BYTE PTR [rax], 101
	mov	eax, DWORD PTR -76[rbp]
	sub	eax, 1
	mov	DWORD PTR -76[rbp], eax
	mov	eax, DWORD PTR -76[rbp]
	test	eax, eax
	jns	.L11
	mov	rax, rbx
	lea	rbx, 1[rax]
	mov	BYTE PTR [rax], 45
	mov	eax, DWORD PTR -76[rbp]
	neg	eax
	mov	DWORD PTR -76[rbp], eax
	jmp	.L12
.L11:
	mov	rax, rbx
	lea	rbx, 1[rax]
	mov	BYTE PTR [rax], 43
.L12:
	mov	DWORD PTR -68[rbp], 2
	mov	r12d, 10
	jmp	.L13
.L14:
	add	DWORD PTR -68[rbp], 1
	mov	eax, r12d
	sal	eax, 2
	add	eax, r12d
	add	eax, eax
	mov	r12d, eax
.L13:
	mov	eax, r12d
	sal	eax, 2
	add	eax, r12d
	add	eax, eax
	mov	edx, eax
	mov	eax, DWORD PTR -76[rbp]
	cmp	edx, eax
	jle	.L14
.L17:
	mov	eax, DWORD PTR -76[rbp]
	cdq
	idiv	r12d
	mov	r13d, eax
	mov	eax, r13d
	lea	edx, 48[rax]
	mov	rax, rbx
	lea	rbx, 1[rax]
	mov	BYTE PTR [rax], dl
	sub	DWORD PTR -68[rbp], 1
	cmp	DWORD PTR -68[rbp], 0
	jle	.L30
	mov	eax, DWORD PTR -76[rbp]
	mov	edx, r13d
	imul	edx, r12d
	sub	eax, edx
	mov	DWORD PTR -76[rbp], eax
	mov	edx, DWORD PTR -76[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	DWORD PTR -76[rbp], eax
	jmp	.L17
.L30:
	nop
	mov	BYTE PTR [rbx], 0
	jmp	.L5
.L7:
	mov	eax, DWORD PTR -76[rbp]
	test	eax, eax
	jg	.L22
	mov	rax, rbx
	lea	rbx, 1[rax]
	mov	BYTE PTR [rax], 46
	jmp	.L19
.L20:
	mov	rax, rbx
	lea	rbx, 1[rax]
	mov	BYTE PTR [rax], 48
	mov	eax, DWORD PTR -76[rbp]
	add	eax, 1
	mov	DWORD PTR -76[rbp], eax
.L19:
	mov	eax, DWORD PTR -76[rbp]
	test	eax, eax
	js	.L20
	nop
.L21:
	mov	rdx, r12
	lea	r12, 1[rdx]
	mov	rax, rbx
	lea	rbx, 1[rax]
	movzx	edx, BYTE PTR [rdx]
	mov	BYTE PTR [rax], dl
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L21
	jmp	.L5
.L23:
	add	rbx, 1
	mov	eax, DWORD PTR -76[rbp]
	sub	eax, 1
	mov	DWORD PTR -76[rbp], eax
	mov	eax, DWORD PTR -76[rbp]
	test	eax, eax
	jne	.L22
	movzx	eax, BYTE PTR [r12]
	test	al, al
	je	.L22
	mov	rax, rbx
	lea	rbx, 1[rax]
	mov	BYTE PTR [rax], 46
.L22:
	mov	rax, r12
	lea	r12, 1[rax]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rbx], al
	movzx	eax, BYTE PTR [rbx]
	test	al, al
	jne	.L23
	jmp	.L24
.L25:
	mov	rax, rbx
	lea	rbx, 1[rax]
	mov	BYTE PTR [rax], 48
	mov	eax, DWORD PTR -76[rbp]
	sub	eax, 1
	mov	DWORD PTR -76[rbp], eax
.L24:
	mov	eax, DWORD PTR -76[rbp]
	test	eax, eax
	jg	.L25
	mov	BYTE PTR [rbx], 0
.L5:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	g_freedtoa@PLT
.L26:
	mov	rax, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR -40[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	add	rsp, 72
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	g_fmt, .-g_fmt
	.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	"1094638.c"
	.text
	.global	__aeabi_idiv
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	g_fmt
	.syntax unified
	.arm
	.fpu softvfp
	.type	g_fmt, %function
g_fmt:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #60
	mov	r4, r0
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	ldr	r3, .L31
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	str	r4, [fp, #-32]
	sub	r3, fp, #40
	str	r3, [sp, #8]
	sub	r3, fp, #44
	str	r3, [sp, #4]
	sub	r3, fp, #48
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	bl	g_dtoa
	str	r0, [fp, #-28]
	ldr	r5, [fp, #-28]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L2
	mov	r3, r4
	add	r4, r3, #1
	mov	r2, #45
	strb	r2, [r3]
.L2:
	ldr	r3, [fp, #-48]
	ldr	r2, .L31+4
	cmp	r3, r2
	bne	.L3
	nop
.L4:
	mov	r2, r5
	add	r5, r2, #1
	mov	r3, r4
	add	r4, r3, #1
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L4
	b	.L5
.L3:
	ldr	r3, [fp, #-48]
	cmn	r3, #3
	blt	.L6
	ldr	r3, [fp, #-40]
	sub	r3, r3, r5
	add	r2, r3, #5
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	bge	.L7
.L6:
	mov	r2, r5
	add	r5, r2, #1
	mov	r3, r4
	add	r4, r3, #1
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldrb	r3, [r5]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L8
	mov	r3, r4
	add	r4, r3, #1
	mov	r2, #46
	strb	r2, [r3]
	b	.L9
.L10:
	add	r4, r4, #1
.L9:
	mov	r3, r5
	add	r5, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	strb	r3, [r4]
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L10
.L8:
	mov	r3, r4
	add	r4, r3, #1
	mov	r2, #101
	strb	r2, [r3]
	ldr	r3, [fp, #-48]
	sub	r3, r3, #1
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bge	.L11
	mov	r3, r4
	add	r4, r3, #1
	mov	r2, #45
	strb	r2, [r3]
	ldr	r3, [fp, #-48]
	rsb	r3, r3, #0
	str	r3, [fp, #-48]
	b	.L12
.L11:
	mov	r3, r4
	add	r4, r3, #1
	mov	r2, #43
	strb	r2, [r3]
.L12:
	mov	r3, #2
	str	r3, [fp, #-36]
	mov	r5, #10
	b	.L13
.L14:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	mov	r3, r5
	lsl	r3, r3, #2
	add	r3, r3, r5
	lsl	r3, r3, #1
	mov	r5, r3
.L13:
	mov	r3, r5
	lsl	r3, r3, #2
	add	r3, r3, r5
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	ble	.L14
.L17:
	ldr	r3, [fp, #-48]
	mov	r1, r5
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r6, r3
	and	r2, r6, #255
	mov	r3, r4
	add	r4, r3, #1
	add	r2, r2, #48
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-36]
	sub	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	ble	.L30
	ldr	r2, [fp, #-48]
	mul	r3, r5, r6
	sub	r3, r2, r3
	str	r3, [fp, #-48]
	ldr	r2, [fp, #-48]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	str	r3, [fp, #-48]
	b	.L17
.L30:
	nop
	mov	r3, #0
	strb	r3, [r4]
	b	.L5
.L7:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bgt	.L22
	mov	r3, r4
	add	r4, r3, #1
	mov	r2, #46
	strb	r2, [r3]
	b	.L19
.L20:
	mov	r3, r4
	add	r4, r3, #1
	mov	r2, #48
	strb	r2, [r3]
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L19:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	blt	.L20
	nop
.L21:
	mov	r2, r5
	add	r5, r2, #1
	mov	r3, r4
	add	r4, r3, #1
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L21
	b	.L5
.L23:
	add	r4, r4, #1
	ldr	r3, [fp, #-48]
	sub	r3, r3, #1
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L22
	ldrb	r3, [r5]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L22
	mov	r3, r4
	add	r4, r3, #1
	mov	r2, #46
	strb	r2, [r3]
.L22:
	mov	r3, r5
	add	r5, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	strb	r3, [r4]
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L23
	b	.L24
.L25:
	mov	r3, r4
	add	r4, r3, #1
	mov	r2, #48
	strb	r2, [r3]
	ldr	r3, [fp, #-48]
	sub	r3, r3, #1
	str	r3, [fp, #-48]
.L24:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bgt	.L25
	mov	r3, #0
	strb	r3, [r4]
.L5:
	ldr	r0, [fp, #-28]
	bl	g_freedtoa
.L26:
	ldr	r3, [fp, #-32]
	ldr	r2, .L31
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L28
	bl	__stack_chk_fail
.L28:
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC0
	.word	9999
	.size	g_fmt, .-g_fmt
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
