	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function convert_PCREDENTIALA_to_PCREDENTIALW
_convert_PCREDENTIALA_to_PCREDENTIALW:  ## @convert_PCREDENTIALA_to_PCREDENTIALW
	.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	%rdi, %r14
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.11:
	movl	%edx, %r12d
	movq	%rsi, %rbx
	leaq	4(%rsi), %r13
	addl	$-4, %r12d
	movl	60(%r14), %eax
	movl	%eax, 84(%rsi)
	movl	56(%r14), %eax
	movl	%eax, 80(%rsi)
	movq	48(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_13
## %bb.12:
	movq	%r13, 72(%rbx)
	movq	_CP_ACP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %r9d
	sarl	$2, %r9d
	xorl	%esi, %esi
	movl	$-1, %ecx
	movq	%r13, %r8
	callq	_MultiByteToWideChar
	movslq	%eax, %r15
	leaq	(%r13,%r15,4), %r13
	shlq	$2, %r15
	subl	%r15d, %r12d
	addl	$4, %r15d
	jmp	LBB0_14
LBB0_1:
	movq	48(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.3:
	movq	_CP_ACP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	movl	$-1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_MultiByteToWideChar
                                        ## kill: def $eax killed $eax def $rax
	leal	4(,%rax,4), %r15d
	jmp	LBB0_4
LBB0_13:
	movq	$0, 72(%rbx)
	movl	$4, %r15d
LBB0_14:
	movq	40(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_16
## %bb.15:
	movq	%r13, 64(%rbx)
	movq	_CP_ACP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %r9d
	sarl	$2, %r9d
	xorl	%esi, %esi
	movl	$-1, %ecx
	movq	%r13, %r8
	callq	_MultiByteToWideChar
	cltq
	leaq	(%r13,%rax,4), %r13
	shlq	$2, %rax
	addl	%eax, %r15d
	subl	%eax, %r12d
	jmp	LBB0_17
LBB0_16:
	movq	$0, 64(%rbx)
LBB0_17:
	movl	36(%r14), %eax
	movl	%eax, 56(%rbx)
	movq	24(%r14), %rdx
	movq	%rdx, 48(%rbx)
	testq	%rdx, %rdx
	je	LBB0_19
## %bb.18:
	movq	%r13, 40(%rbx)
	movl	32(%r14), %esi
	movq	%r13, %rdi
	callq	_memcpy
	movq	24(%r14), %rax
	addq	%rax, %r13
	addl	%eax, %r15d
	subl	%eax, %r12d
	jmp	LBB0_20
LBB0_19:
	movq	$0, 40(%rbx)
LBB0_20:
	movl	16(%r14), %eax
	movl	%eax, 32(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	movq	8(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_22
## %bb.21:
	movq	%r13, 8(%rbx)
	movq	_CP_ACP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %r9d
	sarl	$2, %r9d
	xorl	%esi, %esi
	movl	$-1, %ecx
	movq	%r13, %r8
	callq	_MultiByteToWideChar
	cltq
	leaq	(%r13,%rax,4), %r13
	shlq	$2, %rax
	addl	%eax, %r15d
	subl	%eax, %r12d
	jmp	LBB0_23
LBB0_22:
	movq	$0, 8(%rbx)
LBB0_23:
	movq	(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_25
## %bb.24:
	movq	%r13, (%rbx)
	movq	_CP_ACP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	sarl	$2, %r12d
	xorl	%esi, %esi
	movl	$-1, %ecx
	movq	%r13, %r8
	movl	%r12d, %r9d
	jmp	LBB0_10
LBB0_25:
	movq	$0, (%rbx)
	jmp	LBB0_26
LBB0_2:
	movl	$4, %r15d
LBB0_4:
	movq	40(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.5:
	movq	_CP_ACP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	movl	$-1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_MultiByteToWideChar
                                        ## kill: def $eax killed $eax def $rax
	leal	(%r15,%rax,4), %r15d
LBB0_6:
	addl	24(%r14), %r15d
	movq	8(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.7:
	movq	_CP_ACP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	movl	$-1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_MultiByteToWideChar
                                        ## kill: def $eax killed $eax def $rax
	leal	(%r15,%rax,4), %r15d
LBB0_8:
	movq	(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_26
## %bb.9:
	movq	_CP_ACP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	movl	$-1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
LBB0_10:
	callq	_MultiByteToWideChar
                                        ## kill: def $eax killed $eax def $rax
	leal	(%r15,%rax,4), %r15d
LBB0_26:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CP_ACP,4,2                     ## @CP_ACP
	.no_dead_strip	_convert_PCREDENTIALA_to_PCREDENTIALW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function convert_PCREDENTIALA_to_PCREDENTIALW
_convert_PCREDENTIALA_to_PCREDENTIALW:  ; @convert_PCREDENTIALA_to_PCREDENTIALW
	.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, x0
	cbz	x1, LBB0_4
; %bb.1:
	mov	x22, x1
	add	x21, x1, #4
	sub	w23, w2, #4
	ldr	d0, [x19, #56]
	str	d0, [x1, #80]
	ldr	x2, [x19, #48]
Lloh0:
	adrp	x24, _CP_ACP@GOTPAGE
Lloh1:
	ldr	x24, [x24, _CP_ACP@GOTPAGEOFF]
	cbz	x2, LBB0_11
; %bb.2:
	str	x21, [x22, #72]
	ldr	w0, [x24]
	asr	w5, w23, #2
	mov	w1, #0
	mov	w3, #-1
	mov	x4, x21
	bl	_MultiByteToWideChar
                                        ; kill: def $w0 killed $w0 def $x0
	sbfiz	x8, x0, #2, #32
	add	x21, x21, x8
	add	w20, w8, #4
	sub	w23, w23, w8
	ldr	x2, [x19, #40]
	cbz	x2, LBB0_12
LBB0_3:
	str	x21, [x22, #64]
	ldr	w0, [x24]
	asr	w5, w23, #2
	mov	w1, #0
	mov	w3, #-1
	mov	x4, x21
	bl	_MultiByteToWideChar
                                        ; kill: def $w0 killed $w0 def $x0
	sbfiz	x8, x0, #2, #32
	add	x21, x21, x8
	add	w20, w20, w8
	sub	w23, w23, w8
	b	LBB0_13
LBB0_4:
	ldr	x2, [x19, #48]
	cbz	x2, LBB0_23
; %bb.5:
Lloh2:
	adrp	x8, _CP_ACP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CP_ACP@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	w1, #0
	mov	w3, #-1
	mov	x4, #0
	mov	w5, #0
	bl	_MultiByteToWideChar
	lsl	w8, w0, #2
	add	w20, w8, #4
	ldr	x2, [x19, #40]
	cbz	x2, LBB0_7
LBB0_6:
Lloh5:
	adrp	x8, _CP_ACP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CP_ACP@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	w1, #0
	mov	w3, #-1
	mov	x4, #0
	mov	w5, #0
	bl	_MultiByteToWideChar
	add	w20, w20, w0, lsl #2
LBB0_7:
	ldr	w8, [x19, #24]
	add	w20, w20, w8
	ldr	x2, [x19, #8]
	cbz	x2, LBB0_9
; %bb.8:
Lloh8:
	adrp	x8, _CP_ACP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CP_ACP@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	w1, #0
	mov	w3, #-1
	mov	x4, #0
	mov	w5, #0
	bl	_MultiByteToWideChar
	add	w20, w20, w0, lsl #2
LBB0_9:
	ldr	x2, [x19]
	cbz	x2, LBB0_22
; %bb.10:
Lloh11:
	adrp	x8, _CP_ACP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CP_ACP@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	w1, #0
	mov	w3, #-1
	mov	x4, #0
	mov	w5, #0
	b	LBB0_19
LBB0_11:
	str	xzr, [x22, #72]
	mov	w20, #4
	ldr	x2, [x19, #40]
	cbnz	x2, LBB0_3
LBB0_12:
	str	xzr, [x22, #64]
LBB0_13:
	ldr	w8, [x19, #36]
	str	w8, [x22, #56]
	ldr	x2, [x19, #24]
	str	x2, [x22, #48]
	cbz	x2, LBB0_15
; %bb.14:
	str	x21, [x22, #40]
	ldr	w1, [x19, #32]
	mov	x0, x21
	bl	_memcpy
	ldr	x8, [x19, #24]
	add	x21, x21, x8
	add	w20, w20, w8
	sub	w23, w23, w8
	b	LBB0_16
LBB0_15:
	str	xzr, [x22, #40]
LBB0_16:
	ldr	w8, [x19, #16]
	str	w8, [x22, #32]
	stp	xzr, xzr, [x22, #16]
	ldr	x2, [x19, #8]
	cbz	x2, LBB0_20
; %bb.17:
	str	x21, [x22, #8]
	ldr	w0, [x24]
	asr	w5, w23, #2
	mov	w1, #0
	mov	w3, #-1
	mov	x4, x21
	bl	_MultiByteToWideChar
                                        ; kill: def $w0 killed $w0 def $x0
	sbfiz	x8, x0, #2, #32
	add	x21, x21, x8
	add	w20, w20, w8
	sub	w23, w23, w8
	ldr	x2, [x19]
	cbz	x2, LBB0_21
LBB0_18:
	str	x21, [x22]
	ldr	w0, [x24]
	asr	w5, w23, #2
	mov	w1, #0
	mov	w3, #-1
	mov	x4, x21
LBB0_19:
	bl	_MultiByteToWideChar
	add	w20, w20, w0, lsl #2
	b	LBB0_22
LBB0_20:
	str	xzr, [x22, #8]
	ldr	x2, [x19]
	cbnz	x2, LBB0_18
LBB0_21:
	str	xzr, [x22]
LBB0_22:
	mov	x0, x20
	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
LBB0_23:
	mov	w20, #4
	ldr	x2, [x19, #40]
	cbnz	x2, LBB0_6
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_CP_ACP,4,2                     ; @CP_ACP
	.no_dead_strip	_convert_PCREDENTIALA_to_PCREDENTIALW
.subsections_via_symbols
