	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function json_parse_string
_json_parse_string:                     ## @json_parse_string
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r14
	incq	%r14
	movq	%rsi, %r12
	subq	%r14, %r12
	incq	%r12
	cmpq	$10, %r12
	movl	$10, %ebx
	cmovbq	%r12, %rbx
	movq	%rbx, %rdi
	callq	_os_malloc
	testq	%rax, %rax
	je	LBB0_35
## %bb.1:
	movq	%rax, %r8
	cmpq	%r13, %r14
	jae	LBB0_34
## %bb.2:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%r8, %r9
	addq	%rbx, %r9
	movq	%r8, %r15
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_6 Depth=1
	movb	%cl, (%r15)
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%r15
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%rax
	movq	%rax, %r14
	cmpq	%r13, %rax
	jae	LBB0_34
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r12, %rbx
	jae	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r9, %rax
	subq	%r15, %rax
	cmpq	$2, %rax
	jg	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	addq	%rbx, %rbx
	cmpq	%r12, %rbx
	cmovaeq	%r12, %rbx
	movq	%r8, %r13
	movq	%r8, %rdi
	movq	%rbx, %rsi
	callq	_os_realloc
	testq	%rax, %rax
	je	LBB0_30
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	subl	%r13d, %r15d
	movslq	%r15d, %r15
	addq	%rax, %r15
	movq	%rax, %r9
	addq	%rbx, %r9
	movq	%rax, %r8
	movq	-72(%rbp), %r13                 ## 8-byte Reload
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movzbl	(%r14), %eax
	movsbl	%al, %ecx
	cmpl	$92, %ecx
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$34, %ecx
	je	LBB0_28
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movb	%al, (%r15)
	incq	%r15
	movq	%r14, %rax
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	leaq	1(%r14), %rax
	cmpq	%r13, %rax
	jae	LBB0_29
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	movzbl	(%rax), %ecx
	movsbl	%cl, %edx
	leal	-92(%rdx), %esi
	cmpl	$25, %esi
	ja	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	leaq	LJTI0_0(%rip), %rdi
	movslq	(%rdi,%rsi,4), %rsi
	addq	%rdi, %rsi
	jmpq	*%rsi
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	movb	$10, (%r15)
	jmp	LBB0_4
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$47, %edx
	je	LBB0_3
## %bb.18:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$34, %edx
	je	LBB0_3
	jmp	LBB0_32
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=1
	movb	$13, (%r15)
	jmp	LBB0_4
LBB0_20:                                ##   in Loop: Header=BB0_6 Depth=1
	movb	$9, (%r15)
	jmp	LBB0_4
LBB0_21:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	subq	%rax, %r13
	cmpq	$5, %r13
	jl	LBB0_31
## %bb.22:                              ##   in Loop: Header=BB0_6 Depth=1
	leaq	2(%r14), %rdi
	leaq	-56(%rbp), %rsi
	movl	$2, %edx
	movq	%r9, %r13
	callq	_hexstr2bin
	testl	%eax, %eax
	js	LBB0_31
## %bb.23:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	-52(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_31
## %bb.24:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %r9
	movl	-56(%rbp), %ecx
	testl	%ecx, %ecx
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_6 Depth=1
	leaq	1(%r15), %rdx
	movb	%cl, (%r15)
	movl	$2, %ecx
	movl	-52(%rbp), %eax
	jmp	LBB0_27
LBB0_26:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, %ecx
	movq	%r15, %rdx
LBB0_27:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	addq	%rcx, %r15
	movb	%al, (%rdx)
	addq	$5, %r14
	movq	%r14, %rax
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_5
LBB0_28:
	movb	$0, (%r15)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
	jmp	LBB0_36
LBB0_29:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movq	%r8, %rbx
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_33:
	movq	%rbx, %r8
	jmp	LBB0_34
LBB0_30:
	movq	%r13, %r8
	jmp	LBB0_34
LBB0_31:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	-64(%rbp), %r8                  ## 8-byte Reload
LBB0_34:
	movq	%r8, %rdi
	callq	_os_free
LBB0_35:
	xorl	%r8d, %r8d
LBB0_36:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_38
## %bb.37:
	movq	%r8, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_32:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movq	%r8, %rbx
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_33
LBB0_38:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_32, LBB0_32-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_32
	.long	L0_0_set_32
	.long	L0_0_set_32
	.long	L0_0_set_32
	.long	L0_0_set_32
	.long	L0_0_set_32
	.long	L0_0_set_32
	.long	L0_0_set_32
	.long	L0_0_set_32
	.long	L0_0_set_32
	.long	L0_0_set_32
	.long	L0_0_set_32
	.long	L0_0_set_32
	.long	L0_0_set_32
	.long	L0_0_set_32
	.long	L0_0_set_32
	.long	L0_0_set_32
	.long	L0_0_set_16
	.long	L0_0_set_32
	.long	L0_0_set_32
	.long	L0_0_set_32
	.long	L0_0_set_19
	.long	L0_0_set_32
	.long	L0_0_set_20
	.long	L0_0_set_21
	.end_data_region
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"JSON: Truncated \\ escape"

L_.str.1:                               ## @.str.1
	.asciz	"JSON: Invalid \\u escape"

