	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_number
_parse_number:                          ## @parse_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
	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
	movl	%esi, %r12d
	movq	%rdi, %rbx
	leal	1(%r12), %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	(%rbx), %rax
	movb	(%rax), %al
	xorl	%r13d, %r13d
	testb	%al, %al
	je	LBB0_12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	%al, %edi
	callq	_isspace
	movq	(%rbx), %rcx
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	1(%rcx), %rax
	movq	%rax, (%rbx)
	movzbl	1(%rcx), %eax
	testb	%al, %al
	jne	LBB0_4
LBB0_12:
	movl	%r13d, %eax
	movb	$0, (%r15,%rax)
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	movl	$10, %edx
	callq	_strtol
	movl	%eax, (%r14)
	movq	%r15, %rdi
	callq	_free
	xorl	%eax, %eax
	cmpq	%r15, -48(%rbp)
	sete	%al
	negl	%eax
	jmp	LBB0_13
LBB0_1:
	movl	$-1, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movb	(%rcx), %al
	testb	%al, %al
	je	LBB0_12
## %bb.7:
	testl	%r12d, %r12d
	jle	LBB0_12
## %bb.8:
	movl	%r12d, %r12d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	%al, %edi
	callq	_isdigit
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	(%rbx), %rax
	movzbl	(%rax), %eax
	movb	%al, (%r15,%r13)
	incq	%r13
	movq	(%rbx), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, (%rbx)
	movzbl	1(%rax), %eax
	testb	%al, %al
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	%r12, %r13
	jb	LBB0_9
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_parse_number
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_number
_parse_number:                          ; @parse_number
	.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	x22, x1
	mov	x21, x0
	add	w0, w1, #1
	bl	_malloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	x8, [x21]
	ldrb	w8, [x8]
	cbz	w8, LBB0_6
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	and	w0, w8, #0xff
	bl	_isspace
	ldr	x8, [x21]
	cbz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x8, #1
	str	x9, [x21]
	ldrb	w8, [x8, #1]
	cbnz	w8, LBB0_2
	b	LBB0_6
LBB0_4:
	mov	w0, #-1
	b	LBB0_8
LBB0_5:
	ldrb	w8, [x8]
	cmp	w8, #0
	ccmp	w22, #1, #8, ne
	b.ge	LBB0_9
LBB0_6:
	mov	w23, #0
LBB0_7:
	strb	wzr, [x20, w23, uxtw]
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #10
	bl	_strtol
	str	w0, [x19]
	mov	x0, x20
	bl	_free
	ldr	x8, [sp, #8]
	cmp	x8, x20
	csetm	w0, eq
LBB0_8:
	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_9:
	mov	x23, #0
	mov	w22, w22
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	and	w0, w8, #0xff
	bl	_isdigit
	cbz	x0, LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x21]
	ldrb	w8, [x8]
	strb	w8, [x20, x23]
	add	x23, x23, #1
	ldr	x8, [x21]
	add	x9, x8, #1
	str	x9, [x21]
	ldrb	w8, [x8, #1]
	cmp	w8, #0
	ccmp	x23, x22, #2, ne
	b.lo	LBB0_10
	b	LBB0_7
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_parse_number
.subsections_via_symbols
