	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function convert_to_base_unit
_convert_to_base_unit:                  ## @convert_to_base_unit
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_UNIT_LEN@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	incl	%eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movb	(%rbx), %al
	xorl	%r14d, %r14d
	testb	%al, %al
	je	LBB0_5
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	%al, %edi
	callq	_isspace
	testq	%rax, %rax
	jne	LBB0_22
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movslq	(%r13), %rax
	cmpq	%rax, %r14
	jge	LBB0_22
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movzbl	(%rbx,%r14), %eax
	leaq	1(%r14), %rcx
	movb	%al, (%r12,%r14)
	movzbl	1(%rbx,%r14), %eax
	movq	%rcx, %r14
	testb	%al, %al
	jne	LBB0_1
## %bb.4:
	addq	%rcx, %rbx
	movl	%ecx, %r14d
	jmp	LBB0_5
LBB0_22:
	addq	%r14, %rbx
LBB0_5:
	movl	%r14d, %eax
	movb	$0, (%r12,%rax)
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %edi
	callq	_isspace
	incq	%rbx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:
	xorl	%r13d, %r13d
	cmpb	$0, -1(%rbx)
	je	LBB0_8
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.21:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_GUC_UNIT_MEMORY@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	jne	LBB0_9
## %bb.10:
	movq	_time_unit_conversion_table@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	movq	_memory_unit_conversion_table@GOTPCREL(%rip), %rax
LBB0_11:
	movq	(%rax), %r14
	movq	16(%r14), %rsi
	cmpq	$0, (%rsi)
	je	LBB0_20
## %bb.12:
	movl	$1, %ebx
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	40(%r14), %rsi
	incq	%rbx
	addq	$24, %r14
	cmpq	$0, (%rsi)
	je	LBB0_20
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%r15d, (%r14)
	jne	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r12, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_19
## %bb.15:
	leal	-1(%rbx), %eax
	leaq	(%rax,%rax,2), %rax
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	mulsd	8(%rdx,%rax,8), %xmm0
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	movl	%ebx, %eax
	leaq	(%rax,%rax,2), %rax
	movq	16(%rdx,%rax,8), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_18
## %bb.16:
	cmpl	%r15d, (%rdx,%rax,8)
	jne	LBB0_18
## %bb.17:
	movsd	8(%rdx,%rax,8), %xmm0           ## xmm0 = mem[0],zero
	movsd	-56(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	divsd	%xmm0, %xmm1
	roundsd	$4, %xmm1, %xmm1
	mulsd	%xmm0, %xmm1
	movsd	%xmm1, -56(%rbp)                ## 8-byte Spill
LBB0_18:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	%xmm0, (%rax)
	movl	$1, %r13d
	jmp	LBB0_20
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_UNIT_LEN,4,2               ## @MAX_UNIT_LEN
	.comm	_GUC_UNIT_MEMORY,4,2            ## @GUC_UNIT_MEMORY
	.comm	_memory_unit_conversion_table,8,3 ## @memory_unit_conversion_table
	.comm	_time_unit_conversion_table,8,3 ## @time_unit_conversion_table
	.no_dead_strip	_convert_to_base_unit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function convert_to_base_unit
_convert_to_base_unit:                  ; @convert_to_base_unit
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-80]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset b8, -72
	.cfi_offset b9, -80
	sub	sp, sp, #16
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	fmov	d8, d0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x23, _MAX_UNIT_LEN@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MAX_UNIT_LEN@GOTPAGEOFF]
	ldr	w8, [x23]
	add	w8, w8, #1
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	ldrb	w8, [x0]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x24, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	and	w0, w8, #0xff
	bl	_isspace
	cbnz	x0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrsw	x8, [x23]
	cmp	x24, x8
	b.ge	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x22, x24
	ldrb	w10, [x8]
	add	x9, x24, #1
	strb	w10, [x21, x24]
	ldrb	w8, [x8, #1]
	mov	x24, x9
	cbnz	w8, LBB0_2
; %bb.5:
	add	x22, x22, x9
	mov	x24, x9
	b	LBB0_8
LBB0_6:
	mov	w24, #0
	b	LBB0_8
LBB0_7:
	add	x22, x22, x24
LBB0_8:
	strb	wzr, [x21, w24, uxtw]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w0, [x22], #1
	bl	_isspace
	cbnz	x0, LBB0_9
; %bb.10:
	ldurb	w8, [x22, #-1]
	cbz	w8, LBB0_14
LBB0_11:
	mov	w0, #0
LBB0_12:
	ldur	x8, [x29, #-72]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.13:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #80               ; 16-byte Folded Reload
	ret
LBB0_14:
Lloh10:
	adrp	x8, _GUC_UNIT_MEMORY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GUC_UNIT_MEMORY@GOTPAGEOFF]
Lloh12:
	adrp	x9, _time_unit_conversion_table@GOTPAGE
Lloh13:
	ldr	x9, [x9, _time_unit_conversion_table@GOTPAGEOFF]
Lloh14:
	adrp	x10, _memory_unit_conversion_table@GOTPAGE
Lloh15:
	ldr	x10, [x10, _memory_unit_conversion_table@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w20
	csel	x8, x9, x10, eq
	ldr	x22, [x8]
	ldr	x1, [x22, #16]
	ldr	x8, [x1]
	cbz	x8, LBB0_11
; %bb.15:
	mov	w23, #1
	mov	x24, x22
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	x1, [x24, #40]
	ldr	x8, [x1]
	add	x23, x23, #1
	add	x24, x24, #24
	cbz	x8, LBB0_11
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	cmp	w8, w20
	b.ne	LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x21
	bl	_strcmp
	cbnz	x0, LBB0_16
; %bb.19:
	sub	w8, w23, #1
	mov	w9, #24
	umaddl	x8, w8, w9, x22
	ldr	d0, [x8, #8]
	fmul	d0, d0, d8
	and	x8, x23, #0xffffffff
	madd	x9, x8, x9, x22
	ldr	x9, [x9, #16]
	ldr	x9, [x9]
	cbz	x9, LBB0_22
; %bb.20:
	mov	w9, #24
	mul	x9, x8, x9
	ldr	w9, [x22, x9]
	cmp	w9, w20
	b.ne	LBB0_22
; %bb.21:
	mov	w9, #24
	madd	x8, x8, x9, x22
	ldr	d1, [x8, #8]
	fdiv	d0, d0, d1
	frintx	d0, d0
	fmul	d0, d1, d0
LBB0_22:
	str	d0, [x19]
	mov	w0, #1
	b	LBB0_12
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_UNIT_LEN,4,2               ; @MAX_UNIT_LEN
	.comm	_GUC_UNIT_MEMORY,4,2            ; @GUC_UNIT_MEMORY
	.comm	_memory_unit_conversion_table,8,3 ; @memory_unit_conversion_table
	.comm	_time_unit_conversion_table,8,3 ; @time_unit_conversion_table
	.no_dead_strip	_convert_to_base_unit
.subsections_via_symbols
