	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FormatInteger                  ## -- Begin function FormatInteger
	.p2align	4, 0x90
_FormatInteger:                         ## @FormatInteger
	.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	$264, %rsp                      ## imm = 0x108
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -272(%rbp)                ## 8-byte Spill
	movl	%esi, -260(%rbp)                ## 4-byte Spill
	movq	%rdi, %rdx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	l_.str(%rip), %rsi
	leaq	-144(%rbp), %rdi
	callq	_swprintf
	movq	_LOCALE_USER_DEFAULT@GOTPCREL(%rip), %r15
	movl	(%r15), %r13d
	movq	_LOCALE_SDECIMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	-176(%rbp), %r12
	movq	%r12, %rdi
	callq	__countof
	movl	%r13d, %edi
	movl	%ebx, %esi
	movq	%r12, %rdx
	movl	%eax, %ecx
	callq	_GetLocaleInfoW
	movl	(%r15), %r13d
	movq	_LOCALE_STHOUSAND@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	-208(%rbp), %r14
	movq	%r14, %rdi
	callq	__countof
	movl	%r13d, %edi
	movl	%ebx, %esi
	movq	%r14, %rdx
	movl	%eax, %ecx
	callq	_GetLocaleInfoW
	leaq	-296(%rbp), %rdi
	movl	$24, %esi
	callq	_ZeroMemory
	movq	%r12, -296(%rbp)
	movq	%r14, -288(%rbp)
	movl	(%r15), %r14d
	movq	_LOCALE_SGROUPING@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	-256(%rbp), %r12
	movq	%r12, %rdi
	callq	__countof
	movl	%r14d, %edi
	movl	%ebx, %esi
	movq	%r12, %rdx
	movl	%eax, %ecx
	callq	_GetLocaleInfoW
	movl	-280(%rbp), %ecx
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	xorl	%edx, %edx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	leal	(%rcx,%rcx,4), %ecx
	leal	(%rsi,%rcx,2), %ecx
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	-256(%rbp,%rdx,4), %edi
	leal	-48(%rdi), %esi
	cmpl	$9, %esi
	jbe	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$59, %edi
	je	LBB0_5
LBB0_6:
	imull	$-858993459, %ecx, %eax         ## imm = 0xCCCCCCCD
	addl	$429496728, %eax                ## imm = 0x19999998
	rorl	%eax
	cmpl	$429496728, %eax                ## imm = 0x19999998
	jbe	LBB0_8
## %bb.7:
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,4), %eax
	jmp	LBB0_9
LBB0_8:
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$34, %rax
	addl	%ecx, %eax
LBB0_9:
	movl	%eax, -280(%rbp)
	movl	(%r15), %edi
	xorl	%ebx, %ebx
	leaq	-144(%rbp), %rdx
	leaq	-296(%rbp), %rcx
	xorl	%esi, %esi
	movl	-260(%rbp), %r8d                ## 4-byte Reload
	movq	-272(%rbp), %r9                 ## 8-byte Reload
	callq	_GetNumberFormatW
	subq	$1, %rax
	cmovaeq	%rax, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movq	%rbx, %rax
	addq	$264, %rsp                      ## imm = 0x108
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @.str
l_.str:
	.long	37                              ## 0x25
	.long	73                              ## 0x49
	.long	54                              ## 0x36
	.long	52                              ## 0x34
	.long	117                             ## 0x75
	.long	0                               ## 0x0

	.comm	_LOCALE_USER_DEFAULT,4,2        ## @LOCALE_USER_DEFAULT
	.comm	_LOCALE_SDECIMAL,4,2            ## @LOCALE_SDECIMAL
	.comm	_LOCALE_STHOUSAND,4,2           ## @LOCALE_STHOUSAND
	.comm	_LOCALE_SGROUPING,4,2           ## @LOCALE_SGROUPING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FormatInteger                  ; -- Begin function FormatInteger
	.p2align	2
