	.file	"extr_storage32.c_test_access.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Expected S_OK, got %08x\n"
.LC1:
	.string	"got %08x\n"
	.text
	.p2align 4
	.type	test_access, @function
test_access:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	xor	edx, edx
	lea	rdi, fileW.1965[rip]
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR STGM_CREATE[rip]
	or	esi, DWORD PTR STGM_READWRITE[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rbx, rsp
	or	esi, DWORD PTR STGM_SHARE_EXCLUSIVE[rip]
	or	esi, DWORD PTR STGM_TRANSACTED[rip]
	mov	rcx, rbx
	call	StgCreateDocfile@PLT
	xor	edi, edi
	cmp	QWORD PTR S_OK[rip], rax
	lea	rsi, .LC0[rip]
	sete	dil
	mov	rdx, rax
	call	ok@PLT
	mov	esi, DWORD PTR create[rip]
	lea	rdi, fileA.1966[rip]
	call	test_file_access@PLT
	mov	esi, DWORD PTR STGC_DEFAULT[rip]
	mov	rdi, QWORD PTR [rsp]
	call	IStorage_Commit@PLT
	xor	edi, edi
	cmp	QWORD PTR S_OK[rip], rax
	lea	rsi, .LC0[rip]
	sete	dil
	mov	rdx, rax
	call	ok@PLT
	mov	esi, DWORD PTR create_commit[rip]
	lea	rdi, fileA.1966[rip]
	call	test_file_access@PLT
	mov	rdi, QWORD PTR [rsp]
	call	IStorage_Release@PLT
	mov	esi, DWORD PTR create_close[rip]
	lea	rdi, fileA.1966[rip]
	call	test_file_access@PLT
	lea	rdi, fileA.1966[rip]
	call	DeleteFileA@PLT
	mov	rcx, rbx
	xor	edx, edx
	mov	esi, DWORD PTR STGM_CREATE[rip]
	lea	rdi, fileW.1965[rip]
	or	esi, DWORD PTR STGM_READWRITE[rip]
	or	esi, DWORD PTR STGM_SHARE_EXCLUSIVE[rip]
	or	esi, DWORD PTR STGM_DIRECT[rip]
	call	StgCreateDocfile@PLT
	xor	edi, edi
	cmp	QWORD PTR S_OK[rip], rax
	lea	rsi, .LC0[rip]
	sete	dil
	mov	rdx, rax
	call	ok@PLT
	mov	esi, DWORD PTR create[rip]
	lea	rdi, fileA.1966[rip]
	call	test_file_access@PLT
	mov	esi, DWORD PTR STGC_DEFAULT[rip]
	mov	rdi, QWORD PTR [rsp]
	call	IStorage_Commit@PLT
	xor	edi, edi
	cmp	QWORD PTR S_OK[rip], rax
	lea	rsi, .LC0[rip]
	sete	dil
	mov	rdx, rax
	call	ok@PLT
	mov	esi, DWORD PTR create_commit[rip]
	lea	rdi, fileA.1966[rip]
	call	test_file_access@PLT
	mov	rdi, QWORD PTR [rsp]
	call	IStorage_Release@PLT
	mov	esi, DWORD PTR create_close[rip]
	lea	rdi, fileA.1966[rip]
	call	test_file_access@PLT
	lea	rdi, fileA.1966[rip]
	call	DeleteFileA@PLT
	mov	rcx, rbx
	xor	edx, edx
	mov	esi, DWORD PTR STGM_CREATE[rip]
	lea	rdi, fileW.1965[rip]
	or	esi, DWORD PTR STGM_READWRITE[rip]
	or	esi, DWORD PTR STGM_SHARE_DENY_NONE[rip]
	or	esi, DWORD PTR STGM_TRANSACTED[rip]
	call	StgCreateDocfile@PLT
	xor	edi, edi
	cmp	QWORD PTR S_OK[rip], rax
	lea	rsi, .LC0[rip]
	sete	dil
	mov	rdx, rax
	call	ok@PLT
	mov	esi, DWORD PTR create[rip]
	lea	rdi, fileA.1966[rip]
	call	test_file_access@PLT
	mov	esi, DWORD PTR STGC_DEFAULT[rip]
	mov	rdi, QWORD PTR [rsp]
	call	IStorage_Commit@PLT
	xor	edi, edi
	cmp	QWORD PTR S_OK[rip], rax
	lea	rsi, .LC0[rip]
	sete	dil
	mov	rdx, rax
	call	ok@PLT
	mov	esi, DWORD PTR create_commit[rip]
	lea	rdi, fileA.1966[rip]
	call	test_file_access@PLT
	mov	rdi, QWORD PTR [rsp]
	call	IStorage_Release@PLT
	mov	esi, DWORD PTR create_close[rip]
	lea	rdi, fileA.1966[rip]
	call	test_file_access@PLT
	lea	rdi, fileA.1966[rip]
	call	DeleteFileA@PLT
	mov	rcx, rbx
	xor	edx, edx
	mov	esi, DWORD PTR STGM_CREATE[rip]
	lea	rdi, fileW.1965[rip]
	or	esi, DWORD PTR STGM_READWRITE[rip]
	or	esi, DWORD PTR STGM_SHARE_DENY_READ[rip]
	or	esi, DWORD PTR STGM_TRANSACTED[rip]
	call	StgCreateDocfile@PLT
	xor	edi, edi
	cmp	QWORD PTR S_OK[rip], rax
	lea	rsi, .LC0[rip]
	sete	dil
	mov	rdx, rax
	call	ok@PLT
	mov	esi, DWORD PTR create[rip]
	lea	rdi, fileA.1966[rip]
	call	test_file_access@PLT
	mov	esi, DWORD PTR STGC_DEFAULT[rip]
	mov	rdi, QWORD PTR [rsp]
	call	IStorage_Commit@PLT
	xor	edi, edi
	cmp	QWORD PTR S_OK[rip], rax
	lea	rsi, .LC0[rip]
	sete	dil
	mov	rdx, rax
	call	ok@PLT
	mov	esi, DWORD PTR create_commit[rip]
	lea	rdi, fileA.1966[rip]
	call	test_file_access@PLT
	mov	rdi, QWORD PTR [rsp]
	call	IStorage_Release@PLT
	mov	esi, DWORD PTR create_close[rip]
	lea	rdi, fileA.1966[rip]
	call	test_file_access@PLT
	lea	rdi, fileA.1966[rip]
	call	DeleteFileA@PLT
	mov	rcx, rbx
	xor	edx, edx
	mov	esi, DWORD PTR STGM_CREATE[rip]
	lea	rdi, fileW.1965[rip]
	or	esi, DWORD PTR STGM_READWRITE[rip]
	or	esi, DWORD PTR STGM_SHARE_DENY_WRITE[rip]
	or	esi, DWORD PTR STGM_TRANSACTED[rip]
	call	StgCreateDocfile@PLT
	xor	edi, edi
	cmp	QWORD PTR S_OK[rip], rax
	lea	rsi, .LC0[rip]
	sete	dil
	mov	rdx, rax
	call	ok@PLT
	mov	esi, DWORD PTR create[rip]
	lea	rdi, fileA.1966[rip]
	call	test_file_access@PLT
	mov	esi, DWORD PTR STGC_DEFAULT[rip]
	mov	rdi, QWORD PTR [rsp]
	call	IStorage_Commit@PLT
	xor	edi, edi
	cmp	QWORD PTR S_OK[rip], rax
	lea	rsi, .LC0[rip]
	sete	dil
	mov	rdx, rax
	call	ok@PLT
	mov	esi, DWORD PTR create_commit[rip]
	lea	rdi, fileA.1966[rip]
	call	test_file_access@PLT
	mov	rdi, QWORD PTR [rsp]
	call	IStorage_Release@PLT
	mov	esi, DWORD PTR create_close[rip]
	lea	rdi, fileA.1966[rip]
	call	test_file_access@PLT
	lea	rdi, fileA.1966[rip]
	call	DeleteFileA@PLT
	mov	rcx, rbx
	xor	edx, edx
	mov	esi, DWORD PTR STGM_CREATE[rip]
	lea	rdi, fileW.1965[rip]
	or	esi, DWORD PTR STGM_READWRITE[rip]
	or	esi, DWORD PTR STGM_SHARE_DENY_WRITE[rip]
	or	esi, DWORD PTR STGM_TRANSACTED[rip]
	call	StgCreateDocfile@PLT
	xor	edi, edi
	cmp	QWORD PTR S_OK[rip], rax
	lea	rsi, .LC1[rip]
	sete	dil
	mov	rdx, rax
	call	ok@PLT
	mov	rdi, QWORD PTR [rsp]
	call	IStorage_Release@PLT
	mov	edx, DWORD PTR STGM_DIRECT_SWMR[rip]
	mov	r9, rbx
	xor	ecx, ecx
	or	edx, DWORD PTR STGM_READ[rip]
	xor	r8d, r8d
	xor	esi, esi
	or	edx, DWORD PTR STGM_SHARE_DENY_NONE[rip]
	lea	rdi, fileW.1965[rip]
	call	StgOpenStorage@PLT
	cmp	QWORD PTR S_OK[rip], rax
	mov	edi, 1
	mov	rbx, rax
	je	.L2
	xor	edi, edi
	cmp	QWORD PTR STG_E_INVALIDFLAG[rip], rax
	sete	dil
	call	broken@PLT
	xor	edi, edi
	test	rax, rax
	setne	dil
.L2:
	mov	rdx, rbx
	lea	rsi, .LC1[rip]
	call	ok@PLT
	cmp	QWORD PTR S_OK[rip], rbx
	je	.L10
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	esi, DWORD PTR create[rip]
	lea	rdi, fileA.1966[rip]
	call	test_file_access@PLT
	mov	rdi, QWORD PTR [rsp]
	call	IStorage_Release@PLT
	mov	esi, DWORD PTR create_close[rip]
	lea	rdi, fileA.1966[rip]
	call	test_file_access@PLT
	lea	rdi, fileA.1966[rip]
	call	DeleteFileA@PLT
	jmp	.L1
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	test_access, .-test_access
	.section	.rodata
	.align 8
	.type	fileA.1966, @object
	.size	fileA.1966, 9
fileA.1966:
	.string	"winetest"
	.align 8
	.type	fileW.1965, @object
	.size	fileW.1965, 9
fileW.1965:
	.string	"winetest"
	.comm	create_commit,4,4
	.comm	create_close,4,4
	.comm	create,4,4
	.comm	S_OK,8,8
	.comm	STG_E_INVALIDFLAG,8,8
	.comm	STGM_TRANSACTED,4,4
	.comm	STGM_SHARE_EXCLUSIVE,4,4
	.comm	STGM_SHARE_DENY_WRITE,4,4
	.comm	STGM_SHARE_DENY_READ,4,4
	.comm	STGM_SHARE_DENY_NONE,4,4
	.comm	STGM_READWRITE,4,4
	.comm	STGM_READ,4,4
	.comm	STGM_DIRECT_SWMR,4,4
	.comm	STGM_DIRECT,4,4
	.comm	STGM_CREATE,4,4
	.comm	STGC_DEFAULT,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_storage32.c_test_access.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Expected S_OK, got %08x\012\000"
	.align	2
.LC1:
	.ascii	"got %08x\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_access, %function
test_access:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r5, .L11
	ldr	r6, .L11+4
	ldr	fp, .L11+8
	ldr	r9, .L11+12
	ldr	r1, [r5]
	ldr	r2, [r6]
	ldr	r3, [fp]
	sub	sp, sp, #20
	orr	r2, r2, r1
	ldr	r1, [r9]
	ldr	ip, .L11+16
	add	r10, sp, #8
	orr	r2, r2, r3
	orr	r1, r2, r1
	mov	r3, r10
	mov	r2, #0
	ldr	r0, .L11+20
	ldr	ip, [ip]
	str	ip, [sp, #12]
	mov	ip,#0
	bl	StgCreateDocfile
	mov	r2, r0
	ldr	r4, .L11+24
	ldr	r8, .L11+28
	ldr	r0, [r4]
	ldr	r1, .L11+32
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r1, [r8]
	ldr	r0, .L11+36
	bl	test_file_access
	ldr	r3, .L11+40
	ldr	r0, [sp, #8]
	ldr	r1, [r3]
	bl	IStorage_Commit
	mov	r2, r0
	ldr	r0, [r4]
	ldr	r1, .L11+32
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r2, .L11+44
	ldr	r7, .L11+48
	ldr	r1, [r2]
	ldr	r0, .L11+36
	bl	test_file_access
	ldr	r0, [sp, #8]
	bl	IStorage_Release
	ldr	r1, [r7]
	ldr	r0, .L11+36
	bl	test_file_access
	ldr	r0, .L11+36
	bl	DeleteFileA
	ldr	ip, .L11+52
	ldr	r1, [r5]
	ldr	r2, [r6]
	ldr	r0, [fp]
	orr	r2, r2, r1
	ldr	r1, [ip]
	orr	r2, r2, r0
	mov	r3, r10
	orr	r1, r2, r1
	ldr	r0, .L11+20
	mov	r2, #0
	bl	StgCreateDocfile
	mov	r2, r0
	ldr	r0, [r4]
	ldr	fp, .L11+40
	sub	r0, r0, r2
	clz	r0, r0
	ldr	r1, .L11+32
	lsr	r0, r0, #5
	bl	ok
	ldr	r1, [r8]
	ldr	r0, .L11+36
	bl	test_file_access
	ldr	r1, [fp]
	ldr	r0, [sp, #8]
	bl	IStorage_Commit
	mov	r2, r0
	ldr	r0, [r4]
	ldr	r1, .L11+32
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r2, .L11+44
	ldr	r0, .L11+36
	ldr	r1, [r2]
	bl	test_file_access
	ldr	r0, [sp, #8]
	bl	IStorage_Release
	ldr	r1, [r7]
	ldr	r0, .L11+36
	bl	test_file_access
	ldr	r0, .L11+36
	bl	DeleteFileA
	ldr	r3, .L11+56
	ldr	r1, [r5]
	ldr	r2, [r6]
	ldr	r0, [r3]
	orr	r2, r2, r1
	ldr	r1, [r9]
	orr	r2, r2, r0
	mov	r3, r10
	orr	r1, r2, r1
	ldr	r0, .L11+20
	mov	r2, #0
	bl	StgCreateDocfile
	mov	r2, r0
	ldr	r0, [r4]
	ldr	r1, .L11+32
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r1, [r8]
	ldr	r0, .L11+36
	bl	test_file_access
	ldr	r1, [fp]
	ldr	r0, [sp, #8]
	bl	IStorage_Commit
	mov	r2, r0
	ldr	r0, [r4]
	ldr	r1, .L11+32
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r2, .L11+44
	ldr	r0, .L11+36
	ldr	r1, [r2]
	bl	test_file_access
	ldr	r0, [sp, #8]
	bl	IStorage_Release
	ldr	r1, [r7]
	ldr	r0, .L11+36
	bl	test_file_access
	ldr	r0, .L11+36
	bl	DeleteFileA
	ldr	r0, .L11+60
	ldr	r1, [r5]
	ldr	r2, [r6]
	ldr	r0, [r0]
	orr	r2, r2, r1
	ldr	r1, [r9]
	orr	r2, r2, r0
	mov	r3, r10
	orr	r1, r2, r1
	ldr	r0, .L11+20
	mov	r2, #0
	bl	StgCreateDocfile
	mov	r2, r0
	ldr	r0, [r4]
	ldr	r1, .L11+32
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r1, [r8]
	ldr	r0, .L11+36
	bl	test_file_access
	ldr	r1, [fp]
	ldr	r0, [sp, #8]
	bl	IStorage_Commit
	mov	r2, r0
	ldr	r0, [r4]
	ldr	r1, .L11+32
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r2, .L11+44
	ldr	r0, .L11+36
	ldr	r1, [r2]
	bl	test_file_access
	ldr	r0, [sp, #8]
	bl	IStorage_Release
	ldr	r1, [r7]
	ldr	r0, .L11+36
	bl	test_file_access
	ldr	fp, .L11+64
	ldr	r0, .L11+36
	bl	DeleteFileA
	ldr	r1, [r5]
	ldr	r2, [r6]
	ldr	r0, [fp]
	orr	r2, r2, r1
	ldr	r1, [r9]
	orr	r2, r2, r0
	mov	r3, r10
	orr	r1, r2, r1
	ldr	r0, .L11+20
	mov	r2, #0
	bl	StgCreateDocfile
	mov	r2, r0
	ldr	r0, [r4]
	ldr	r1, .L11+32
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r1, [r8]
	ldr	r0, .L11+36
	bl	test_file_access
	ldr	r3, .L11+40
	ldr	r0, [sp, #8]
	ldr	r1, [r3]
	bl	IStorage_Commit
	mov	r2, r0
	ldr	r0, [r4]
	ldr	r1, .L11+32
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r2, .L11+44
	ldr	r0, .L11+36
	ldr	r1, [r2]
	bl	test_file_access
	ldr	r0, [sp, #8]
	bl	IStorage_Release
	ldr	r1, [r7]
	ldr	r0, .L11+36
	bl	test_file_access
	ldr	r0, .L11+36
	bl	DeleteFileA
	ldr	r1, [r5]
	ldr	r2, [r6]
	ldr	r0, [fp]
	orr	r2, r2, r1
	ldr	r1, [r9]
	orr	r2, r2, r0
	mov	r3, r10
	orr	r1, r2, r1
	ldr	r0, .L11+20
	mov	r2, #0
	bl	StgCreateDocfile
	mov	r2, r0
	ldr	r0, [r4]
	ldr	r1, .L11+68
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r0, [sp, #8]
	bl	IStorage_Release
	mov	r0, #0
	ldr	r1, .L11+72
	ldr	r2, .L11+76
	ldr	r3, .L11+56
	ldr	r1, [r1]
	ldr	r2, [r2]
	ldr	ip, [r3]
	orr	r2, r1, r2
	mov	r3, r0
	mov	r1, r0
	str	r0, [sp]
	str	r10, [sp, #4]
	ldr	r0, .L11+20
	orr	r2, r2, ip
	bl	StgOpenStorage
	ldr	r3, [r4]
	mov	r5, r0
	cmp	r3, r0
	moveq	r0, #1
	beq	.L2
	ldr	r3, .L11+80
	ldr	r0, [r3]
	sub	r0, r0, r5
	clz	r0, r0
	lsr	r0, r0, #5
	bl	broken
	subs	r0, r0, #0
	movne	r0, #1
.L2:
	mov	r2, r5
	ldr	r1, .L11+68
	bl	ok
	ldr	r3, [r4]
	cmp	r3, r5
	beq	.L9
.L1:
	ldr	r3, .L11+16
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	ldr	r1, [r8]
	ldr	r0, .L11+36
	bl	test_file_access
	ldr	r0, [sp, #8]
	bl	IStorage_Release
	ldr	r1, [r7]
	ldr	r0, .L11+36
	bl	test_file_access
	ldr	r0, .L11+36
	bl	DeleteFileA
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	STGM_READWRITE
	.word	STGM_CREATE
	.word	STGM_SHARE_EXCLUSIVE
	.word	STGM_TRANSACTED
	.word	.LC2
	.word	.LANCHOR0
	.word	S_OK
	.word	create
	.word	.LC0
	.word	.LANCHOR0+12
	.word	STGC_DEFAULT
	.word	create_commit
	.word	create_close
	.word	STGM_DIRECT
	.word	STGM_SHARE_DENY_NONE
	.word	STGM_SHARE_DENY_READ
	.word	STGM_SHARE_DENY_WRITE
	.word	.LC1
	.word	STGM_DIRECT_SWMR
	.word	STGM_READ
	.word	STG_E_INVALIDFLAG
	.size	test_access, .-test_access
	.comm	create_commit,4,4
	.comm	create_close,4,4
	.comm	create,4,4
	.comm	S_OK,4,4
	.comm	STG_E_INVALIDFLAG,4,4
	.comm	STGM_TRANSACTED,4,4
	.comm	STGM_SHARE_EXCLUSIVE,4,4
	.comm	STGM_SHARE_DENY_WRITE,4,4
	.comm	STGM_SHARE_DENY_READ,4,4
	.comm	STGM_SHARE_DENY_NONE,4,4
	.comm	STGM_READWRITE,4,4
	.comm	STGM_READ,4,4
	.comm	STGM_DIRECT_SWMR,4,4
	.comm	STGM_DIRECT,4,4
	.comm	STGM_CREATE,4,4
	.comm	STGC_DEFAULT,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	fileW.4249, %object
	.size	fileW.4249, 9
fileW.4249:
	.ascii	"winetest\000"
	.space	3
	.type	fileA.4250, %object
	.size	fileA.4250, 9
fileA.4250:
	.ascii	"winetest\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
