	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___fix_locale_grouping_str      ## -- Begin function __fix_locale_grouping_str
	.p2align	4, 0x90
___fix_locale_grouping_str:             ## @__fix_locale_grouping_str
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	%rdi, %r15
	movb	(%rdi), %al
	testb	%al, %al
	je	LBB0_7
## %bb.2:
	movq	_CHAR_MAX@GOTPCREL(%rip), %r14
	movq	%r15, %r13
	movq	%r15, %r12
	jmp	LBB0_3
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	movzbl	(%r14), %eax
	movb	%al, (%r12)
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movzbl	1(%r13), %eax
	incq	%r13
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$45, %al
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$59, %al
	je	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	testb	%al, %al
	jne	LBB0_6
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$49, 1(%r13)
	je	LBB0_9
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movzbl	%al, %edi
	callq	_isdigit
	testq	%rax, %rax
	je	LBB0_7
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movzbl	(%r13), %ebx
	addb	$-48, %bl
	movzbl	1(%r13), %edi
	callq	_isdigit
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	movzbl	%bl, %eax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %ebx
	addb	(%r13), %bl
	addb	$-48, %bl
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movb	%bl, (%r12)
	testb	%bl, %bl
	jne	LBB0_10
## %bb.15:
	cmpq	%r15, %r12
	jne	LBB0_17
LBB0_7:
	movq	_nogrouping@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
LBB0_17:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movb	$0, (%r12)
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_nogrouping,8,3                 ## @nogrouping
	.comm	_CHAR_MAX,4,2                   ## @CHAR_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___fix_locale_grouping_str      ; -- Begin function __fix_locale_grouping_str
	.p2align	2
___fix_locale_grouping_str:             ; @__fix_locale_grouping_str
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cbz	x0, LBB0_14
; %bb.1:
	mov	x19, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_14
; %bb.2:
Lloh0:
	adrp	x21, _CHAR_MAX@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CHAR_MAX@GOTPAGEOFF]
	mov	w22, #10
	mov	x23, x19
	mov	x20, x19
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	strb	w24, [x20]
	tst	w24, #0xff
	b.eq	LBB0_16
; %bb.4:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x20, x20, #1
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w8, [x23, #1]!
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	and	w9, w8, #0xff
	cmp	w9, #45
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w9, #59
	b.eq	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	cbnz	w9, LBB0_11
	b	LBB0_17
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x9, x23
	ldrb	w10, [x9, #1]!
	cmp	w10, #49
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x21]
	strb	w8, [x20], #1
	mov	x23, x9
	ldrb	w8, [x23, #1]!
	b	LBB0_6
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	and	w0, w8, #0xff
	bl	_isdigit
	cbz	x0, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w8, [x23]
	sub	w24, w8, #48
	mov	x25, x23
	ldrb	w0, [x25, #1]!
	bl	_isdigit
	cbz	x0, LBB0_3
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w8, [x25]
	madd	w8, w24, w22, w8
	sub	w24, w8, #48
	mov	x23, x25
	b	LBB0_3
LBB0_14:
Lloh2:
	adrp	x8, _nogrouping@GOTPAGE
Lloh3:
	ldr	x8, [x8, _nogrouping@GOTPAGEOFF]
Lloh4:
	ldr	x19, [x8]
LBB0_15:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_16:
Lloh5:
	adrp	x8, _nogrouping@GOTPAGE
Lloh6:
	ldr	x8, [x8, _nogrouping@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x20, x19
	csel	x19, x8, x19, eq
	b	LBB0_15
LBB0_17:
	strb	wzr, [x20]
	b	LBB0_15
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_nogrouping,8,3                 ; @nogrouping
	.comm	_CHAR_MAX,4,2                   ; @CHAR_MAX
.subsections_via_symbols
