	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_utf16
_parse_utf16:                           ## @parse_utf16
	.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	$24, %rsp
	.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	(%rsi), %r13
	movq	(%rdi), %r12
	leaq	1(%r12), %rdi
	leaq	-44(%rbp), %rsi
	callq	_parse_utf16_hex
	movq	_JSONFailure@GOTPCREL(%rip), %r15
	testl	%eax, %eax
	je	LBB0_9
## %bb.1:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rbx
	movl	-44(%rbp), %r14d
	cmpl	$127, %r14d
	ja	LBB0_3
## %bb.2:
	movb	%r14b, (%r13)
	jmp	LBB0_7
LBB0_3:
	cmpl	$2047, %r14d                    ## imm = 0x7FF
	ja	LBB0_5
## %bb.4:
	shrl	$6, %r14d
	orb	$-64, %r14b
	movb	%r14b, (%r13)
	movb	-44(%rbp), %al
	andb	$63, %al
	orb	$-128, %al
	movb	%al, 1(%r13)
	incq	%r13
	jmp	LBB0_7
LBB0_5:
	leal	-57344(%r14), %eax
	cmpl	$-2049, %eax                    ## imm = 0xF7FF
	ja	LBB0_10
## %bb.6:
	shrl	$12, %r14d
	andb	$15, %r14b
	orb	$-32, %r14b
	movb	%r14b, (%r13)
	movl	-44(%rbp), %eax
	shrl	$6, %eax
	andb	$63, %al
	orb	$-128, %al
	movb	%al, 1(%r13)
	movb	-44(%rbp), %al
	andb	$63, %al
	orb	$-128, %al
	movb	%al, 2(%r13)
	addq	$2, %r13
LBB0_7:
	movl	$1, %eax
LBB0_8:
	addq	%r12, %rax
	addq	$3, %rax
	movq	%r13, (%rbx)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	_JSONSuccess@GOTPCREL(%rip), %r15
LBB0_9:
	movl	(%r15), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	cmpl	$56319, %r14d                   ## imm = 0xDBFF
	ja	LBB0_9
## %bb.11:
	cmpb	$92, 5(%r12)
	jne	LBB0_9
## %bb.12:
	cmpb	$117, 6(%r12)
	jne	LBB0_9
## %bb.13:
	leaq	7(%r12), %rdi
	leaq	-48(%rbp), %rsi
	callq	_parse_utf16_hex
	testl	%eax, %eax
	je	LBB0_9
## %bb.14:
	movl	-48(%rbp), %eax
	cmpl	$56320, %eax                    ## imm = 0xDC00
	jb	LBB0_9
## %bb.15:
	cmpl	$57343, %eax                    ## imm = 0xDFFF
	ja	LBB0_9
## %bb.16:
	shll	$10, %r14d
	andl	$1047552, %r14d                 ## imm = 0xFFC00
	andl	$1023, %eax                     ## imm = 0x3FF
	addl	%r14d, %eax
	addl	$65536, %eax                    ## imm = 0x10000
	movl	%eax, -44(%rbp)
	shrl	$18, %eax
	orb	$-16, %al
	movb	%al, (%r13)
	movl	-44(%rbp), %eax
	shrl	$12, %eax
	andb	$63, %al
	orb	$-128, %al
	movb	%al, 1(%r13)
	movl	-44(%rbp), %eax
	shrl	$6, %eax
	andb	$63, %al
	orb	$-128, %al
	movb	%al, 2(%r13)
	movb	-44(%rbp), %al
	andb	$63, %al
	orb	$-128, %al
	movb	%al, 3(%r13)
	addq	$3, %r13
	movl	$7, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_JSONFailure,4,2                ## @JSONFailure
	.comm	_JSONSuccess,4,2                ## @JSONSuccess
	.no_dead_strip	_parse_utf16
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_utf16
_parse_utf16:                           ; @parse_utf16
	.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	x20, x1
	mov	x19, x0
	ldr	x21, [x1]
	ldr	x22, [x0]
	add	x0, x22, #1
	add	x1, sp, #12
	bl	_parse_utf16_hex
	cbz	w0, LBB0_16
