	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function archive_string_append_unicode
_archive_string_append_unicode:         ## @archive_string_append_unicode
	.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	$72, %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, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movl	(%rcx), %eax
	movq	_SCONV_TO_UTF16BE@GOTPCREL(%rip), %rdx
	movq	_unicode_to_utf16be@GOTPCREL(%rip), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	$2, %ecx
	movb	$1, %r14b
	testl	%eax, (%rdx)
	jne	LBB0_10
## %bb.1:
	movq	_SCONV_TO_UTF16LE@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_3
## %bb.2:
	movq	_unicode_to_utf16le@GOTPCREL(%rip), %rdx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_10
LBB0_3:
	movq	_SCONV_TO_UTF8@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_5
## %bb.4:
	movq	_unicode_to_utf8@GOTPCREL(%rip), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	$1, %ecx
	xorl	%r14d, %r14d
	jmp	LBB0_10
LBB0_5:
	movq	_SCONV_FROM_UTF16BE@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	jne	LBB0_10
## %bb.6:
	movq	_SCONV_FROM_UTF16LE@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	testl	%eax, (%rcx)
	setne	%r14b
	sete	%dl
	jne	LBB0_8
## %bb.7:
	movq	_unicode_to_utf8@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_8:
	movq	_unicode_to_utf16le@GOTPCREL(%rip), %rcx
LBB0_9:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	$2, %ecx
	subl	%edx, %ecx
LBB0_10:
	movq	_SCONV_FROM_UTF16BE@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_12
## %bb.11:
	movq	_utf16be_to_unicode@GOTPCREL(%rip), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$1, %ebx
	jmp	LBB0_13
LBB0_12:
	movq	_SCONV_FROM_UTF16LE@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	movl	$1, %ebx
	cmovel	%ecx, %ebx
	movq	_utf16le_to_unicode@GOTPCREL(%rip), %rax
	cmoveq	_cesu8_to_unicode@GOTPCREL(%rip), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
LBB0_13:
	movq	%rbx, %rsi
	imulq	%r12, %rsi
	movl	%ecx, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	addq	%rax, %rsi
	addq	(%r13), %rsi
	movq	%r13, %rdi
	callq	_archive_string_ensure
	testq	%rax, %rax
	je	LBB0_23
## %bb.14:
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movl	%r14d, -76(%rbp)                ## 4-byte Spill
	movq	8(%r13), %r15
	movq	(%r13), %rbx
	addq	%r15, %rbx
	movslq	16(%r13), %r14
	leaq	-44(%rbp), %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	*-64(%rbp)                      ## 8-byte Folded Reload
	testl	%eax, %eax
	je	LBB0_24
## %bb.15:
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	negq	%rcx
	addq	%r14, %r15
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	addq	%rcx, %r15
	xorl	%edx, %edx
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_17 Depth=1
	addq	%rax, %rbx
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	addq	%r14, %rsi
	leaq	-44(%rbp), %rdi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdx
	callq	*-64(%rbp)                      ## 8-byte Folded Reload
	testl	%eax, %eax
	movl	-80(%rbp), %edx                 ## 4-byte Reload
	je	LBB0_25
LBB0_17:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_19 Depth 2
	movl	%eax, %r14d
	negl	%r14d
	cmovsl	%eax, %r14d
	testl	%eax, %eax
	movl	$-1, %eax
	cmovsl	%eax, %edx
	movl	%edx, -80(%rbp)                 ## 4-byte Spill
	subq	%r14, %r12
	movq	%r15, %rsi
	subq	%rbx, %rsi
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	callq	*-56(%rbp)                      ## 8-byte Folded Reload
	testq	%rax, %rax
	jne	LBB0_16
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	imulq	-104(%rbp), %r12                ## 8-byte Folded Reload
	addq	-88(%rbp), %r12                 ## 8-byte Folded Reload
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_17 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	subq	8(%r13), %rbx
	movq	%rbx, (%r13)
	movslq	16(%r13), %rsi
	addq	%r12, %rsi
	movq	%r13, %rdi
	callq	_archive_string_ensure
	testq	%rax, %rax
	je	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=2
	movq	8(%r13), %r15
	movq	(%r13), %rbx
	addq	%r15, %rbx
	movslq	16(%r13), %rax
	addq	-112(%rbp), %r15                ## 8-byte Folded Reload
	addq	%rax, %r15
	movq	%r15, %rsi
	subq	%rbx, %rsi
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	callq	*-56(%rbp)                      ## 8-byte Folded Reload
	testq	%rax, %rax
	je	LBB0_19
