	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_format_grouping                ## -- Begin function format_grouping
	.p2align	4, 0x90
_format_grouping:                       ## @format_grouping
	.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
	movq	%rdi, %r14
	movb	(%rdi), %al
	movq	_CHAR_MAX@GOTPCREL(%rip), %r13
	cmpb	(%r13), %al
	je	LBB0_10
## %bb.1:
	movb	$0, _format_grouping.rval(%rip)
	movb	(%r14), %al
	testb	%al, %al
	je	LBB0_2
## %bb.3:
	movq	%r14, %r15
	incq	%r15
	xorl	%r12d, %r12d
	leaq	_format_grouping.rval(%rip), %r14
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%r14,%r12), %rdi
	movl	$64, %ebx
	subq	%r12, %rbx
	movsbl	%al, %ecx
	movl	%ebx, %esi
	leaq	L_.str(%rip), %rdx
	callq	_snprintf
	testl	%eax, %eax
	js	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %eax
	cmpq	%rax, %rbx
	jbe	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	%rax, %r12
	movzbl	-1(%r15), %eax
	cmpb	(%r13), %al
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	movzbl	(%r15), %eax
	incq	%r15
	testb	%al, %al
	jne	LBB0_5
LBB0_8:
	testq	%r12, %r12
	je	LBB0_10
## %bb.9:
	leaq	_format_grouping.rval(%rip), %r14
	movb	$0, -1(%r12,%r14)
	jmp	LBB0_10
LBB0_2:
	leaq	_format_grouping.rval(%rip), %r14
LBB0_10:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_format_grouping.rval,64,4 ## @format_grouping.rval
	.comm	_CHAR_MAX,1,0                   ## @CHAR_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%u;"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_format_grouping                ; -- Begin function format_grouping
	.p2align	2
_format_grouping:                       ; @format_grouping
	.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
	ldrb	w8, [x0]
Lloh0:
	adrp	x22, _CHAR_MAX@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CHAR_MAX@GOTPAGEOFF]
	ldrb	w9, [x22]
	cmp	w8, w9
	b.eq	LBB0_10
; %bb.1:
Lloh2:
	adrp	x23, _format_grouping.rval@PAGE
Lloh3:
	add	x23, x23, _format_grouping.rval@PAGEOFF
	strb	wzr, [x23]
	ldrb	w8, [x0]
	cbz	w8, LBB0_9
; %bb.2:
	mov	x21, #0
	add	x24, x0, #1
	mov	w25, #64
Lloh4:
	adrp	x19, l_.str@PAGE
Lloh5:
	add	x19, x19, l_.str@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x23, x21
	sub	x20, x25, x21
	sxtb	w3, w8
	mov	x1, x20
	mov	x2, x19
	bl	_snprintf
	tbnz	w0, #31, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, w0
	cmp	x20, x8
	b.ls	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, x8
	ldurb	w8, [x24, #-1]
	ldrb	w9, [x22]
	cmp	w8, w9
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x24], #1
	cbnz	w8, LBB0_3
LBB0_7:
Lloh6:
	adrp	x0, _format_grouping.rval@PAGE
Lloh7:
	add	x0, x0, _format_grouping.rval@PAGEOFF
	cbz	x21, LBB0_10
; %bb.8:
	add	x8, x21, x0
	sturb	wzr, [x8, #-1]
	b	LBB0_10
LBB0_9:
	mov	x0, x23
LBB0_10:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_format_grouping.rval,64,0 ; @format_grouping.rval
	.comm	_CHAR_MAX,1,0                   ; @CHAR_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%u;"

.subsections_via_symbols
