	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_var_from_str
_set_var_from_str:                      ## @set_var_from_str
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	_errno@GOTPCREL(%rip), %r12
	movq	$0, (%r12)
	movq	%rdi, (%rsi)
	movb	(%rdi), %al
	testb	%al, %al
	je	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	%al, %edi
	callq	_isspace
	movq	(%rbx), %rcx
	testl	%eax, %eax
	je	LBB0_3
## %bb.47:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	1(%rcx), %rdi
	movq	%rdi, (%rbx)
	movzbl	1(%rcx), %eax
	testb	%al, %al
	jne	LBB0_2
	jmp	LBB0_4
LBB0_3:
	movq	%rcx, %rdi
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movl	$3, %edx
	callq	_pg_strncasecmp
	movq	(%rbx), %rdi
	testq	%rax, %rax
	je	LBB0_5
## %bb.10:
	callq	_strlen
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_alloc_var
	movl	$-1, %r15d
	testq	%rax, %rax
	js	LBB0_46
## %bb.11:
	movl	$-1, (%r14)
	movq	$0, 8(%r14)
	movq	_NUMERIC_POS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%r14)
	movq	(%rbx), %rcx
	movb	(%rcx), %al
	movsbl	%al, %edx
	cmpl	$43, %edx
	je	LBB0_14
## %bb.12:
	cmpl	$45, %edx
	jne	LBB0_15
## %bb.13:
	movq	_NUMERIC_NEG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%r14)
LBB0_14:
	movq	(%rbx), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, (%rbx)
	movb	1(%rax), %al
LBB0_15:
	xorl	%r13d, %r13d
	cmpb	$46, %al
	jne	LBB0_17
## %bb.16:
	leaq	1(%rcx), %rax
	movq	%rax, (%rbx)
	movb	1(%rcx), %al
	movl	$1, %r13d
LBB0_17:
	movzbl	%al, %edi
	callq	_isdigit
	testq	%rax, %rax
	je	LBB0_33
## %bb.18:
	movq	(%rbx), %rdi
	movb	(%rdi), %al
	xorl	%r12d, %r12d
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_19 Depth=1
	incq	8(%r14)
	movl	$1, %r13d
	movzbl	(%rdi), %eax
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	testb	%al, %al
	je	LBB0_26
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movzbl	%al, %edi
	callq	_isdigit
	movq	(%rbx), %rcx
	testq	%rax, %rax
	je	LBB0_24
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=1
	leaq	1(%rcx), %rdi
	movq	%rdi, (%rbx)
	movsbq	(%rcx), %rax
	addq	$-48, %rax
	movq	16(%r14), %rcx
	movslq	%r12d, %rdx
	incl	%r12d
	movq	%rax, (%rcx,%rdx,8)
	testl	%r13d, %r13d
	jne	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_19 Depth=1
	incl	(%r14)
	xorl	%r13d, %r13d
	movzbl	(%rdi), %eax
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_19 Depth=1
	cmpb	$46, (%rcx)
	jne	LBB0_25
## %bb.34:                              ##   in Loop: Header=BB0_19 Depth=1
	testl	%r13d, %r13d
	jne	LBB0_35
## %bb.36:                              ##   in Loop: Header=BB0_19 Depth=1
	incq	%rcx
	movq	%rcx, (%rbx)
	movl	$1, %r13d
	movq	%rcx, %rdi
	movzbl	(%rcx), %eax
	jmp	LBB0_19
LBB0_5:
	addq	$3, %rdi
	movq	%rdi, (%rbx)
	movq	_NUMERIC_NAN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%r14)
	movq	(%rbx), %rax
	movb	(%rax), %al
	xorl	%r15d, %r15d
	testb	%al, %al
	je	LBB0_46
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	%al, %edi
	callq	_isspace
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rbx), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, (%rbx)
	movzbl	1(%rax), %eax
	testb	%al, %al
	jne	LBB0_7
	jmp	LBB0_46