## %bb.21:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_23:
	movl	$-1, %edx
LBB0_27:
	movl	%edx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	xorl	%edx, %edx
LBB0_25:
	movq	%rbx, %rax
	subq	8(%r13), %rax
	movq	%rax, (%r13)
	movb	$0, (%rbx)
	cmpb	$0, -76(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_27
## %bb.26:
	movq	(%r13), %rax
	movq	8(%r13), %rcx
	movb	$0, 1(%rax,%rcx)
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.comm	_SCONV_TO_UTF16BE,4,2           ## @SCONV_TO_UTF16BE
	.comm	_SCONV_TO_UTF16LE,4,2           ## @SCONV_TO_UTF16LE
	.comm	_SCONV_TO_UTF8,4,2              ## @SCONV_TO_UTF8
	.comm	_SCONV_FROM_UTF16BE,4,2         ## @SCONV_FROM_UTF16BE
	.comm	_SCONV_FROM_UTF16LE,4,2         ## @SCONV_FROM_UTF16LE
	.no_dead_strip	_archive_string_append_unicode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function archive_string_append_unicode
_archive_string_append_unicode:         ; @archive_string_append_unicode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w8, [x3]
Lloh0:
	adrp	x9, _SCONV_TO_UTF16BE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SCONV_TO_UTF16BE@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x9]
Lloh3:
	adrp	x9, _SCONV_FROM_UTF16BE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SCONV_FROM_UTF16BE@GOTPAGEOFF]
	tst	w10, w8
	b.eq	LBB0_2
; %bb.1:
Lloh5:
	adrp	x24, _unicode_to_utf16be@GOTPAGE
