	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bc_str2num                     ## -- Begin function bc_str2num
	.p2align	4, 0x90
_bc_str2num:                            ## @bc_str2num
	.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
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r15
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_bc_free_num
	movq	_FALSE@GOTPCREL(%rip), %rax
	movb	(%r15), %cl
	cmpb	$45, %cl
	je	LBB0_2
## %bb.1:
	movq	%r15, %rbx
	cmpb	$43, %cl
	jne	LBB0_3
LBB0_2:
	leaq	1(%r15), %rbx
LBB0_3:
	movb	(%rax), %al
	movb	%al, -41(%rbp)                  ## 1-byte Spill
	decq	%rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	1(%rbx), %edi
	incq	%rbx
	cmpl	$48, %edi
	je	LBB0_4
## %bb.5:
	callq	_isdigit
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	testq	%rax, %rax
	je	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	incl	%r13d
	movsbl	1(%rbx), %edi
	incq	%rbx
	callq	_isdigit
	testq	%rax, %rax
	jne	LBB0_6
LBB0_8:
	xorl	%eax, %eax
	cmpb	$46, (%rbx)
	sete	%al
	leaq	(%rbx,%rax), %r12
	movsbl	(%rbx,%rax), %edi
	callq	_isdigit
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movsbl	1(%r12,%r14), %edi
	callq	_isdigit
	incq	%r14
	testq	%rax, %rax
	jne	LBB0_10
## %bb.11:
	addq	%r14, %r12
LBB0_12:
	cmpb	$0, (%r12)
	jne	LBB0_14
## %bb.13:
	movl	%r14d, %eax
	negl	%eax
	cmpl	%eax, %r13d
	je	LBB0_14
## %bb.15:
	movl	%r14d, %edi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	callq	_MIN
	movl	%eax, %r14d
	testl	%r13d, %r13d
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	$1, %r12d
	cmovnel	%r13d, %r12d
	movzbl	-41(%rbp), %ecx                 ## 1-byte Folded Reload
	movzbl	(%rax), %ebx
	cmovnel	%ecx, %ebx
	movl	%r12d, %edi
	movl	%r14d, %esi
	callq	_bc_new_num
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, (%rdx)
	cmpb	$45, (%r15)
	jne	LBB0_17
## %bb.16:
	movq	_MINUS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 8(%rax)
	movl	$1, %eax
	jmp	LBB0_18
LBB0_14:
	movq	__zero_@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BCG
	movl	%eax, %edi
	callq	_bc_copy_num
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	xorl	%eax, %eax
	cmpb	$0, (%r12)
	sete	%al
	jmp	LBB0_30
LBB0_17:
	movq	_PLUS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 8(%rax)
	xorl	%eax, %eax
	cmpb	$43, (%r15)
	sete	%al
LBB0_18:
	leaq	(%rax,%r15), %r13
	decq	%r13
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	cmpb	$48, 1(%r13)
	leaq	1(%r13), %r13
	je	LBB0_19
## %bb.20:
	movq	(%rdx), %rax
	movq	(%rax), %r15
	testb	%bl, %bl
	je	LBB0_22
## %bb.21:
	movb	$0, (%r15)
	incq	%r15
	jmp	LBB0_25
LBB0_22:
	testl	%r12d, %r12d
	jle	LBB0_25
## %bb.23:
	incl	%r12d
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movsbl	(%r13), %edi
	incq	%r13
	callq	_CH_VAL
	movb	%al, (%r15)
	incq	%r15
	decl	%r12d
	cmpl	$1, %r12d
	ja	LBB0_24
LBB0_25:
	testl	%r14d, %r14d
	jle	LBB0_28
## %bb.26:
	incl	%r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movsbl	1(%r13,%rbx), %edi
	callq	_CH_VAL
	movb	%al, (%r15,%rbx)
	incq	%rbx
	decl	%r14d
	cmpl	$1, %r14d
	ja	LBB0_27
LBB0_28:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdi
	callq	_bc_is_zero
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	je	LBB0_30
## %bb.29:
	movq	_PLUS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rbx), %rdx
	movq	%rcx, 8(%rdx)
LBB0_30:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,1,0                      ## @FALSE
	.comm	__zero_,4,2                     ## @_zero_
	.comm	_TRUE,1,0                       ## @TRUE
	.comm	_MINUS,8,3                      ## @MINUS
	.comm	_PLUS,8,3                       ## @PLUS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bc_str2num                     ; -- Begin function bc_str2num
	.p2align	2