LBB0_8:
	movq	_PGTYPES_NUM_BAD_NUMERIC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	movl	$-1, %r15d
	jmp	LBB0_46
LBB0_35:
	movq	_PGTYPES_NUM_BAD_NUMERIC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_46
LBB0_25:
	movq	%rcx, %rdi
LBB0_26:
	movl	%r12d, 24(%r14)
	movb	(%rdi), %al
	movl	%eax, %ecx
	orb	$32, %cl
	cmpb	$101, %cl
	movq	_errno@GOTPCREL(%rip), %r12
	jne	LBB0_31
## %bb.27:
	incq	%rdi
	movq	%rdi, (%rbx)
	leaq	-48(%rbp), %rsi
	movl	$10, %edx
	callq	_strtol
	movq	-48(%rbp), %rcx
	cmpq	(%rbx), %rcx
	je	LBB0_33
## %bb.28:
	movq	%rcx, (%rbx)
	movq	_INT_MAX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movl	%esi, %edx
	shrl	$31, %edx
	addl	%esi, %edx
	sarl	%edx
	movslq	%edx, %rsi
	cmpq	%rsi, %rax
	jge	LBB0_33
## %bb.29:
	negl	%edx
	movslq	%edx, %rdx
	cmpq	%rdx, %rax
	jle	LBB0_33
## %bb.30:
	addl	%eax, (%r14)
	cltq
	movq	8(%r14), %rdx
	subq	%rax, %rdx
	xorl	%eax, %eax
	testq	%rdx, %rdx
	cmovgq	%rdx, %rax
	movq	%rax, 8(%r14)
	movb	(%rcx), %al
	jmp	LBB0_31
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_31 Depth=1
	movzbl	%al, %edi
	callq	_isspace
	testl	%eax, %eax
	je	LBB0_33
## %bb.38:                              ##   in Loop: Header=BB0_31 Depth=1
	movq	(%rbx), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, (%rbx)
	movzbl	1(%rax), %eax
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	testb	%al, %al
	jne	LBB0_32
