	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tl_fetch_string                ## -- Begin function tl_fetch_string
	.p2align	4, 0x90
_tl_fetch_string:                       ## @tl_fetch_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, (%rdx)
	movl	$-1, %eax
	testl	%esi, %esi
	jle	LBB0_18
## %bb.1:
	movq	%rdx, %r14
	movq	%rdi, %r15
	movslq	%esi, %rdx
	movl	(%rdi), %esi
	movzbl	%sil, %ebx
	cmpl	$253, %ebx
	ja	LBB0_9
## %bb.2:
	leaq	(%r15,%rdx,4), %rdx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.3:
	movl	%ebx, (%rcx)
LBB0_4:
	movq	%rbx, %r12
	shrq	$2, %r12
	leaq	(%r15,%r12,4), %rcx
	addq	$4, %rcx
	cmpq	%rcx, %rdx
	jb	LBB0_18
## %bb.5:
	incq	%r15
	testl	%r8d, %r8d
	je	LBB0_7
## %bb.6:
	leal	1(%rbx), %edi
	callq	_tl_zzmalloc
	movq	%rax, (%r14)
	movq	%rax, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	movq	(%r14), %rax
	movb	$0, (%rax,%rbx)
	incl	%r12d
	jmp	LBB0_17
LBB0_9:
	cmpl	$254, %ebx
	jne	LBB0_18
## %bb.10:
	movq	%rsi, %rbx
	shrq	$8, %rbx
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.11:
	movl	%ebx, (%rcx)
LBB0_12:
	cmpl	$65024, %esi                    ## imm = 0xFE00
	jb	LBB0_18
## %bb.13:
	leaq	7(%rbx), %r12
	shrq	$2, %r12
	cmpq	%r12, %rdx
	jl	LBB0_18
## %bb.14:
	addq	$4, %r15
	testl	%r8d, %r8d
	je	LBB0_16
## %bb.15:
	leal	1(%rbx), %edi
	callq	_tl_zzmalloc
	movq	%rax, (%r14)
	movq	%rax, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	movq	(%r14), %rax
	movb	$0, (%rax,%rbx)
	jmp	LBB0_17
LBB0_7:
	movq	%r15, (%r14)
	incl	%r12d
	jmp	LBB0_17
LBB0_16:
	movq	%r15, (%r14)
LBB0_17:
	movl	%r12d, %eax
LBB0_18:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tl_fetch_string                ; -- Begin function tl_fetch_string
	.p2align	2
_tl_fetch_string:                       ; @tl_fetch_string
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	str	xzr, [x2]
	cmp	w1, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x19, x2
	ldr	w8, [x0]
	and	x20, x8, #0xff
	cmp	w20, #253
	b.hi	LBB0_7
; %bb.2:
	add	x8, x0, w1, sxtw #2
	cbz	x3, LBB0_4
; %bb.3:
	str	w20, [x3]
LBB0_4:
	lsr	x22, x20, #2
	add	x9, x0, x22, lsl #2
	add	x9, x9, #4
	cmp	x8, x9
	b.lo	LBB0_12
; %bb.5:
	add	x21, x0, #1
	cbz	w4, LBB0_14
; %bb.6:
	add	w0, w20, #1
	bl	_tl_zzmalloc
	str	x0, [x19]
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	ldr	x8, [x19]
	strb	wzr, [x8, x20]
	add	w20, w22, #1
	b	LBB0_13
LBB0_7:
	cmp	w20, #254
	b.ne	LBB0_12
; %bb.8:
	lsr	x21, x8, #8
	cbz	x3, LBB0_10
; %bb.9:
	str	w21, [x3]
LBB0_10:
	ubfx	x8, x8, #9, #23
	cmp	w8, #127
	b.lo	LBB0_12
; %bb.11:
	sxtw	x8, w1
	add	x9, x21, #7
	lsr	x20, x9, #2
	cmp	x8, x20
	b.ge	LBB0_15
LBB0_12:
	mov	w20, #-1
LBB0_13:
	mov	x0, x20
	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_14:
	str	x21, [x19]
	add	w20, w22, #1
	b	LBB0_13
LBB0_15:
	add	x22, x0, #4
	cbz	w4, LBB0_17
; %bb.16:
	add	w0, w21, #1
	bl	_tl_zzmalloc
	str	x0, [x19]
	mov	x1, x22
	mov	x2, x21
	bl	_memcpy
	ldr	x8, [x19]
	strb	wzr, [x8, x21]
	b	LBB0_13
LBB0_17:
	str	x22, [x19]
	b	LBB0_13
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
