	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function format_rate
_format_rate:                           ## @format_rate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	imull	$100, %edx, %ecx
	cmpl	$100000, %ecx                   ## imm = 0x186A0
	jl	LBB0_6
## %bb.1:
	movq	_unit@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$84, (%r8,%rax)
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	512(%rcx), %edx
	shrl	$10, %edx
	incq	%rax
	cmpl	$102399487, %ecx                ## imm = 0x61A7DFF
	movl	%edx, %ecx
	ja	LBB0_2
	jmp	LBB0_5
LBB0_3:
	movl	%ecx, %edx
LBB0_5:
	movl	%edx, %ecx
	testl	%eax, %eax
	jne	LBB0_7
LBB0_6:
	leal	512(%rcx), %eax
	addl	$1535, %ecx                     ## imm = 0x5FF
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$10, %ecx
	movl	$1, %eax
	movl	%ecx, %edx
LBB0_7:
	addl	$5, %edx
	movslq	%edx, %r8
	imulq	$1374389535, %r8, %rcx          ## imm = 0x51EB851F
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$37, %rcx
	addl	%edx, %ecx
	movslq	%ecx, %rcx
	imulq	$1717986919, %r8, %rdx          ## imm = 0x66666667
	movq	%rdx, %r8
	shrq	$63, %r8
	sarq	$34, %rdx
	addl	%r8d, %edx
	movslq	%edx, %r8
	imulq	$1717986919, %r8, %rdx          ## imm = 0x66666667
	movq	%rdx, %r9
	shrq	$63, %r9
	sarq	$34, %rdx
	addl	%r9d, %edx
	addl	%edx, %edx
	leal	(%rdx,%rdx,4), %edx
	subl	%edx, %r8d
	movslq	%r8d, %r8
	movq	_unit@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, %eax
	movsbl	(%rdx,%rax), %r9d
	leaq	L_.str.1(%rip), %rax
	movq	%rax, (%rsp)
	leaq	L_.str(%rip), %rdx
	callq	_snprintf
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_unit,8,3                       ## @unit
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%3lld.%1lld%c%s"

L_.str.1:                               ## @.str.1
	.asciz	"B"

	.no_dead_strip	_format_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function format_rate
_format_rate:                           ; @format_rate
	.cfi_startproc
; %bb.0:
	mov	w8, #100
	mul	w10, w2, w8
	mov	w9, #34464
	movk	w9, #1, lsl #16
Lloh0:
	adrp	x8, _unit@GOTPAGE
Lloh1:
	ldr	x8, [x8, _unit@GOTPAGEOFF]
	cmp	w10, w9
	b.lt	LBB0_5
; %bb.1:
	mov	x9, #0
	ldr	x12, [x8]
	mov	w13, #32255
	movk	w13, #1562, lsl #16
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x12, x9]
	cmp	w11, #84
	b.eq	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w11, w10, #512
	lsr	w11, w11, #10
	add	x9, x9, #1
	cmp	w10, w13
	mov	x10, x11
	b.hi	LBB0_2
; %bb.4:
	mov	x10, x11
	cbnz	w9, LBB0_6
LBB0_5:
	add	w9, w10, #512
	add	w10, w10, #1535
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w11, w9, #10
	mov	w9, #1
LBB0_6:
	add	w10, w11, #5
	mov	w11, #34079
	movk	w11, #20971, lsl #16
	smull	x11, w10, w11
	lsr	x12, x11, #63
	asr	x11, x11, #37
	add	w11, w11, w12
	sxtw	x3, w11
	mov	w11, #26215
	movk	w11, #26214, lsl #16
	smull	x10, w10, w11
	lsr	x12, x10, #63
	asr	x10, x10, #34
	add	w10, w10, w12
	smull	x11, w10, w11
	lsr	x12, x11, #63
	asr	x11, x11, #34
	add	w11, w11, w12
	mov	w12, #10
	msub	w10, w11, w12, w10
	ldr	x8, [x8]
	ldrsb	w5, [x8, w9, uxtw]
	sxtw	x4, w10
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
Lloh4:
	adrp	x6, l_.str.1@PAGE
Lloh5:
	add	x6, x6, l_.str.1@PAGEOFF
	b	_snprintf
LBB0_7:
	mov	x11, x10
	mov	x10, x11
	cbnz	w9, LBB0_6
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_unit,8,3                       ; @unit
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%3lld.%1lld%c%s"

l_.str.1:                               ; @.str.1
	.asciz	"B"

	.no_dead_strip	_format_rate
.subsections_via_symbols