## %bb.39:
	movl	24(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_43
## %bb.40:
	movq	16(%r14), %rcx
	addq	$8, %rcx
	incl	%eax
	.p2align	4, 0x90
LBB0_41:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, -8(%rcx)
	jne	LBB0_45
## %bb.42:                              ##   in Loop: Header=BB0_41 Depth=1
	movq	%rcx, 16(%r14)
	decl	(%r14)
	leal	-2(%rax), %edx
	movl	%edx, 24(%r14)
	addq	$8, %rcx
	decl	%eax
	cmpl	$1, %eax
	jg	LBB0_41
	jmp	LBB0_44
LBB0_33:
	movq	_PGTYPES_NUM_BAD_NUMERIC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
LBB0_46:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_43:
	jne	LBB0_45
LBB0_44:
	movl	$0, (%r14)
LBB0_45:
	movq	8(%r14), %rax
	movq	%rax, 32(%r14)
	xorl	%r15d, %r15d
	jmp	LBB0_46
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NaN"

	.comm	_NUMERIC_NAN,8,3                ## @NUMERIC_NAN
	.comm	_PGTYPES_NUM_BAD_NUMERIC,8,3    ## @PGTYPES_NUM_BAD_NUMERIC
	.comm	_NUMERIC_POS,8,3                ## @NUMERIC_POS
	.comm	_NUMERIC_NEG,8,3                ## @NUMERIC_NEG
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.no_dead_strip	_set_var_from_str
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_var_from_str
_set_var_from_str:                      ; @set_var_from_str
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x21, _errno@GOTPAGE
Lloh1:
	ldr	x21, [x21, _errno@GOTPAGEOFF]
	str	xzr, [x21]
	str	x0, [x1]
	ldrb	w8, [x0]
	cbz	w8, LBB0_4
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	and	w0, w8, #0xff
	bl	_isspace
	mov	x8, x0
	ldr	x0, [x20]
	cbz	w8, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x9, x0, #1
	str	x9, [x20]
	ldrb	w8, [x0, #1]
	cbnz	w8, LBB0_1
; %bb.3:
	mov	x0, x9
LBB0_4:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #3
	bl	_pg_strncasecmp
	mov	x8, x0
	ldr	x0, [x20]
	cbz	x8, LBB0_11
; %bb.5:
	bl	_strlen
	mov	x1, x0
	mov	x0, x19
	bl	_alloc_var
	mov	x8, x0
	mov	w0, #-1
	tbnz	x8, #63, LBB0_42
; %bb.6:
	str	w0, [x19]
Lloh4:
	adrp	x8, _NUMERIC_POS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NUMERIC_POS@GOTPAGEOFF]
	str	xzr, [x19, #8]
Lloh6:
	ldr	x8, [x8]
	str	x8, [x19, #40]
	ldr	x8, [x20]
	ldrsb	w9, [x8]
	cmp	w9, #43
	b.eq	LBB0_9
; %bb.7:
	cmp	w9, #45
	b.ne	LBB0_15
; %bb.8:
Lloh7:
	adrp	x8, _NUMERIC_NEG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NUMERIC_NEG@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	str	x8, [x19, #40]
LBB0_9:
	ldr	x9, [x20]
	add	x8, x9, #1
	str	x8, [x20]
	ldrb	w0, [x9, #1]
	cmp	w0, #46
	b.ne	LBB0_16
LBB0_10:
	add	x9, x8, #1
	str	x9, [x20]
	ldrb	w0, [x8, #1]
	mov	w22, #1
	bl	_isdigit
	cbnz	x0, LBB0_17
	b	LBB0_41
LBB0_11:
	add	x8, x0, #3
	str	x8, [x20]
Lloh10:
	adrp	x8, _NUMERIC_NAN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NUMERIC_NAN@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	str	x8, [x19, #40]
	ldr	x8, [x20]
	ldrb	w8, [x8]
	cbz	w8, LBB0_14
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	and	w0, w8, #0xff
	bl	_isspace
	cbz	w0, LBB0_41
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x20]
	add	x9, x8, #1
	str	x9, [x20]
	ldrb	w8, [x8, #1]
	cbnz	w8, LBB0_12
LBB0_14:
	mov	w0, #0
	b	LBB0_42
LBB0_15:
	and	w0, w9, #0xff
	cmp	w0, #46
	b.eq	LBB0_10
LBB0_16:
	mov	w22, #0
	bl	_isdigit
	cbz	x0, LBB0_41
LBB0_17:
	ldr	x8, [x20]
	ldrb	w10, [x8]
	cbz	w10, LBB0_27
; %bb.18:
	mov	w23, #0
	b	LBB0_21
LBB0_19:                                ;   in Loop: Header=BB0_21 Depth=1
	ldr	w10, [x19]
	add	w10, w10, #1
	str	w10, [x19]
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	ldrb	w10, [x8]
	mov	x23, x9
	cbz	w10, LBB0_29
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	and	w0, w10, #0xff
	bl	_isdigit
	ldr	x9, [x20]
	cbz	x0, LBB0_24
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	add	x8, x9, #1
	str	x8, [x20]
	ldrsb	x9, [x9]
	sub	x10, x9, #48
	ldr	x11, [x19, #16]
	add	w9, w23, #1
	str	x10, [x11, w23, sxtw #3]
	cbz	w22, LBB0_19
; %bb.23:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	x10, [x19, #8]
	add	x10, x10, #1
	str	x10, [x19, #8]
	mov	w22, #1
	b	LBB0_20
LBB0_24:                                ;   in Loop: Header=BB0_21 Depth=1
	ldrb	w8, [x9]
	cmp	w8, #46
	b.ne	LBB0_28
; %bb.25:                               ;   in Loop: Header=BB0_21 Depth=1
	cbnz	w22, LBB0_41
; %bb.26:                               ;   in Loop: Header=BB0_21 Depth=1
	add	x8, x9, #1
	str	x8, [x20]
	mov	w22, #1
	mov	x9, x23
	b	LBB0_20
LBB0_27:
	mov	w9, #0
	b	LBB0_29
LBB0_28:
	mov	x8, x9
	mov	x9, x23
LBB0_29:
	str	w9, [x19, #24]
	ldrb	w9, [x8]
	orr	w10, w9, #0x20
	cmp	w10, #101
	b.ne	LBB0_34
; %bb.30:
	add	x0, x8, #1
	str	x0, [x20]
	add	x1, sp, #8
	mov	w2, #10
	bl	_strtol
	ldr	x8, [sp, #8]
	ldr	x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_41
; %bb.31:
Lloh13:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh14:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
	str	x8, [x20]
Lloh15:
	ldr	w9, [x9]
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	cmp	x0, w9, sxtw
	b.ge	LBB0_41
; %bb.32:
	neg	w9, w9
	cmp	x0, w9, sxtw
	b.le	LBB0_41
; %bb.33:
	ldr	w9, [x19]
	add	w9, w9, w0
	str	w9, [x19]
	ldr	x9, [x19, #8]
	sub	x9, x9, w0, sxtw
	cmp	x9, #0
	csel	x9, x9, xzr, gt
	str	x9, [x19, #8]
	ldrb	w9, [x8]
LBB0_34:
	cbz	w9, LBB0_37
LBB0_35:                                ; =>This Inner Loop Header: Depth=1
	and	w0, w9, #0xff
	bl	_isspace
	cbz	w0, LBB0_41
; %bb.36:                               ;   in Loop: Header=BB0_35 Depth=1
	ldr	x8, [x20]
	add	x9, x8, #1
	str	x9, [x20]
	ldrb	w9, [x8, #1]
	cbnz	w9, LBB0_35
LBB0_37:
	ldr	w9, [x19, #24]
	cmp	w9, #1
	b.lt	LBB0_43
; %bb.38:
	ldr	x8, [x19, #16]
	add	x8, x8, #8
	add	w9, w9, #1
LBB0_39:                                ; =>This Inner Loop Header: Depth=1
	ldur	x10, [x8, #-8]
	cbnz	x10, LBB0_45
; %bb.40:                               ;   in Loop: Header=BB0_39 Depth=1
	str	x8, [x19, #16]
	ldr	w10, [x19]
	sub	w10, w10, #1
	str	w10, [x19]
	sub	w10, w9, #2
	str	w10, [x19, #24]
	add	x8, x8, #8
	sub	w9, w9, #1
	cmp	w9, #1
	b.gt	LBB0_39
	b	LBB0_44
LBB0_41:
Lloh16:
	adrp	x8, _PGTYPES_NUM_BAD_NUMERIC@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PGTYPES_NUM_BAD_NUMERIC@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	str	x8, [x21]
	mov	w0, #-1
LBB0_42:
	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
	add	sp, sp, #80
	ret
LBB0_43:
	cbnz	w9, LBB0_45
LBB0_44:
	str	wzr, [x19]
LBB0_45:
	mov	w0, #0
	ldr	x8, [x19, #8]
	str	x8, [x19, #32]
	b	LBB0_42
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NaN"

	.comm	_NUMERIC_NAN,8,3                ; @NUMERIC_NAN
	.comm	_PGTYPES_NUM_BAD_NUMERIC,8,3    ; @PGTYPES_NUM_BAD_NUMERIC
	.comm	_NUMERIC_POS,8,3                ; @NUMERIC_POS
	.comm	_NUMERIC_NEG,8,3                ; @NUMERIC_NEG
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.no_dead_strip	_set_var_from_str
.subsections_via_symbols
