	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function build_pathname_utf16be
_build_pathname_utf16be:                ## @build_pathname_utf16be
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	16(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.1:
	cmpq	$0, (%rcx)
	jle	LBB0_4
## %bb.2:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_build_pathname_utf16be
	movl	%eax, %ecx
	movl	$-1, %eax
	testl	%ecx, %ecx
	jne	LBB0_10
## %bb.3:
	movq	(%r14), %rax
	movb	$0, (%r15,%rax)
	movq	(%r14), %rax
	movb	$47, 1(%rax,%r15)
	addq	$2, (%r14)
LBB0_4:
	movq	(%rbx), %rdx
	movq	(%r14), %rcx
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.7:
	leaq	(%rcx,%rdx), %rsi
	movl	$-1, %eax
	cmpq	%r12, %rsi
	ja	LBB0_10
## %bb.8:
	addq	%rcx, %r15
	movl	8(%rbx), %esi
	movq	%r15, %rdi
	callq	_memcpy
	movq	(%rbx), %rax
	jmp	LBB0_9
LBB0_5:
	leaq	2(%rcx), %rdx
	movl	$-1, %eax
	cmpq	%r12, %rdx
	ja	LBB0_10
## %bb.6:
	movb	$0, (%r15,%rcx)
	movq	(%r14), %rax
	movb	$46, 1(%rax,%r15)
	movl	$2, %eax
LBB0_9:
	addq	%rax, (%r14)
	xorl	%eax, %eax
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_build_pathname_utf16be
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function build_pathname_utf16be
_build_pathname_utf16be:                ; @build_pathname_utf16be
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x3
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	ldr	x3, [x3, #16]
	cbz	x3, LBB0_4
; %bb.1:
	ldr	x8, [x3]
	cmp	x8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x19
	bl	_build_pathname_utf16be
	cbnz	w0, LBB0_8
; %bb.3:
	ldr	x8, [x19]
	strb	wzr, [x21, x8]
	ldr	x8, [x19]
	add	x8, x8, x21
	mov	w9, #47
	strb	w9, [x8, #1]
	ldr	x8, [x19]
	add	x8, x8, #2
	str	x8, [x19]
LBB0_4:
	ldr	x2, [x20]
	ldr	x8, [x19]
	cbz	x2, LBB0_7
; %bb.5:
	add	x9, x8, x2
	cmp	x9, x22
	b.hi	LBB0_8
; %bb.6:
	add	x0, x21, x8
	ldr	w1, [x20, #8]
	bl	_memcpy
	ldr	x8, [x20]
	b	LBB0_10
LBB0_7:
	add	x9, x8, #2
	cmp	x9, x22
	b.ls	LBB0_9
LBB0_8:
	mov	w0, #-1
	b	LBB0_11
LBB0_9:
	strb	wzr, [x21, x8]
	ldr	x8, [x19]
	add	x8, x8, x21
	mov	w9, #46
	strb	w9, [x8, #1]
	mov	w8, #2
LBB0_10:
	mov	w0, #0
	ldr	x9, [x19]
	add	x8, x9, x8
	str	x8, [x19]
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_build_pathname_utf16be
.subsections_via_symbols
