	.file	"extr_secur32.c_testGetUserNameExW.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"GetUserNameExW(%d) failed: %d\n"
	.align 8
.LC1:
	.string	"Expected fail with ERROR_MORE_DATA, got %d with %u\n"
	.align 8
.LC2:
	.string	"Expected size to be set to required size\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"Expected unchanged buffer\n"
	.text
	.p2align 4
	.type	testGetUserNameExW, @function
testGetUserNameExW:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xor	ebx, ebx
	sub	rsp, 1080
	.cfi_def_cfa_offset 1136
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 1064[rsp], rax
	xor	eax, eax
	lea	r13, 32[rsp]
	lea	r14, 28[rsp]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	cmp	r15, QWORD PTR NameUnknown[rip]
	je	.L5
.L8:
	xor	eax, eax
	call	GetLastError@PLT
	cmp	rax, QWORD PTR ERROR_NONE_MAPPED[rip]
	je	.L6
	mov	rax, QWORD PTR formats[rip]
	lea	rcx, 0[0+rbx*8]
	mov	rdx, QWORD PTR NameDnsDomain[rip]
	xor	edi, edi
	cmp	QWORD PTR [rax+rcx], rdx
	je	.L22
.L9:
	call	broken@PLT
	xor	edi, edi
	test	rax, rax
	setne	dil
.L4:
	mov	rcx, r12
	mov	rdx, r15
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	ok@PLT
	add	rbx, 1
.L2:
	mov	rdi, QWORD PTR formats[rip]
	call	ARRAY_SIZE@PLT
	cmp	rax, rbx
	jbe	.L23
	mov	esi, 1024
	mov	rdi, r13
	mov	DWORD PTR 28[rsp], 1024
	call	ZeroMemory@PLT
	lea	rax, 0[0+rbx*8]
	mov	rdx, r14
	mov	rsi, r13
	mov	QWORD PTR 8[rsp], rax
	mov	rax, QWORD PTR formats[rip]
	mov	rdi, QWORD PTR [rax+rbx*8]
	call	pGetUserNameExW@PLT
	mov	rbp, rax
	xor	eax, eax
	call	GetLastError@PLT
	mov	r12, rax
	mov	rax, QWORD PTR formats[rip]
	mov	r15, QWORD PTR [rax+rbx*8]
	test	rbp, rbp
	je	.L3
.L6:
	mov	edi, 1
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	xor	eax, eax
	call	GetLastError@PLT
	cmp	rax, QWORD PTR ERROR_NO_SUCH_USER[rip]
	jne	.L8
	mov	edi, 1
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rdi, QWORD PTR NameSamCompatible[rip]
	mov	rdx, r14
	xor	esi, esi
	mov	DWORD PTR 28[rsp], 0
	call	pGetUserNameExW@PLT
	mov	r12, rax
	xor	eax, eax
	call	GetLastError@PLT
	xor	edi, edi
	mov	r15, rax
	test	r12, r12
	je	.L24
.L11:
	mov	rcx, r15
	mov	rdx, r12
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	ok@PLT
	mov	edx, DWORD PTR 28[rsp]
	xor	edi, edi
	lea	rsi, .LC2[rip]
	test	edx, edx
	setne	dil
	xor	eax, eax
	call	ok@PLT
	mov	rdi, QWORD PTR NameSamCompatible[rip]
	mov	rdx, r14
	mov	rsi, r13
	mov	DWORD PTR 28[rsp], 0
	call	pGetUserNameExW@PLT
	mov	r12, rax
	xor	eax, eax
	call	GetLastError@PLT
	xor	edi, edi
	mov	r15, rax
	test	r12, r12
	je	.L25
.L12:
	mov	rcx, r15
	mov	rdx, r12
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	ok@PLT
	mov	eax, DWORD PTR 28[rsp]
	xor	edi, edi
	lea	rsi, .LC2[rip]
	test	eax, eax
	setne	dil
	xor	eax, eax
	call	ok@PLT
	mov	rdi, QWORD PTR NameSamCompatible[rip]
	mov	rsi, r13
	mov	rdx, r14
	mov	DWORD PTR 28[rsp], 1
	mov	DWORD PTR 32[rsp], 255
	call	pGetUserNameExW@PLT
	mov	r12, rax
	xor	eax, eax
	call	GetLastError@PLT
	xor	edi, edi
	mov	r13, rax
	test	r12, r12
	je	.L26
