	.file	"extr_clipboard.c_get_data_from_stream.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	get_data_from_stream, @function
get_data_from_stream:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xor	esi, esi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdx
	sub	rsp, 48
	.cfi_def_cfa_offset 96
	mov	edi, DWORD PTR GMEM_DDESHARE[rip]
	or	edi, DWORD PTR GMEM_MOVEABLE[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	QWORD PTR [rdx], 0
	mov	QWORD PTR 8[rsp], 0
	call	GlobalAlloc@PLT
	mov	r12d, DWORD PTR E_OUTOFMEMORY[rip]
	test	rax, rax
	je	.L1
	mov	esi, DWORD PTR FALSE[rip]
	mov	rdi, rax
	lea	rdx, 8[rsp]
	mov	rbp, rax
	call	CreateStreamOnHGlobal@PLT
	mov	edi, eax
	mov	r12d, eax
	call	FAILED@PLT
	test	rax, rax
	je	.L17
.L4:
	mov	rdi, QWORD PTR 8[rsp]
	test	rdi, rdi
	je	.L7
	call	IStream_Release@PLT
.L7:
	mov	rdi, rbp
	call	GlobalFree@PLT
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L18
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.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
.L17:
	.cfi_restore_state
	mov	eax, DWORD PTR TYMED_ISTREAM[rip]
	lea	r14, 16[rsp]
	mov	r12, rsp
	mov	rdi, r13
	mov	QWORD PTR 24[rsp], 0
	mov	rdx, r14
	mov	rsi, r12
	mov	DWORD PTR [rsp], eax
	mov	DWORD PTR 32[rsp], eax
	mov	rax, QWORD PTR 8[rsp]
	mov	QWORD PTR 16[rsp], rax
	call	IDataObject_GetDataHere@PLT
	mov	edi, eax
	call	FAILED@PLT
	test	rax, rax
	je	.L5
	xor	esi, esi
	mov	edx, 24
	mov	rdi, r14
	call	memset@PLT
	mov	rsi, r12
	mov	rdi, r13
	mov	rdx, r14
	call	IDataObject_GetData@PLT
	mov	edi, eax
	mov	r12d, eax
	call	FAILED@PLT
	test	rax, rax
	jne	.L4
	mov	edx, DWORD PTR STREAM_SEEK_CUR[rip]
	mov	rdi, QWORD PTR 16[rsp]
	xor	esi, esi
	lea	rcx, 4[rsp]
	call	IStream_Seek@PLT
	mov	edx, DWORD PTR STREAM_SEEK_SET[rip]
	xor	ecx, ecx
	xor	esi, esi
	mov	rdi, QWORD PTR 16[rsp]
	call	IStream_Seek@PLT
	mov	edx, DWORD PTR 4[rsp]
	mov	rsi, QWORD PTR 8[rsp]
	xor	ecx, ecx
	mov	rdi, QWORD PTR 16[rsp]
	xor	r8d, r8d
	call	IStream_CopyTo@PLT
	mov	rdi, r14
	mov	r12d, eax
	call	ReleaseStgMedium@PLT
	mov	edi, r12d
	call	FAILED@PLT
	test	rax, rax
	jne	.L4
.L5:
	mov	QWORD PTR [rbx], rbp
	mov	rdi, QWORD PTR 8[rsp]
	call	IStream_Release@PLT
	mov	r12d, DWORD PTR S_OK[rip]
	jmp	.L1
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	get_data_from_stream, .-get_data_from_stream
	.comm	TYMED_ISTREAM,4,4
	.comm	S_OK,4,4
	.comm	STREAM_SEEK_SET,4,4
	.comm	STREAM_SEEK_CUR,4,4
	.comm	GMEM_MOVEABLE,4,4
	.comm	GMEM_DDESHARE,4,4
	.comm	FALSE,4,4
	.comm	E_OUTOFMEMORY,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_clipboard.c_get_data_from_stream.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_data_from_stream, %function
get_data_from_stream:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r1, #0
	mov	r7, r2
	mov	r8, r0
	ldr	r2, .L20
	ldr	r0, .L20+4
	ldr	r2, [r2]
	ldr	r0, [r0]
	ldr	r3, .L20+8
	sub	sp, sp, #40
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	orr	r0, r0, r2
	str	r1, [r7]
	str	r1, [sp, #12]
	bl	GlobalAlloc
	subs	r6, r0, #0
	beq	.L17
	ldr	r3, .L20+12
	add	r2, sp, #12
	ldr	r1, [r3]
	bl	CreateStreamOnHGlobal
	mov	r4, r0
	bl	FAILED
	subs	r5, r0, #0
	beq	.L18
.L4:
	ldr	r0, [sp, #12]
	cmp	r0, #0
	beq	.L7
	bl	IStream_Release
.L7:
	mov	r0, r6
	bl	GlobalFree
.L1:
	ldr	r3, .L20+8
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	mov	r0, r4
	add	sp, sp, #40
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	ldr	r3, .L20+16
	ldr	ip, [sp, #12]
	ldr	r3, [r3]
	add	r2, sp, #24
	add	r1, sp, #16
	mov	r0, r8
	str	r3, [sp, #16]
	str	r3, [sp, #32]
	str	ip, [sp, #24]
	str	r5, [sp, #28]
	bl	IDataObject_GetDataHere
	bl	FAILED
	cmp	r0, #0
	beq	.L5
	add	r1, sp, #16
	add	r2, sp, #24
	mov	r0, r8
	str	r5, [sp, #24]
	str	r5, [sp, #28]
	str	r5, [sp, #32]
	bl	IDataObject_GetData
	mov	r4, r0
	bl	FAILED
	subs	r5, r0, #0
	bne	.L4
	ldr	r2, .L20+20
	mov	r1, r5
	ldr	r2, [r2]
	add	r3, sp, #20
	ldr	r0, [sp, #24]
	bl	IStream_Seek
	ldr	r2, .L20+24
	mov	r3, r5
	mov	r1, r5
	ldr	r2, [r2]
	ldr	r0, [sp, #24]
	bl	IStream_Seek
	mov	r3, r5
	ldr	r2, [sp, #20]
	ldr	r1, [sp, #12]
	ldr	r0, [sp, #24]
	str	r5, [sp]
	bl	IStream_CopyTo
	mov	r4, r0
	add	r0, sp, #24
	bl	ReleaseStgMedium
	mov	r0, r4
	bl	FAILED
	cmp	r0, #0
	bne	.L4
.L5:
	ldr	r0, [sp, #12]
	str	r6, [r7]
	bl	IStream_Release
	ldr	r3, .L20+28
	ldr	r4, [r3]
	b	.L1
.L17:
	ldr	r3, .L20+32
	ldr	r4, [r3]
	b	.L1
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	GMEM_MOVEABLE
	.word	GMEM_DDESHARE
	.word	.LC0
	.word	FALSE
	.word	TYMED_ISTREAM
	.word	STREAM_SEEK_CUR
	.word	STREAM_SEEK_SET
	.word	S_OK
	.word	E_OUTOFMEMORY
	.size	get_data_from_stream, .-get_data_from_stream
	.comm	TYMED_ISTREAM,4,4
	.comm	S_OK,4,4
	.comm	STREAM_SEEK_SET,4,4
	.comm	STREAM_SEEK_CUR,4,4
	.comm	GMEM_MOVEABLE,4,4
	.comm	GMEM_DDESHARE,4,4
	.comm	FALSE,4,4
	.comm	E_OUTOFMEMORY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
