	.file	"extr_olepicture.c_test_OleCreatePictureIndirect.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"got %#x\n"
.LC1:
	.string	"got %p\n"
.LC2:
	.string	"%d: got %#x\n"
.LC3:
	.string	"%d: got %d\n"
	.text
	.p2align 4
	.type	test_OleCreatePictureIndirect, @function
test_OleCreatePictureIndirect:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	lea	rsi, IID_IPicture[rip]
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	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, 40
	.cfi_def_cfa_offset 96
	mov	edx, DWORD PTR TRUE[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	movzx	eax, WORD PTR PICTYPE_UNINITIALIZED[rip]
	lea	r14, 8[rsp]
	lea	rdi, 16[rsp]
	mov	rcx, r14
	mov	DWORD PTR 16[rsp], 8
	mov	WORD PTR 20[rsp], ax
	mov	eax, 3735928559
	mov	QWORD PTR 8[rsp], rax
	call	OleCreatePictureIndirect@PLT
	xor	edi, edi
	cmp	DWORD PTR E_UNEXPECTED[rip], eax
	lea	rsi, .LC0[rip]
	sete	dil
	movsx	edx, ax
	xor	eax, eax
	call	ok@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	edi, edi
	lea	rsi, .LC1[rip]
	test	rax, rax
	movsx	edx, ax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	movzx	ebp, WORD PTR PICTYPE_UNINITIALIZED[rip]
	cmp	bp, WORD PTR PICTYPE_ENHMETAFILE[rip]
	jg	.L1
	lea	r15, 2[rsp]
	lea	r13, 4[rsp]
	lea	rbx, .LC2[rip]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L5:
	test	ecx, ecx
	mov	edx, r12d
	mov	rsi, rbx
	setne	al
	xor	edi, edi
	cmp	ecx, -559038737
	setne	dil
	and	edi, eax
	xor	eax, eax
	call	ok@PLT
.L6:
	mov	rdi, QWORD PTR 8[rsp]
	mov	rsi, r13
	mov	DWORD PTR 4[rsp], -559038737
	call	IPicture_get_hPal@PLT
	mov	ecx, eax
	movzx	eax, WORD PTR PICTYPE_BITMAP[rip]
	cmp	WORD PTR 2[rsp], ax
	je	.L20
	xor	edi, edi
	cmp	DWORD PTR E_FAIL[rip], ecx
	mov	edx, r12d
	mov	rsi, rbx
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	ecx, DWORD PTR 4[rsp]
	cmp	ecx, -559038737
	sete	dil
	test	ecx, ecx
	sete	al
	or	edi, eax
.L17:
	mov	edx, r12d
	mov	rsi, rbx
	movzx	edi, dil
	xor	eax, eax
	call	ok@PLT
	mov	edi, DWORD PTR DEFAULT_PALETTE[rip]
	call	GetStockObject@PLT
	mov	edi, eax
	call	HandleToUlong@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	esi, eax
	call	IPicture_set_hPal@PLT
	mov	ecx, eax
	movzx	eax, WORD PTR PICTYPE_BITMAP[rip]
	cmp	WORD PTR 2[rsp], ax
	je	.L21
	cmp	DWORD PTR E_FAIL[rip], ecx
.L18:
	sete	dil
	mov	edx, r12d
	mov	rsi, rbx
	xor	eax, eax
	movzx	edi, dil
	add	ebp, 1
	call	ok@PLT
	mov	rdi, QWORD PTR 8[rsp]
	call	IPicture_Release@PLT
	cmp	WORD PTR PICTYPE_ENHMETAFILE[rip], bp
	jl	.L1
.L2:
	movsx	r12d, bp
	mov	rsi, r14
	mov	edi, r12d
	call	create_picture@PLT
	xor	edi, edi
	cmp	DWORD PTR S_OK[rip], eax
	mov	edx, r12d
	sete	dil
	mov	ecx, eax
	mov	rsi, rbx
	xor	eax, eax
	call	ok@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	eax, -8531
	mov	rsi, r15
	mov	WORD PTR 2[rsp], ax
	call	IPicture_get_Type@PLT
	xor	edi, edi
	cmp	DWORD PTR S_OK[rip], eax
	mov	edx, r12d
	sete	dil
	mov	ecx, eax
	mov	rsi, rbx
	xor	eax, eax
	call	ok@PLT
	movsx	ecx, WORD PTR 2[rsp]
	xor	edi, edi
	mov	edx, r12d
	lea	rsi, .LC3[rip]
	cmp	cx, bp
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	rsi, r13
	mov	DWORD PTR 4[rsp], -559038737
	call	IPicture_get_Handle@PLT
	xor	edi, edi
	cmp	DWORD PTR S_OK[rip], eax
	mov	edx, r12d
	mov	ecx, eax
	sete	dil
	mov	rsi, rbx
	xor	eax, eax
	call	ok@PLT
	movzx	eax, WORD PTR 2[rsp]
	mov	ecx, DWORD PTR 4[rsp]
	cmp	ax, WORD PTR PICTYPE_UNINITIALIZED[rip]
	je	.L4
	cmp	ax, WORD PTR PICTYPE_NONE[rip]
	jne	.L5
.L4:
	xor	edi, edi
	test	ecx, ecx
	mov	edx, r12d
	mov	rsi, rbx
	sete	dil
	xor	eax, eax
	call	ok@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L21:
	cmp	DWORD PTR S_OK[rip], ecx
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L20:
	xor	edi, edi
	cmp	DWORD PTR S_OK[rip], ecx
	mov	edx, r12d
	mov	rsi, rbx
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	ecx, DWORD PTR 4[rsp]
	cmp	ecx, -1091576147
	sete	dil
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L22
	add	rsp, 40
	.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
.L22:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	test_OleCreatePictureIndirect, .-test_OleCreatePictureIndirect
	.comm	TRUE,4,4
	.comm	S_OK,4,4
	.comm	PICTYPE_UNINITIALIZED,2,2
	.comm	PICTYPE_NONE,2,2
	.comm	PICTYPE_ENHMETAFILE,2,2
	.comm	PICTYPE_BITMAP,2,2
	.comm	IID_IPicture,4,4
	.comm	E_UNEXPECTED,4,4
	.comm	E_FAIL,4,4
	.comm	DEFAULT_PALETTE,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_olepicture.c_test_OleCreatePictureIndirect.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"got %#x\012\000"
	.align	2
.LC1:
	.ascii	"got %p\012\000"
	.align	2
.LC2:
	.ascii	"%d: got %#x\012\000"
	.align	2
.LC3:
	.ascii	"%d: got %d\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_OleCreatePictureIndirect, %function
test_OleCreatePictureIndirect:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #8
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r4, .L20
	ldr	lr, .L20+4
	ldrh	r0, [r4]
	ldr	r3, .L20+8
	sub	sp, sp, #28
	ldr	r6, .L20+12
	ldr	lr, [lr]
	str	lr, [sp, #20]
	mov	lr,#0
	ldr	r2, [r3]
	ldr	r1, .L20+16
	add	r3, sp, ip
	strh	r0, [sp, #16]	@ movhi
	add	r0, sp, #12
	str	ip, [sp, #12]
	str	r6, [sp, #8]
	bl	OleCreatePictureIndirect
	ldr	r3, .L20+20
	lsl	r2, r0, #16
	ldr	r3, [r3]
	ldr	r1, .L20+24
	sub	r0, r3, r0
	clz	r0, r0
	asr	r2, r2, #16
	lsr	r0, r0, #5
	bl	ok
	ldr	r2, [sp, #8]
	ldr	r1, .L20+28
	clz	r0, r2
	lsl	r2, r2, #16
	lsr	r0, r0, #5
	asr	r2, r2, #16
	bl	ok
	ldr	r3, .L20+32
	ldrsh	r10, [r4]
	ldrsh	r3, [r3]
	cmp	r3, r10
	blt	.L1
	ldr	r5, .L20+36
	ldr	r7, .L20+40
	ldr	r4, .L20+44
	ldr	fp, .L20+48
	ldr	r8, .L20+52
	b	.L2
.L5:
	subs	r0, r3, r6
	movne	r0, #1
	cmp	r3, #0
	moveq	r0, #0
	mov	r2, r10
	mov	r1, r4
	bl	ok
.L6:
	add	r1, sp, #4
	ldr	r0, [sp, #8]
	str	r6, [sp, #4]
	bl	IPicture_get_hPal
	ldrsh	r1, [sp, #2]
	ldrsh	r2, [r7]
	mov	r3, r0
	cmp	r1, r2
	beq	.L18
	ldr	r0, [r8]
	mov	r2, r10
	sub	r0, r0, r3
	clz	r0, r0
	mov	r1, r4
	lsr	r0, r0, #5
	bl	ok
	ldr	r3, [sp, #4]
	mov	r2, r10
	cmp	r3, #0
	cmpne	r3, r6
	mov	r1, r4
	moveq	r0, #1
	movne	r0, #0
	bl	ok
.L8:
	ldr	r3, .L20+56
	ldr	r9, [sp, #8]
	ldr	r0, [r3]
	bl	GetStockObject
	bl	HandleToUlong
	mov	r1, r0
	mov	r0, r9
	bl	IPicture_set_hPal
	mov	r3, r0
	ldrsh	r1, [sp, #2]
	ldrsh	r2, [r7]
	cmp	r1, r2
	ldreq	r0, [r5]
	ldrne	r0, [r8]
	mov	r2, r10
	sub	r0, r0, r3
	clz	r0, r0
	mov	r1, r4
	lsr	r0, r0, #5
	bl	ok
	ldr	r0, [sp, #8]
	bl	IPicture_Release
	ldr	r3, .L20+32
	add	r10, r10, #1
	ldrsh	r3, [r3]
	lsl	r10, r10, #16
	asr	r10, r10, #16
	cmp	r3, r10
	blt	.L1
.L2:
	add	r1, sp, #8
	mov	r0, r10
	bl	create_picture
	mov	r3, r0
	ldr	r0, [r5]
	mov	r2, r10
	sub	r0, r0, r3
	clz	r0, r0
	mov	r1, r4
	lsr	r0, r0, #5
	bl	ok
	ldr	r3, .L20+60
	add	r1, sp, #2
	ldr	r0, [sp, #8]
	strh	r3, [sp, #2]	@ movhi
	bl	IPicture_get_Type
	mov	r3, r0
	ldr	r0, [r5]
	mov	r2, r10
	sub	r0, r0, r3
	clz	r0, r0
	mov	r1, r4
	lsr	r0, r0, #5
	bl	ok
	ldrsh	r3, [sp, #2]
	mov	r2, r10
	sub	r0, r3, r10
	clz	r0, r0
	mov	r1, fp
	lsr	r0, r0, #5
	bl	ok
	add	r1, sp, #4
	ldr	r0, [sp, #8]
	str	r6, [sp, #4]
	bl	IPicture_get_Handle
	mov	r3, r0
	ldr	r0, [r5]
	mov	r2, r10
	sub	r0, r0, r3
	clz	r0, r0
	mov	r1, r4
	lsr	r0, r0, #5
	bl	ok
	ldr	r3, .L20
	ldrsh	r2, [sp, #2]
	ldrsh	r3, [r3]
	cmp	r3, r2
	ldreq	r3, [sp, #4]
	beq	.L4
	ldr	r3, .L20+64
	ldrsh	r1, [r3]
	ldr	r3, [sp, #4]
	cmp	r1, r2
	bne	.L5
.L4:
	clz	r0, r3
	mov	r2, r10
	mov	r1, r4
	lsr	r0, r0, #5
	bl	ok
	b	.L6
.L18:
	ldr	r0, [r5]
	mov	r2, r10
	sub	r0, r0, r3
	clz	r0, r0
	mov	r1, r4
	lsr	r0, r0, #5
	bl	ok
	ldr	r3, [sp, #4]
	ldr	r1, .L20+68
	mov	r2, r10
	sub	r0, r3, r1
	clz	r0, r0
	mov	r1, r4
	lsr	r0, r0, #5
	bl	ok
	b	.L8
.L1:
	ldr	r3, .L20+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	PICTYPE_UNINITIALIZED
	.word	.LC4
	.word	TRUE
	.word	-559038737
	.word	IID_IPicture
	.word	E_UNEXPECTED
	.word	.LC0
	.word	.LC1
	.word	PICTYPE_ENHMETAFILE
	.word	S_OK
	.word	PICTYPE_BITMAP
	.word	.LC2
	.word	.LC3
	.word	E_FAIL
	.word	DEFAULT_PALETTE
	.word	-8531
	.word	PICTYPE_NONE
	.word	-1091576147
	.size	test_OleCreatePictureIndirect, .-test_OleCreatePictureIndirect
	.comm	TRUE,4,4
	.comm	S_OK,4,4
	.comm	PICTYPE_UNINITIALIZED,2,2
	.comm	PICTYPE_NONE,2,2
	.comm	PICTYPE_ENHMETAFILE,2,2
	.comm	PICTYPE_BITMAP,2,2
	.comm	IID_IPicture,4,4
	.comm	E_UNEXPECTED,4,4
	.comm	E_FAIL,4,4
	.comm	DEFAULT_PALETTE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