_bc_str2num:                            ; @bc_str2num
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [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 w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_bc_free_num
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	ldrb	w9, [x20]
	cmp	w9, #45
	b.eq	LBB0_2
; %bb.1:
	mov	x22, x20
	cmp	w9, #43
	b.ne	LBB0_3
LBB0_2:
	add	x22, x20, #1
LBB0_3:
	ldrb	w23, [x8]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x22], #1
	cmp	w0, #48
	b.eq	LBB0_4
; %bb.5:
	bl	_isdigit
	cbz	x0, LBB0_9
; %bb.6:
	mov	x24, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x22, x24]
	bl	_isdigit
	add	x24, x24, #1
	cbnz	x0, LBB0_7
; %bb.8:
	add	x8, x22, x24
	sub	x8, x8, #1
	b	LBB0_10
LBB0_9:
	mov	w24, #0
	sub	x8, x22, #1
LBB0_10:
	mov	x9, x8
	ldrb	w10, [x9], #1
	cmp	w10, #46
	csel	x25, x8, x9, ne
	ldrsb	w0, [x25]
	bl	_isdigit
	cbz	x0, LBB0_14
; %bb.11:
	mov	x22, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add	x8, x25, x22
	ldrsb	w0, [x8, #1]
	bl	_isdigit
	add	x22, x22, #1
	cbnz	x0, LBB0_12
; %bb.13:
	add	x25, x25, x22
	b	LBB0_15
LBB0_14:
	mov	w22, #0
LBB0_15:
	ldrb	w8, [x25]
	neg	w9, w22
	cmp	w8, #0
	ccmp	w24, w9, #4, eq
	b.ne	LBB0_17
; %bb.16:
Lloh2:
	adrp	x8, __zero_@GOTPAGE
Lloh3:
	ldr	x8, [x8, __zero_@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_BCG
	bl	_bc_copy_num
	str	x0, [x19]
	ldrb	w8, [x25]
	cmp	w8, #0
	cset	w0, eq
	b	LBB0_34
LBB0_17:
	mov	x0, x22
	mov	x1, x21
	bl	_MIN
	mov	x21, x0
Lloh5:
	adrp	x8, _TRUE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w24, #0
	csel	w25, w8, w23, eq
	csinc	w22, w24, wzr, ne
	mov	x0, x22
	mov	x1, x21
	bl	_bc_new_num
	str	x0, [x19]
	ldrb	w8, [x20]
Lloh7:
	adrp	x23, _PLUS@GOTPAGE
Lloh8:
	ldr	x23, [x23, _PLUS@GOTPAGEOFF]
	cmp	w8, #45
	b.ne	LBB0_19
; %bb.18:
Lloh9:
	adrp	x8, _MINUS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MINUS@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [x0, #8]
	mov	w8, #1
	b	LBB0_20
LBB0_19:
	ldr	x8, [x23]
	str	x8, [x0, #8]
	ldrb	w8, [x20]
	cmp	w8, #43
	cset	w8, eq
LBB0_20:
	add	x8, x8, x20
	sub	x24, x8, #1
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x24, #1]!
	cmp	w8, #48
	b.eq	LBB0_21
; %bb.22:
	ldr	x8, [x19]
	ldr	x20, [x8]
	tst	w25, #0xff
	b.eq	LBB0_24
; %bb.23:
	strb	wzr, [x20], #1
	b	LBB0_28
LBB0_24:
	cmp	w22, #1
	b.lt	LBB0_28
; %bb.25:
	mov	x25, #0
	add	w22, w22, #1
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x24, x25]
	bl	_CH_VAL
	strb	w0, [x20, x25]
	add	x25, x25, #1
	sub	w22, w22, #1
	cmp	w22, #1
	b.hi	LBB0_26
; %bb.27:
	add	x20, x20, x25
	add	x24, x24, x25
LBB0_28:
	cmp	w21, #1
	b.lt	LBB0_31
; %bb.29:
	add	x22, x24, #1
	add	w21, w21, #1
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x22], #1
	bl	_CH_VAL
	strb	w0, [x20], #1
	sub	w21, w21, #1
	cmp	w21, #1
	b.hi	LBB0_30
LBB0_31:
	ldr	x0, [x19]
	bl	_bc_is_zero
	cbz	x0, LBB0_33
; %bb.32:
	ldr	x8, [x23]
	ldr	x9, [x19]
	str	x8, [x9, #8]
LBB0_33:
	mov	w0, #1
LBB0_34:
	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	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,1,0                      ; @FALSE
	.comm	__zero_,4,2                     ; @_zero_
	.comm	_TRUE,1,0                       ; @TRUE
	.comm	_MINUS,8,3                      ; @MINUS
	.comm	_PLUS,8,3                       ; @PLUS
.subsections_via_symbols
