	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cstr_join_with_sugar           ## -- Begin function cstr_join_with_sugar
	.p2align	4, 0x90
_cstr_join_with_sugar:                  ## @cstr_join_with_sugar
	.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	%rdi, %r15
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	callq	_tl_token_length
	xorl	%edi, %edi
	cmpl	$0, -48(%rbp)
	setg	%dil
	callq	_assert
	movl	-48(%rbp), %eax
	cmpl	$1, %eax
	jne	LBB0_2
## %bb.1:
	movq	(%r15), %rdi
	callq	_cstr_dup
	movq	%rax, %rbx
	jmp	LBB0_6
LBB0_2:
	movl	-44(%rbp), %ecx
	leal	(%rax,%rcx), %edi
	incl	%edi
	movl	%edi, -44(%rbp)
	callq	_tl_zzmalloc
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%r15, %r15
	je	LBB0_5
## %bb.3:
	xorl	%r12d, %r12d
	movl	$62, %r13d
	movl	$60, %r14d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rsi
	movq	%rbx, %rdi
	callq	_stpcpy
	subl	%ebx, %eax
	movslq	%eax, %rcx
	movl	-48(%rbp), %eax
	decl	%eax
	cmpl	%eax, %r12d
	movl	$44, %edx
	cmovel	%r13d, %edx
	testl	%r12d, %r12d
	cmovel	%r14d, %edx
	leaq	(%rbx,%rcx), %rax
	incq	%rax
	movb	%dl, (%rbx,%rcx)
	movq	8(%r15), %r15
	incl	%r12d
	movq	%rax, %rbx
	testq	%r15, %r15
	jne	LBB0_4
LBB0_5:
	movb	$0, (%rax)
	incq	%rax
	movslq	-44(%rbp), %rcx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	addq	%rcx, %rdx
	xorl	%edi, %edi
	cmpq	%rdx, %rax
	sete	%dil
	callq	_assert
LBB0_6:
	movq	%rbx, %rax
	addq	$24, %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	_cstr_join_with_sugar           ; -- Begin function cstr_join_with_sugar
	.p2align	2
_cstr_join_with_sugar:                  ; @cstr_join_with_sugar
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	add	x1, sp, #12
	add	x2, sp, #8
	bl	_tl_token_length
	ldr	w8, [sp, #12]
	cmp	w8, #0
	cset	w0, gt
	bl	_assert
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.1:
	ldr	x0, [x19]
	bl	_cstr_dup
	mov	x20, x0
	b	LBB0_6
LBB0_2:
	ldr	w9, [sp, #8]
	add	w8, w8, w9
	add	w0, w8, #1
	str	w0, [sp, #8]
	bl	_tl_zzmalloc
	mov	x20, x0
	mov	x21, x0
	cbz	x19, LBB0_5
; %bb.3:
	mov	w22, #0
	mov	w23, #44
	mov	w24, #62
	mov	w25, #60
	mov	x21, x20
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x19]
	mov	x0, x21
	bl	_stpcpy
	sub	w8, w0, w21
	add	x21, x21, w8, sxtw
	ldr	w8, [sp, #12]
	sub	w8, w8, #1
	cmp	w22, w8
	csel	w8, w24, w23, eq
	cmp	w22, #0
	csel	w8, w25, w8, eq
	strb	w8, [x21], #1
	ldr	x19, [x19, #8]
	add	w22, w22, #1
	cbnz	x19, LBB0_4
LBB0_5:
	strb	wzr, [x21], #1
	ldrsw	x8, [sp, #8]
	add	x8, x20, x8
	cmp	x21, x8
	cset	w0, eq
	bl	_assert
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
