	.file	"extr_str.c_test_CertStrToNameW.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Expected failure\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Expected CRYPT_E_INVALID_X500_STRING, got %08x\n"
	.align 8
.LC2:
	.string	"Expected ERROR_FILE_NOT_FOUND, got %08x\n"
	.section	.rodata.str1.1
.LC3:
	.string	"CertStrToNameW failed: %08x\n"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"Expected first error character was 1\n"
	.align 8
.LC5:
	.string	"Index %d: CertStrToNameW failed: %08x\n"
	.align 8
.LC6:
	.string	"Index %d: expected size %d, got %d\n"
	.align 8
.LC7:
	.string	"Index %d: unexpected value for string %s\n"
	.text
	.p2align 4
	.type	test_CertStrToNameW, @function
test_CertStrToNameW:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	r8d, r8d
	xor	ecx, ecx
	xor	edx, edx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	xor	esi, esi
	xor	edi, edi
	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
	sub	rsp, 440
	.cfi_def_cfa_offset 496
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 424[rsp], rax
	xor	eax, eax
	mov	r13, rsp
	sub	rsp, 8
	.cfi_def_cfa_offset 504
	push	0
	.cfi_def_cfa_offset 512
	mov	r9, r13
	call	pCertStrToNameW@PLT
	xor	edi, edi
	lea	rsi, .LC0[rip]
	test	eax, eax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	xor	edi, edi
	mov	r9, r13
	xor	r8d, r8d
	xor	ecx, ecx
	xor	edx, edx
	lea	rsi, bogusW.1957[rip]
	mov	QWORD PTR [rsp], 0
	call	pCertStrToNameW@PLT
	mov	ebx, eax
	xor	eax, eax
	call	GetLastError@PLT
	pop	r14
	.cfi_def_cfa_offset 504
	xor	edi, edi
	pop	r15
	.cfi_def_cfa_offset 496
	mov	r12, rax
	test	ebx, ebx
	je	.L25
.L2:
	mov	rdx, r12
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	ok@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 504
	xor	edi, edi
	mov	r9, r13
	push	0
	.cfi_def_cfa_offset 512
	xor	r8d, r8d
	xor	ecx, ecx
	xor	edx, edx
	lea	rsi, fooW.1958[rip]
	call	pCertStrToNameW@PLT
	mov	ebx, eax
	xor	eax, eax
	call	GetLastError@PLT
	pop	r11
	.cfi_def_cfa_offset 504
	xor	edi, edi
	pop	rbp
	.cfi_def_cfa_offset 496
	mov	r12, rax
	test	ebx, ebx
	je	.L26
.L3:
	mov	rdx, r12
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	ok@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 504
	mov	r9, r13
	xor	edi, edi
	push	0
	.cfi_def_cfa_offset 512
	mov	rsi, QWORD PTR simpleCN_W[rip]
	xor	r8d, r8d
	xor	ecx, ecx
	xor	edx, edx
	call	pCertStrToNameW@PLT
	mov	ebx, eax
	xor	eax, eax
	call	GetLastError@PLT
	pop	r9
	.cfi_def_cfa_offset 504
	xor	edi, edi
	pop	r10
	.cfi_def_cfa_offset 496
	mov	r12, rax
	test	ebx, ebx
	je	.L27
.L4:
	mov	rdx, r12
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	ok@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 504
	mov	r9, r13
	xor	r8d, r8d
	push	0
	.cfi_def_cfa_offset 512
	mov	rsi, QWORD PTR simpleCN_W[rip]
	xor	ecx, ecx
	xor	edx, edx
	mov	edi, DWORD PTR X509_ASN_ENCODING[rip]
	call	pCertStrToNameW@PLT
	lea	r14, 32[rsp]
	mov	ebp, eax
	xor	eax, eax
	call	GetLastError@PLT
	lea	rsi, .LC3[rip]
	mov	edi, ebp
	mov	rdx, rax
	xor	eax, eax
	call	ok@PLT
	mov	edi, DWORD PTR X509_ASN_ENCODING[rip]
	mov	r8, r14
	xor	ecx, ecx
	mov	rsi, QWORD PTR badlyQuotedCN_W[rip]
	mov	r9, r13
	xor	edx, edx
	mov	QWORD PTR 16[rsp], 400
	mov	QWORD PTR [rsp], 0
	call	pCertStrToNameW@PLT
	mov	ebx, eax
	xor	eax, eax
	call	GetLastError@PLT
	pop	rdi
	.cfi_def_cfa_offset 504
	xor	edi, edi
	pop	r8
	.cfi_def_cfa_offset 496
	mov	r12, rax
	test	ebx, ebx
	je	.L28
