	.file	"extr_strfmon.c___format_grouped_double.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%*.*f"
	.text
	.p2align 4
	.type	__format_grouped_double, @function
__format_grouped_double:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edx
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	QWORD PTR 16[rsp], rdi
	mov	DWORD PTR 60[rsp], ecx
	movsd	QWORD PTR 40[rsp], xmm0
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	call	localeconv@PLT
	mov	r13, QWORD PTR [rax]
	mov	r12, rax
	mov	rax, QWORD PTR 8[rax]
	cmp	BYTE PTR [rax], 0
	mov	QWORD PTR 8[rsp], rax
	jne	.L2
	mov	rax, QWORD PTR 16[r12]
	mov	QWORD PTR 8[rsp], rax
.L2:
	mov	r14, QWORD PTR 24[r12]
	cmp	BYTE PTR [r14], 0
	jne	.L3
	mov	r14, QWORD PTR 32[r12]
.L3:
	mov	rdi, QWORD PTR 8[rsp]
	call	strlen@PLT
	mov	rdi, r14
	mov	QWORD PTR 24[rsp], rax
	call	strlen@PLT
	cmp	ebp, -1
	mov	QWORD PTR 32[rsp], rax
	mov	eax, 0
	cmove	ebp, eax
	mov	rax, QWORD PTR 16[rsp]
	mov	eax, DWORD PTR [rax]
	cmp	ebx, -1
	jne	.L5
	test	DWORD PTR USE_INTL_CURRENCY[rip], eax
	mov	ebx, DWORD PTR 44[r12]
	mov	edx, 2
	cmovne	ebx, DWORD PTR 40[r12]
	cmp	DWORD PTR CHAR_MAX[rip], ebx
	cmove	ebx, edx
.L5:
	test	DWORD PTR NEED_GROUPING[rip], eax
	jne	.L50
.L7:
	movsd	xmm0, QWORD PTR 40[rsp]
	lea	edx, 1[rbp+rbx]
	mov	ecx, ebx
	xor	r12d, r12d
	lea	rdi, 64[rsp]
	lea	rsi, .LC0[rip]
	call	asprintf@PLT
	mov	edx, eax
	test	eax, eax
	js	.L1
	mov	rax, QWORD PTR 32[rsp]
	mov	edi, 1
	mov	DWORD PTR 48[rsp], edx
	lea	rbp, 1[rax]
	movsx	rax, edx
	imul	rbp, rax
	add	rbp, QWORD PTR 24[rsp]
	lea	rsi, 1[rbp]
	mov	QWORD PTR 40[rsp], rbp
	call	calloc@PLT
	mov	edx, DWORD PTR 48[rsp]
	test	rax, rax
	mov	r12, rax
	je	.L48
	mov	rsi, QWORD PTR 64[rsp]
	mov	rax, QWORD PTR 40[rsp]
	cmp	BYTE PTR [rsi], 32
	lea	r14, [r12+rax]
	jne	.L30
	mov	eax, 1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	ebp, edx
	mov	r15d, eax
	mov	rcx, rax
	sub	ebp, eax
	add	rax, 1
	cmp	BYTE PTR -1[rsi+rax], 32
	je	.L11
.L10:
	test	ebx, ebx
	jg	.L51
	mov	rax, QWORD PTR 16[rsp]
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR NEED_GROUPING[rip], eax
	je	.L15
.L13:
	cmp	QWORD PTR 32[rsp], 0
	je	.L32
	movsx	edi, BYTE PTR 0[r13]
	cmp	DWORD PTR CHAR_MAX[rip], edi
	je	.L32
	test	dil, dil
	jg	.L22
	jmp	.L32
	.p2align 4,,10
	.p2align 3
.L19:
	test	dil, dil
	je	.L52
	mov	r13, rbx
.L22:
	cmp	edi, ebp
	jge	.L26
	call	GRPCPY@PLT
	movsx	edi, BYTE PTR 1[r13]
	cmp	edi, DWORD PTR CHAR_MAX[rip]
	lea	rbx, 1[r13]
	jne	.L19
.L26:
	test	ebp, ebp
	je	.L21
	mov	edi, ebp
	call	GRPCPY@PLT
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L32:
	mov	rsi, QWORD PTR 64[rsp]
.L15:
	movsx	rax, ebp
	add	rsi, rcx
	mov	edx, ebp
	sub	r14, rax
	mov	rdi, r14
	call	memcpy@PLT
	mov	eax, r15d
	sub	eax, DWORD PTR 24[rsp]
	test	ebx, ebx
	cmove	r15d, eax
