	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function format_numeric_locale
_format_numeric_locale:                 ## @format_numeric_locale
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	leaq	L_.str(%rip), %rsi
	callq	_strspn
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_strlen
	cmpl	%eax, %ebx
	jne	LBB0_16
## %bb.1:
	movq	%r13, %rdi
	callq	_strlen
	movl	%eax, %r15d
	movq	%r13, %rdi
	callq	_additional_numeric_locale_len
	movl	%eax, %r12d
	leal	(%r12,%r15), %edi
	incl	%edi
	callq	_pg_malloc
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_integer_digits
	movl	%eax, %esi
	movq	_groupdigits@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%esi, %eax
	cltd
	idivl	%ecx
	testl	%edx, %edx
	cmovel	%ecx, %edx
	movb	(%r13), %al
	cmpb	$45, %al
	je	LBB0_3
## %bb.2:
	xorl	%ebx, %ebx
	cmpb	$43, %al
	jne	LBB0_4
LBB0_3:
	movb	%al, (%r14)
	incq	%r13
	movl	$1, %ebx
LBB0_4:
	testl	%esi, %esi
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	jle	LBB0_5
## %bb.6:
	movb	(%r13), %al
	movl	%ebx, %ecx
	incl	%ebx
	movb	%al, (%r14,%rcx)
	cmpl	$1, %esi
	jne	LBB0_8
## %bb.7:
	movl	$1, %r15d
	jmp	LBB0_13
LBB0_16:
	movq	%r13, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pg_strdup                      ## TAILCALL
LBB0_5:
	xorl	%r15d, %r15d
	jmp	LBB0_13
LBB0_8:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r15d
	movl	$1, %r12d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movzbl	(%r13,%r12), %eax
	movslq	%ebx, %rcx
	incl	%ebx
	movb	%al, (%r14,%rcx)
	incq	%r12
	cmpq	%r12, %r15
	je	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	decl	%edx
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movslq	%ebx, %rbx
	leaq	(%r14,%rbx), %rdi
	movq	_thousands_sep@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_strcpy
	movq	_thousands_sep@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strlen
	addl	%eax, %ebx
	movq	_groupdigits@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jmp	LBB0_11
LBB0_12:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	-44(%rbp), %r15d                ## 4-byte Reload
LBB0_13:
	addl	-64(%rbp), %r12d                ## 4-byte Folded Reload
	movl	%r15d, %eax
	cmpb	$46, (%r13,%rax)
	jne	LBB0_15
## %bb.14:
	movslq	%ebx, %rbx
	leaq	(%r14,%rbx), %rdi
	movq	_decimal_point@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_strcpy
	movq	_decimal_point@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strlen
	addl	%eax, %ebx
	incl	%r15d
LBB0_15:
	movslq	%ebx, %rax
	movq	%r14, %rdi
	addq	%rax, %rdi
	movslq	%r15d, %rax
	addq	%rax, %r13
	movq	%r13, %rsi
	callq	_strcpy
	movq	%r14, %rdi
	callq	_strlen
	xorl	%edi, %edi
	cmpl	%r12d, %eax
	setle	%dil
	callq	_Assert
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0123456789+-.eE"

	.comm	_groupdigits,4,2                ## @groupdigits
	.comm	_thousands_sep,8,3              ## @thousands_sep
	.comm	_decimal_point,8,3              ## @decimal_point
	.no_dead_strip	_format_numeric_locale
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function format_numeric_locale
_format_numeric_locale:                 ; @format_numeric_locale
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strspn
	mov	x20, x0
	mov	x0, x19
	bl	_strlen
	cmp	w20, w0
	b.ne	LBB0_6
; %bb.1:
	mov	x0, x19
	bl	_strlen
	mov	x20, x0
	mov	x0, x19
	bl	_additional_numeric_locale_len
	add	w22, w0, w20
	add	w0, w22, #1
	bl	_pg_malloc
	mov	x20, x0
	mov	x0, x19
	bl	_integer_digits
	mov	x21, x0
Lloh2:
	adrp	x23, _groupdigits@GOTPAGE
Lloh3:
	ldr	x23, [x23, _groupdigits@GOTPAGEOFF]
	ldr	w8, [x23]
	sdiv	w9, w0, w8
	msub	w9, w9, w8, w0
	cmp	w9, #0
	csel	w8, w8, w9, eq
	ldrb	w9, [x19]
	cmp	w9, #45
	b.eq	LBB0_3
; %bb.2:
	cmp	w9, #43
	b.ne	LBB0_7
LBB0_3:
	strb	w9, [x20]
	add	x19, x19, #1
	mov	w25, #1
	cmp	w21, #1
	b.lt	LBB0_8
LBB0_4:
	ldrb	w9, [x19]
	add	w24, w25, #1
	strb	w9, [x20, w25, uxtw]
	cmp	w21, #1
	b.ne	LBB0_12
LBB0_5:
	mov	x25, x24
	b	LBB0_9
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_pg_strdup
LBB0_7:
	mov	w25, #0
	cmp	w21, #1
	b.ge	LBB0_4
LBB0_8:
	mov	w21, #0
LBB0_9:
	ldrb	w8, [x19, w21, uxtw]
	cmp	w8, #46
	b.ne	LBB0_11
; %bb.10:
	add	x0, x20, w25, sxtw
Lloh4:
	adrp	x23, _decimal_point@GOTPAGE
Lloh5:
	ldr	x23, [x23, _decimal_point@GOTPAGEOFF]
	ldr	x1, [x23]
	bl	_strcpy
	ldr	x0, [x23]
	bl	_strlen
	add	w25, w0, w25
	add	w21, w21, #1
LBB0_11:
	add	x0, x20, w25, sxtw
	add	x1, x19, w21, sxtw
	bl	_strcpy
	mov	x0, x20
	bl	_strlen
	cmp	w0, w22
	cset	w0, le
	bl	_Assert
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	w9, w21
	add	x25, x19, #1
	sub	x26, x9, #1
Lloh6:
	adrp	x27, _thousands_sep@GOTPAGE
Lloh7:
	ldr	x27, [x27, _thousands_sep@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	ldrb	w9, [x25], #1
	strb	w9, [x20, w24, sxtw]
	add	w24, w24, #1
	subs	x26, x26, #1
	b.eq	LBB0_5
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	subs	w8, w8, #1
	b.ne	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x0, x20, w24, sxtw
	ldr	x1, [x27]
	bl	_strcpy
	ldr	x0, [x27]
	bl	_strlen
	add	w24, w0, w24
	ldr	w8, [x23]
	b	LBB0_13
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0123456789+-.eE"

	.comm	_groupdigits,4,2                ; @groupdigits
	.comm	_thousands_sep,8,3              ; @thousands_sep
	.comm	_decimal_point,8,3              ; @decimal_point
	.no_dead_strip	_format_numeric_locale
.subsections_via_symbols