; %bb.1:
	ldr	w23, [sp, #12]
	cmp	w23, #127
	b.hi	LBB0_3
; %bb.2:
	strb	w23, [x21]
	b	LBB0_7
LBB0_3:
	cmp	w23, #2047
	b.hi	LBB0_5
; %bb.4:
	lsr	w8, w23, #6
	orr	w8, w8, #0xc0
	strb	w8, [x21]
	ldrb	w8, [sp, #12]
	mov	w9, #128
	bfxil	w9, w8, #0, #6
	strb	w9, [x21, #1]!
	b	LBB0_7
LBB0_5:
	sub	w8, w23, #14, lsl #12           ; =57344
	cmn	w8, #2049
	b.hi	LBB0_9
; %bb.6:
	mov	w8, #224
	bfxil	w8, w23, #12, #4
	strb	w8, [x21]
	ldr	w8, [sp, #12]
	mov	w9, #128
	mov	w10, #128
	bfxil	w10, w8, #6, #6
	ldrb	w8, [sp, #12]
	bfxil	w9, w8, #0, #6
	strb	w9, [x21, #2]!
	sturb	w10, [x21, #-1]
LBB0_7:
	mov	w8, #1
LBB0_8:
	add	x8, x22, x8
	add	x8, x8, #3
	str	x21, [x20]
	str	x8, [x19]
Lloh0:
	adrp	x8, _JSONSuccess@GOTPAGE
Lloh1:
	ldr	x8, [x8, _JSONSuccess@GOTPAGEOFF]
	b	LBB0_17
LBB0_9:
	lsr	w8, w23, #10
	cmp	w8, #54
	b.hi	LBB0_16
; %bb.10:
	ldrb	w8, [x22, #5]
	cmp	w8, #92
	b.ne	LBB0_16
; %bb.11:
	ldrb	w8, [x22, #6]
	cmp	w8, #117
	b.ne	LBB0_16
; %bb.12:
	add	x0, x22, #7
	add	x1, sp, #8
	bl	_parse_utf16_hex
Lloh2:
	adrp	x8, _JSONFailure@GOTPAGE
Lloh3:
	ldr	x8, [x8, _JSONFailure@GOTPAGEOFF]
	cbz	w0, LBB0_17
; %bb.13:
	ldr	w9, [sp, #8]
	lsr	w10, w9, #10
	cmp	w10, #55
	b.lo	LBB0_17
; %bb.14:
	lsr	w10, w9, #13
	cmp	w10, #6
	b.hi	LBB0_17
; %bb.15:
	and	w8, w9, #0x3ff
	bfi	w8, w23, #10, #10
	add	w8, w8, #16, lsl #12            ; =65536
	str	w8, [sp, #12]
	lsr	w8, w8, #18
	orr	w8, w8, #0xf0
	strb	w8, [x21]
	ldr	w8, [sp, #12]
	mov	w9, #128
	mov	w10, #128
	bfxil	w10, w8, #12, #6
	strb	w10, [x21, #1]
	ldr	w8, [sp, #12]
	mov	w10, #128
	bfxil	w10, w8, #6, #6
	ldrb	w8, [sp, #12]
	bfxil	w9, w8, #0, #6
	strb	w9, [x21, #3]!
	sturb	w10, [x21, #-1]
	mov	w8, #7
	b	LBB0_8
LBB0_16:
Lloh4:
	adrp	x8, _JSONFailure@GOTPAGE
Lloh5:
	ldr	x8, [x8, _JSONFailure@GOTPAGEOFF]
LBB0_17:
	ldr	w0, [x8]
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_JSONFailure,4,2                ; @JSONFailure
	.comm	_JSONSuccess,4,2                ; @JSONSuccess
	.no_dead_strip	_parse_utf16
.subsections_via_symbols