.L21:
	test	r15d, r15d
	jle	.L27
	movsx	rax, r15d
	mov	esi, DWORD PTR 60[rsp]
	mov	edx, r15d
	sub	r14, rax
	mov	rdi, r14
	call	memset@PLT
.L27:
	mov	rcx, QWORD PTR 40[rsp]
	mov	rax, r12
	mov	rsi, r14
	mov	rdi, r12
	sub	rax, r14
	lea	rdx, 2[rax+rcx]
	call	memmove@PLT
.L48:
	mov	rdi, QWORD PTR 64[rsp]
	call	free@PLT
.L1:
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L53
	add	rsp, 88
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L51:
	.cfi_restore_state
	mov	rdi, rcx
	movsx	rax, ebx
	movsx	rdx, ebp
	mov	QWORD PTR 48[rsp], rcx
	sub	rdi, rax
	sub	r14, rax
	mov	rax, rdi
	mov	rdi, r14
	add	rax, rdx
	mov	edx, ebx
	add	rsi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR 24[rsp]
	mov	rsi, QWORD PTR 8[rsp]
	sub	r14, rax
	mov	edx, eax
	mov	rdi, r14
	call	memcpy@PLT
	lea	eax, 1[rbx]
	mov	rcx, QWORD PTR 48[rsp]
	sub	ebp, eax
	mov	rax, QWORD PTR 16[rsp]
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR NEED_GROUPING[rip], eax
	jne	.L13
	movsx	rax, ebp
	add	rcx, QWORD PTR 64[rsp]
	mov	edx, ebp
	sub	r14, rax
	mov	rsi, rcx
	mov	rdi, r14
	call	memcpy@PLT
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L50:
	mov	edi, ebp
	mov	rsi, r13
	call	get_groups@PLT
	add	ebp, eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L30:
	mov	ebp, edx
	xor	r15d, r15d
	xor	ecx, ecx
	jmp	.L10
.L52:
	movsx	edi, BYTE PTR -1[rbx]
	cmp	edi, ebp
	jge	.L26
	.p2align 4,,10
	.p2align 3
.L24:
	call	GRPCPY@PLT
	movsx	edi, BYTE PTR -1[rbx]
	cmp	edi, ebp
	jl	.L24
	jmp	.L26
.L53:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	__format_grouped_double, .-__format_grouped_double
	.comm	USE_INTL_CURRENCY,4,4
	.comm	NEED_GROUPING,4,4
	.comm	GRPSEP,4,4
	.comm	CHAR_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_strfmon.c___format_grouped_double.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%*.*f\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__format_grouped_double, %function
