	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_readnumber                     ## -- Begin function readnumber
	.p2align	4, 0x90
_readnumber:                            ## @readnumber
	.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
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_new_number
	movq	%rax, %r12
	movq	8(%rax), %rdi
	callq	_BN_zero
	movl	%eax, %edi
	callq	_bn_check
	movb	$1, %al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	addl	$-55, %eax
	movl	%eax, %ebx
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	addl	%r15d, %r14d
	movq	8(%r12), %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	_BN_mul_word
	movl	%eax, %edi
	callq	_bn_check
	movq	8(%r12), %rdi
	movl	%ebx, %esi
	callq	_BN_add_word
	movl	%eax, %edi
	callq	_bn_check
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movq	%r13, %rdi
	callq	*(%rax)
                                        ## kill: def $eax killed $eax def $rax
	movq	_EOF@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	-48(%rax), %ebx
	cmpl	$10, %ebx
	jb	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	-65(%rax), %ecx
	cmpl	$5, %ecx
	jbe	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$46, %eax
	jne	LBB0_8
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	testl	%r15d, %r15d
	movl	$1, %r15d
	je	LBB0_2
	jmp	LBB0_10
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$95, %eax
	jne	LBB0_9
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_2
LBB0_9:
	movq	(%r13), %rax
	movq	%r13, %rdi
	callq	*8(%rax)
LBB0_10:
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	cmpl	$10, %ebx
	jne	LBB0_12
## %bb.11:
	movl	%r14d, (%r12)
	movq	%r12, %rbx
	testb	$1, -44(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_17
	jmp	LBB0_18
LBB0_12:
	xorl	%eax, %eax
	callq	_BN_CTX_new
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, %r13
	xorl	%eax, %eax
	callq	_new_number
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_BN_zero
	movl	%eax, %edi
	callq	_bn_check
	movq	%r13, %rdi
	callq	_BN_zero
	movl	%eax, %edi
	callq	_bn_check
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_BN_add_word
	movl	%eax, %edi
	callq	_bn_check
	movq	%r13, %rdi
	movl	%r14d, %esi
	movq	%r15, %r14
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	callq	_BN_add_word
	movl	%eax, %edi
	callq	_bn_check
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdi
	movq	%r14, %rsi
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdx
	movq	%rax, %r13
	movq	%r15, %rcx
	callq	_BN_exp
	movl	%eax, %edi
	callq	_bn_check
	movl	$0, (%r13)
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	callq	_div_number
	movq	%rax, %rbx
	cmpl	$0, (%rax)
	jle	LBB0_15
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rdi
	movl	$10, %esi
	callq	_BN_mod_word
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movslq	(%rbx), %rsi
	decq	%rsi
	movq	%rbx, %rdi
	callq	_normalize
	cmpl	$0, (%rbx)
	jg	LBB0_13
LBB0_15:
	movq	%r12, %rdi
	callq	_free_number
	movq	%r13, %rdi
	callq	_free_number
	movq	%r15, %rdi
	callq	_BN_CTX_free
	movq	%r14, %rdi
	callq	_BN_free
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_BN_free
	testb	$1, -44(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_18
LBB0_17:
	movq	%rbx, %rdi
	callq	_negate
LBB0_18:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOF,4,2                        ## @EOF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_readnumber                     ; -- Begin function readnumber
	.p2align	2
_readnumber:                            ; @readnumber
	.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	x20, x2
	mov	x21, x1
	mov	x23, x0
	bl	_new_number
	mov	x19, x0
	ldr	x0, [x0, #8]
	bl	_BN_zero
	bl	_bn_check
	mov	w26, #0
	mov	w22, #0
	mov	w27, #1
Lloh0:
	adrp	x25, _EOF@GOTPAGE
Lloh1:
	ldr	x25, [x25, _EOF@GOTPAGEOFF]
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
                                        ;       Child Loop BB0_4 Depth 3
	mov	x8, x26
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_4 Depth 3
	mov	x26, x8
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=3
	add	w22, w22, w26
	ldr	x0, [x19, #8]
	mov	x1, x21
	bl	_BN_mul_word
	bl	_bn_check
	ldr	x0, [x19, #8]
	mov	x1, x24
	bl	_BN_add_word
	bl	_bn_check
LBB0_4:                                 ;   Parent Loop BB0_1 Depth=1
                                        ;     Parent Loop BB0_2 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [x23]
	ldr	x8, [x8]
	mov	x0, x23
	blr	x8
	ldr	w8, [x25]
	cmp	w0, w8
	b.eq	LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=3
	sub	w24, w0, #48
	cmp	w24, #10
	b.lo	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=3
	sub	w8, w0, #65
	cmp	w8, #5
	b.hi	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=3
	sub	w24, w0, #55
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=2
	cmp	w0, #46
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=2
	mov	w8, #1
	cbz	w26, LBB0_2
	b	LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w0, #95
	b.ne	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	w27, #0
	b	LBB0_1
LBB0_12:
	ldr	x8, [x23]
	ldr	x8, [x8, #8]
	mov	x0, x23
	blr	x8
LBB0_13:
	cmp	w21, #10
	b.ne	LBB0_15
; %bb.14:
	str	w22, [x19]
	mov	x20, x19
	tbz	w27, #0, LBB0_19
	b	LBB0_20
LBB0_15:
	bl	_BN_CTX_new
	mov	x23, x0
	bl	_BN_new
	mov	x24, x0
	bl	_BN_new
	mov	x25, x0
	bl	_new_number
	mov	x26, x0
	mov	x0, x24
	bl	_BN_zero
	bl	_bn_check
	mov	x0, x25
	bl	_BN_zero
	bl	_bn_check
	mov	x0, x24
	mov	x1, x21
	bl	_BN_add_word
	bl	_bn_check
	mov	x0, x25
	mov	x1, x22
	bl	_BN_add_word
	bl	_bn_check
	ldr	x0, [x26, #8]
	mov	x1, x24
	mov	x2, x25
	mov	x3, x23
	bl	_BN_exp
	bl	_bn_check
	str	wzr, [x26]
	mov	x0, x19
	mov	x1, x26
	mov	x2, x20
	bl	_div_number
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_18
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20, #8]
	mov	w1, #10
	bl	_BN_mod_word
	cbnz	x0, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldrsw	x8, [x20]
	sub	x1, x8, #1
	mov	x0, x20
	bl	_normalize
	ldr	w8, [x20]
	cmp	w8, #0
	b.gt	LBB0_16
LBB0_18:
	mov	x0, x19
	bl	_free_number
	mov	x0, x26
	bl	_free_number
	mov	x0, x23
	bl	_BN_CTX_free
	mov	x0, x24
	bl	_BN_free
	mov	x0, x25
	bl	_BN_free
	tbnz	w27, #0, LBB0_20
LBB0_19:
	mov	x0, x20
	bl	_negate
LBB0_20:
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EOF,4,2                        ; @EOF
.subsections_via_symbols
