	.file	"extr_olefont.c_test_QueryInterface.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"OCFI (NULL,..) returns NULL, instead of !NULL\n"
	.align 8
.LC1:
	.string	"IFont_QI expected ref value 3 but instead got %d\n"
	.align 8
.LC2:
	.string	"IFont_QI does return NULL, instead of a ptr\n"
	.text
	.p2align 4
	.type	test_QueryInterface, @function
test_QueryInterface:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	edx, edx
	xor	edi, edi
	lea	rsi, IID_IFont[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	QWORD PTR [rsp], 0
	mov	r12, rsp
	call	pOleCreateFontIndirect@PLT
	mov	esi, DWORD PTR E_POINTER[rip]
	mov	edi, eax
	call	EXPECT_HR@PLT
	mov	rdx, r12
	xor	edi, edi
	lea	rsi, IID_IFont[rip]
	call	pOleCreateFontIndirect@PLT
	mov	rbp, QWORD PTR [rsp]
	mov	esi, DWORD PTR S_OK[rip]
	mov	edi, eax
	call	EXPECT_HR@PLT
	xor	edi, edi
	test	rbp, rbp
	lea	rsi, .LC0[rip]
	setne	dil
	xor	eax, eax
	call	ok@PLT
	mov	rdx, r12
	mov	rdi, rbp
	lea	rsi, IID_IFont[rip]
	mov	QWORD PTR [rsp], 0
	call	IFont_QueryInterface@PLT
	mov	esi, DWORD PTR S_OK[rip]
	mov	edi, eax
	call	EXPECT_HR@PLT
	mov	rdi, rbp
	call	IFont_AddRef@PLT
	mov	edi, 1
	mov	r12d, eax
	cmp	eax, 3
	je	.L2
	xor	edi, edi
	cmp	eax, 1
	sete	dil
	call	broken@PLT
	xor	edi, edi
	test	rax, rax
	setne	dil
.L2:
	mov	edx, r12d
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	ok@PLT
	mov	rdi, rbp
	call	IFont_Release@PLT
	xor	edi, edi
	cmp	QWORD PTR [rsp], 0
	lea	rsi, .LC2[rip]
	setne	dil
	xor	eax, eax
	call	ok@PLT
	mov	rdi, rbp
	call	IFont_Release@PLT
	mov	rdi, rbp
	call	IFont_Release@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	test_QueryInterface, .-test_QueryInterface
	.comm	S_OK,4,4
	.comm	IID_IFont,4,4
	.comm	E_POINTER,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_olefont.c_test_QueryInterface.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"OCFI (NULL,..) returns NULL, instead of !NULL\012\000"
	.align	2
.LC1:
	.ascii	"IFont_QI expected ref value 3 but instead got %d\012"
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"IFont_QI does return NULL, instead of a ptr\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_QueryInterface, %function
test_QueryInterface:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, #0
	ldr	r3, .L8
	sub	sp, sp, #8
	mov	r2, r5
	mov	r0, r5
	ldr	r1, .L8+4
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	str	r5, [sp]
	bl	pOleCreateFontIndirect
	ldr	r3, .L8+8
	ldr	r6, .L8+12
	ldr	r1, [r3]
	bl	EXPECT_HR
	mov	r2, sp
	mov	r0, r5
	ldr	r1, .L8+4
	bl	pOleCreateFontIndirect
	ldr	r4, [sp]
	ldr	r1, [r6]
	bl	EXPECT_HR
	subs	r0, r4, r5
	movne	r0, #1
	ldr	r1, .L8+16
	bl	ok
	mov	r2, sp
	ldr	r1, .L8+4
	mov	r0, r4
	str	r5, [sp]
	bl	IFont_QueryInterface
	ldr	r1, [r6]
	bl	EXPECT_HR
	mov	r0, r4
	bl	IFont_AddRef
	cmp	r0, #3
	mov	r5, r0
	moveq	r0, #1
	beq	.L2
	sub	r0, r5, #1
	clz	r0, r0
	lsr	r0, r0, #5
	bl	broken
	subs	r0, r0, #0
	movne	r0, #1
.L2:
	mov	r2, r5
	ldr	r1, .L8+20
	bl	ok
	mov	r0, r4
	bl	IFont_Release
	ldr	r0, [sp]
	ldr	r1, .L8+24
	subs	r0, r0, #0
	movne	r0, #1
	bl	ok
	mov	r0, r4
	bl	IFont_Release
	mov	r0, r4
	bl	IFont_Release
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	.LC3
	.word	IID_IFont
	.word	E_POINTER
	.word	S_OK
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	test_QueryInterface, .-test_QueryInterface
	.comm	S_OK,4,4
	.comm	IID_IFont,4,4
	.comm	E_POINTER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