__format_grouped_double:
	@ args = 8, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r10, r3
	sub	sp, sp, #36
	ldr	r3, .L51
	str	r2, [sp, #8]
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	ldr	r6, [sp, #72]
	mov	r4, r0
	bl	localeconv
	ldr	fp, [r0, #12]
	ldm	r0, {r7, r8}
	ldrb	r3, [r8]	@ zero_extendqisi2
	mov	r9, r0
	cmp	r3, #0
	ldrb	r3, [fp]	@ zero_extendqisi2
	ldreq	r8, [r0, #8]
	cmp	r3, #0
	ldreq	fp, [r0, #16]
	mov	r0, r8
	bl	strlen
	mov	r3, r0
	mov	r0, fp
	str	r3, [sp, #12]
	bl	strlen
	cmn	r10, #1
	ldr	r3, [sp, #8]
	moveq	r10, #0
	cmn	r6, #1
	ldr	r3, [r3]
	str	r0, [sp, #20]
	bne	.L5
	ldr	r2, .L51+4
	ldr	r6, [r9, #20]
	ldr	r1, [r2]
	ldr	r2, [r9, #24]
	tst	r3, r1
	moveq	r6, r2
	ldr	r2, .L51+8
	ldr	r2, [r2]
	cmp	r2, r6
	moveq	r6, #2
.L5:
	ldr	r2, .L51+12
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L46
.L7:
	add	r2, r10, r6
	stm	sp, {r4-r5}
	mov	r3, r6
	ldr	r1, .L51+16
	add	r2, r2, #1
	add	r0, sp, #24
	bl	asprintf
	subs	r5, r0, #0
	movlt	fp, #0
	blt	.L1
	mov	r0, #1
	ldr	r3, [sp, #20]
	add	r2, r3, #1
	ldr	r3, [sp, #12]
	mla	r3, r5, r2, r3
	add	r1, r3, r0
	str	r3, [sp, #16]
	bl	calloc
	subs	fp, r0, #0
	mov	lr, r5
	ldr	r1, [sp, #24]
	beq	.L47
	ldrb	r2, [r1]	@ zero_extendqisi2
	ldr	r3, [sp, #16]
	cmp	r2, #32
	add	r9, fp, r3
	bne	.L28
	mov	r2, r1
	mov	r4, #0
.L11:
	ldrb	r3, [r2, #1]!	@ zero_extendqisi2
	add	r4, r4, #1
	cmp	r3, #32
	mov	r10, r4
	sub	r5, lr, r4
	beq	.L11
.L10:
	cmp	r6, #0
	bgt	.L48
	ldr	r3, [sp, #8]
	ldr	r0, [r3]
	ldr	r3, .L51+12
	ldr	r2, [r3]
	tst	r0, r2
	beq	.L15
.L13:
	ldr	r3, [sp, #20]
	cmp	r3, #0
	beq	.L44
	ldr	r8, .L51+8
	ldrb	r0, [r7]	@ zero_extendqisi2
	ldr	r2, [r8]
	cmp	r2, r0
	cmpne	r0, #0
	bne	.L20
.L44:
	ldr	r1, [sp, #24]
.L15:
	sub	r9, r9, r5
	mov	r2, r5
	mov	r0, r9
	add	r1, r1, r10
	bl	memcpy
	cmp	r6, #0
	ldreq	r3, [sp, #12]
	subeq	r4, r10, r3
.L19:
	cmp	r4, #0
	ble	.L25
	sub	r9, r9, r4
	mov	r2, r4
	mov	r0, r9
	ldr	r1, [sp, #76]
	bl	memset
.L25:
	ldr	r3, [sp, #16]
	sub	r1, r9, fp
	add	r2, r3, #2
	sub	r2, r2, r1
	mov	r0, fp
	mov	r1, r9
	bl	memmove
	ldr	r0, [sp, #24]
	bl	free
.L1:
	ldr	r3, .L51
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L49
	mov	r0, fp
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	cmp	r0, #0
	beq	.L50
.L20:
	cmp	r0, r5
	bge	.L40
	bl	GRPCPY
	ldrb	r0, [r7, #1]	@ zero_extendqisi2
	ldr	r3, [r8]
	add	r7, r7, #1
	cmp	r0, r3
	bne	.L18
.L24:
	mov	r0, r5
	bl	GRPCPY
	b	.L19
.L48:
	ldr	r3, [sp, #12]
	sub	r2, r10, r6
	add	r2, r2, r5
	sub	r0, r9, r6
	sub	r9, r0, r3
	add	r1, r1, r2
	mov	r2, r6
	bl	memcpy
	mov	r1, r8
	ldr	r2, [sp, #12]
	mov	r0, r9
	bl	memcpy
	ldr	r3, [sp, #8]
	add	r2, r6, #1
	ldr	r0, [r3]
	ldr	r3, .L51+12
	sub	r5, r5, r2
	ldr	r1, [r3]
	tst	r0, r1
	bne	.L13
	ldr	r1, [sp, #24]
	sub	r9, r9, r5
	mov	r2, r5
	mov	r0, r9
	add	r1, r1, r10
	bl	memcpy
	b	.L19
.L46:
	mov	r0, r10
	mov	r1, r7
	bl	get_groups
	add	r10, r10, r0
	b	.L7
.L28:
	mov	r4, #0
	mov	r10, r4
	b	.L10
.L50:
	ldrb	r0, [r7, #-1]	@ zero_extendqisi2
	cmp	r0, r5
	bge	.L40
.L22:
	bl	GRPCPY
	ldrb	r0, [r7, #-1]	@ zero_extendqisi2
	cmp	r0, r5
	blt	.L22
.L40:
	cmp	r5, #0
	beq	.L19
	b	.L24
.L49:
	bl	__stack_chk_fail
.L47:
	mov	r0, r1
	bl	free
	b	.L1
.L52:
	.align	2
.L51:
	.word	.LC1
	.word	USE_INTL_CURRENCY
	.word	CHAR_MAX
	.word	NEED_GROUPING
	.word	.LC0
	.size	__format_grouped_double, .-__format_grouped_double
	.comm	USE_INTL_CURRENCY,4,4
	.comm	NEED_GROUPING,4,4
	.comm	GRPSEP,4,4
	.comm	CHAR_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