L_.str.2:                               ## @.str.2
	.asciz	"JSON: Unknown escape '%c'"

	.no_dead_strip	_json_parse_string
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function json_parse_string
_json_parse_string:                     ; @json_parse_string
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x8, [x0]
	add	x25, x8, #1
	sub	x8, x1, x25
	add	x23, x8, #1
	cmp	x23, #10
	mov	w9, #10
	csinc	x22, x9, x8, hs
	mov	x0, x22
	bl	_os_malloc
	mov	x19, x0
	cbz	x0, LBB0_34
; %bb.1:
	cmp	x25, x21
	b.hs	LBB0_33
; %bb.2:
	add	x24, x19, x22
	mov	w26, #9
	mov	x27, x19
Lloh3:
	adrp	x28, lJTI0_0@PAGE
Lloh4:
	add	x28, x28, lJTI0_0@PAGEOFF
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	and	w9, w9, #0xff
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	strb	w9, [x27], #1
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x25, x8, #1
	cmp	x25, x21
	b.hs	LBB0_33
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x22, x23
	b.hs	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	sub	x8, x24, x27
	cmp	x8, #2
	b.gt	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	lsl	x8, x22, #1
	cmp	x8, x23
	csel	x22, x8, x23, lo
	mov	x0, x19
	mov	x1, x22
	bl	_os_realloc
	cbz	x0, LBB0_33
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	sub	w8, w27, w19
	add	x27, x0, w8, sxtw
	add	x24, x0, x22
	mov	x19, x0
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrsb	w8, [x25]
	cmp	w8, #92
	b.eq	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	w8, #34
	b.eq	LBB0_28
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	and	w8, w8, #0xff
	strb	w8, [x27], #1
	mov	x8, x25
	b	LBB0_5
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x25, #1
	cmp	x8, x21
	b.hs	LBB0_29
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	ldrsb	w9, [x8]
	sub	w10, w9, #92
	cmp	w10, #25
	b.hi	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=1
	adr	x11, LBB0_3
	ldrb	w12, [x28, x10]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_16:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w9, #10
	b	LBB0_4
LBB0_17:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w9, #47
	b.eq	LBB0_3
; %bb.18:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	w9, #34
	b.eq	LBB0_3
	b	LBB0_31
LBB0_19:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w9, #13
	b	LBB0_4
LBB0_20:                                ;   in Loop: Header=BB0_6 Depth=1
	strb	w26, [x27], #1
	b	LBB0_5
LBB0_21:                                ;   in Loop: Header=BB0_6 Depth=1
	sub	x8, x21, x8
	cmp	x8, #5
	b.lt	LBB0_30
; %bb.22:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x0, x25, #2
	add	x1, sp, #16
	mov	w2, #2
	bl	_hexstr2bin
	tbnz	w0, #31, LBB0_30
; %bb.23:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp, #20]
	cbz	w8, LBB0_30
; %bb.24:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w10, [sp, #16]
	cbz	w10, LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x9, x27
	strb	w10, [x9], #1
	ldr	w8, [sp, #20]
	mov	w10, #2
	b	LBB0_27
LBB0_26:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w10, #1
	mov	x9, x27
LBB0_27:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x27, x27, x10
	strb	w8, [x9]
	add	x8, x25, #5
	b	LBB0_5
LBB0_28:
	strb	wzr, [x27]
	str	x25, [x20]
	b	LBB0_34
LBB0_29:
Lloh5:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_32
LBB0_30:
Lloh10:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_32
LBB0_31:
Lloh15:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	str	x9, [sp]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_32:
	bl	_wpa_printf
LBB0_33:
	mov	x0, x19
	bl	_os_free
	mov	x19, #0
LBB0_34:
	ldr	x8, [sp, #24]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_36
; %bb.35:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_36:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_31-LBB0_3)>>2
	.byte	(LBB0_31-LBB0_3)>>2
	.byte	(LBB0_31-LBB0_3)>>2
	.byte	(LBB0_31-LBB0_3)>>2
	.byte	(LBB0_31-LBB0_3)>>2
	.byte	(LBB0_31-LBB0_3)>>2
	.byte	(LBB0_31-LBB0_3)>>2
	.byte	(LBB0_31-LBB0_3)>>2
	.byte	(LBB0_31-LBB0_3)>>2
	.byte	(LBB0_31-LBB0_3)>>2
	.byte	(LBB0_31-LBB0_3)>>2
	.byte	(LBB0_31-LBB0_3)>>2
	.byte	(LBB0_31-LBB0_3)>>2
	.byte	(LBB0_31-LBB0_3)>>2
	.byte	(LBB0_31-LBB0_3)>>2
	.byte	(LBB0_31-LBB0_3)>>2
	.byte	(LBB0_31-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_31-LBB0_3)>>2
	.byte	(LBB0_31-LBB0_3)>>2
	.byte	(LBB0_31-LBB0_3)>>2
	.byte	(LBB0_19-LBB0_3)>>2
	.byte	(LBB0_31-LBB0_3)>>2
	.byte	(LBB0_20-LBB0_3)>>2
	.byte	(LBB0_21-LBB0_3)>>2
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"JSON: Truncated \\ escape"

l_.str.1:                               ; @.str.1
	.asciz	"JSON: Invalid \\u escape"

l_.str.2:                               ; @.str.2
	.asciz	"JSON: Unknown escape '%c'"

	.no_dead_strip	_json_parse_string
.subsections_via_symbols
