	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unit_conv
_unit_conv:                             ## @unit_conv
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %ebx
	movq	%rdi, %r14
	movl	%edx, %eax
	xorl	%edx, %edx
	divl	%ecx
	testl	%edx, %edx
	je	LBB0_6
## %bb.1:
	movl	%edx, %r8d
	imull	$-858993459, %edx, %ecx         ## imm = 0xCCCCCCCD
	rorl	%ecx
	cmpl	$429496729, %ecx                ## imm = 0x19999999
	ja	LBB0_4
## %bb.2:
	movl	$3435973837, %ecx               ## imm = 0xCCCCCCCD
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r8d, %r8d
	imulq	%rcx, %r8
	shrq	$35, %r8
	imull	$-858993459, %r8d, %edx         ## imm = 0xCCCCCCCD
	rorl	%edx
	cmpl	$429496730, %edx                ## imm = 0x1999999A
	jb	LBB0_3
LBB0_4:
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	%eax, %ecx
                                        ## kill: def $r8d killed $r8d killed $r8
	xorl	%eax, %eax
	callq	_snprintf
	jmp	LBB0_5
LBB0_6:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_snprintf
LBB0_5:
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%u"

L_.str.1:                               ## @.str.1
	.asciz	"%u.%u"

	.no_dead_strip	_unit_conv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unit_conv
_unit_conv:                             ; @unit_conv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x8, x3
	mov	x19, x0
	udiv	w3, w2, w3
	msub	w8, w3, w8, w2
	cbz	w8, LBB0_5
; %bb.1:
	mov	w9, #52429
	movk	w9, #52428, lsl #16
	mul	w10, w8, w9
	ror	w10, w10, #1
	mov	w11, #39321
	movk	w11, #6553, lsl #16
	cmp	w10, w11
	b.hi	LBB0_4
; %bb.2:
	mov	w10, #39322
	movk	w10, #6553, lsl #16
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	umull	x8, w8, w9
	lsr	x8, x8, #35
	mul	w11, w8, w9
	ror	w11, w11, #1
	cmp	w11, w10
	b.lo	LBB0_3
LBB0_4:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	str	x8, [sp]
Lloh0:
	adrp	x2, l_.str.1@PAGE
Lloh1:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_snprintf
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%u"

l_.str.1:                               ; @.str.1
	.asciz	"%u.%u"

	.no_dead_strip	_unit_conv
.subsections_via_symbols
