	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function print_frac
LCPI0_0:
	.long	1127219200                      ## 0x43300000
	.long	1160773632                      ## 0x45300000
	.long	0                               ## 0x0
	.long	0                               ## 0x0
LCPI0_1:
	.quad	0x4330000000000000              ## double 4503599627370496
	.quad	0x4530000000000000              ## double 1.9342813113834067E+25
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_2:
	.quad	0x408f400000000000              ## double 1000
LCPI0_3:
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_print_frac:                            ## @print_frac
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.3:
	movq	%rsi, %xmm0
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [1127219200,1160773632,0,0]
	punpckldq	%xmm1, %xmm0            ## xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
	movapd	LCPI0_1(%rip), %xmm2            ## xmm2 = [4.503599627370496E+15,1.9342813113834067E+25]
	subpd	%xmm2, %xmm0
	movapd	%xmm0, %xmm3
	unpckhpd	%xmm0, %xmm3                    ## xmm3 = xmm3[1],xmm0[1]
	addsd	%xmm0, %xmm3
	mulsd	LCPI0_2(%rip), %xmm3
	movq	%rdx, %xmm0
	punpckldq	%xmm1, %xmm0            ## xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
	subpd	%xmm2, %xmm0
	movapd	%xmm0, %xmm1
	unpckhpd	%xmm0, %xmm1                    ## xmm1 = xmm1[1],xmm0[1]
	addsd	%xmm0, %xmm1
	divsd	%xmm1, %xmm3
	addsd	LCPI0_3(%rip), %xmm3
	cvttsd2si	%xmm3, %ebx
	cmpl	$999, %ebx                      ## imm = 0x3E7
	jg	LBB0_5
## %bb.4:
	testl	%edi, %edi
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rdi
	cmoveq	%rax, %rdi
	movl	%ebx, %esi
	jmp	LBB0_29
LBB0_2:
	testl	%edi, %edi
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rdi
	cmoveq	%rax, %rdi
LBB0_17:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_printf                         ## TAILCALL
LBB0_5:
	testl	%edi, %edi
	movl	$32, %eax
	movl	$47, %edi
	cmovel	%eax, %edi
	callq	_putchar
	cmpl	$1000000, %ebx                  ## imm = 0xF4240
	jb	LBB0_7
## %bb.6:
	addl	$500, %ebx                      ## imm = 0x1F4
	imulq	$274877907, %rbx, %rax          ## imm = 0x10624DD3
	shrq	$38, %rax
	imull	$1000, %eax, %ebx               ## imm = 0x3E8
	jmp	LBB0_11
LBB0_7:
	cmpl	$100000, %ebx                   ## imm = 0x186A0
	jb	LBB0_9
## %bb.8:
	addl	$50, %ebx
	imulq	$1374389535, %rbx, %rax         ## imm = 0x51EB851F
	shrq	$37, %rax
	imull	$100, %eax, %ebx
	jmp	LBB0_11
LBB0_9:
	cmpl	$10000, %ebx                    ## imm = 0x2710
	jb	LBB0_11
## %bb.10:
	addl	$5, %ebx
	movl	$3435973837, %eax               ## imm = 0xCCCCCCCD
	imulq	%rbx, %rax
	shrq	$35, %rax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %ebx
LBB0_11:
	cmpl	$99999, %ebx                    ## imm = 0x1869F
	jg	LBB0_14
## %bb.12:
	cmpl	$1000, %ebx                     ## imm = 0x3E8
	je	LBB0_16
## %bb.13:
	movl	$9990, %eax                     ## imm = 0x2706
	cmpl	$10000, %ebx                    ## imm = 0x2710
	je	LBB0_21
	jmp	LBB0_19
LBB0_14:
	cmpl	$100000, %ebx                   ## imm = 0x186A0
	je	LBB0_15
## %bb.18:
	movl	$999000, %eax                   ## imm = 0xF3E58
	cmpl	$1000000, %ebx                  ## imm = 0xF4240
	jne	LBB0_19
LBB0_27:
	movl	%eax, %eax
	imulq	$274877907, %rax, %rsi          ## imm = 0x10624DD3
	shrq	$38, %rsi
	leaq	L_.str.6(%rip), %rdi
LBB0_28:
                                        ## kill: def $esi killed $esi killed $rsi
