	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function strncat_from_utf8_to_utf8
_strncat_from_utf8_to_utf8:             ## @strncat_from_utf8_to_utf8
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rdi), %rax
	leaq	(%rdx,%rax), %rsi
	incq	%rsi
	callq	_archive_string_ensure
	testq	%rax, %rax
	je	LBB0_23
## %bb.1:
	movq	8(%r14), %rax
	movq	(%r14), %rcx
	addq	%rax, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movslq	16(%r14), %rcx
	addq	%rcx, %rax
	decq	%rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	leaq	-44(%rbp), %r13
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	%rax, %r13
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, %eax
	addq	%rax, %r15
	subq	%rax, %r12
	cmpl	$0, -80(%rbp)                   ## 4-byte Folded Reload
	leaq	-44(%rbp), %r13
	je	LBB0_25
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##     Child Loop BB0_19 Depth 2
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_utf8_to_unicode
	movl	%eax, %ebx
	testl	%eax, %eax
	jle	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %r14
	movq	%r15, %r13
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %eax
	addq	%rax, %r15
	subq	%rax, %r12
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_utf8_to_unicode
	movl	%eax, %ebx
	testl	%eax, %eax
	jg	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r15, %r13
	jae	LBB0_12
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rsi
	movq	%r15, %r14
	subq	%r13, %r14
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	leaq	(%r14,%r13), %rax
	cmpq	-72(%rbp), %rax                 ## 8-byte Folded Reload
	jbe	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, %rax
	movq	%rsi, %r13
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	subq	8(%r14), %rax
	movq	%rax, (%r14)
	movslq	16(%r14), %rax
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	leaq	(%r12,%rax), %rsi
	incq	%rsi
	movq	%r14, %rdi
	callq	_archive_string_ensure
	testq	%rax, %rax
	je	LBB0_23
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r14), %rax
	movq	(%r14), %rdx
	addq	%rax, %rdx
	movslq	16(%r14), %rcx
	addq	%rcx, %rax
	decq	%rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%rdx, %r13
	movq	-80(%rbp), %r14                 ## 8-byte Reload
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_memcpy
	addq	%r14, %r13
	testl	%ebx, %ebx
	js	LBB0_13
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %r13
	cmpq	%r15, %r13
	jb	LBB0_7
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	testl	%ebx, %ebx
	jns	LBB0_24
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$-3, %ebx
	jne	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %edi
	callq	_IS_SURROGATE_PAIR_LA
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	-44(%rbp), %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_cesu8_to_unicode
	movl	%eax, %ebx
	negl	%ebx
	cmovsl	%eax, %ebx
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	movl	$-1, %ecx
	cmovsl	%ecx, %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	negl	%ebx
	movl	$-1, -60(%rbp)                  ## 4-byte Folded Spill
	movl	$1, -80(%rbp)                   ## 4-byte Folded Spill
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %esi
	subl	%r13d, %esi
	movl	-44(%rbp), %edx
	movq	%r13, %rdi
	callq	_unicode_to_utf8
	testq	%rax, %rax
	jne	LBB0_2
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	leaq	1(%r12), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	subq	8(%r14), %r13
	movq	%r13, (%r14)
	movslq	16(%r14), %rsi
	addq	-72(%rbp), %rsi                 ## 8-byte Folded Reload
	movq	%r14, %rdi
	callq	_archive_string_ensure
	testq	%rax, %rax
	je	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=2
	movq	8(%r14), %rax
	movq	(%r14), %r13
	addq	%rax, %r13
	movslq	16(%r14), %rcx
	leaq	(%rax,%rcx), %r12
	decq	%r12
	movl	%r12d, %esi
	subl	%r13d, %esi
	movl	-44(%rbp), %edx
	movq	%r13, %rdi
	callq	_unicode_to_utf8
	testq	%rax, %rax
	je	LBB0_19
## %bb.21:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_2
LBB0_23:
	movl	$-1, %eax
