	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_huge_number
_read_huge_number:                      ## @read_huge_number
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	(%rdi), %rax
	movb	(%rax), %r12b
	xorl	%ecx, %ecx
	cmpb	$45, %r12b
	sete	%cl
	leaq	(%rax,%rcx), %rbx
	movb	(%rax,%rcx), %r10b
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	cmpb	$48, %r10b
	sete	%cl
	setne	%r8b
	leal	8(%r8,%r8), %r11d
	leaq	(%rbx,%rcx), %r15
	movq	_LONG_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cltd
	idivl	%r11d
	leaq	(%rcx,%rbx), %rdx
	incq	%rdx
	movsbl	(%rcx,%rbx), %ecx
	xorl	%r9d, %r9d
	cmpl	$48, %ecx
	jl	LBB0_14
## %bb.1:
	movq	%r14, %rbx
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	leal	(%r8,%r8), %r14d
	addl	$56, %r14d
	cmpl	%ecx, %r14d
	jle	LBB0_15
## %bb.2:
	movb	%r12b, -41(%rbp)                ## 1-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movslq	%eax, %r15
	movl	%r11d, %r12d
	xorl	%r11d, %r11d
	movl	$1, %esi
	movl	%ecx, %r8d
	xorl	%r13d, %r13d
	xorl	%r9d, %r9d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r9, %rbx
	movq	%r9, %rax
	imulq	%r12, %rax
	addl	$-48, %ecx
	addq	%rax, %rcx
	cmpq	%r15, %r9
	movq	%rcx, %r9
	cmovgq	%rbx, %r9
	movzbl	%r13b, %r13d
	cmovgl	%esi, %r13d
	cmpb	$48, %r10b
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%r11d, %r11d
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	addl	$3, %r11d
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movsbl	(%rdx), %ecx
	incq	%rdx
	cmpl	$48, %ecx
	jl	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ecx, %r8d
	cmpl	%ecx, %r14d
	jg	LBB0_3
	jmp	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$48, %r8b
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$49, %r8b
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %r11d
	jmp	LBB0_6
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r11d, %r11d
	jmp	LBB0_6
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	andb	$-2, %r8b
	xorl	%r11d, %r11d
	cmpb	$50, %r8b
	sete	%r11b
	xorl	$3, %r11d
	jmp	LBB0_6
LBB0_8:
	leaq	-1(%rdx), %r15
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movb	-41(%rbp), %r12b                ## 1-byte Reload
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	testl	%esi, %esi
	jne	LBB0_16
	jmp	LBB0_20
LBB0_14:
	xorl	%r13d, %r13d
	xorl	%r11d, %r11d
	testl	%esi, %esi
	jne	LBB0_16
	jmp	LBB0_20
LBB0_15:
	xorl	%r13d, %r13d
	xorl	%r11d, %r11d
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	%rbx, %r14
	testl	%esi, %esi
	je	LBB0_20
LBB0_16:
	testb	%cl, %cl
	je	LBB0_19
## %bb.17:
	movsbl	%cl, %eax
	movq	%rdx, %r15
	cmpl	%esi, %eax
	jne	LBB0_27
	jmp	LBB0_20
LBB0_19:
	movq	%rdx, %r15
LBB0_20:
	movq	%r15, (%rdi)
	testb	%r13b, %r13b
	je	LBB0_24
## %bb.21:
	testl	%r11d, %r11d
	je	LBB0_27
## %bb.22:
	testq	%r14, %r14
	je	LBB0_29
## %bb.23:
	xorl	%eax, %eax
	cmpb	$45, %r12b
	sete	%al
	addl	%eax, %r11d
	movl	%r11d, (%r14)
	jmp	LBB0_29
LBB0_27:
	testq	%r14, %r14
	je	LBB0_29
## %bb.28:
	movl	$-1, (%r14)
LBB0_29:
	xorl	%eax, %eax
	jmp	LBB0_30
LBB0_24:
	testq	%r14, %r14
	je	LBB0_26
## %bb.25:
	movl	$0, (%r14)
LBB0_26:
	movq	%r9, %rax
	negq	%rax
	cmpb	$45, %r12b
	cmovneq	%r9, %rax
LBB0_30:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LONG_MAX,4,2                   ## @LONG_MAX
	.no_dead_strip	_read_huge_number
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_huge_number
_read_huge_number:                      ; @read_huge_number
	.cfi_startproc
; %bb.0:
	ldr	x9, [x0]
	mov	x10, x9
	ldrb	w8, [x10], #1
	cmp	w8, #45
	csel	x9, x9, x10, ne
	mov	x10, x9
	ldrb	w14, [x10], #1
	mov	w11, #10
	mov	w12, #8
	cmp	w14, #48
	csel	w15, w12, w11, eq
	csel	x17, x9, x10, ne
	orr	w16, w15, #0x30
	mov	x10, x17
	ldrsb	w13, [x10], #1
	cmp	w13, #48
	ccmp	w16, w13, #4, ge
	b.gt	LBB0_2
; %bb.1:
	mov	x9, #0
	mov	w12, #0
	mov	w11, #0
	cbnz	w1, LBB0_5
	b	LBB0_6
LBB0_2:
	mov	w11, #0
	mov	w12, #0
	mov	x9, #0
Lloh0:
	adrp	x17, _LONG_MAX@GOTPAGE
Lloh1:
	ldr	x17, [x17, _LONG_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w17, [x17]
	sdiv	w17, w17, w15
	sxtw	x17, w17
	mov	w3, #2
	mov	w4, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	w5, w13, #48
	madd	x5, x9, x15, x5
	cmp	x9, x17
	csel	x9, x9, x5, gt
	csinc	w12, w12, wzr, le
	add	w5, w11, #3
	and	w6, w13, #0xff
	and	w13, w13, #0xfe
	cmp	w13, #50
	cinc	w13, w3, ne
	cmp	w6, #49
	csel	w13, w13, w4, ne
	cmp	w6, #48
	csel	w13, wzr, w13, eq
	cmp	w11, #0
	csel	w13, w5, w13, ne
	cmp	w14, #48
	csel	w11, w11, w13, ne
	ldrsb	w13, [x10], #1
	cmp	w13, #48
	ccmp	w16, w13, #4, ge
	b.gt	LBB0_3
; %bb.4:
	sub	x17, x10, #1
	cbz	w1, LBB0_6
LBB0_5:
	cmp	w13, #0
	ccmp	w13, w1, #4, ne
	mov	x17, x10
	b.ne	LBB0_10
LBB0_6:
	str	x17, [x0]
	tst	w12, #0xff
	b.eq	LBB0_12
; %bb.7:
	cbz	w11, LBB0_10
; %bb.8:
	mov	x0, #0
	cbz	x2, LBB0_15
; %bb.9:
	cmp	w8, #45
	cinc	w8, w11, eq
	str	w8, [x2]
	ret
LBB0_10:
	cbz	x2, LBB0_16
; %bb.11:
	mov	x0, #0
	mov	w8, #-1
	str	w8, [x2]
	ret
LBB0_12:
	cbz	x2, LBB0_14
; %bb.13:
	str	wzr, [x2]
LBB0_14:
	cmp	w8, #45
	cneg	x0, x9, eq
LBB0_15:
	ret
LBB0_16:
	mov	x0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LONG_MAX,4,2                   ; @LONG_MAX
	.no_dead_strip	_read_huge_number
.subsections_via_symbols
