	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %r13
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rsi
	movq	%r13, %rdx
	callq	_DPRINTF
	cmpq	%r14, %r13
	je	LBB0_24
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	cmpb	$45, (%r13)
	sete	%r15b
	leaq	(%r15,%r13), %rbx
	xorl	%r12d, %r12d
	cmpq	%r14, %rbx
	jae	LBB0_6
## %bb.2:
	movzbl	(%rbx), %edi
	callq	_json_isdigit
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	leaq	(%r15,%r13), %rcx
	incq	%rcx
	movl	$1, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rbx
	cmpq	%r14, %rcx
	jae	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movzbl	(%rbx), %edi
	callq	_json_isdigit
	leaq	1(%rbx), %rcx
	testl	%eax, %eax
	jne	LBB0_4
LBB0_6:
	cmpq	%r14, %rbx
	je	LBB0_25
## %bb.7:
	xorl	%r15d, %r15d
	cmpb	$46, (%rbx)
	sete	%r15b
	leaq	(%rbx,%r15), %r13
	cmpq	%r14, %r13
	jae	LBB0_12
## %bb.8:
	movzbl	(%r13), %edi
	callq	_json_isdigit
	testl	%eax, %eax
	je	LBB0_12
## %bb.9:
	leaq	(%r15,%rbx), %rcx
	incq	%rcx
	movl	$1, %r12d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %r13
	cmpq	%r14, %rcx
	jae	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movzbl	(%r13), %edi
	callq	_json_isdigit
	leaq	1(%r13), %rcx
	testl	%eax, %eax
	jne	LBB0_10
LBB0_12:
	cmpq	%r14, %r13
	je	LBB0_27
## %bb.13:
	testl	%r12d, %r12d
	je	LBB0_27
## %bb.14:
	movb	(%r13), %al
	orb	$32, %al
	cmpb	$101, %al
	jne	LBB0_29
## %bb.15:
	leaq	1(%r13), %r15
	cmpq	%r14, %r15
	je	LBB0_31
## %bb.16:
	movb	(%r15), %al
	cmpb	$45, %al
	je	LBB0_18
## %bb.17:
	cmpb	$43, %al
	jne	LBB0_19
LBB0_18:
	addq	$2, %r13
	movq	%r13, %r15
LBB0_19:
	cmpq	%r14, %r15
	jae	LBB0_30
## %bb.20:
	movzbl	(%r15), %edi
	callq	_json_isdigit
	testl	%eax, %eax
	je	LBB0_34
## %bb.21:
	movq	%r15, %rbx
	notq	%rbx
	addq	%r14, %rbx
	movl	$1, %r12d
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	je	LBB0_35
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	movzbl	1(%r15), %edi
	incq	%r15
	callq	_json_isdigit
	decq	%rbx
	testl	%eax, %eax
	jne	LBB0_22
	jmp	LBB0_28
LBB0_24:
	xorl	%eax, %eax
	jmp	LBB0_33
LBB0_25:
	movq	%r14, %r15
	jmp	LBB0_28
LBB0_27:
	movq	%r13, %r15
LBB0_28:
	movq	%r15, %r14
	movq	%r15, %r13
	testl	%r12d, %r12d
	je	LBB0_31
LBB0_29:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdx
	leaq	L_.str.2(%rip), %rdi
	movq	%r13, %rsi
	callq	_DPRINTF
	movl	$1, %eax
	movq	%r13, %r14
	jmp	LBB0_32
LBB0_30:
	movq	%r15, %r14
LBB0_31:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdx
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	callq	_DPRINTF
	xorl	%eax, %eax
LBB0_32:
	movq	%r14, (%rbx)
LBB0_33:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_34:
	xorl	%r12d, %r12d
	jmp	LBB0_28
LBB0_35:
	movq	%r14, %r13
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Parse number: "

L_.str.1:                               ## @.str.1
	.asciz	"Bad number: "

