	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tl_fetch_string_len
_tl_fetch_string_len:                   ## @tl_fetch_string_len
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	movl	$4, %edi
	callq	_tl_fetch_check
	testq	%rax, %rax
	js	LBB0_10
## %bb.1:
	movl	$0, -12(%rbp)
	leaq	-12(%rbp), %rdi
	movl	$1, %esi
	callq	_tl_fetch_raw_data
	movl	-12(%rbp), %eax
	cmpl	$254, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$255, %eax
	jne	LBB0_5
## %bb.3:
	movq	_TL_ERROR_SYNTAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_tl_fetch_set_error
	jmp	LBB0_10
LBB0_4:
	leaq	-12(%rbp), %rdi
	movl	$3, %esi
	callq	_tl_fetch_raw_data
	movl	-12(%rbp), %eax
LBB0_5:
	cmpl	%ebx, %eax
	jle	LBB0_7
## %bb.6:
	movq	_TL_ERROR_TOO_LONG_STRING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	jmp	LBB0_9
LBB0_7:
	movq	_TL_IN_REMAINING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	cmpl	%edx, %eax
	jle	LBB0_11
## %bb.8:
	movq	_TL_ERROR_SYNTAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_9:
	movl	%eax, %ecx
	callq	_tl_fetch_set_error_format
LBB0_10:
	movl	$-1, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"String len can not start with 0xff"

	.comm	_TL_ERROR_SYNTAX,4,2            ## @TL_ERROR_SYNTAX
	.comm	_TL_ERROR_TOO_LONG_STRING,4,2   ## @TL_ERROR_TOO_LONG_STRING
L_.str.1:                               ## @.str.1
	.asciz	"string is too long: max_len = %d, len = %d"

	.comm	_TL_IN_REMAINING,4,2            ## @TL_IN_REMAINING
L_.str.2:                               ## @.str.2
	.asciz	"string is too long: remaining_bytes = %d, len = %d"

	.no_dead_strip	_tl_fetch_string_len
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tl_fetch_string_len
_tl_fetch_string_len:                   ; @tl_fetch_string_len
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	mov	w0, #4
	bl	_tl_fetch_check
	tbnz	x0, #63, LBB0_10
; %bb.1:
	str	wzr, [sp, #12]
	add	x0, sp, #12
	mov	w1, #1
	bl	_tl_fetch_raw_data
	ldr	w3, [sp, #12]
	cmp	w3, #254
	b.eq	LBB0_4
; %bb.2:
	cmp	w3, #255
	b.ne	LBB0_5
; %bb.3:
Lloh0:
	adrp	x8, _TL_ERROR_SYNTAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TL_ERROR_SYNTAX@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_tl_fetch_set_error
	b	LBB0_10
LBB0_4:
	add	x0, sp, #12
	mov	w1, #3
	bl	_tl_fetch_raw_data
	ldr	w3, [sp, #12]
LBB0_5:
	cmp	w3, w19
	b.le	LBB0_7
; %bb.6:
Lloh5:
	adrp	x8, _TL_ERROR_TOO_LONG_STRING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TL_ERROR_TOO_LONG_STRING@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	b	LBB0_9
LBB0_7:
Lloh10:
	adrp	x8, _TL_IN_REMAINING@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TL_IN_REMAINING@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	cmp	w3, w2
	b.le	LBB0_11
; %bb.8:
Lloh13:
	adrp	x8, _TL_ERROR_SYNTAX@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TL_ERROR_SYNTAX@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_9:
	bl	_tl_fetch_set_error_format
LBB0_10:
	mov	w3, #-1
LBB0_11:
	mov	x0, x3
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"String len can not start with 0xff"

	.comm	_TL_ERROR_SYNTAX,4,2            ; @TL_ERROR_SYNTAX
	.comm	_TL_ERROR_TOO_LONG_STRING,4,2   ; @TL_ERROR_TOO_LONG_STRING
l_.str.1:                               ; @.str.1
	.asciz	"string is too long: max_len = %d, len = %d"

	.comm	_TL_IN_REMAINING,4,2            ; @TL_IN_REMAINING
l_.str.2:                               ; @.str.2
	.asciz	"string is too long: remaining_bytes = %d, len = %d"

	.no_dead_strip	_tl_fetch_string_len
.subsections_via_symbols
