	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function json_parse_number
_json_parse_number:                     ## @json_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	%rdi, %r15
	movq	(%rdi), %rdi
	movq	%rdi, %rbx
	cmpq	%rsi, %rdi
	jae	LBB0_6
## %bb.1:
	movq	%rsi, %rcx
	subq	%rdi, %rcx
	leaq	-1(%rdi), %rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	decq	%rcx
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	1(%rbx), %eax
	cmpb	$45, %al
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addb	$-58, %al
	cmpb	$-10, %al
	jae	LBB0_4
	jmp	LBB0_6
LBB0_5:
	movq	%rsi, %rbx
LBB0_6:
	xorl	%ecx, %ecx
	cmpq	%rsi, %rbx
	sete	%cl
	subq	%rcx, %rbx
	movl	$-1, %r13d
	movq	%rbx, %r14
	subq	%rdi, %r14
	jb	LBB0_9
## %bb.7:
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	leaq	2(%r14), %rdi
	callq	_os_malloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rax, %r12
	leaq	1(%r14), %rdx
	movq	(%r15), %rsi
	movq	%rax, %rdi
	callq	_os_memcpy
	movb	$0, 1(%r12,%r14)
	movq	%r12, %rdi
	callq	_atoi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	%r12, %rdi
	callq	_os_free
	movq	%rbx, (%r15)
	xorl	%r13d, %r13d
LBB0_9:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_json_parse_number
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function json_parse_number
_json_parse_number:                     ; @json_parse_number
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x2
	mov	x19, x0
	ldr	x8, [x0]
	mov	x9, x8
	cmp	x8, x1
	b.hs	LBB0_5
; %bb.1:
	sub	x10, x1, x8
	sub	x9, x8, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x9, #1]
	sub	w12, w11, #58
	cmp	w11, #45
	ccmn	w12, #10, #2, ne
	b.lo	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #1
	subs	x10, x10, #1
	b.ne	LBB0_2
; %bb.4:
	mov	x9, x1
LBB0_5:
	cmp	x9, x1
	cset	w10, eq
	sub	x23, x9, x10
	subs	x22, x23, x8
	b.lo	LBB0_8
; %bb.6:
	add	x0, x22, #2
	bl	_os_malloc
	cbz	x0, LBB0_8
; %bb.7:
	mov	x21, x0
	add	x22, x22, #1
	ldr	x1, [x19]
	mov	x2, x22
	bl	_os_memcpy
	strb	wzr, [x21, x22]
	mov	x0, x21
	bl	_atoi
	str	w0, [x20]
	mov	x0, x21
	bl	_os_free
	mov	w0, #0
	str	x23, [x19]
	b	LBB0_9
LBB0_8:
	mov	w0, #-1
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_json_parse_number
.subsections_via_symbols
