	.file	"extr_cred.c_convert_PCREDENTIALW_to_PCREDENTIALA.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	convert_PCREDENTIALW_to_PCREDENTIALA, @function
convert_PCREDENTIALW_to_PCREDENTIALA:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	r10, QWORD PTR 48[rdi]
	test	rsi, rsi
	je	.L36
	mov	eax, DWORD PTR 60[rdi]
	mov	rbx, rsi
	lea	r14, 4[rsi]
	lea	r12, -4[rdx]
	mov	DWORD PTR 80[rsi], eax
	mov	eax, DWORD PTR 56[rdi]
	mov	DWORD PTR 76[rsi], eax
	test	r10, r10
	jne	.L37
	mov	QWORD PTR [rsi], 0
	mov	r13d, 4
.L8:
	mov	rdx, QWORD PTR 40[rbp]
	test	rdx, rdx
	jne	.L38
	mov	QWORD PTR 8[rbx], 0
.L10:
	mov	eax, DWORD PTR 32[rbp]
	mov	rdx, QWORD PTR 0[rbp]
	mov	DWORD PTR 72[rbx], eax
	mov	QWORD PTR 16[rbx], rdx
	cmp	rdx, r12
	jg	.L11
	test	rdx, rdx
	jne	.L39
.L11:
	mov	QWORD PTR 64[rbx], 0
.L12:
	mov	eax, DWORD PTR 24[rbp]
	mov	rdx, QWORD PTR 16[rbp]
	mov	QWORD PTR 48[rbx], 0
	mov	QWORD PTR 40[rbx], 0
	mov	DWORD PTR 56[rbx], eax
	test	rdx, rdx
	jne	.L40
	mov	QWORD PTR 24[rbx], 0
.L14:
	mov	rdx, QWORD PTR 8[rbp]
	test	rdx, rdx
	jne	.L41
	mov	QWORD PTR 32[rbx], 0
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r13
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L38:
	.cfi_restore_state
	mov	QWORD PTR 8[rbx], r14
	mov	edi, DWORD PTR CP_ACP[rip]
	mov	r8, r14
	mov	r9, r12
	push	0
	.cfi_def_cfa_offset 56
	mov	ecx, -1
	xor	esi, esi
	push	0
	.cfi_def_cfa_offset 64
	call	WideCharToMultiByte@PLT
	pop	rdi
	.cfi_def_cfa_offset 56
	pop	r8
	.cfi_def_cfa_offset 48
	add	r14, rax
	add	r13, rax
	sub	r12, rax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L37:
	mov	QWORD PTR [rsi], r14
	mov	edi, DWORD PTR CP_ACP[rip]
	mov	r9, r12
	mov	r8, r14
	push	0
	.cfi_def_cfa_offset 56
	mov	rdx, r10
	mov	ecx, -1
	xor	esi, esi
	push	0
	.cfi_def_cfa_offset 64
	call	WideCharToMultiByte@PLT
	pop	r9
	.cfi_def_cfa_offset 56
	pop	r10
	.cfi_def_cfa_offset 48
	add	r14, rax
	lea	r13, 4[rax]
	sub	r12, rax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L41:
	mov	QWORD PTR 32[rbx], r14
	mov	r9, r12
	mov	r8, r14
	push	0
	.cfi_def_cfa_offset 56
	push	0
	.cfi_def_cfa_offset 64
.L34:
	mov	edi, DWORD PTR CP_ACP[rip]
	mov	ecx, -1
	xor	esi, esi
	call	WideCharToMultiByte@PLT
	add	r13, rax
	pop	rax
	.cfi_def_cfa_offset 56
	pop	rdx
	.cfi_def_cfa_offset 48
	mov	rax, r13
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L40:
	.cfi_restore_state
	mov	QWORD PTR 24[rbx], r14
	mov	edi, DWORD PTR CP_ACP[rip]
	mov	r9, r12
	mov	r8, r14
	push	0
	.cfi_def_cfa_offset 56
	mov	ecx, -1
	xor	esi, esi
	push	0
	.cfi_def_cfa_offset 64
	call	WideCharToMultiByte@PLT
	pop	rcx
	.cfi_def_cfa_offset 56
	pop	rsi
	.cfi_def_cfa_offset 48
	add	r14, rax
	add	r13, rax
	sub	r12, rax
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L39:
	mov	QWORD PTR 64[rbx], r14
	mov	esi, DWORD PTR 28[rbp]
	mov	rdi, r14
	call	memcpy@PLT
	mov	rax, QWORD PTR 0[rbp]
	add	r14, rax
	add	r13, rax
	sub	r12, rax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L36:
	mov	r13d, 4
	test	r10, r10
	jne	.L42
