	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ascii2ucs2le
_ascii2ucs2le:                          ## @ascii2ucs2le
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %r12
	callq	_strlen
	movq	%rax, %r13
	shrq	%rax
	movq	_UINT_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jbe	LBB0_2
## %bb.1:
	movq	_ERANGE@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_2:
	movq	%r13, %rdi
	addq	%r13, %rdi
	movq	%rdi, (%r14)
	callq	_malloc
	movq	%rax, %rbx
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	testq	%r13, %r13
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_heim_ntlm_free_buf
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_5:
	testq	%r13, %r13
	je	LBB0_11
## %bb.6:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	movb	%al, (%rbx,%r14,2)
	movb	$0, 1(%rbx,%r14,2)
	incq	%r14
	cmpq	%r14, %r13
	je	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r12,%r14), %eax
	testb	%al, %al
	js	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movzbl	%al, %edi
	callq	_toupper
	jmp	LBB0_7
LBB0_11:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_12:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_heim_ntlm_free_buf
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UINT_MAX,8,3                   ## @UINT_MAX
	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ascii2ucs2le
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ascii2ucs2le
_ascii2ucs2le:                          ; @ascii2ucs2le
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_strlen
Lloh0:
	adrp	x8, _UINT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UINT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0, lsr #1
	b.hs	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ERANGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
	b	LBB0_13
LBB0_2:
	mov	x22, x0
	lsl	x0, x0, #1
	str	x0, [x19]
	bl	_malloc
	str	x0, [x19, #8]
	cbnz	x0, LBB0_5
; %bb.3:
	cbz	x22, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_heim_ntlm_free_buf
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_13
LBB0_5:
	cbz	x22, LBB0_11
; %bb.6:
	add	x23, x0, #1
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	sturb	w0, [x23, #-1]
	strb	wzr, [x23], #2
	add	x21, x21, #1
	subs	x22, x22, #1
	b.eq	LBB0_11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x21]
	tbnz	w0, #31, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	cbz	w20, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	and	w0, w0, #0xff
	bl	_toupper
	b	LBB0_7
LBB0_11:
	mov	w0, #0
	b	LBB0_14
LBB0_12:
	mov	x0, x19
	bl	_heim_ntlm_free_buf
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x8]
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_UINT_MAX,8,3                   ; @UINT_MAX
	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ascii2ucs2le
.subsections_via_symbols
