	.file	"extr_storage32.c_test_copyto_iidexclusions_stream.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"StgCreateDocfile failed: 0x%08x\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"CopyTo failed: 0x%08x\n"
.LC2:
	.string	"OpenStorage failed: 0x%08x\n"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"OpenStream should give STG_E_FILENOTFOUND, gave: 0x%08x\n"
	.text
	.p2align 4
	.type	test_copyto_iidexclusions_stream, @function
test_copyto_iidexclusions_stream:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	edx, edx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 48
	.cfi_def_cfa_offset 80
	mov	edi, DWORD PTR file1_name[rip]
	mov	esi, DWORD PTR STGM_CREATE[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	or	esi, DWORD PTR STGM_SHARE_EXCLUSIVE[rip]
	lea	rcx, 8[rsp]
	or	esi, DWORD PTR STGM_READWRITE[rip]
	mov	QWORD PTR 8[rsp], 0
	mov	QWORD PTR 16[rsp], 0
	call	StgCreateDocfile@PLT
	xor	edi, edi
	cmp	QWORD PTR S_OK[rip], rax
	lea	rsi, .LC0[rip]
	sete	dil
	mov	rbp, rax
	mov	rdx, rax
	call	ok@PLT
	mov	rdi, rbp
	call	FAILED@PLT
	test	rax, rax
	je	.L35
.L3:
	mov	rdi, QWORD PTR 8[rsp]
	test	rdi, rdi
	je	.L9
	call	IStorage_Release@PLT
.L9:
	mov	rdi, QWORD PTR 16[rsp]
	test	rdi, rdi
	je	.L10
	call	IStorage_Release@PLT
.L10:
	mov	edi, DWORD PTR file1_nameA[rip]
	call	DeleteFileA@PLT
	mov	edi, DWORD PTR file2_nameA[rip]
	call	DeleteFileA@PLT
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L36
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L35:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[rsp]
	call	create_test_file@PLT
	mov	rdi, rax
	call	FAILED@PLT
	test	rax, rax
	jne	.L3
	mov	edi, DWORD PTR file2_name[rip]
	xor	edx, edx
	mov	esi, DWORD PTR STGM_CREATE[rip]
	lea	rcx, 16[rsp]
	or	esi, DWORD PTR STGM_SHARE_EXCLUSIVE[rip]
	or	esi, DWORD PTR STGM_READWRITE[rip]
	call	StgCreateDocfile@PLT
	xor	edi, edi
	cmp	QWORD PTR S_OK[rip], rax
	lea	rsi, .LC0[rip]
	sete	dil
	mov	rbp, rax
	mov	rdx, rax
	call	ok@PLT
	mov	rdi, rbp
	call	FAILED@PLT
	test	rax, rax
	jne	.L3
	mov	r8, QWORD PTR 16[rsp]
	mov	rdi, QWORD PTR 8[rsp]
	xor	ecx, ecx
	lea	rdx, IID_IStream[rip]
	mov	esi, 1
	call	IStorage_CopyTo@PLT
	xor	edi, edi
	cmp	QWORD PTR S_OK[rip], rax
	lea	rsi, .LC1[rip]
	sete	dil
	mov	rbp, rax
	mov	rdx, rax
	call	ok@PLT
	mov	rdi, rbp
	call	FAILED@PLT
	test	rax, rax
	jne	.L3
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	esi, DWORD PTR stgA_name[rip]
	xor	r9d, r9d
	xor	r8d, r8d
	lea	r12, 32[rsp]
	xor	edx, edx
	mov	ecx, DWORD PTR STGM_READWRITE[rip]
	or	ecx, DWORD PTR STGM_SHARE_EXCLUSIVE[rip]
	push	r12
	.cfi_def_cfa_offset 96
	mov	rdi, QWORD PTR 32[rsp]
	call	IStorage_OpenStorage@PLT
	xor	edi, edi
	cmp	QWORD PTR S_OK[rip], rax
	lea	rsi, .LC2[rip]
	sete	dil
	mov	rbp, rax
	mov	rdx, rax
	call	ok@PLT
	mov	rdi, rbp
	call	SUCCEEDED@PLT
	pop	rsi
	.cfi_def_cfa_offset 88
	pop	rdi
	.cfi_def_cfa_offset 80
	lea	rbx, 32[rsp]
	test	rax, rax
	jne	.L37
.L5:
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	esi, DWORD PTR stgB_name[rip]
	xor	r9d, r9d
	xor	r8d, r8d
	push	r12
	.cfi_def_cfa_offset 96
	mov	rdi, QWORD PTR 32[rsp]
	xor	edx, edx
	mov	ecx, DWORD PTR STGM_READWRITE[rip]
	or	ecx, DWORD PTR STGM_SHARE_EXCLUSIVE[rip]
	call	IStorage_OpenStorage@PLT
	xor	edi, edi
	cmp	QWORD PTR S_OK[rip], rax
	lea	rsi, .LC2[rip]
	sete	dil
	mov	rdx, rax
	mov	rbp, rax
	call	ok@PLT
	mov	rdi, rbp
	call	SUCCEEDED@PLT
	pop	rdx
	.cfi_def_cfa_offset 88
	pop	rcx
	.cfi_def_cfa_offset 80
	test	rax, rax
	jne	.L38
.L7:
	mov	esi, DWORD PTR strmC_name[rip]
	mov	rdi, QWORD PTR 16[rsp]
	xor	r8d, r8d
	xor	edx, edx
	mov	ecx, DWORD PTR STGM_READWRITE[rip]
	mov	r9, rbx
	or	ecx, DWORD PTR STGM_SHARE_EXCLUSIVE[rip]
	call	IStorage_OpenStream@PLT
	xor	edi, edi
	cmp	QWORD PTR STG_E_FILENOTFOUND[rip], rax
	lea	rsi, .LC3[rip]
	sete	dil
	mov	rbp, rax
	mov	rdx, rax
	call	ok@PLT
	mov	rdi, rbp
	call	SUCCEEDED@PLT
	test	rax, rax
	je	.L3
	mov	rdi, QWORD PTR 32[rsp]
	call	IStream_Release@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L38:
	mov	esi, DWORD PTR strmB_name[rip]
	mov	rdi, QWORD PTR 24[rsp]
	xor	r8d, r8d
	xor	edx, edx
	mov	ecx, DWORD PTR STGM_READWRITE[rip]
	mov	r9, rbx
	or	ecx, DWORD PTR STGM_SHARE_EXCLUSIVE[rip]
	call	IStorage_OpenStream@PLT
	xor	edi, edi
	cmp	QWORD PTR STG_E_FILENOTFOUND[rip], rax
	lea	rsi, .LC3[rip]
	sete	dil
	mov	rbp, rax
	mov	rdx, rax
	call	ok@PLT
	mov	rdi, rbp
	call	SUCCEEDED@PLT
	test	rax, rax
	jne	.L39
.L8:
	mov	rdi, QWORD PTR 24[rsp]
	call	IStorage_Release@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L37:
	mov	esi, DWORD PTR strmA_name[rip]
	mov	rdi, QWORD PTR 24[rsp]
	xor	r8d, r8d
	xor	edx, edx
	mov	ecx, DWORD PTR STGM_READWRITE[rip]
	mov	r9, rbx
	or	ecx, DWORD PTR STGM_SHARE_EXCLUSIVE[rip]
	call	IStorage_OpenStream@PLT
	xor	edi, edi
	cmp	QWORD PTR STG_E_FILENOTFOUND[rip], rax
	lea	rsi, .LC3[rip]
	sete	dil
	mov	rbp, rax
	mov	rdx, rax
	call	ok@PLT
	mov	rdi, rbp
	call	SUCCEEDED@PLT
	test	rax, rax
	jne	.L40
.L6:
	mov	rdi, QWORD PTR 24[rsp]
	call	IStorage_Release@PLT
	jmp	.L5
.L39:
	mov	rdi, QWORD PTR 32[rsp]
	call	IStream_Release@PLT
	jmp	.L8
.L40:
	mov	rdi, QWORD PTR 32[rsp]
	call	IStream_Release@PLT
	jmp	.L6
.L36:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	test_copyto_iidexclusions_stream, .-test_copyto_iidexclusions_stream
	.comm	strmC_name,4,4
	.comm	strmB_name,4,4
	.comm	strmA_name,4,4
	.comm	stgB_name,4,4
	.comm	stgA_name,4,4
	.comm	file2_nameA,4,4
	.comm	file2_name,4,4
	.comm	file1_nameA,4,4
	.comm	file1_name,4,4
	.comm	S_OK,8,8
	.comm	STG_E_FILENOTFOUND,8,8
	.comm	STGM_SHARE_EXCLUSIVE,4,4
	.comm	STGM_READWRITE,4,4
	.comm	STGM_CREATE,4,4
	.comm	IID_IStream,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_copyto_iidexclusions_stream.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"StgCreateDocfile failed: 0x%08x\012\000"
	.align	2
.LC1:
	.ascii	"CopyTo failed: 0x%08x\012\000"
	.align	2
.LC2:
	.ascii	"OpenStorage failed: 0x%08x\012\000"
	.align	2
.LC3:
	.ascii	"OpenStream should give STG_E_FILENOTFOUND, gave: 0x"
	.ascii	"%08x\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_copyto_iidexclusions_stream, %function
test_copyto_iidexclusions_stream:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r2, #0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r7, .L40
	ldr	r5, .L40+4
	ldr	r6, .L40+8
	ldr	ip, [r5]
	ldr	r3, [r7]
	ldr	r1, [r6]
	ldr	r0, .L40+12
	sub	sp, sp, #44
	orr	r3, r3, ip
	ldr	ip, .L40+16
	orr	r1, r3, r1
	ldr	r0, [r0]
	add	r3, sp, #20
	ldr	ip, [ip]
	str	ip, [sp, #36]
	mov	ip,#0
	str	r2, [sp, #20]
	str	r2, [sp, #24]
	bl	StgCreateDocfile
	mov	r4, r0
	ldr	r8, .L40+20
	mov	r2, r0
	ldr	r0, [r8]
	ldr	r1, .L40+24
	sub	r0, r0, r4
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	mov	r0, r4
	bl	FAILED
	cmp	r0, #0
	beq	.L35
.L3:
	ldr	r0, [sp, #20]
	cmp	r0, #0
	beq	.L9
	bl	IStorage_Release
.L9:
	ldr	r0, [sp, #24]
	cmp	r0, #0
	beq	.L10
	bl	IStorage_Release
.L10:
	ldr	r3, .L40+28
	ldr	r0, [r3]
	bl	DeleteFileA
	ldr	r3, .L40+32
	ldr	r0, [r3]
	bl	DeleteFileA
	ldr	r3, .L40+16
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L36
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L35:
	ldr	r0, [sp, #20]
	bl	create_test_file
	bl	FAILED
	subs	r2, r0, #0
	bne	.L3
	ldr	ip, [r5]
	ldr	r3, [r7]
	ldr	r1, [r6]
	ldr	r0, .L40+36
	orr	r3, r3, ip
	orr	r1, r3, r1
	ldr	r0, [r0]
	add	r3, sp, #24
	bl	StgCreateDocfile
	mov	r4, r0
	ldr	r0, [r8]
	mov	r2, r4
	sub	r0, r0, r4
	clz	r0, r0
	ldr	r1, .L40+24
	lsr	r0, r0, #5
	bl	ok
	mov	r0, r4
	bl	FAILED
	subs	r3, r0, #0
	bne	.L3
	ldr	r2, [sp, #24]
	mov	r1, #1
	str	r2, [sp]
	ldr	r0, [sp, #20]
	ldr	r2, .L40+40
	bl	IStorage_CopyTo
	mov	r4, r0
	ldr	r0, [r8]
	mov	r2, r4
	sub	r0, r0, r4
	clz	r0, r0
	ldr	r1, .L40+44
	lsr	r0, r0, #5
	bl	ok
	mov	r0, r4
	bl	FAILED
	subs	r4, r0, #0
	bne	.L3
	ldr	r1, [r6]
	ldr	r3, [r5]
	ldr	r2, .L40+48
	str	r4, [sp, #4]
	str	r4, [sp]
	add	fp, sp, #28
	orr	r3, r1, r3
	ldr	r0, [sp, #24]
	ldr	r1, [r2]
	mov	r2, r4
	str	fp, [sp, #8]
	bl	IStorage_OpenStorage
	mov	r7, r0
	ldr	r0, [r8]
	mov	r2, r7
	sub	r0, r0, r7
	clz	r0, r0
	ldr	r1, .L40+52
	lsr	r0, r0, #5
	bl	ok
	mov	r0, r7
	bl	SUCCEEDED
	cmp	r0, #0
	bne	.L32
	ldr	r7, .L40+56
	add	r9, sp, #32
.L5:
	mov	r10, #0
	stmib	sp, {r10, fp}
	ldr	r0, [r6]
	ldr	r3, [r5]
	ldr	r1, .L40+60
	str	r10, [sp]
	orr	r3, r0, r3
	mov	r2, r10
	ldr	r1, [r1]
	ldr	r0, [sp, #24]
	bl	IStorage_OpenStorage
	mov	r4, r0
	ldr	r0, [r8]
	mov	r2, r4
	sub	r0, r0, r4
	clz	r0, r0
	ldr	r1, .L40+52
	lsr	r0, r0, #5
	bl	ok
	mov	r0, r4
	bl	SUCCEEDED
	cmp	r0, r10
	bne	.L37
.L7:
	mov	r2, #0
	stm	sp, {r2, r9}
	ldr	r0, [r6]
	ldr	r3, [r5]
	ldr	r1, .L40+64
	orr	r3, r0, r3
	ldr	r1, [r1]
	ldr	r0, [sp, #24]
	bl	IStorage_OpenStream
	mov	r4, r0
	ldr	r0, [r7]
	mov	r2, r4
	sub	r0, r0, r4
	clz	r0, r0
	ldr	r1, .L40+68
	lsr	r0, r0, #5
	bl	ok
	mov	r0, r4
	bl	SUCCEEDED
	cmp	r0, #0
	beq	.L3
	ldr	r0, [sp, #32]
	bl	IStream_Release
	b	.L3
.L32:
	ldr	r0, [r6]
	ldr	r3, [r5]
	ldr	r1, .L40+72
	str	r4, [sp]
	add	r9, sp, #32
	orr	r3, r0, r3
	mov	r2, r4
	ldr	r1, [r1]
	ldr	r0, [sp, #28]
	str	r9, [sp, #4]
	bl	IStorage_OpenStream
	mov	r4, r0
	ldr	r7, .L40+56
	mov	r2, r0
	ldr	r0, [r7]
	ldr	r1, .L40+68
	sub	r0, r0, r4
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	mov	r0, r4
	bl	SUCCEEDED
	cmp	r0, #0
	bne	.L38
.L6:
	ldr	r0, [sp, #28]
	bl	IStorage_Release
	b	.L5
.L37:
	ldr	r0, [r6]
	ldr	r3, [r5]
	ldr	r1, .L40+76
	str	r9, [sp, #4]
	str	r10, [sp]
	orr	r3, r0, r3
	mov	r2, r10
	ldr	r1, [r1]
	ldr	r0, [sp, #28]
	bl	IStorage_OpenStream
	mov	r4, r0
	ldr	r0, [r7]
	mov	r2, r4
	sub	r0, r0, r4
	clz	r0, r0
	ldr	r1, .L40+68
	lsr	r0, r0, #5
	bl	ok
	mov	r0, r4
	bl	SUCCEEDED
	cmp	r0, r10
	bne	.L39
.L8:
	ldr	r0, [sp, #28]
	bl	IStorage_Release
	b	.L7
.L38:
	ldr	r0, [sp, #32]
	bl	IStream_Release
	b	.L6
.L39:
	ldr	r0, [sp, #32]
	bl	IStream_Release
	b	.L8
.L36:
	bl	__stack_chk_fail
.L41:
	.align	2
.L40:
	.word	STGM_CREATE
	.word	STGM_SHARE_EXCLUSIVE
	.word	STGM_READWRITE
	.word	file1_name
	.word	.LC4
	.word	S_OK
	.word	.LC0
	.word	file1_nameA
	.word	file2_nameA
	.word	file2_name
	.word	IID_IStream
	.word	.LC1
	.word	stgA_name
	.word	.LC2
	.word	STG_E_FILENOTFOUND
	.word	stgB_name
	.word	strmC_name
	.word	.LC3
	.word	strmA_name
	.word	strmB_name
	.size	test_copyto_iidexclusions_stream, .-test_copyto_iidexclusions_stream
	.comm	strmC_name,4,4
	.comm	strmB_name,4,4
	.comm	strmA_name,4,4
	.comm	stgB_name,4,4
	.comm	stgA_name,4,4
	.comm	file2_nameA,4,4
	.comm	file2_name,4,4
	.comm	file1_nameA,4,4
	.comm	file1_name,4,4
	.comm	S_OK,4,4
	.comm	STG_E_FILENOTFOUND,4,4
	.comm	STGM_SHARE_EXCLUSIVE,4,4
	.comm	STGM_READWRITE,4,4
	.comm	STGM_CREATE,4,4
	.comm	IID_IStream,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
