	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function format_decimal
_format_decimal:                        ## @format_decimal
	.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
	movl	%edx, %r12d
                                        ## kill: def $edi killed $edi def $rdi
	movl	%edx, %edx
	testl	%edi, %edi
	js	LBB0_8
## %bb.1:
	movslq	%r12d, %r15
	addq	%rsi, %r15
	leal	-1(%r12), %r13d
	notq	%r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edi, %r8d
	leal	(%rdx,%rbx), %r14d
	movslq	%edi, %rax
	imulq	$1717986919, %rax, %rdi         ## imm = 0x66666667
	movq	%rdi, %rcx
	shrq	$63, %rcx
	sarq	$34, %rdi
	addl	%ecx, %edi
	leal	(%rdi,%rdi), %ecx
	leal	(%rcx,%rcx,4), %ecx
	subl	%ecx, %eax
	addb	$48, %al
	movb	%al, -1(%r15,%rbx)
	decl	%r12d
	decq	%rbx
	incq	%r13
	cmpl	$2, %r14d
	jl	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$9, %r8d
	jg	LBB0_2
LBB0_4:
	addl	$9, %r8d
	leaq	(%r15,%rbx), %rax
	cmpl	$19, %r8d
	jae	LBB0_10
## %bb.5:
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%ebx, %edx
	negl	%edx
	movq	%rsi, %rdi
	movq	%rax, %rsi
	callq	_memmove
	cmpl	$2, %r14d
	jl	LBB0_7
## %bb.6:
	addq	%r13, %r15
	testl	%r12d, %r12d
	movl	$1, %eax
	cmovlel	%r12d, %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	subl	%eax, %ecx
	addl	%ecx, %ebx
	incq	%rbx
	movq	%r15, %rdi
	movl	$32, %esi
	movq	%rbx, %rdx
	callq	_memset
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_8:
	movl	$-1, %ebx
	testl	%r12d, %r12d
	jle	LBB0_13
## %bb.9:
	movq	%rsi, %rdi
	movl	$48, %esi
	jmp	LBB0_12
LBB0_10:
	movl	$-1, %ebx
	testl	%edx, %edx
	jle	LBB0_13
## %bb.11:
	movq	%rax, %rdi
	movl	$57, %esi
LBB0_12:
	callq	_memset
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_format_decimal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function format_decimal
_format_decimal:                        ; @format_decimal
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	w19, w2
	tbnz	w0, #31, LBB0_7
; %bb.1:
	mov	x21, #0
	add	x22, x1, w20, sxtw
	sub	w8, w20, #1
	mvn	x23, x8
	mov	w8, #26215
	movk	w8, #26214, lsl #16
	mov	w9, #10
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x10, x0
	add	w24, w19, w21
	smull	x11, w0, w8
	lsr	x12, x11, #63
	asr	x11, x11, #34
	add	w0, w11, w12
	msub	w11, w0, w9, w10
	add	w11, w11, #48
	add	x12, x22, x21
	sturb	w11, [x12, #-1]
	sub	w20, w20, #1
	sub	x21, x21, #1
	add	x23, x23, #1
	cmp	w24, #2
	b.lt	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w10, #9
	b.gt	LBB0_2
LBB0_4:
	add	w9, w10, #9
	add	x8, x22, x21
	cmp	w9, #19
	b.hs	LBB0_9
; %bb.5:
	neg	w2, w21
	mov	x0, x1
	mov	x1, x8
	bl	_memmove
	mov	w0, #0
	cmp	w24, #2
	b.lt	LBB0_13
; %bb.6:
	add	x0, x22, x23
	cmp	w20, #1
	csinc	w8, w20, wzr, lt
	sub	w8, w19, w8
	add	w8, w8, w21
	add	x2, x8, #1
	mov	w1, #32
	bl	_memset
	mov	w0, #0
	b	LBB0_13
LBB0_7:
	cmp	w20, #1
	b.lt	LBB0_12
; %bb.8:
	mov	x0, x1
	mov	w1, #48
	b	LBB0_11
LBB0_9:
	cmp	w19, #1
	b.lt	LBB0_12
; %bb.10:
	mov	x0, x8
	mov	w1, #57
LBB0_11:
	mov	x2, x19
	bl	_memset
LBB0_12:
	mov	w0, #-1
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_format_decimal
.subsections_via_symbols