.L3:
	mov	rdx, QWORD PTR 40[rbp]
	test	rdx, rdx
	jne	.L43
.L4:
	mov	rdx, QWORD PTR 16[rbp]
	add	r13, QWORD PTR 0[rbp]
	test	rdx, rdx
	jne	.L44
.L5:
	mov	rdx, QWORD PTR 8[rbp]
	test	rdx, rdx
	je	.L1
	push	0
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	r9d, r9d
	xor	r8d, r8d
	push	0
	.cfi_def_cfa_offset 64
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L42:
	.cfi_restore_state
	push	0
	.cfi_def_cfa_offset 56
	mov	edi, DWORD PTR CP_ACP[rip]
	mov	rdx, r10
	xor	r9d, r9d
	push	0
	.cfi_def_cfa_offset 64
	xor	r8d, r8d
	mov	ecx, -1
	xor	esi, esi
	call	WideCharToMultiByte@PLT
	lea	r13, 4[rax]
	pop	rax
	.cfi_def_cfa_offset 56
	pop	rdx
	.cfi_def_cfa_offset 48
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L44:
	push	0
	.cfi_def_cfa_offset 56
	mov	edi, DWORD PTR CP_ACP[rip]
	xor	r9d, r9d
	xor	r8d, r8d
	push	0
	.cfi_def_cfa_offset 64
	mov	ecx, -1
	xor	esi, esi
	call	WideCharToMultiByte@PLT
	pop	r11
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	add	r13, rax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L43:
	push	0
	.cfi_def_cfa_offset 56
	mov	edi, DWORD PTR CP_ACP[rip]
	xor	r9d, r9d
	xor	r8d, r8d
	push	0
	.cfi_def_cfa_offset 64
	mov	ecx, -1
	xor	esi, esi
	call	WideCharToMultiByte@PLT
	pop	r12
	.cfi_def_cfa_offset 56
	pop	r14
	.cfi_def_cfa_offset 48
	add	r13, rax
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	convert_PCREDENTIALW_to_PCREDENTIALA, .-convert_PCREDENTIALW_to_PCREDENTIALA
	.comm	CP_ACP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_cred.c_convert_PCREDENTIALW_to_PCREDENTIALA.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	convert_PCREDENTIALW_to_PCREDENTIALA, %function
