	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __format_grouped_double
___format_grouped_double:               ## @__format_grouped_double
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movl	%edx, %r12d
	movl	%esi, %r15d
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	callq	_localeconv
	movq	%rax, %r14
	movq	8(%rax), %rdi
	cmpb	$0, (%rdi)
	jne	LBB0_2
## %bb.1:
	movq	16(%r14), %rdi
LBB0_2:
	movq	24(%r14), %rbx
	cmpb	$0, (%rbx)
	jne	LBB0_4
## %bb.3:
	movq	32(%r14), %rbx
LBB0_4:
	movq	(%r14), %r13
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	callq	_strlen
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	cmpl	$-1, %r15d
	cmovnel	%r15d, %ebx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	cmpl	$-1, %r12d
	jne	LBB0_6
## %bb.5:
	movq	_USE_INTL_CURRENCY@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	testl	%eax, (%rcx)
	sete	%dl
	movl	40(%r14,%rdx,4), %ecx
	movq	_CHAR_MAX@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	movl	$2, %r12d
	cmovnel	%ecx, %r12d
LBB0_6:
	movq	_NEED_GROUPING@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.7:
	movl	%ebx, %edi
	movq	%r13, %rsi
	callq	_get_groups
	addl	%ebx, %eax
	movl	%eax, %ebx
LBB0_8:
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	leal	(%r12,%rbx), %edx
	incl	%edx
	leaq	L_.str(%rip), %rsi
	leaq	-64(%rbp), %rdi
	movl	%r12d, %ecx
	callq	_asprintf
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	movl	%eax, %r15d
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, %eax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leaq	1(%rcx), %r14
	imulq	%rax, %r14
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	leaq	(%r14,%r12), %rsi
	incq	%rsi
	movl	$1, %edi
	callq	_calloc
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	addq	%r12, %r14
	movq	-64(%rbp), %rsi
	cmpb	$32, (%rsi)
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_16
## %bb.13:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	cmpb	$32, 1(%rsi,%rbx)
	leaq	1(%rbx), %rbx
	je	LBB0_14
## %bb.15:
	subl	%ebx, %r15d
LBB0_16:
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	addq	%rax, %r14
	movl	%ebx, %ecx
	testl	%r12d, %r12d
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	jle	LBB0_18
## %bb.17:
	movl	%r12d, %eax
	subq	%rax, %r14
	movslq	%r15d, %r15
	addq	%r15, %rsi
	addq	%rcx, %rsi
	subq	%rax, %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_memcpy
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	subq	%rdx, %r14
	movq	%r14, %rdi
	movq	-120(%rbp), %rsi                ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movl	%r12d, %eax
	notl	%eax
	addl	%eax, %r15d
LBB0_18:
	movq	_NEED_GROUPING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, (%rcx)
	je	LBB0_32