Lloh6:
	ldr	x24, [x24, _unicode_to_utf16be@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh7:
	adrp	x10, _SCONV_TO_UTF16LE@GOTPAGE
Lloh8:
	ldr	x10, [x10, _SCONV_TO_UTF16LE@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
Lloh10:
	adrp	x24, _unicode_to_utf16le@GOTPAGE
Lloh11:
	ldr	x24, [x24, _unicode_to_utf16le@GOTPAGEOFF]
	tst	w10, w8
	b.eq	LBB0_20
LBB0_3:
	mov	w10, #2
	mov	w22, #1
LBB0_4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
Lloh12:
	adrp	x8, _utf16be_to_unicode@GOTPAGE
Lloh13:
	ldr	x8, [x8, _utf16be_to_unicode@GOTPAGEOFF]
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	mov	w28, #1
	b	LBB0_7
LBB0_6:
Lloh14:
	adrp	x9, _SCONV_FROM_UTF16LE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SCONV_FROM_UTF16LE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	csinc	w28, w10, wzr, eq
Lloh17:
	adrp	x8, _utf16le_to_unicode@GOTPAGE
Lloh18:
	ldr	x8, [x8, _utf16le_to_unicode@GOTPAGEOFF]
Lloh19:
	adrp	x9, _cesu8_to_unicode@GOTPAGE
Lloh20:
	ldr	x9, [x9, _cesu8_to_unicode@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
LBB0_7:
	ldr	x8, [x19]
	mov	w25, w10
	madd	x9, x28, x20, x25
	add	x1, x9, x8
	mov	x0, x19
	bl	_archive_string_ensure
	cbz	x0, LBB0_16
; %bb.8:
	str	w22, [sp, #20]                  ; 4-byte Folded Spill
	ldp	x8, x26, [x19]
	add	x23, x26, x8
	ldrsw	x27, [x19, #16]
	add	x0, sp, #44
	mov	x1, x21
	mov	x2, x20
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	blr	x8
	mov	w22, #0
	cbz	w0, LBB0_18
; %bb.9:
	str	x25, [sp, #24]                  ; 8-byte Folded Spill
	neg	x25, x25
	add	x8, x26, x27
	add	x26, x8, x25
	str	x28, [sp, #8]                   ; 8-byte Folded Spill
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x21, x21, x27
	add	x23, x23, x0
	add	x0, sp, #44
	mov	x1, x21
	mov	x2, x20
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	blr	x8
	cbz	w0, LBB0_18
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	cmp	w0, #0
	cneg	w27, w0, mi
	csinv	w22, w22, wzr, ge
	sub	x20, x20, x27
	sub	x1, x26, x23
	ldr	w2, [sp, #44]
	mov	x0, x23
	blr	x24
	cbnz	x0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	madd	x28, x20, x28, x8
LBB0_13:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #8]
	sub	x8, x23, x8
	str	x8, [x19]
	ldrsw	x8, [x19, #16]
	add	x1, x28, x8
	mov	x0, x19
	bl	_archive_string_ensure
	cbz	x0, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	ldp	x9, x8, [x19]
	ldrsw	x10, [x19, #16]
	add	x11, x8, x25
	add	x26, x11, x10
	add	x23, x8, x9
	sub	x1, x26, x23
	ldr	w2, [sp, #44]
	mov	x0, x23
	blr	x24
	cbz	x0, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x28, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_10
LBB0_16:
	mov	w22, #-1
LBB0_17:
	mov	x0, x22
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_18:
	ldr	x8, [x19, #8]
	sub	x8, x23, x8
	str	x8, [x19]
	strb	wzr, [x23]
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_17
; %bb.19:
	ldp	x9, x8, [x19]
	add	x8, x9, x8
	strb	wzr, [x8, #1]
	b	LBB0_17
LBB0_20:
Lloh21:
	adrp	x10, _SCONV_TO_UTF8@GOTPAGE
Lloh22:
	ldr	x10, [x10, _SCONV_TO_UTF8@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
Lloh24:
	adrp	x11, _unicode_to_utf8@GOTPAGE
Lloh25:
	ldr	x11, [x11, _unicode_to_utf8@GOTPAGEOFF]
	tst	w10, w8
	b.eq	LBB0_22
; %bb.21:
	mov	w22, #0
	mov	w10, #1
	mov	x24, x11
	b	LBB0_4
LBB0_22:
	ldr	w10, [x9]
	mov	w22, #1
	tst	w10, w8
	b.eq	LBB0_24
; %bb.23:
Lloh26:
	adrp	x24, _unicode_to_utf16be@GOTPAGE
Lloh27:
	ldr	x24, [x24, _unicode_to_utf16be@GOTPAGEOFF]
	mov	w10, #2
	b	LBB0_4
LBB0_24:
Lloh28:
	adrp	x10, _SCONV_FROM_UTF16LE@GOTPAGE
Lloh29:
	ldr	x10, [x10, _SCONV_FROM_UTF16LE@GOTPAGEOFF]
Lloh30:
	ldr	w10, [x10]
	tst	w10, w8
	cinc	w10, w22, ne
	cset	w22, ne
	csel	x24, x11, x24, eq
	b	LBB0_4
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_SCONV_TO_UTF16BE,4,2           ; @SCONV_TO_UTF16BE
	.comm	_SCONV_TO_UTF16LE,4,2           ; @SCONV_TO_UTF16LE
	.comm	_SCONV_TO_UTF8,4,2              ; @SCONV_TO_UTF8
	.comm	_SCONV_FROM_UTF16BE,4,2         ; @SCONV_FROM_UTF16BE
	.comm	_SCONV_FROM_UTF16LE,4,2         ; @SCONV_FROM_UTF16LE
	.no_dead_strip	_archive_string_append_unicode
.subsections_via_symbols
