	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jsmn_parse_primitive
_jsmn_parse_primitive:                  ## @jsmn_parse_primitive
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	(%rdi), %r14d
	movslq	%r14d, %rdi
	cmpq	%rdx, %rdi
	jae	LBB0_7
## %bb.1:
	leal	1(%r14), %r11d
	movq	_JSMN_ERROR_INVAL@GOTPCREL(%rip), %r9
	movabsq	$288247972632733184, %r10       ## imm = 0x400100100002600
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rsi,%rdi), %ebx
	movsbl	%bl, %eax
	cmpl	$58, %eax
	ja	LBB0_3
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	btq	%rax, %r10
	jb	LBB0_7
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$93, %eax
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$125, %eax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	addb	$-127, %bl
	cmpb	$-95, %bl
	jb	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdi
	movl	%r11d, (%r15)
	incl	%r11d
	cmpq	%rdx, %rdi
	jb	LBB0_2
LBB0_7:
	movq	%r15, %rdi
	movq	%rcx, %rsi
	movq	%r8, %rdx
	callq	_jsmn_alloc_token
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	_JSMN_PRIMITIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%r15), %ecx
	movq	%rax, %rdi
	movl	%r14d, %edx
	callq	_jsmn_fill_token
	movl	(%r15), %r14d
	decl	%r14d
	movq	_JSMN_SUCCESS@GOTPCREL(%rip), %r9
	jmp	LBB0_10
LBB0_8:
	movq	_JSMN_ERROR_NOMEM@GOTPCREL(%rip), %r9
LBB0_10:
	movl	%r14d, (%r15)
	movl	(%r9), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_JSMN_ERROR_INVAL,4,2           ## @JSMN_ERROR_INVAL
	.comm	_JSMN_ERROR_NOMEM,4,2           ## @JSMN_ERROR_NOMEM
	.comm	_JSMN_PRIMITIVE,4,2             ## @JSMN_PRIMITIVE
	.comm	_JSMN_SUCCESS,4,2               ## @JSMN_SUCCESS
	.comm	_JSMN_ERROR_PART,4,2            ## @JSMN_ERROR_PART
	.no_dead_strip	_jsmn_parse_primitive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jsmn_parse_primitive
_jsmn_parse_primitive:                  ; @jsmn_parse_primitive
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldrsw	x20, [x0]
	and	x21, x20, #0xffffffff
	cmp	x20, x2
	b.hs	LBB0_7
; %bb.1:
	mov	x8, #0
	add	x9, x1, x20
	mov	w10, #1
	mov	x11, #9728
	movk	x11, #4097, lsl #32
	movk	x11, #1024, lsl #48
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w12, [x9, x8]
	cmp	w12, #58
	lsl	x13, x10, x12
	and	x13, x13, x11
	ccmp	x13, #0, #4, ls
	b.ne	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w12, #93
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w12, #125
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	and	w12, w12, #0xff
	sub	w12, w12, #127
	and	w12, w12, #0xff
	cmp	w12, #161
	b.lo	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w12, w21, w8
	add	w12, w12, #1
	str	w12, [x19]
	add	x8, x8, #1
	add	x12, x20, x8
	cmp	x12, x2
	b.lo	LBB0_2
LBB0_7:
	mov	x0, x19
	mov	x1, x3
	mov	x2, x4
	bl	_jsmn_alloc_token
	cbz	x0, LBB0_9
; %bb.8:
Lloh0:
	adrp	x8, _JSMN_PRIMITIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _JSMN_PRIMITIVE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w3, [x19]
	mov	x2, x20
	bl	_jsmn_fill_token
	ldr	w8, [x19]
	sub	w21, w8, #1
Lloh3:
	adrp	x8, _JSMN_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _JSMN_SUCCESS@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh5:
	adrp	x8, _JSMN_ERROR_NOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _JSMN_ERROR_NOMEM@GOTPAGEOFF]
LBB0_10:
	str	w21, [x19]
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh7:
	adrp	x8, _JSMN_ERROR_INVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _JSMN_ERROR_INVAL@GOTPAGEOFF]
	b	LBB0_10
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_JSMN_ERROR_INVAL,4,2           ; @JSMN_ERROR_INVAL
	.comm	_JSMN_ERROR_NOMEM,4,2           ; @JSMN_ERROR_NOMEM
	.comm	_JSMN_PRIMITIVE,4,2             ; @JSMN_PRIMITIVE
	.comm	_JSMN_SUCCESS,4,2               ; @JSMN_SUCCESS
	.comm	_JSMN_ERROR_PART,4,2            ; @JSMN_ERROR_PART
	.no_dead_strip	_jsmn_parse_primitive
.subsections_via_symbols