## %bb.19:
	cmpq	$0, -80(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_32
## %bb.20:
	movsbl	(%r13), %edi
	testl	%edi, %edi
	jle	LBB0_32
## %bb.21:
	movq	_CHAR_MAX@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	je	LBB0_32
## %bb.22:
	cmpl	%edi, %r15d
	jle	LBB0_30
## %bb.23:
	movq	%rcx, %rax
	movq	%rcx, %r12
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_24 Depth=1
	cmpl	%edi, %r15d
	jle	LBB0_30
LBB0_24:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_28 Depth 2
	callq	_GRPCPY
	movsbl	1(%r13), %edi
	cmpl	%edi, (%r12)
	je	LBB0_30
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	testb	%dil, %dil
	je	LBB0_28
## %bb.26:                              ##   in Loop: Header=BB0_24 Depth=1
	incq	%r13
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_28 Depth=2
	callq	_GRPCPY
LBB0_28:                                ##   Parent Loop BB0_24 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	(%r13), %edi
	cmpl	%edi, %r15d
	jg	LBB0_27
	jmp	LBB0_29
LBB0_9:
	xorl	%ebx, %ebx
	jmp	LBB0_38
LBB0_32:
	movslq	%r15d, %rdx
	subq	%rdx, %r14
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	addq	-64(%rbp), %rsi
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	testl	%r12d, %r12d
	jne	LBB0_34
## %bb.33:
	subl	-56(%rbp), %ebx                 ## 4-byte Folded Reload
	jmp	LBB0_34
LBB0_11:
	xorl	%ebx, %ebx
	jmp	LBB0_37
LBB0_30:
	testl	%r15d, %r15d
	je	LBB0_34
## %bb.31:
	movl	%r15d, %edi
	callq	_GRPCPY
LBB0_34:
	testl	%ebx, %ebx
	jle	LBB0_36
## %bb.35:
	movl	%ebx, %eax
	subq	%rax, %r14
	movq	%r14, %rdi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_memset
LBB0_36:
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdx
	addq	-104(%rbp), %rdx                ## 8-byte Folded Reload
	subq	%r14, %rdx
	addq	$2, %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_memmove
LBB0_37:
	movq	-64(%rbp), %rdi
	callq	_free
LBB0_38:
	movq	%rbx, %rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USE_INTL_CURRENCY,4,2          ## @USE_INTL_CURRENCY
	.comm	_CHAR_MAX,4,2                   ## @CHAR_MAX
	.comm	_NEED_GROUPING,4,2              ## @NEED_GROUPING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%*.*f"

	.comm	_GRPSEP,4,2                     ## @GRPSEP
	.no_dead_strip	___format_grouped_double
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __format_grouped_double
___format_grouped_double:               ; @__format_grouped_double
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x28, x3
	mov	x22, x2
	mov	x25, x1
	mov	x23, x0
	fmov	d8, d0
	bl	_localeconv
	mov	x21, x0
	ldr	x27, [x0, #8]
	ldrb	w8, [x27]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	x27, [x21, #16]
LBB0_2:
	ldr	x19, [x21, #24]
	ldrb	w8, [x19]
	cbnz	w8, LBB0_4
; %bb.3:
	ldr	x19, [x21, #32]
LBB0_4:
	ldr	x20, [x21]
	mov	x0, x27
	bl	_strlen
	mov	x24, x0
	mov	x0, x19
	bl	_strlen
	mov	x19, x0
	cmn	w25, #1
	csel	w25, wzr, w25, eq
	ldr	w8, [x23]
	cmn	w22, #1
	b.ne	LBB0_6
; %bb.5:
Lloh0:
	adrp	x9, _USE_INTL_CURRENCY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _USE_INTL_CURRENCY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	mov	w9, #40
	mov	w10, #44
	csel	x9, x10, x9, eq
	ldr	w9, [x21, x9]
Lloh3:
	adrp	x10, _CHAR_MAX@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CHAR_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	mov	w11, #2
	cmp	w9, w10
	csel	w22, w11, w9, eq
LBB0_6:
Lloh6:
	adrp	x9, _NEED_GROUPING@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NEED_GROUPING@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x25
	mov	x1, x20
	bl	_get_groups
	add	w25, w25, w0
LBB0_8:
	add	w8, w22, w25
	add	w2, w8, #1
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #24
	mov	x3, x22
	fmov	d0, d8
	bl	_asprintf
	tbnz	w0, #31, LBB0_14
; %bb.9:
	mov	x26, x0
	mov	w8, w0
	madd	x8, x8, x19, x8
	add	x8, x8, x24
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	add	x1, x8, #1
	mov	w0, #1
	bl	_calloc
	mov	x21, x0
	cbz	x0, LBB0_33
; %bb.10:
	ldr	x8, [sp, #24]
	ldrb	w9, [x8]
	cmp	w9, #32
	str	w28, [sp, #4]                   ; 4-byte Folded Spill
	b.ne	LBB0_15
; %bb.11:
	mov	x25, #0
	add	x9, x8, #1
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x9, x25]
	add	x25, x25, #1
	cmp	w10, #32
	b.eq	LBB0_12
; %bb.13:
	sub	w26, w26, w25
	b	LBB0_16
LBB0_14:
	mov	x21, #0
	b	LBB0_34
LBB0_15:
	mov	w25, #0
LBB0_16:
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	add	x28, x21, x9
	mov	w10, w25
	cmp	w22, #1
	str	x10, [sp, #8]                   ; 8-byte Folded Spill
	b.lt	LBB0_18
; %bb.17:
	mov	w9, w22
	sub	x28, x28, x9
	add	x8, x8, w26, sxtw
	add	x8, x8, x10
	sub	x1, x8, x9
	mov	x0, x28
	mov	x2, x22
	bl	_memcpy
	sub	x28, x28, x24
	mov	x0, x28
	mov	x1, x27
	mov	x2, x24
	bl	_memcpy
	mvn	w8, w22
	add	w26, w26, w8
LBB0_18:
	ldr	w8, [x23]
Lloh11:
	adrp	x9, _NEED_GROUPING@GOTPAGE
Lloh12:
	ldr	x9, [x9, _NEED_GROUPING@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	and	w8, w9, w8
	cmp	w8, #0
	ccmp	x19, #0, #4, ne
	b.eq	LBB0_29
; %bb.19:
	ldrsb	w0, [x20]
	cmp	w0, #1
	b.lt	LBB0_29
; %bb.20:
Lloh14:
	adrp	x19, _CHAR_MAX@GOTPAGE
Lloh15:
	ldr	x19, [x19, _CHAR_MAX@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	w8, w0
	b.eq	LBB0_29
; %bb.21:
	cmp	w26, w0
	b.le	LBB0_35
; %bb.22:
	mov	x22, x20
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=1
	mov	x20, x22
	cmp	w26, w0
	b.le	LBB0_35
LBB0_24:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_27 Depth 2
	bl	_GRPCPY
	ldrsb	w0, [x22, #1]!
	ldr	w8, [x19]
	cmp	w8, w0
	b.eq	LBB0_35
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	cbnz	w0, LBB0_23
	b	LBB0_27
LBB0_26:                                ;   in Loop: Header=BB0_27 Depth=2
	bl	_GRPCPY
LBB0_27:                                ;   Parent Loop BB0_24 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsb	w0, [x20]
	cmp	w26, w0
	b.gt	LBB0_26
; %bb.28:                               ;   in Loop: Header=BB0_24 Depth=1
	mov	x22, x20
	b	LBB0_23
LBB0_29:
	sub	x28, x28, w26, sxtw
	ldr	x8, [sp, #24]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	add	x1, x8, x9
	mov	x0, x28
	mov	x2, x26
	bl	_memcpy
	sub	w8, w25, w24
	cmp	w22, #0
	csel	w25, w25, w8, ne
LBB0_30:
	cmp	w25, #1
	b.lt	LBB0_32
; %bb.31:
	sub	x28, x28, w25, uxtw
	mov	x0, x28
	ldr	w1, [sp, #4]                    ; 4-byte Folded Reload
	mov	x2, x25
	bl	_memset
LBB0_32:
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	add	x8, x8, x21
	sub	x8, x8, x28
	add	x2, x8, #2
	mov	x0, x21
	mov	x1, x28
	bl	_memmove
LBB0_33:
	ldr	x0, [sp, #24]
	bl	_free
LBB0_34:
	mov	x0, x21
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_35:
	cbz	w26, LBB0_30
; %bb.36:
	mov	x0, x26
	bl	_GRPCPY
	b	LBB0_30
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_USE_INTL_CURRENCY,4,2          ; @USE_INTL_CURRENCY
	.comm	_CHAR_MAX,4,2                   ; @CHAR_MAX
	.comm	_NEED_GROUPING,4,2              ; @NEED_GROUPING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%*.*f"

	.comm	_GRPSEP,4,2                     ; @GRPSEP
	.no_dead_strip	___format_grouped_double
.subsections_via_symbols
