	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tl_write_string                ## -- Begin function tl_write_string
	.p2align	4, 0x90
_tl_write_string:                       ## @tl_write_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r15
	movl	%esi, -44(%rbp)
	movl	%esi, %r12d
	notl	%r12d
	movl	%r12d, %edi
	shrl	$31, %edi
	callq	_assert
	xorl	%edi, %edi
	cmpl	$16777216, %ebx                 ## imm = 0x1000000
	setl	%dil
	callq	_assert
	leal	4(%rbx), %ecx
	movl	$-1, %eax
	cmpl	%r13d, %ecx
	jg	LBB0_4
## %bb.1:
	leaq	1(%r14), %rdi
	cmpl	$253, %ebx
	jg	LBB0_3
## %bb.2:
	movb	%bl, (%r14)
	movq	%r15, %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_memcpy
	andl	$3, %r12d
	movslq	%ebx, %rax
	leaq	(%r14,%rax), %rdi
	incq	%rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_memset
	movl	%ebx, %eax
	orl	$-4, %eax
	subl	%eax, %ebx
	movl	%ebx, %eax
	jmp	LBB0_4
LBB0_3:
	movb	$-2, (%r14)
	leaq	-44(%rbp), %rsi
	movl	$3, %edx
	xorl	%eax, %eax
	callq	_memcpy
	leaq	4(%r14), %rdi
	movl	-44(%rbp), %edx
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_memcpy
	movslq	-44(%rbp), %rbx
	leaq	(%r14,%rbx), %rdi
	addq	$4, %rdi
                                        ## kill: def $ebx killed $ebx killed $rbx def $rbx
	negl	%ebx
	andl	$3, %ebx
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memset
	movl	-44(%rbp), %eax
	addl	%ebx, %eax
	addl	$4, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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_write_string                ; -- Begin function tl_write_string
	.p2align	2
_tl_write_string:                       ; @tl_write_string
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x22, x3
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	str	w1, [sp, #28]
	mvn	w8, w1
	lsr	w0, w8, #31
	bl	_assert
	mov	w8, #16777216
	cmp	w21, w8
	cset	w0, lt
	bl	_assert
	add	w8, w21, #4
	cmp	w8, w22
	b.le	LBB0_2
; %bb.1:
	mov	w0, #-1
	b	LBB0_5
LBB0_2:
	cmp	w21, #253
	b.gt	LBB0_4
; %bb.3:
	mvn	w22, w21
	strb	w21, [x19], #1
	stp	x20, x21, [sp]
	mov	x0, x19
	bl	_memcpy
	and	w2, w22, #0x3
	add	x0, x19, w21, sxtw
	mov	w1, #0
	bl	_memset
	orr	w8, w21, #0xfffffffc
	sub	w0, w21, w8
	b	LBB0_5
LBB0_4:
	add	x0, x19, #1
	mov	w8, #254
	strb	w8, [x19], #4
	mov	w8, #3
	add	x9, sp, #28
	stp	x9, x8, [sp]
	bl	_memcpy
	ldr	w8, [sp, #28]
	stp	x20, x8, [sp]
	mov	x0, x19
	bl	_memcpy
	ldrsw	x8, [sp, #28]
	neg	w9, w8
	and	w20, w9, #0x3
	add	x0, x19, x8
	mov	w1, #0
	mov	x2, x20
	bl	_memset
	ldr	w8, [sp, #28]
	add	w8, w8, w20
	add	w0, w8, #4
LBB0_5:
	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
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