.L5:
	mov	rdx, r12
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	ok@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 504
	xor	ecx, ecx
	mov	r9, r13
	lea	rax, 16[rsp]
	mov	edi, DWORD PTR X509_ASN_ENCODING[rip]
	mov	r8, r14
	xor	edx, edx
	push	rax
	.cfi_def_cfa_offset 512
	mov	rsi, QWORD PTR badlyQuotedCN_W[rip]
	call	pCertStrToNameW@PLT
	mov	ebx, eax
	xor	eax, eax
	call	GetLastError@PLT
	pop	rcx
	.cfi_def_cfa_offset 504
	xor	edi, edi
	pop	rsi
	.cfi_def_cfa_offset 496
	mov	r12, rax
	test	ebx, ebx
	je	.L29
.L6:
	mov	rdx, r12
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	ok@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	edi, edi
	test	rax, rax
	je	.L7
	xor	edi, edi
	cmp	BYTE PTR [rax], 49
	sete	dil
.L7:
	lea	rsi, .LC4[rip]
	xor	eax, eax
	xor	r12d, r12d
	xor	ebx, ebx
	call	ok@PLT
	lea	r15, .LC5[rip]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	add	rbx, 1
	add	r12, 24
.L8:
	mov	rdi, QWORD PTR namesW[rip]
	call	ARRAY_SIZE@PLT
	cmp	rax, rbx
	jbe	.L30
	mov	rax, QWORD PTR namesW[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 504
	mov	r9, r13
	xor	ecx, ecx
	mov	QWORD PTR 8[rsp], 400
	mov	edi, DWORD PTR X509_ASN_ENCODING[rip]
	mov	r8, r14
	xor	edx, edx
	mov	rsi, QWORD PTR [rax+r12]
	push	0
	.cfi_def_cfa_offset 512
	call	pCertStrToNameW@PLT
	mov	ebp, eax
	xor	eax, eax
	call	GetLastError@PLT
	mov	rdx, rbx
	mov	rsi, r15
	mov	edi, ebp
	mov	rcx, rax
	xor	eax, eax
	call	ok@PLT
	mov	r8, QWORD PTR 16[rsp]
	xor	edi, edi
	mov	rdx, rbx
	mov	rax, QWORD PTR namesW[rip]
	lea	rsi, .LC6[rip]
	mov	rcx, QWORD PTR 8[rax+r12]
	cmp	r8, rcx
	sete	dil
	xor	eax, eax
	call	ok@PLT
	pop	rax
	.cfi_def_cfa_offset 504
	pop	rdx
	.cfi_def_cfa_offset 496
	test	ebp, ebp
	je	.L9
	mov	rax, QWORD PTR namesW[rip]
	mov	rdi, QWORD PTR [rax+r12]
	call	wine_dbgstr_w@PLT
	mov	rdx, QWORD PTR [rsp]
	mov	rdi, r14
	mov	rbp, rax
	mov	rax, QWORD PTR namesW[rip]
	mov	esi, DWORD PTR 16[rax+r12]
	call	memcmp@PLT
	xor	edi, edi
	mov	rcx, rbp
	mov	rdx, rbx
	test	eax, eax
	lea	rsi, .LC7[rip]
	sete	dil
	xor	eax, eax
	call	ok@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L30:
	mov	rax, QWORD PTR 424[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L31
	add	rsp, 440
	.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
.L25:
	.cfi_restore_state
	xor	eax, eax
	call	GetLastError@PLT
	xor	edi, edi
	cmp	QWORD PTR CRYPT_E_INVALID_X500_STRING[rip], rax
	sete	dil
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L29:
	xor	eax, eax
	call	GetLastError@PLT
	xor	edi, edi
	cmp	QWORD PTR CRYPT_E_INVALID_X500_STRING[rip], rax
	sete	dil
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L28:
	xor	eax, eax
	call	GetLastError@PLT
	xor	edi, edi
	cmp	QWORD PTR CRYPT_E_INVALID_X500_STRING[rip], rax
	sete	dil
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L27:
	xor	eax, eax
	call	GetLastError@PLT
	xor	edi, edi
	cmp	QWORD PTR ERROR_FILE_NOT_FOUND[rip], rax
	sete	dil
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L26:
	xor	eax, eax
	call	GetLastError@PLT
	xor	edi, edi
	cmp	QWORD PTR CRYPT_E_INVALID_X500_STRING[rip], rax
	sete	dil
	jmp	.L3
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	test_CertStrToNameW, .-test_CertStrToNameW
	.section	.rodata
	.type	fooW.1958, @object
	.size	fooW.1958, 6
fooW.1958:
	.string	"foo=1"
	.type	bogusW.1957, @object
	.size	bogusW.1957, 6
bogusW.1957:
	.string	"bogus"
	.comm	simpleCN_W,8,8
	.comm	namesW,8,8
	.comm	badlyQuotedCN_W,8,8
	.comm	X509_ASN_ENCODING,4,4
	.comm	ERROR_FILE_NOT_FOUND,8,8
	.comm	CRYPT_E_INVALID_X500_STRING,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_str.c_test_CertStrToNameW.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Expected failure\012\000"
	.align	2
.LC1:
	.ascii	"Expected CRYPT_E_INVALID_X500_STRING, got %08x\012\000"
	.align	2
.LC2:
	.ascii	"Expected ERROR_FILE_NOT_FOUND, got %08x\012\000"
	.align	2
.LC3:
	.ascii	"CertStrToNameW failed: %08x\012\000"
	.align	2
.LC4:
	.ascii	"Expected first error character was 1\012\000"
	.align	2
.LC5:
	.ascii	"Index %d: CertStrToNameW failed: %08x\012\000"
	.align	2
.LC6:
	.ascii	"Index %d: expected size %d, got %d\012\000"
	.align	2
.LC7:
	.ascii	"Index %d: unexpected value for string %s\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_CertStrToNameW, %function
test_CertStrToNameW:
	@ args = 0, pretend = 0, frame = 416
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, #0
	sub	sp, sp, #436
	ldr	ip, .L30
	add	r9, sp, #20
	mov	r3, r4
	mov	r2, r4
	mov	r1, r4
	str	r4, [sp, #8]
	str	r4, [sp]
	str	r9, [sp, #4]
	mov	r0, r4
	ldr	ip, [ip]
	str	ip, [sp, #428]
	mov	ip,#0
	bl	pCertStrToNameW
	clz	r0, r0
	ldr	r1, .L30+4
	lsr	r0, r0, #5
	bl	ok
	mov	r3, r4
	mov	r2, r4
	mov	r0, r4
	stm	sp, {r4, r9}
	ldr	r1, .L30+8
	str	r4, [sp, #8]
	bl	pCertStrToNameW
	cmp	r0, r4
	beq	.L23
.L2:
	bl	GetLastError
	mov	r5, #0
	mov	r2, r0
	ldr	r1, .L30+12
	mov	r0, r4
	bl	ok
	mov	r3, r5
	mov	r2, r5
	mov	r0, r5
	ldr	r1, .L30+16
	str	r9, [sp, #4]
	str	r5, [sp, #8]
	str	r5, [sp]
	bl	pCertStrToNameW
	cmp	r0, r5
	beq	.L24
.L3:
	bl	GetLastError
	mov	r4, #0
	mov	r2, r0
	ldr	r1, .L30+12
	mov	r0, r5
	ldr	r6, .L30+20
	bl	ok
	str	r9, [sp, #4]
	str	r4, [sp, #8]
	str	r4, [sp]
	mov	r3, r4
	mov	r2, r4
	mov	r0, r4
	ldr	r1, [r6]
	bl	pCertStrToNameW
	cmp	r0, r4
	movne	r5, r4
	beq	.L25
.L4:
	bl	GetLastError
	mov	r4, #0
	mov	r2, r0
	ldr	r1, .L30+24
	mov	r0, r5
	bl	ok
	str	r9, [sp, #4]
	ldr	r1, [r6]
	ldr	r6, .L30+28
	str	r4, [sp, #8]
	str	r4, [sp]
	mov	r3, r4
	mov	r2, r4
	ldr	r0, [r6]
	bl	pCertStrToNameW
	mov	r5, r0
	bl	GetLastError
	ldr	r1, .L30+32
	mov	r2, r0
	mov	r0, r5
	bl	ok
	mov	ip, #400
	str	r4, [sp, #8]
	str	r9, [sp, #4]
	ldr	r5, .L30+36
	add	r10, sp, #28
	ldr	r0, [r6]
	str	r10, [sp]
	mov	r3, r4
	mov	r2, r4
	ldr	r1, [r5]
	str	ip, [sp, #20]
	bl	pCertStrToNameW
	cmp	r0, r4
	beq	.L26
.L5:
	bl	GetLastError
	ldr	r1, .L30+12
	mov	r2, r0
	mov	r0, r4
	bl	ok
	mov	r3, #0
	str	r9, [sp, #4]
	str	r10, [sp]
	add	r0, sp, #24
	ldr	r1, [r5]
	str	r0, [sp, #8]
	ldr	r0, .L30+28
	mov	r2, r3
	ldr	r0, [r0]
	bl	pCertStrToNameW
	cmp	r0, #0
	movne	r4, #0
	beq	.L27
.L6:
	bl	GetLastError
	ldr	r1, .L30+12
	mov	r2, r0
	mov	r0, r4
	bl	ok
	ldr	r0, [sp, #24]
	ldr	r1, .L30+40
	cmp	r0, #0
	ldrbne	r0, [r0]	@ zero_extendqisi2
	mov	r4, #0
	subne	r0, r0, #49
	clzne	r0, r0
	lsrne	r0, r0, #5
	bl	ok
	ldr	r6, .L30+44
	ldr	fp, .L30+48
	b	.L8
.L9:
	add	r4, r4, #1
.L8:
	ldr	r0, [r6]
	bl	ARRAY_SIZE
	cmp	r0, r4
	bls	.L28
	mov	r3, #0
	mov	ip, #400
	ldr	r2, [r6]
	add	r7, r4, r4, lsl #1
	ldr	r0, .L30+28
	ldr	r1, [r2, r7, lsl #2]
	str	r3, [sp, #8]
	str	r9, [sp, #4]
	str	r10, [sp]
	mov	r2, r3
	ldr	r0, [r0]
	str	ip, [sp, #20]
	bl	pCertStrToNameW
	mov	r5, r0
	bl	GetLastError
	mov	r2, r4
	mov	r3, r0
	mov	r1, fp
	mov	r0, r5
	bl	ok
	ldr	r3, [r6]
	lsl	r8, r7, #2
	add	r3, r3, r8
	ldr	r2, [sp, #20]
	ldr	r3, [r3, #4]
	ldr	r1, .L30+52
	sub	r0, r3, r2
	clz	r0, r0
	str	r2, [sp]
	lsr	r0, r0, #5
	mov	r2, r4
	bl	ok
	cmp	r5, #0
	beq	.L9
	ldr	r3, [r6]
	ldr	r2, [sp, #20]
	add	r8, r3, r8
	ldr	r1, [r8, #8]
	mov	r0, r10
	bl	memcmp
	ldr	r3, [r6]
	mov	r5, r0
	ldr	r0, [r3, r7, lsl #2]
	bl	wine_dbgstr_w
	mov	r3, r0
	clz	r0, r5
	mov	r2, r4
	ldr	r1, .L30+56
	lsr	r0, r0, #5
	bl	ok
	b	.L9
.L28:
	ldr	r3, .L30
	ldr	r2, [r3]
	ldr	r3, [sp, #428]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L29
	add	sp, sp, #436
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L23:
	bl	GetLastError
	ldr	r3, .L30+60
	ldr	r4, [r3]
	sub	r4, r4, r0
	clz	r4, r4
	lsr	r4, r4, #5
	b	.L2
.L27:
	bl	GetLastError
	ldr	r3, .L30+60
	ldr	r4, [r3]
	sub	r4, r4, r0
	clz	r4, r4
	lsr	r4, r4, #5
	b	.L6
.L26:
	bl	GetLastError
	ldr	r3, .L30+60
	ldr	r4, [r3]
	sub	r4, r4, r0
	clz	r4, r4
	lsr	r4, r4, #5
	b	.L5
.L25:
	bl	GetLastError
	ldr	r3, .L30+64
	ldr	r4, [r3]
	sub	r5, r4, r0
	clz	r5, r5
	lsr	r5, r5, #5
	b	.L4
.L24:
	bl	GetLastError
	ldr	r3, .L30+60
	ldr	r5, [r3]
	sub	r5, r5, r0
	clz	r5, r5
	lsr	r5, r5, #5
	b	.L3
.L29:
	bl	__stack_chk_fail
.L31:
	.align	2
.L30:
	.word	.LC8
	.word	.LC0
	.word	.LANCHOR0
	.word	.LC1
	.word	.LANCHOR0+8
	.word	simpleCN_W
	.word	.LC2
	.word	X509_ASN_ENCODING
	.word	.LC3
	.word	badlyQuotedCN_W
	.word	.LC4
	.word	namesW
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	CRYPT_E_INVALID_X500_STRING
	.word	ERROR_FILE_NOT_FOUND
	.size	test_CertStrToNameW, .-test_CertStrToNameW
	.comm	simpleCN_W,4,4
	.comm	namesW,4,4
	.comm	badlyQuotedCN_W,4,4
	.comm	X509_ASN_ENCODING,4,4
	.comm	ERROR_FILE_NOT_FOUND,4,4
	.comm	CRYPT_E_INVALID_X500_STRING,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	bogusW.4241, %object
	.size	bogusW.4241, 6
bogusW.4241:
	.ascii	"bogus\000"
	.space	2
	.type	fooW.4242, %object
	.size	fooW.4242, 6
fooW.4242:
	.ascii	"foo=1\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
