	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpi_fromstr                    ## -- Begin function mpi_fromstr
	.p2align	4, 0x90
_mpi_fromstr:                           ## @mpi_fromstr
	.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
	xorl	%r13d, %r13d
	cmpb	$45, (%rsi)
	sete	%r13b
	cmpb	$48, (%rsi,%r13)
	jne	LBB0_13
## %bb.1:
	movq	%rsi, %r12
	addq	%r13, %r12
	cmpb	$120, 1(%r12)
	jne	LBB0_13
## %bb.2:
	movq	%rdi, %rax
	addq	$2, %r12
	movq	%r12, %rdi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	callq	_strlen
	movl	%eax, %ebx
	leal	7(,%rbx,4), %r14d
	shrl	$3, %r14d
	movq	_BYTES_PER_MPI_LIMB@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	(%rcx,%r14), %eax
	decl	%eax
	xorl	%r15d, %r15d
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	cmpl	%eax, (%rdi)
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	jae	LBB0_5
## %bb.3:
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_mpi_resize
	testl	%eax, %eax
	je	LBB0_15
## %bb.4:
	movq	_BYTES_PER_MPI_LIMB@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
LBB0_5:
	movl	%esi, 4(%rdi)
	movl	%r13d, 8(%rdi)
	testl	%esi, %esi
	jle	LBB0_26
## %bb.6:
	andl	$1, %ebx
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%ecx, %eax
	subl	%edx, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %r14d
	movl	%esi, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	xorl	%r13d, %r13d
	cmpl	%ecx, %r14d
	jb	LBB0_8
LBB0_24:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	decl	%ecx
	movl	%r13d, (%rax,%rcx,4)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	$2, %rax
	jl	LBB0_25
## %bb.27:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	decq	%rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_BYTES_PER_MPI_LIMB@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r14d, %r14d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_8 Depth=2
	incq	%r12
	shll	$4, %eax
	addl	%ebx, %ecx
	shll	$8, %r13d
	orl	%eax, %r13d
	orl	%ecx, %r13d
	incl	%r14d
	xorl	%ebx, %ebx
	movq	_BYTES_PER_MPI_LIMB@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jae	LBB0_24
LBB0_8:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	$48, %r15d
	testl	%ebx, %ebx
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movsbl	(%r12), %r15d
	incq	%r12
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=2
	movl	%r15d, %edi
	callq	_assert
	movsbl	(%r12), %ebx
	movl	%ebx, %edi
	callq	_assert
	leal	-48(%r15), %eax
	cmpl	$10, %eax
	jb	LBB0_19
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=2
	leal	-97(%r15), %eax
	cmpl	$5, %eax
	ja	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=2
	addl	$-87, %r15d
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_8 Depth=2
	leal	-65(%r15), %eax
	cmpl	$5, %eax
	ja	LBB0_22
## %bb.17:                              ##   in Loop: Header=BB0_8 Depth=2
	addl	$-55, %r15d
LBB0_18:                                ##   in Loop: Header=BB0_8 Depth=2
	movl	%r15d, %eax
LBB0_19:                                ##   in Loop: Header=BB0_8 Depth=2
	leal	-48(%rbx), %edx
	movl	$-48, %ecx
	cmpb	$10, %dl
	jb	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_8 Depth=2
	leal	-97(%rbx), %edx
	movl	$-87, %ecx
	cmpb	$6, %dl
	jb	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_8 Depth=2
	leal	-65(%rbx), %edx
	movl	$-55, %ecx
	cmpb	$6, %dl
	jb	LBB0_23
LBB0_22:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mpi_clear
	movl	$1, %r15d
	jmp	LBB0_26
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_14:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_26:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_25:
	xorl	%r15d, %r15d
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_BYTES_PER_MPI_LIMB,4,2         ## @BYTES_PER_MPI_LIMB
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpi_fromstr                    ; -- Begin function mpi_fromstr
	.p2align	2
_mpi_fromstr:                           ; @mpi_fromstr
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x8, x1
	ldrb	w9, [x8], #1
	cmp	w9, #45
	cset	w23, eq
	csel	x8, x1, x8, ne
	ldrb	w9, [x8]
	cmp	w9, #48
	b.ne	LBB0_26
