	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function size2str
_size2str:                              ## @size2str
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	callq	_is_metric
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movslq	%r15d, %r15
	imulq	$1374389535, %r15, %rbx         ## imm = 0x51EB851F
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$37, %rbx
	addl	%eax, %ebx
	imull	$100, %ebx, %eax
	subl	%eax, %r15d
	je	LBB0_6
## %bb.2:
	xorl	%eax, %eax
	callq	_get_decimal_sep
	leaq	_size2str.hundredths_fmt(%rip), %rsi
	movl	%r14d, %edi
	movl	%ebx, %edx
	movl	%eax, %ecx
	movl	%r15d, %r8d
	jmp	LBB0_3
LBB0_4:
	movslq	%r15d, %rax
	imulq	$274877907, %rax, %rbx          ## imm = 0x10624DD3
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$38, %rbx
	addl	%eax, %ebx
	imull	$1000, %ebx, %eax               ## imm = 0x3E8
	subl	%eax, %r15d
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_get_decimal_sep
	leaq	_size2str.thousandths_fmt(%rip), %rsi
	movl	%r14d, %edi
	movl	%ebx, %edx
	movl	%eax, %ecx
	movl	%r15d, %r8d
LBB0_3:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wsprintfW                      ## TAILCALL
LBB0_6:
	leaq	_size2str.integer_fmt(%rip), %rsi
	movl	%r14d, %edi
	movl	%ebx, %edx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wsprintfW                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_size2str.integer_fmt:                  ## @size2str.integer_fmt
	.asciz	"%d"

_size2str.hundredths_fmt:               ## @size2str.hundredths_fmt
	.asciz	"%d%c%02d"

_size2str.thousandths_fmt:              ## @size2str.thousandths_fmt
	.asciz	"%d%c%03d"

	.no_dead_strip	_size2str
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function size2str
_size2str:                              ; @size2str
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	bl	_is_metric
	cbz	x0, LBB0_3
; %bb.1:
	mov	w8, #34079
	movk	w8, #20971, lsl #16
	smull	x8, w20, w8
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w21, w8, w9
	mov	w8, #100
	msub	w20, w21, w8, w20
	cbz	w20, LBB0_6
; %bb.2:
	bl	_get_decimal_sep
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x0, x20, [sp]
Lloh0:
	adrp	x1, _size2str.hundredths_fmt@PAGE
Lloh1:
	add	x1, x1, _size2str.hundredths_fmt@PAGEOFF
	b	LBB0_5
LBB0_3:
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	smull	x8, w20, w8
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w21, w8, w9
	mov	w8, #1000
	msub	w20, w21, w8, w20
	cbz	w20, LBB0_6
; %bb.4:
	bl	_get_decimal_sep
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x0, x20, [sp]
Lloh2:
	adrp	x1, _size2str.thousandths_fmt@PAGE
Lloh3:
	add	x1, x1, _size2str.thousandths_fmt@PAGEOFF
LBB0_5:
	mov	x0, x19
	mov	x2, x21
	bl	_wsprintfW
	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
	add	sp, sp, #64
	ret
LBB0_6:
Lloh4:
	adrp	x1, _size2str.integer_fmt@PAGE
Lloh5:
	add	x1, x1, _size2str.integer_fmt@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	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
	add	sp, sp, #64
	b	_wsprintfW
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_size2str.integer_fmt:                  ; @size2str.integer_fmt
	.asciz	"%d"

_size2str.hundredths_fmt:               ; @size2str.hundredths_fmt
	.asciz	"%d%c%02d"

_size2str.thousandths_fmt:              ; @size2str.thousandths_fmt
	.asciz	"%d%c%03d"

	.no_dead_strip	_size2str
.subsections_via_symbols