convert_PCREDENTIALW_to_PCREDENTIALA:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r4, r1, #0
	mov	r5, r0
	ldr	r3, [r0, #28]
	sub	sp, sp, #16
	beq	.L28
	ldr	r0, [r0, #36]
	ldr	r1, [r5, #32]
	cmp	r3, #0
	moveq	r7, #4
	sub	r6, r2, #4
	str	r0, [r4, #44]
	str	r1, [r4, #40]
	add	r8, r4, #4
	streq	r3, [r4]
	bne	.L29
	ldr	r2, [r5, #24]
	cmp	r2, #0
	streq	r2, [r4, #4]
	bne	.L30
.L10:
	ldr	r2, [r5]
	ldr	r1, [r5, #20]
	cmp	r2, r6
	movgt	r3, #0
	movle	r3, #1
	cmp	r2, #0
	moveq	r3, #0
	cmp	r3, #0
	str	r2, [r4, #8]
	str	r1, [r4, #36]
	streq	r3, [r4, #32]
	bne	.L31
.L12:
	mov	r1, #0
	ldr	r2, [r5, #8]
	ldr	r3, [r5, #12]
	cmp	r2, r1
	str	r1, [r4, #24]
	str	r3, [r4, #28]
	str	r1, [r4, #20]
	streq	r2, [r4, #12]
	bne	.L32
.L14:
	ldr	r2, [r5, #4]
	cmp	r2, #0
	streq	r2, [r4, #16]
	bne	.L33
.L1:
	mov	r0, r7
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L29:
	mov	r1, #0
	ldr	r0, .L37
	str	r8, [r4]
	str	r6, [sp, #4]
	str	r8, [sp]
	str	r1, [sp, #12]
	str	r1, [sp, #8]
	mov	r2, r3
	ldr	r0, [r0]
	mvn	r3, #0
	bl	WideCharToMultiByte
	ldr	r2, [r5, #24]
	add	r8, r8, r0
	cmp	r2, #0
	sub	r6, r6, r0
	add	r7, r0, #4
	streq	r2, [r4, #4]
	beq	.L10
.L30:
	mov	r1, #0
	ldr	r3, .L37
	str	r8, [r4, #4]
	str	r6, [sp, #4]
	str	r8, [sp]
	str	r1, [sp, #12]
	str	r1, [sp, #8]
	ldr	r0, [r3]
	mvn	r3, #0
	bl	WideCharToMultiByte
	add	r8, r8, r0
	add	r7, r7, r0
	sub	r6, r6, r0
	b	.L10
.L33:
	mov	r1, #0
	ldr	r3, .L37
	str	r8, [r4, #16]
	str	r6, [sp, #4]
	str	r8, [sp]
	str	r1, [sp, #12]
	str	r1, [sp, #8]
	ldr	r0, [r3]
	mvn	r3, #0
	bl	WideCharToMultiByte
	add	r7, r7, r0
	mov	r0, r7
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L32:
	ldr	r3, .L37
	str	r8, [r4, #12]
	str	r6, [sp, #4]
	str	r8, [sp]
	str	r1, [sp, #12]
	str	r1, [sp, #8]
	ldr	r0, [r3]
	mvn	r3, #0
	bl	WideCharToMultiByte
	add	r8, r8, r0
	add	r7, r7, r0
	sub	r6, r6, r0
	b	.L14
.L28:
	cmp	r3, #0
	moveq	r7, #4
	bne	.L34
.L3:
	ldr	r2, [r5, #24]
	cmp	r2, #0
	bne	.L35
.L4:
	ldr	r2, [r5, #8]
	ldr	r0, [r5]
	cmp	r2, #0
	add	r7, r7, r0
	bne	.L36
.L5:
	ldr	r2, [r5, #4]
	cmp	r2, #0
	beq	.L1
	mov	r1, #0
	ldr	r3, .L37
	str	r1, [sp, #12]
	str	r1, [sp, #8]
	str	r1, [sp, #4]
	str	r1, [sp]
	ldr	r0, [r3]
	mvn	r3, #0
	bl	WideCharToMultiByte
	add	r7, r7, r0
	b	.L1
.L31:
	mov	r0, r8
	str	r8, [r4, #32]
	ldr	r1, [r5, #16]
	bl	memcpy
	ldr	r3, [r5]
	add	r8, r8, r3
	add	r7, r7, r3
	sub	r6, r6, r3
	b	.L12
.L36:
	mov	r1, #0
	ldr	r3, .L37
	str	r1, [sp, #12]
	str	r1, [sp, #8]
	str	r1, [sp, #4]
	str	r1, [sp]
	ldr	r0, [r3]
	mvn	r3, #0
	bl	WideCharToMultiByte
	add	r7, r7, r0
	b	.L5
.L35:
	mov	r1, #0
	ldr	r3, .L37
	str	r1, [sp, #12]
	str	r1, [sp, #8]
	str	r1, [sp, #4]
	str	r1, [sp]
	ldr	r0, [r3]
	mvn	r3, #0
	bl	WideCharToMultiByte
	add	r7, r7, r0
	b	.L4
.L34:
	ldr	r0, .L37
	str	r4, [sp, #12]
	str	r4, [sp, #8]
	str	r4, [sp, #4]
	str	r4, [sp]
	mov	r2, r3
	ldr	r0, [r0]
	mvn	r3, #0
	bl	WideCharToMultiByte
	add	r7, r0, #4
	b	.L3
.L38:
	.align	2
.L37:
	.word	CP_ACP
	.size	convert_PCREDENTIALW_to_PCREDENTIALA, .-convert_PCREDENTIALW_to_PCREDENTIALA
	.comm	CP_ACP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