.L13:
	mov	rcx, r13
	mov	rdx, r12
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	ok@PLT
	xor	edi, edi
	cmp	DWORD PTR 28[rsp], 1
	lea	rsi, .LC2[rip]
	setg	dil
	xor	eax, eax
	call	ok@PLT
	xor	edi, edi
	cmp	DWORD PTR 32[rsp], 255
	lea	rsi, .LC3[rip]
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	rax, QWORD PTR 1064[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L27
	add	rsp, 1080
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	xor	eax, eax
	call	GetLastError@PLT
	xor	edi, edi
	cmp	QWORD PTR ERROR_INVALID_PARAMETER[rip], rax
	sete	dil
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L26:
	xor	eax, eax
	call	GetLastError@PLT
	xor	edi, edi
	cmp	QWORD PTR ERROR_MORE_DATA[rip], rax
	sete	dil
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L25:
	xor	eax, eax
	call	GetLastError@PLT
	xor	edi, edi
	cmp	QWORD PTR ERROR_MORE_DATA[rip], rax
	sete	dil
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L24:
	xor	eax, eax
	call	GetLastError@PLT
	xor	edi, edi
	cmp	QWORD PTR ERROR_MORE_DATA[rip], rax
	sete	dil
	jmp	.L11
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	testGetUserNameExW, .-testGetUserNameExW
	.comm	formats,8,8
	.comm	NameUnknown,8,8
	.comm	NameSamCompatible,8,8
	.comm	NameDnsDomain,8,8
	.comm	ERROR_NO_SUCH_USER,8,8
	.comm	ERROR_NONE_MAPPED,8,8
	.comm	ERROR_MORE_DATA,8,8
	.comm	ERROR_INVALID_PARAMETER,8,8
	.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_secur32.c_testGetUserNameExW.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"GetUserNameExW(%d) failed: %d\012\000"
	.align	2
.LC1:
	.ascii	"Expected fail with ERROR_MORE_DATA, got %d with %u\012"
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"Expected size to be set to required size\012\000"
	.align	2
.LC3:
	.ascii	"Expected unchanged buffer\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	testGetUserNameExW, %function
testGetUserNameExW:
	@ args = 0, pretend = 0, frame = 1032
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L27
	sub	sp, sp, #1024
	sub	sp, sp, #12
	ldr	r3, [r3]
	str	r3, [sp, #1028]
	mov	r3,#0
	mov	r4, #0
	ldr	r5, .L27+4
	ldr	r8, .L27+8
	ldr	r9, .L27+12
	ldr	r10, .L27+16
	ldr	r7, .L27+20
	b	.L2
.L3:
	ldr	r1, [r5]
	ldr	r2, [r8]
	ldr	r1, [r1, r4, lsl #2]
	cmp	r1, r2
	beq	.L5
.L8:
	bl	GetLastError
	ldr	r2, [r9]
	cmp	r0, r2
	beq	.L6
	ldr	r1, [r5]
	ldr	r2, [r10]
	ldr	r1, [r1, fp]
	cmp	r1, r2
	beq	.L21
.L9:
	mov	r0, r6
	bl	broken
	subs	r6, r0, #0
	movne	r6, #1
.L4:
	ldr	r2, [r5]
	add	r4, r4, #1
	ldr	fp, [r2, fp]
	bl	GetLastError
	mov	r2, fp
	mov	r3, r0
	mov	r1, r7
	mov	r0, r6
	bl	ok
.L2:
	ldr	r0, [r5]
	bl	ARRAY_SIZE
	cmp	r0, r4
	bls	.L22
	mov	r1, #1024
	add	r0, sp, #4
	str	r1, [sp]
	bl	ZeroMemory
	ldr	r3, [r5]
	mov	r2, sp
	ldr	r0, [r3, r4, lsl #2]
	add	r1, sp, #4
	bl	pGetUserNameExW
	subs	r6, r0, #0
	lsl	fp, r4, #2
	beq	.L3
.L6:
	mov	r6, #1
	b	.L4
.L5:
	bl	GetLastError
	ldr	r3, .L27+24
	ldr	r2, [r3]
	cmp	r0, r2
	bne	.L8
	mov	r6, #1
	b	.L4
.L22:
	mov	r4, #0
	ldr	r6, .L27+28
	mov	r1, r4
	mov	r2, sp
	ldr	r0, [r6]
	str	r4, [sp]
	bl	pGetUserNameExW
	subs	r7, r0, #0
	beq	.L23
.L11:
	bl	GetLastError
	mov	r5, #0
	mov	r3, r0
	mov	r2, r7
	mov	r0, r4
	ldr	r1, .L27+32
	bl	ok
	ldr	r0, [sp]
	ldr	r1, .L27+36
	subs	r0, r0, r5
	movne	r0, #1
	bl	ok
	mov	r2, sp
	ldr	r0, [r6]
	add	r1, sp, #4
	str	r5, [sp]
	bl	pGetUserNameExW
	subs	r4, r0, #0
	beq	.L24
.L12:
	bl	GetLastError
	mov	r2, r4
	mov	r3, r0
	ldr	r1, .L27+32
	mov	r0, r5
	bl	ok
	ldr	r0, [sp]
	ldr	r1, .L27+36
	subs	r0, r0, #0
	movne	r0, #1
	bl	ok
	mov	ip, #1
	mov	r3, #255
	mov	r2, sp
	ldr	r0, [r6]
	add	r1, sp, #4
	str	ip, [sp]
	str	r3, [sp, #4]
	bl	pGetUserNameExW
	subs	r4, r0, #0
	movne	r5, #0
	beq	.L25
.L13:
	bl	GetLastError
	mov	r2, r4
	mov	r3, r0
	ldr	r1, .L27+32
	mov	r0, r5
	bl	ok
	ldr	r0, [sp]
	ldr	r1, .L27+36
	cmp	r0, #1
	movle	r0, #0
	movgt	r0, #1
	bl	ok
	ldr	r0, [sp, #4]
	ldr	r1, .L27+40
	sub	r0, r0, #255
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r3, .L27
	ldr	r2, [r3]
	ldr	r3, [sp, #1028]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L26
	add	sp, sp, #1024
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	bl	GetLastError
	ldr	r3, .L27+44
	ldr	r6, [r3]
	sub	r6, r6, r0
	clz	r6, r6
	lsr	r6, r6, #5
	b	.L9
.L25:
	bl	GetLastError
	ldr	r3, .L27+48
	ldr	r5, [r3]
	sub	r5, r5, r0
	clz	r5, r5
	lsr	r5, r5, #5
	b	.L13
.L24:
	bl	GetLastError
	ldr	r3, .L27+48
	ldr	r5, [r3]
	sub	r5, r5, r0
	clz	r5, r5
	lsr	r5, r5, #5
	b	.L12
.L23:
	bl	GetLastError
	ldr	r3, .L27+48
	ldr	r4, [r3]
	sub	r4, r4, r0
	clz	r4, r4
	lsr	r4, r4, #5
	b	.L11
.L26:
	bl	__stack_chk_fail
.L28:
	.align	2
.L27:
	.word	.LC4
	.word	formats
	.word	NameUnknown
	.word	ERROR_NONE_MAPPED
	.word	NameDnsDomain
	.word	.LC0
	.word	ERROR_NO_SUCH_USER
	.word	NameSamCompatible
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	ERROR_INVALID_PARAMETER
	.word	ERROR_MORE_DATA
	.size	testGetUserNameExW, .-testGetUserNameExW
	.comm	formats,4,4
	.comm	NameUnknown,4,4
	.comm	NameSamCompatible,4,4
	.comm	NameDnsDomain,4,4
	.comm	ERROR_NO_SUCH_USER,4,4
	.comm	ERROR_NONE_MAPPED,4,4
	.comm	ERROR_MORE_DATA,4,4
	.comm	ERROR_INVALID_PARAMETER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