_FormatInteger:                         ; @FormatInteger
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #320
	.cfi_def_cfa_offset 320
	stp	x26, x25, [sp, #240]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #256]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #272]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #288]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #304]            ; 16-byte Folded Spill
	add	x29, sp, #304
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x2, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #136
	bl	_swprintf
Lloh5:
	adrp	x23, _LOCALE_USER_DEFAULT@GOTPAGE
Lloh6:
	ldr	x23, [x23, _LOCALE_USER_DEFAULT@GOTPAGEOFF]
	ldr	w21, [x23]
Lloh7:
	adrp	x8, _LOCALE_SDECIMAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LOCALE_SDECIMAL@GOTPAGEOFF]
Lloh9:
	ldr	w22, [x8]
	add	x24, sp, #104
	add	x0, sp, #104
	bl	__countof
	mov	x3, x0
	add	x2, sp, #104
	mov	x0, x21
	mov	x1, x22
	bl	_GetLocaleInfoW
	ldr	w21, [x23]
Lloh10:
	adrp	x8, _LOCALE_STHOUSAND@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LOCALE_STHOUSAND@GOTPAGEOFF]
Lloh12:
	ldr	w22, [x8]
	add	x25, sp, #72
	add	x0, sp, #72
	bl	__countof
	mov	x3, x0
	add	x2, sp, #72
	mov	x0, x21
	mov	x1, x22
	bl	_GetLocaleInfoW
	mov	x0, sp
	mov	w1, #24
	bl	_ZeroMemory
	stp	x24, x25, [sp]
	ldr	w21, [x23]
Lloh13:
	adrp	x8, _LOCALE_SGROUPING@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LOCALE_SGROUPING@GOTPAGEOFF]
Lloh15:
	ldr	w22, [x8]
	add	x0, sp, #24
	bl	__countof
	mov	x3, x0
	add	x2, sp, #24
	mov	x0, x21
	mov	x1, x22
	bl	_GetLocaleInfoW
	ldr	w8, [sp, #16]
	cbz	x0, LBB0_6
; %bb.1:
	add	x9, sp, #24
	mov	w10, #10
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	madd	w8, w8, w10, w12
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #4
	subs	x0, x0, #1
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9]
	sub	w12, w11, #48
	cmp	w12, #9
	b.ls	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w11, #59
	b.eq	LBB0_3
LBB0_6:
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	smull	x9, w8, w9
	lsr	x10, x9, #63
	asr	x9, x9, #34
	add	w9, w9, w10
	mov	w10, #10
	msub	w10, w9, w10, w8
	add	w8, w8, w8, lsl #2
	lsl	w8, w8, #1
	cmp	w10, #0
	csel	w8, w9, w8, eq
	str	w8, [sp, #16]
	ldr	w0, [x23]
	add	x2, sp, #136
	mov	x3, sp
	mov	w1, #0
	mov	x4, x20
	mov	x5, x19
	bl	_GetNumberFormatW
	sub	x8, x0, #1
	cmp	x0, #0
	csel	x0, xzr, x8, eq
	ldur	x8, [x29, #-72]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #304]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #288]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #272]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #256]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #240]            ; 16-byte Folded Reload
	add	sp, sp, #320
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @.str
l_.str:
	.long	37                              ; 0x25
	.long	73                              ; 0x49
	.long	54                              ; 0x36
	.long	52                              ; 0x34
	.long	117                             ; 0x75
	.long	0                               ; 0x0

	.comm	_LOCALE_USER_DEFAULT,4,2        ; @LOCALE_USER_DEFAULT
	.comm	_LOCALE_SDECIMAL,4,2            ; @LOCALE_SDECIMAL
	.comm	_LOCALE_STHOUSAND,4,2           ; @LOCALE_STHOUSAND
	.comm	_LOCALE_SGROUPING,4,2           ; @LOCALE_SGROUPING
.subsections_via_symbols
