	.file	"extr_tiffformat.c_create_decoder.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"CreateStreamOnHGlobal error %#x\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"GetContainerFormat error %#x\n"
.LC2:
	.string	"wrong container format %s\n"
.LC3:
	.string	"expected stream refcount > 0\n"
	.text
	.p2align 4
	.type	create_decoder, @function
create_decoder:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	xor	edi, edi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	QWORD PTR [rdx], 0
	call	GlobalAlloc@PLT
	mov	edi, eax
	mov	r12d, eax
	call	GlobalLock@PLT
	mov	edx, r13d
	mov	rsi, rbp
	mov	rdi, rax
	call	memcpy@PLT
	mov	edi, r12d
	call	GlobalUnlock@PLT
	mov	esi, DWORD PTR TRUE[rip]
	mov	edi, r12d
	lea	rdx, 16[rsp]
	call	CreateStreamOnHGlobal@PLT
	xor	edi, edi
	cmp	QWORD PTR S_OK[rip], rax
	lea	rsi, .LC0[rip]
	sete	dil
	mov	rdx, rax
	xor	eax, eax
	call	ok@PLT
	mov	rsi, QWORD PTR 16[rsp]
	xor	ecx, ecx
	xor	edx, edx
	mov	edi, DWORD PTR factory[rip]
	mov	r8, rbx
	call	IWICImagingFactory_CreateDecoderFromStream@PLT
	cmp	QWORD PTR S_OK[rip], rax
	mov	r12, rax
	je	.L7
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L8
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	lea	rbp, 12[rsp]
	mov	rdi, QWORD PTR [rbx]
	mov	rsi, rbp
	call	IWICBitmapDecoder_GetContainerFormat@PLT
	xor	edi, edi
	cmp	QWORD PTR S_OK[rip], rax
	lea	rsi, .LC1[rip]
	sete	dil
	mov	rdx, rax
	mov	r12, rax
	xor	eax, eax
	call	ok@PLT
	mov	rdi, rbp
	call	wine_dbgstr_guid@PLT
	mov	rdi, rbp
	lea	rsi, GUID_ContainerFormatTiff[rip]
	mov	r13d, eax
	call	IsEqualGUID@PLT
	mov	edx, r13d
	lea	rsi, .LC2[rip]
	mov	edi, eax
	xor	eax, eax
	call	ok@PLT
	mov	rdi, QWORD PTR 16[rsp]
	call	IStream_Release@PLT
	xor	edi, edi
	lea	rsi, .LC3[rip]
	test	rax, rax
	setg	dil
	xor	eax, eax
	call	ok@PLT
	jmp	.L1
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	create_decoder, .-create_decoder
	.comm	factory,4,4
	.comm	TRUE,4,4
	.comm	S_OK,8,8
	.comm	GUID_ContainerFormatTiff,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_tiffformat.c_create_decoder.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"CreateStreamOnHGlobal error %#x\012\000"
	.align	2
.LC1:
	.ascii	"GetContainerFormat error %#x\012\000"
	.align	2
.LC2:
	.ascii	"wrong container format %s\012\000"
	.align	2
.LC3:
	.ascii	"expected stream refcount > 0\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_decoder, %function
create_decoder:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, #0
	ldr	r3, .L9
	sub	sp, sp, #24
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	mov	r7, r0
	str	r6, [r2]
	mov	r0, r6
	mov	r5, r2
	mov	r8, r1
	bl	GlobalAlloc
	mov	r4, r0
	bl	GlobalLock
	mov	r1, r7
	mov	r2, r8
	bl	memcpy
	mov	r0, r4
	bl	GlobalUnlock
	ldr	r3, .L9+4
	mov	r0, r4
	ldr	r1, [r3]
	add	r2, sp, #12
	bl	CreateStreamOnHGlobal
	mov	r2, r0
	ldr	r7, .L9+8
	ldr	r1, .L9+12
	ldr	r0, [r7]
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r1, .L9+16
	str	r5, [sp]
	mov	r3, r6
	ldr	r0, [r1]
	mov	r2, r6
	ldr	r1, [sp, #12]
	bl	IWICImagingFactory_CreateDecoderFromStream
	ldr	r3, [r7]
	cmp	r3, r0
	movne	r4, r0
	beq	.L7
.L1:
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	mov	r0, r4
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	add	r1, sp, #16
	ldr	r0, [r5]
	bl	IWICBitmapDecoder_GetContainerFormat
	mov	r4, r0
	ldr	r0, [r7]
	mov	r2, r4
	sub	r0, r0, r4
	clz	r0, r0
	ldr	r1, .L9+20
	lsr	r0, r0, #5
	bl	ok
	ldr	r1, .L9+24
	add	r0, sp, #16
	bl	IsEqualGUID
	mov	r5, r0
	add	r0, sp, #16
	bl	wine_dbgstr_guid
	ldr	r1, .L9+28
	mov	r2, r0
	mov	r0, r5
	bl	ok
	ldr	r0, [sp, #12]
	bl	IStream_Release
	cmp	r0, r6
	movle	r0, #0
	movgt	r0, #1
	ldr	r1, .L9+32
	bl	ok
	b	.L1
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	.LC4
	.word	TRUE
	.word	S_OK
	.word	.LC0
	.word	factory
	.word	.LC1
	.word	GUID_ContainerFormatTiff
	.word	.LC2
	.word	.LC3
	.size	create_decoder, .-create_decoder
	.comm	factory,4,4
	.comm	TRUE,4,4
	.comm	S_OK,4,4
	.comm	GUID_ContainerFormatTiff,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
