	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function numericvar_to_double
_numericvar_to_double:                  ## @numericvar_to_double
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	xorl	%eax, %eax
	callq	_PGTYPESnumeric_new
	movl	$-1, %r15d
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_PGTYPESnumeric_copy
	testq	%rax, %rax
	js	LBB0_2
## %bb.3:
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	callq	_get_str_from_var
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_PGTYPESnumeric_free
	testq	%r12, %r12
	je	LBB0_9
## %bb.4:
	movq	_errno@GOTPCREL(%rip), %r13
	movq	$0, (%r13)
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	callq	_strtod
	movq	(%r13), %rax
	movq	_ERANGE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	jne	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	callq	_free
	xorpd	%xmm0, %xmm0
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	movq	_PGTYPES_NUM_OVERFLOW@GOTPCREL(%rip), %rax
	movq	_PGTYPES_NUM_UNDERFLOW@GOTPCREL(%rip), %rcx
	cmovneq	%rax, %rcx
	cmovpq	%rax, %rcx
	movq	(%rcx), %rax
	movq	%rax, (%r13)
	jmp	LBB0_9
LBB0_2:
	movq	%rbx, %rdi
	callq	_PGTYPESnumeric_free
	jmp	LBB0_9
LBB0_6:
	movq	-56(%rbp), %rax
	movb	(%rax), %bl
	movq	%r12, %rdi
	callq	_free
	testb	%bl, %bl
	je	LBB0_8
## %bb.7:
	movq	_PGTYPES_NUM_BAD_NUMERIC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
	jmp	LBB0_9
LBB0_8:
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	%xmm0, (%r14)
	xorl	%r15d, %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_ERANGE,8,3                     ## @ERANGE
	.comm	_PGTYPES_NUM_UNDERFLOW,8,3      ## @PGTYPES_NUM_UNDERFLOW
	.comm	_PGTYPES_NUM_OVERFLOW,8,3       ## @PGTYPES_NUM_OVERFLOW
	.comm	_PGTYPES_NUM_BAD_NUMERIC,8,3    ## @PGTYPES_NUM_BAD_NUMERIC
	.no_dead_strip	_numericvar_to_double
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function numericvar_to_double
_numericvar_to_double:                  ; @numericvar_to_double
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	d9, d8, [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 b8, -56
	.cfi_offset b9, -64
	mov	x19, x1
	mov	x20, x0
	bl	_PGTYPESnumeric_new
	cbz	x0, LBB0_6
; %bb.1:
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	bl	_PGTYPESnumeric_copy
	tbnz	x0, #63, LBB0_5
; %bb.2:
	ldr	w1, [x21]
	mov	x0, x21
	bl	_get_str_from_var
	mov	x20, x0
	mov	x0, x21
	bl	_PGTYPESnumeric_free
	cbz	x20, LBB0_6
; %bb.3:
Lloh0:
	adrp	x21, _errno@GOTPAGE
Lloh1:
	ldr	x21, [x21, _errno@GOTPAGEOFF]
	str	xzr, [x21]
	add	x1, sp, #8
	mov	x0, x20
	bl	_strtod
	fmov	d8, d0
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _ERANGE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ERANGE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.4:
	mov	x0, x20
	bl	_free
Lloh5:
	adrp	x8, _PGTYPES_NUM_UNDERFLOW@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PGTYPES_NUM_UNDERFLOW@GOTPAGEOFF]
Lloh7:
	adrp	x9, _PGTYPES_NUM_OVERFLOW@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PGTYPES_NUM_OVERFLOW@GOTPAGEOFF]
	fcmp	d8, #0.0
	csel	x8, x8, x9, eq
	b	LBB0_9
LBB0_5:
	mov	x0, x21
	bl	_PGTYPESnumeric_free
LBB0_6:
	mov	w0, #-1
	b	LBB0_11
LBB0_7:
	ldr	x8, [sp, #8]
	ldrb	w22, [x8]
	mov	x0, x20
	bl	_free
	cbz	w22, LBB0_10
; %bb.8:
Lloh9:
	adrp	x8, _PGTYPES_NUM_BAD_NUMERIC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PGTYPES_NUM_BAD_NUMERIC@GOTPAGEOFF]
LBB0_9:
	ldr	x8, [x8]
	str	x8, [x21]
	mov	w0, #-1
	b	LBB0_11
LBB0_10:
	mov	w0, #0
	str	d8, [x19]
LBB0_11:
	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	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_ERANGE,8,3                     ; @ERANGE
	.comm	_PGTYPES_NUM_UNDERFLOW,8,3      ; @PGTYPES_NUM_UNDERFLOW
	.comm	_PGTYPES_NUM_OVERFLOW,8,3       ; @PGTYPES_NUM_OVERFLOW
	.comm	_PGTYPES_NUM_BAD_NUMERIC,8,3    ; @PGTYPES_NUM_BAD_NUMERIC
	.no_dead_strip	_numericvar_to_double
.subsections_via_symbols