LBB0_26:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
LBB0_25:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, %rax
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	subq	8(%rdx), %rax
	movq	%rax, (%rdx)
	movb	$0, (%rcx)
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_strncat_from_utf8_to_utf8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function strncat_from_utf8_to_utf8
_strncat_from_utf8_to_utf8:             ; @strncat_from_utf8_to_utf8
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	mov	x24, x1
	mov	x19, x0
	ldr	x8, [x0]
	add	x8, x2, x8
	add	x1, x8, #1
	bl	_archive_string_ensure
	cbz	x0, LBB0_19
; %bb.1:
	mov	w20, #0
	ldp	x9, x8, [x19]
	add	x22, x8, x9
	ldrsw	x9, [x19, #16]
	add	x8, x8, x9
	sub	x27, x8, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, x0
	mov	w8, w24
	add	x24, x23, x8
	sub	x21, x21, x8
	cbz	w25, LBB0_21
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
                                        ;     Child Loop BB0_17 Depth 2
	add	x0, sp, #12
	mov	x1, x24
	mov	x2, x21
	bl	_utf8_to_unicode
	mov	x25, x0
	mov	x23, x24
	cmp	w0, #1
	b.lt	LBB0_5
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	w8, w25
	add	x23, x23, x8
	sub	x21, x21, x8
	add	x0, sp, #12
	mov	x1, x23
	mov	x2, x21
	bl	_utf8_to_unicode
	mov	x25, x0
	cmp	w0, #0
	b.gt	LBB0_4
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	x24, x23
	b.hs	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	x26, x23, x24
	add	x8, x22, x26
	cmp	x8, x27
	b.ls	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #8]
	sub	x8, x22, x8
	str	x8, [x19]
	ldrsw	x8, [x19, #16]
	add	x8, x21, x8
	add	x1, x8, #1
	mov	x0, x19
	bl	_archive_string_ensure
	cbz	x0, LBB0_19
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	x9, x8, [x19]
	add	x22, x8, x9
	ldrsw	x9, [x19, #16]
	add	x8, x8, x9
	sub	x27, x8, #1
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	mov	x1, x24
	mov	x2, x26
	bl	_memcpy
	add	x22, x22, x26
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	tbz	w25, #31, LBB0_21
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	cmn	w25, #3
	b.ne	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [sp, #12]
	bl	_IS_SURROGATE_PAIR_LA
	cbz	x0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #12
	mov	x1, x23
	mov	x2, x21
	bl	_cesu8_to_unicode
	mov	x25, x0
	cmp	w0, #0
	cneg	w24, w0, mi
	csinv	w20, w20, wzr, ge
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	neg	w24, w25
	mov	w20, #-1
	mov	w25, #1
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w1, w27, w22
	ldr	w2, [sp, #12]
	mov	x0, x22
	bl	_unicode_to_utf8
	cbnz	x0, LBB0_2
; %bb.16:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x26, x21, #1
LBB0_17:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #8]
	sub	x8, x22, x8
	str	x8, [x19]
	ldrsw	x8, [x19, #16]
	add	x1, x26, x8
	mov	x0, x19
	bl	_archive_string_ensure
	cbz	x0, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=2
	ldp	x9, x8, [x19]
	ldrsw	x10, [x19, #16]
	add	x10, x8, x10
	sub	x27, x10, #1
	add	x22, x8, x9
	sub	w1, w27, w22
	ldr	w2, [sp, #12]
	mov	x0, x22
	bl	_unicode_to_utf8
	cbz	x0, LBB0_17
	b	LBB0_2
LBB0_19:
	mov	w20, #-1
LBB0_20:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_21:
	ldr	x8, [x19, #8]
	sub	x8, x22, x8
	str	x8, [x19]
	strb	wzr, [x22]
	b	LBB0_20
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_strncat_from_utf8_to_utf8
.subsections_via_symbols