LBB0_29:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_printf                         ## TAILCALL
LBB0_16:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_17
LBB0_15:
	movl	$99900, %ebx                    ## imm = 0x1863C
LBB0_24:
	movl	%ebx, %eax
	imulq	$274877907, %rax, %rsi          ## imm = 0x10624DD3
	shrq	$38, %rsi
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	shrq	$37, %rax
	movzwl	%ax, %ecx
	imull	$52429, %ecx, %ecx              ## imm = 0xCCCD
	shrl	$18, %ecx
	andl	$-2, %ecx
	leal	(%rcx,%rcx,4), %ecx
	subl	%ecx, %eax
	movzwl	%ax, %edx
	leaq	L_.str.5(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	jmp	LBB0_22
LBB0_19:
	cmpl	$9999, %ebx                     ## imm = 0x270F
	ja	LBB0_23
## %bb.20:
	movl	%ebx, %eax
LBB0_21:
	movzwl	%ax, %eax
	imull	$52429, %eax, %ecx              ## imm = 0xCCCD
	shrl	$3, %eax
	imull	$8389, %eax, %esi               ## imm = 0x20C5
	shrl	$20, %esi
	movl	%ecx, %eax
	shrl	$19, %eax
	shrl	$21, %ecx
	imull	$5243, %ecx, %ecx               ## imm = 0x147B
	shrl	$17, %ecx
	imull	$100, %ecx, %ecx
	subl	%ecx, %eax
	movzwl	%ax, %edx
	leaq	L_.str.5(%rip), %rdi
LBB0_22:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_printf                         ## TAILCALL
LBB0_23:
	cmpl	$99999, %ebx                    ## imm = 0x1869F
	jbe	LBB0_24
## %bb.25:
	cmpl	$999999, %ebx                   ## imm = 0xF423F
	ja	LBB0_30
## %bb.26:
	movl	%ebx, %eax
	jmp	LBB0_27
LBB0_30:
	movl	%ebx, %eax
	imulq	$274877907, %rax, %rsi          ## imm = 0x10624DD3
	shrq	$38, %rsi
	leaq	L_.str.7(%rip), %rdi
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/-   "

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

L_.str.2:                               ## @.str.2
	.asciz	"/.%-3d"

L_.str.3:                               ## @.str.3
	.asciz	" .%03d"

L_.str.4:                               ## @.str.4
	.asciz	".999"

L_.str.5:                               ## @.str.5
	.asciz	"%d.%d"

L_.str.6:                               ## @.str.6
	.asciz	"%d."

L_.str.7:                               ## @.str.7
	.asciz	"%d"

	.no_dead_strip	_print_frac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function print_frac
_print_frac:                            ; @print_frac
	.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
	cbz	x1, LBB0_4
; %bb.1:
	cbz	x2, LBB0_4
; %bb.2:
	ucvtf	d0, x1
	mov	x8, #70368744177664
	movk	x8, #16527, lsl #48
	fmov	d1, x8
	fmul	d0, d0, d1
	ucvtf	d1, x2
	fdiv	d0, d0, d1
	fmov	d1, #0.50000000
	fadd	d0, d0, d1
	fcvtzs	w21, d0
	cmp	w21, #999
	b.gt	LBB0_6
; %bb.3:
Lloh0:
	adrp	x8, l_.str.2@PAGE
Lloh1:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh2:
	adrp	x9, l_.str.3@PAGE
Lloh3:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	w0, #0
	csel	x0, x9, x8, eq
	str	x21, [sp]
	b	LBB0_19
LBB0_4:
Lloh4:
	adrp	x8, l_.str@PAGE
Lloh5:
	add	x8, x8, l_.str@PAGEOFF
Lloh6:
	adrp	x9, l_.str.1@PAGE
Lloh7:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	w0, #0
	csel	x0, x9, x8, eq
LBB0_5:
	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	_printf
LBB0_6:
	mov	w19, #15960
	movk	w19, #15, lsl #16
	mov	w20, #34364
	movk	w20, #1, lsl #16
	mov	w8, #47
	mov	w9, #32
	cmp	w0, #0
	csel	w0, w9, w8, eq
	bl	_putchar
	add	w8, w19, #999
	add	w9, w20, #99
	lsr	w10, w21, #4
	add	w11, w21, #5
	mov	w12, #52429
	movk	w12, #52428, lsl #16
	umull	x11, w11, w12
	lsr	x11, x11, #35
	add	w11, w11, w11, lsl #2
	lsl	w11, w11, #1
	cmp	w10, #625
	csel	w10, w21, w11, lo
	add	w11, w21, #50
	mov	w12, #34079
	movk	w12, #20971, lsl #16
	umull	x11, w11, w12
	lsr	x11, x11, #37
	mov	w12, #100
	mul	w11, w11, w12
	cmp	w21, w9
	csel	w9, w10, w11, ls
	add	w10, w21, #500
	mov	w11, #19923
	movk	w11, #4194, lsl #16
	umull	x10, w10, w11
	lsr	x10, x10, #38
	mov	w11, #1000
	mul	w10, w10, w11
	cmp	w21, w8
	csel	w8, w9, w10, ls
	mov	w9, #34463
	movk	w9, #1, lsl #16
	cmp	w8, w9
	b.gt	LBB0_10
; %bb.7:
	cmp	w8, #1000
	b.eq	LBB0_13
; %bb.8:
	mov	w9, #10000
	cmp	w8, w9
	b.ne	LBB0_16
; %bb.9:
	mov	w8, #9990
	b	LBB0_17
LBB0_10:
	mov	w9, #34464
	movk	w9, #1, lsl #16
	cmp	w8, w9
	b.eq	LBB0_14
; %bb.11:
	mov	w9, #16960
	movk	w9, #15, lsl #16
	cmp	w8, w9
	b.ne	LBB0_16
LBB0_12:
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	umull	x8, w19, w8
	lsr	x8, x8, #38
	str	x8, [sp]
Lloh8:
	adrp	x0, l_.str.6@PAGE
Lloh9:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_19
LBB0_13:
Lloh10:
	adrp	x0, l_.str.4@PAGE
Lloh11:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_5
LBB0_14:
	mov	w8, #34364
	movk	w8, #1, lsl #16
LBB0_15:
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	umull	x9, w8, w9
	lsr	x9, x9, #38
	mov	w10, #34079
	movk	w10, #20971, lsl #16
	umull	x8, w8, w10
	lsr	x10, x8, #37
	ubfx	x8, x8, #37, #16
	mov	w11, #52429
	mul	w8, w8, w11
	lsr	w8, w8, #19
	mov	w11, #10
	msub	w8, w8, w11, w10
	b	LBB0_18
LBB0_16:
	lsr	w9, w8, #4
	cmp	w9, #624
	b.hi	LBB0_20
LBB0_17:
	ubfx	w9, w8, #3, #13
	mov	w10, #8389
	mul	w9, w9, w10
	lsr	w9, w9, #20
	and	w8, w8, #0xffff
	mov	w10, #52429
	mul	w8, w8, w10
	lsr	w10, w8, #19
	lsr	w8, w8, #21
	mov	w11, #5243
	mul	w8, w8, w11
	lsr	w8, w8, #17
	mov	w11, #100
	msub	w8, w8, w11, w10
LBB0_18:
	and	x8, x8, #0xffff
	stp	x9, x8, [sp]
Lloh12:
	adrp	x0, l_.str.5@PAGE
Lloh13:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_19:
	bl	_printf
	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_20:
	add	w9, w20, #100
	cmp	w8, w9
	b.lo	LBB0_15
; %bb.21:
	add	w9, w19, #1000
	cmp	w8, w9
	b.hs	LBB0_23
; %bb.22:
	mov	x19, x8
	b	LBB0_12
LBB0_23:
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	umull	x8, w8, w9
	lsr	x8, x8, #38
	str	x8, [sp]
Lloh14:
	adrp	x0, l_.str.7@PAGE
Lloh15:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_19
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/-   "

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

l_.str.2:                               ; @.str.2
	.asciz	"/.%-3d"

l_.str.3:                               ; @.str.3
	.asciz	" .%03d"

l_.str.4:                               ; @.str.4
	.asciz	".999"

l_.str.5:                               ; @.str.5
	.asciz	"%d.%d"

l_.str.6:                               ; @.str.6
	.asciz	"%d."

l_.str.7:                               ; @.str.7
	.asciz	"%d"

	.no_dead_strip	_print_frac
.subsections_via_symbols