L_.str.2:                               ## @.str.2
	.asciz	"Good number: "

	.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, x1
	mov	x19, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x21
	bl	_DPRINTF
	cmp	x21, x20
	b.eq	LBB0_27
; %bb.1:
	mov	x8, x21
	ldrb	w9, [x8], #1
	cmp	w9, #45
	cset	w22, eq
	csel	x23, x21, x8, ne
	cmp	x23, x20
	b.hs	LBB0_8
; %bb.2:
	ldrb	w0, [x23]
	bl	_json_isdigit
	cbz	w0, LBB0_8
; %bb.3:
	add	x8, x22, x21
	add	x21, x8, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x23, x21
	cmp	x21, x20
	b.hs	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, x23
	ldrb	w0, [x21], #1
	bl	_json_isdigit
	cbnz	w0, LBB0_4
LBB0_6:
	mov	w22, #1
	cmp	x23, x20
	b.ne	LBB0_9
LBB0_7:
	mov	x23, x20
	b	LBB0_29
LBB0_8:
	mov	w22, #0
	cmp	x23, x20
	b.eq	LBB0_7
LBB0_9:
	mov	x8, x23
	ldrb	w9, [x8], #1
	cmp	w9, #46
	cset	w24, eq
	csel	x21, x23, x8, ne
	cmp	x21, x20
	b.hs	LBB0_15
; %bb.10:
	ldrb	w0, [x21]
	bl	_json_isdigit
	cbz	w0, LBB0_15
; %bb.11:
	add	x8, x24, x23
	add	x22, x8, #1
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x21, x22
	cmp	x22, x20
	b.hs	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x22, x21
	ldrb	w0, [x22], #1
	bl	_json_isdigit
	cbnz	w0, LBB0_12
LBB0_14:
	mov	w22, #1
LBB0_15:
	cmp	x21, x20
	b.eq	LBB0_28
; %bb.16:
	cbz	w22, LBB0_28
; %bb.17:
	ldrb	w8, [x21]
	orr	w8, w8, #0x20
	cmp	w8, #101
	b.ne	LBB0_30
; %bb.18:
	add	x23, x21, #1
	cmp	x23, x20
	b.eq	LBB0_32
; %bb.19:
	ldrb	w8, [x23]
	cmp	w8, #45
	b.eq	LBB0_21
; %bb.20:
	cmp	w8, #43
	b.ne	LBB0_22
LBB0_21:
	add	x23, x21, #2
LBB0_22:
	cmp	x23, x20
	b.hs	LBB0_31
; %bb.23:
	ldrb	w0, [x23]
	bl	_json_isdigit
	cbz	w0, LBB0_35
; %bb.24:
	mvn	x8, x23
	add	x21, x8, x20
	mov	x8, x23
	mov	w22, #1
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	cbz	x21, LBB0_36
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	add	x23, x8, #1
	ldrb	w0, [x8, #1]
	bl	_json_isdigit
	sub	x21, x21, #1
	mov	x8, x23
	cbnz	w0, LBB0_25
	b	LBB0_29
LBB0_27:
	mov	w0, #0
	b	LBB0_34
LBB0_28:
	mov	x23, x21
LBB0_29:
	mov	x20, x23
	mov	x21, x23
	cbz	w22, LBB0_32
LBB0_30:
	ldr	x2, [x19]
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	bl	_DPRINTF
	mov	w0, #1
	mov	x20, x21
	b	LBB0_33
LBB0_31:
	mov	x20, x23
LBB0_32:
	ldr	x2, [x19]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_DPRINTF
	mov	w0, #0
LBB0_33:
	str	x20, [x19]
LBB0_34:
	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
LBB0_35:
	mov	w22, #0
	b	LBB0_29
LBB0_36:
	mov	x21, x20
	b	LBB0_30
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Parse number: "

l_.str.1:                               ; @.str.1
	.asciz	"Bad number: "

l_.str.2:                               ; @.str.2
	.asciz	"Good number: "

	.no_dead_strip	_json_parse_number
.subsections_via_symbols