; %bb.1:
	ldrb	w9, [x8, #1]
	cmp	w9, #120
	b.ne	LBB0_26
; %bb.2:
	mov	x19, x0
	add	x20, x8, #2
	mov	x0, x20
	bl	_strlen
	mov	x22, x0
	lsl	w8, w0, #2
	add	w8, w8, #7
	lsr	w25, w8, #3
Lloh0:
	adrp	x24, _BYTES_PER_MPI_LIMB@GOTPAGE
Lloh1:
	ldr	x24, [x24, _BYTES_PER_MPI_LIMB@GOTPAGEOFF]
	ldr	w9, [x24]
	add	w8, w9, w25
	sub	w8, w8, #1
	udiv	w21, w8, w9
	ldr	w8, [x19]
	cmp	w8, w21
	b.hs	LBB0_5
; %bb.3:
	mov	x0, x19
	mov	x1, x21
	bl	_mpi_resize
	cbz	w0, LBB0_31
; %bb.4:
	ldr	w9, [x24]
LBB0_5:
	stp	w21, w23, [x19, #4]
	cmp	w21, #1
	b.lt	LBB0_30
; %bb.6:
	and	w8, w22, #0x1
	udiv	w10, w25, w9
	neg	w11, w25
	madd	w10, w10, w9, w11
	add	w10, w9, w10
	udiv	w11, w10, w9
	msub	w26, w11, w9, w10
	mov	x25, x21
	cmp	w26, w9
	b.lo	LBB0_10
LBB0_7:
	mov	w27, #0
LBB0_8:
	ldr	x9, [x19, #16]
	sub	w21, w21, #1
	str	w27, [x9, w21, uxtw #2]
	cmp	x25, #2
	b.lt	LBB0_30
; %bb.9:
	mov	w26, #0
	sub	x25, x25, #1
	ldr	w9, [x24]
	cmp	w26, w9
	b.hs	LBB0_7
LBB0_10:
	mov	w27, #0
	mov	x10, x8
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	w11, #-48
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	w10, #0
	mov	w8, #0
	lsl	w9, w9, #4
	orr	w9, w9, w27, lsl #8
	add	w11, w11, w22
	orr	w27, w9, w11
	add	w26, w26, #1
	ldr	w9, [x24]
	cmp	w26, w9
	b.hs	LBB0_8
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	cbz	w10, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	w23, #48
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_13 Depth=1
	ldrsb	w23, [x20], #1
LBB0_16:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x23
	bl	_assert
	ldrsb	w22, [x20], #1
	mov	x0, x22
	bl	_assert
	sub	w9, w23, #48
	cmp	w9, #10
	b.lo	LBB0_21
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=1
	sub	w8, w23, #97
	cmp	w8, #5
	b.hi	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_13 Depth=1
	sub	w9, w23, #87
	b	LBB0_21
LBB0_19:                                ;   in Loop: Header=BB0_13 Depth=1
	sub	w8, w23, #65
	cmp	w8, #5
	b.hi	LBB0_29
; %bb.20:                               ;   in Loop: Header=BB0_13 Depth=1
	sub	w9, w23, #55
LBB0_21:                                ;   in Loop: Header=BB0_13 Depth=1
	sub	w8, w22, #48
	cmp	w8, #10
	b.lo	LBB0_11
; %bb.22:                               ;   in Loop: Header=BB0_13 Depth=1
	sub	w8, w22, #97
	cmp	w8, #6
	b.hs	LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	w11, #-87
	b	LBB0_12
LBB0_24:                                ;   in Loop: Header=BB0_13 Depth=1
	sub	w8, w22, #65
	cmp	w8, #6
	b.hs	LBB0_29
; %bb.25:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	w11, #-55
	b	LBB0_12
LBB0_26:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_27:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_28:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_29:
	mov	x0, x19
	bl	_mpi_clear
	mov	w0, #1
	b	LBB0_28
LBB0_30:
	mov	w0, #0
	b	LBB0_28
LBB0_31:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_27
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_BYTES_PER_MPI_LIMB,4,2         ; @BYTES_PER_MPI_LIMB
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
