	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unicode_to_utf16le
_unicode_to_utf16le:                    ## @unicode_to_utf16le
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	cmpl	$65536, %esi                    ## imm = 0x10000
	jl	LBB0_2
## %bb.1:
	leal	983040(%rbx), %esi
	shrl	$10, %esi
	andl	$1023, %esi                     ## imm = 0x3FF
	orl	$55296, %esi                    ## imm = 0xD800
	movq	%r14, %rdi
	callq	_archive_le16enc
	addq	$2, %r14
	andl	$1023, %ebx                     ## imm = 0x3FF
	orl	$56320, %ebx                    ## imm = 0xDC00
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_archive_le16enc
	movl	$4, %eax
	jmp	LBB0_3
LBB0_2:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_archive_le16enc
	movl	$2, %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_unicode_to_utf16le
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unicode_to_utf16le
_unicode_to_utf16le:                    ; @unicode_to_utf16le
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	cmp	w1, #16, lsl #12                ; =65536
	b.lt	LBB0_2
; %bb.1:
	add	w8, w19, #240, lsl #12          ; =983040
	mov	w1, #55296
	bfxil	w1, w8, #10, #10
	mov	x0, x20
	bl	_archive_le16enc
	add	x0, x20, #2
	mov	w1, #56320
	bfxil	w1, w19, #0, #10
	bl	_archive_le16enc
	mov	w0, #4
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	mov	x1, x19
	bl	_archive_le16enc
	mov	w0, #2
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_unicode_to_utf16le
.subsections_via_symbols
