	.file	"extr_protocol.c_test_its_protocol.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"CoGetClassObject failed: %08x\n"
	.align 8
.LC1:
	.string	"Could not get IInternetProtocolInfo: %08x\n"
	.align 8
.LC2:
	.string	"Could not get IClassFactory interface\n"
	.align 8
.LC3:
	.string	"Could not get IInternetProtocol: %08x\n"
	.align 8
.LC4:
	.string	"Start failed: %08x, expected INET_E_USE_DEFAULT_PROTOCOLHANDLER\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC5:
	.string	"protocol ref=%d\n"
	.text
	.p2align 4
	.type	test_its_protocol, @function
test_its_protocol:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xor	edx, edx
	lea	rdi, CLSID_ITSProtocol[rip]
	lea	rcx, IID_IUnknown[rip]
	sub	rsp, 48
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR CLSCTX_INPROC_SERVER[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR ITS_PROTOCOL[rip]
	lea	r8, 24[rsp]
	mov	DWORD PTR test_protocol[rip], eax
	call	CoGetClassObject@PLT
	cmp	QWORD PTR S_OK[rip], rax
	mov	edi, 1
	mov	rbp, rax
	je	.L2
	xor	edi, edi
	cmp	QWORD PTR REGDB_E_CLASSNOTREG[rip], rax
	sete	dil
	call	broken@PLT
	xor	edi, edi
	test	rax, rax
	setne	dil
.L2:
	xor	eax, eax
	mov	rdx, rbp
	lea	rsi, .LC0[rip]
	call	ok@PLT
	mov	rdi, rbp
	call	FAILED@PLT
	test	rax, rax
	je	.L18
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L19
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	rdi, QWORD PTR 24[rsp]
	lea	rdx, 8[rsp]
	lea	rsi, IID_IInternetProtocolInfo[rip]
	call	IUnknown_QueryInterface@PLT
	xor	edi, edi
	cmp	QWORD PTR E_NOINTERFACE[rip], rax
	lea	rsi, .LC1[rip]
	sete	dil
	mov	rdx, rax
	xor	eax, eax
	call	ok@PLT
	mov	rdi, QWORD PTR 24[rsp]
	lea	rdx, 16[rsp]
	lea	rsi, IID_IClassFactory[rip]
	call	IUnknown_QueryInterface@PLT
	xor	edi, edi
	cmp	QWORD PTR S_OK[rip], rax
	lea	rsi, .LC2[rip]
	sete	dil
	mov	rbp, rax
	xor	eax, eax
	call	ok@PLT
	mov	rdi, rbp
	call	SUCCEEDED@PLT
	test	rax, rax
	jne	.L20
.L5:
	mov	rdi, QWORD PTR 24[rsp]
	call	IUnknown_Release@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rdi, QWORD PTR 16[rsp]
	xor	esi, esi
	lea	rcx, 32[rsp]
	lea	rdx, IID_IInternetProtocol[rip]
	call	IClassFactory_CreateInstance@PLT
	xor	edi, edi
	cmp	QWORD PTR S_OK[rip], rax
	lea	rsi, .LC3[rip]
	sete	dil
	mov	rbp, rax
	mov	rdx, rax
	xor	eax, eax
	call	ok@PLT
	mov	rdi, rbp
	call	SUCCEEDED@PLT
	test	rax, rax
	jne	.L21
.L6:
	mov	rdi, QWORD PTR 16[rsp]
	call	IClassFactory_Release@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rdi, QWORD PTR 32[rsp]
	call	test_its_protocol_info@PLT
	mov	rdi, QWORD PTR 32[rsp]
	mov	edx, DWORD PTR STG_E_FILENOTFOUND[rip]
	lea	rsi, wrong_url1.2004[rip]
	call	test_protocol_fail@PLT
	mov	rdi, QWORD PTR 32[rsp]
	mov	edx, DWORD PTR STG_E_FILENOTFOUND[rip]
	lea	rsi, wrong_url2.2005[rip]
	call	test_protocol_fail@PLT
	mov	rdi, QWORD PTR 32[rsp]
	mov	edx, DWORD PTR STG_E_FILENOTFOUND[rip]
	lea	rsi, wrong_url3.2006[rip]
	call	test_protocol_fail@PLT
	mov	rdi, QWORD PTR 32[rsp]
	xor	r9d, r9d
	xor	r8d, r8d
	lea	rcx, bind_info[rip]
	lea	rdx, protocol_sink[rip]
	lea	rsi, wrong_url4.2007[rip]
	call	IInternetProtocol_Start@PLT
	xor	edi, edi
	cmp	QWORD PTR INET_E_USE_DEFAULT_PROTOCOLHANDLER[rip], rax
	lea	rsi, .LC4[rip]
	sete	dil
	mov	rdx, rax
	xor	eax, eax
	call	ok@PLT
	mov	rdi, QWORD PTR 32[rsp]
	xor	r9d, r9d
	xor	r8d, r8d
	lea	rcx, bind_info[rip]
	lea	rdx, protocol_sink[rip]
	lea	rsi, wrong_url5.2008[rip]
	call	IInternetProtocol_Start@PLT
	xor	edi, edi
	cmp	QWORD PTR INET_E_USE_DEFAULT_PROTOCOLHANDLER[rip], rax
	lea	rsi, .LC4[rip]
	sete	dil
	mov	rdx, rax
	xor	eax, eax
	call	ok@PLT
	mov	rdi, QWORD PTR 32[rsp]
	call	IInternetProtocol_Release@PLT
	xor	edi, edi
	lea	rsi, .LC5[rip]
	test	rax, rax
	mov	rdx, rax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	rdi, QWORD PTR 16[rsp]
	mov	edx, DWORD PTR TRUE[rip]
	mov	esi, DWORD PTR blank_url1[rip]
	call	test_protocol_url@PLT
	mov	rdi, QWORD PTR 16[rsp]
	mov	edx, DWORD PTR TRUE[rip]
	mov	esi, DWORD PTR blank_url2[rip]
	call	test_protocol_url@PLT
	mov	rdi, QWORD PTR 16[rsp]
	mov	edx, DWORD PTR TRUE[rip]
	mov	esi, DWORD PTR blank_url3[rip]
	call	test_protocol_url@PLT
	mov	rdi, QWORD PTR 16[rsp]
	mov	edx, DWORD PTR TRUE[rip]
	mov	esi, DWORD PTR blank_url4[rip]
	call	test_protocol_url@PLT
	mov	rdi, QWORD PTR 16[rsp]
	mov	edx, DWORD PTR TRUE[rip]
	mov	esi, DWORD PTR blank_url5[rip]
	call	test_protocol_url@PLT
	mov	rdi, QWORD PTR 16[rsp]
	mov	edx, DWORD PTR TRUE[rip]
	mov	esi, DWORD PTR blank_url6[rip]
	call	test_protocol_url@PLT
	mov	rdi, QWORD PTR 16[rsp]
	mov	edx, DWORD PTR TRUE[rip]
	mov	esi, DWORD PTR blank_url8[rip]
	call	test_protocol_url@PLT
	mov	rdi, QWORD PTR 16[rsp]
	mov	edx, DWORD PTR TRUE[rip]
	mov	esi, DWORD PTR blank_url9[rip]
	call	test_protocol_url@PLT
	mov	edx, DWORD PTR TRUE[rip]
	mov	rdi, QWORD PTR 16[rsp]
	mov	esi, DWORD PTR blank_url1[rip]
	mov	eax, DWORD PTR BINDF_FROMURLMON[rip]
	or	eax, DWORD PTR BINDF_NEEDFILE[rip]
	mov	DWORD PTR bindf[rip], eax
	call	test_protocol_url@PLT
	jmp	.L6
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	test_its_protocol, .-test_its_protocol
	.section	.rodata
	.align 16
	.type	wrong_url5.2008, @object
	.size	wrong_url5.2008, 26
wrong_url5.2008:
	.string	"file:tes.chm::/blank.html"
	.align 32
	.type	wrong_url4.2007, @object
	.size	wrong_url4.2007, 35
wrong_url4.2007:
	.string	"mk:@MSITStor:test.chm::/blank.html"
	.align 16
	.type	wrong_url3.2006, @object
	.size	wrong_url3.2006, 24
wrong_url3.2006:
	.string	"its:test.chm/blank.html"
	.align 16
	.type	wrong_url2.2005, @object
	.size	wrong_url2.2005, 25
wrong_url2.2005:
	.string	"its:tes.chm::b/lank.html"
	.align 16
	.type	wrong_url1.2004, @object
	.size	wrong_url1.2004, 25
wrong_url1.2004:
	.string	"its:test.chm::/blan.html"
	.comm	test_protocol,4,4
	.comm	protocol_sink,4,4
	.comm	blank_url9,4,4
	.comm	blank_url8,4,4
	.comm	blank_url6,4,4
	.comm	blank_url5,4,4
	.comm	blank_url4,4,4
	.comm	blank_url3,4,4
	.comm	blank_url2,4,4
	.comm	blank_url1,4,4
	.comm	bindf,4,4
	.comm	bind_info,4,4
	.comm	TRUE,4,4
	.comm	S_OK,8,8
	.comm	STG_E_FILENOTFOUND,4,4
	.comm	REGDB_E_CLASSNOTREG,8,8
	.comm	ITS_PROTOCOL,4,4
	.comm	INET_E_USE_DEFAULT_PROTOCOLHANDLER,8,8
	.comm	IID_IUnknown,4,4
	.comm	IID_IInternetProtocolInfo,4,4
	.comm	IID_IInternetProtocol,4,4
	.comm	IID_IClassFactory,4,4
	.comm	E_NOINTERFACE,8,8
	.comm	CLSID_ITSProtocol,4,4
	.comm	CLSCTX_INPROC_SERVER,4,4
	.comm	BINDF_NEEDFILE,4,4
	.comm	BINDF_FROMURLMON,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_protocol.c_test_its_protocol.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"CoGetClassObject failed: %08x\012\000"
	.align	2
.LC1:
	.ascii	"Could not get IInternetProtocolInfo: %08x\012\000"
	.align	2
.LC2:
	.ascii	"Could not get IClassFactory interface\012\000"
	.align	2
.LC3:
	.ascii	"Could not get IInternetProtocol: %08x\012\000"
	.align	2
.LC4:
	.ascii	"Start failed: %08x, expected INET_E_USE_DEFAULT_PRO"
	.ascii	"TOCOLHANDLER\012\000"
	.align	2
.LC5:
	.ascii	"protocol ref=%d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_its_protocol, %function
test_its_protocol:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L21
	sub	sp, sp, #32
	ldr	r2, .L21+4
	ldr	lr, [r3]
	ldr	ip, .L21+8
	ldr	r4, .L21+12
	add	r3, sp, #20
	ldr	r1, [r2]
	str	r3, [sp]
	ldr	r4, [r4]
	str	r4, [sp, #28]
	mov	r4,#0
	ldr	r3, .L21+16
	mov	r2, #0
	ldr	r0, .L21+20
	str	lr, [ip]
	bl	CoGetClassObject
	ldr	r5, .L21+24
	mov	r4, r0
	ldr	r3, [r5]
	cmp	r3, r0
	moveq	r0, #1
	beq	.L2
	ldr	r3, .L21+28
	ldr	r0, [r3]
	sub	r0, r0, r4
	clz	r0, r0
	lsr	r0, r0, #5
	bl	broken
	subs	r0, r0, #0
	movne	r0, #1
.L2:
	mov	r2, r4
	ldr	r1, .L21+32
	bl	ok
	mov	r0, r4
	bl	FAILED
	subs	r4, r0, #0
	beq	.L17
.L1:
	ldr	r3, .L21+12
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, pc}
.L17:
	ldr	r1, .L21+36
	add	r2, sp, #12
	ldr	r0, [sp, #20]
	bl	IUnknown_QueryInterface
	mov	r2, r0
	ldr	r3, .L21+40
	ldr	r1, .L21+44
	ldr	r0, [r3]
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	add	r2, sp, #16
	ldr	r1, .L21+48
	ldr	r0, [sp, #20]
	bl	IUnknown_QueryInterface
	mov	r6, r0
	ldr	r0, [r5]
	ldr	r1, .L21+52
	sub	r0, r0, r6
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	mov	r0, r6
	bl	SUCCEEDED
	cmp	r0, #0
	bne	.L19
.L5:
	ldr	r0, [sp, #20]
	bl	IUnknown_Release
	b	.L1
.L19:
	add	r3, sp, #24
	mov	r1, r4
	ldr	r2, .L21+56
	ldr	r0, [sp, #16]
	bl	IClassFactory_CreateInstance
	mov	r6, r0
	ldr	r0, [r5]
	mov	r2, r6
	sub	r0, r0, r6
	clz	r0, r0
	ldr	r1, .L21+60
	lsr	r0, r0, #5
	bl	ok
	mov	r0, r6
	bl	SUCCEEDED
	cmp	r0, #0
	bne	.L20
.L6:
	ldr	r0, [sp, #16]
	bl	IClassFactory_Release
	b	.L5
.L20:
	ldr	r5, .L21+64
	ldr	r0, [sp, #24]
	bl	test_its_protocol_info
	ldr	r2, [r5]
	ldr	r1, .L21+68
	ldr	r0, [sp, #24]
	bl	test_protocol_fail
	ldr	r2, [r5]
	ldr	r1, .L21+72
	ldr	r0, [sp, #24]
	bl	test_protocol_fail
	ldr	r2, [r5]
	ldr	r1, .L21+76
	ldr	r0, [sp, #24]
	bl	test_protocol_fail
	ldr	r3, .L21+80
	str	r4, [sp, #4]
	str	r4, [sp]
	ldr	r2, .L21+84
	ldr	r1, .L21+88
	ldr	r0, [sp, #24]
	bl	IInternetProtocol_Start
	mov	r2, r0
	ldr	r5, .L21+92
	ldr	r1, .L21+96
	ldr	r0, [r5]
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r3, .L21+80
	str	r4, [sp, #4]
	str	r4, [sp]
	ldr	r2, .L21+84
	ldr	r1, .L21+100
	ldr	r0, [sp, #24]
	bl	IInternetProtocol_Start
	mov	r2, r0
	ldr	r0, [r5]
	ldr	r1, .L21+96
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r0, [sp, #24]
	bl	IInternetProtocol_Release
	mov	r2, r0
	clz	r0, r0
	ldr	r4, .L21+104
	ldr	r5, .L21+108
	ldr	r1, .L21+112
	lsr	r0, r0, #5
	bl	ok
	ldr	r2, [r4]
	ldr	r1, [r5]
	ldr	r0, [sp, #16]
	bl	test_protocol_url
	ldr	r3, .L21+116
	ldr	r2, [r4]
	ldr	r1, [r3]
	ldr	r0, [sp, #16]
	bl	test_protocol_url
	ldr	r3, .L21+120
	ldr	r2, [r4]
	ldr	r1, [r3]
	ldr	r0, [sp, #16]
	bl	test_protocol_url
	ldr	r3, .L21+124
	ldr	r2, [r4]
	ldr	r1, [r3]
	ldr	r0, [sp, #16]
	bl	test_protocol_url
	ldr	r3, .L21+128
	ldr	r2, [r4]
	ldr	r1, [r3]
	ldr	r0, [sp, #16]
	bl	test_protocol_url
	ldr	r3, .L21+132
	ldr	r2, [r4]
	ldr	r1, [r3]
	ldr	r0, [sp, #16]
	bl	test_protocol_url
	ldr	r3, .L21+136
	ldr	r2, [r4]
	ldr	r1, [r3]
	ldr	r0, [sp, #16]
	bl	test_protocol_url
	ldr	r3, .L21+140
	ldr	r2, [r4]
	ldr	r1, [r3]
	ldr	r0, [sp, #16]
	bl	test_protocol_url
	ldr	r2, .L21+144
	ldr	r3, .L21+148
	ldr	r0, [r2]
	ldr	r3, [r3]
	ldr	ip, .L21+152
	orr	r3, r3, r0
	ldr	r2, [r4]
	ldr	r1, [r5]
	ldr	r0, [sp, #16]
	str	r3, [ip]
	bl	test_protocol_url
	b	.L6
.L18:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	ITS_PROTOCOL
	.word	CLSCTX_INPROC_SERVER
	.word	test_protocol
	.word	.LC6
	.word	IID_IUnknown
	.word	CLSID_ITSProtocol
	.word	S_OK
	.word	REGDB_E_CLASSNOTREG
	.word	.LC0
	.word	IID_IInternetProtocolInfo
	.word	E_NOINTERFACE
	.word	.LC1
	.word	IID_IClassFactory
	.word	.LC2
	.word	IID_IInternetProtocol
	.word	.LC3
	.word	STG_E_FILENOTFOUND
	.word	.LANCHOR0
	.word	.LANCHOR0+28
	.word	.LANCHOR0+56
	.word	bind_info
	.word	protocol_sink
	.word	.LANCHOR0+80
	.word	INET_E_USE_DEFAULT_PROTOCOLHANDLER
	.word	.LC4
	.word	.LANCHOR0+116
	.word	TRUE
	.word	blank_url1
	.word	.LC5
	.word	blank_url2
	.word	blank_url3
	.word	blank_url4
	.word	blank_url5
	.word	blank_url6
	.word	blank_url8
	.word	blank_url9
	.word	BINDF_NEEDFILE
	.word	BINDF_FROMURLMON
	.word	bindf
	.size	test_its_protocol, .-test_its_protocol
	.comm	test_protocol,4,4
	.comm	protocol_sink,4,4
	.comm	blank_url9,4,4
	.comm	blank_url8,4,4
	.comm	blank_url6,4,4
	.comm	blank_url5,4,4
	.comm	blank_url4,4,4
	.comm	blank_url3,4,4
	.comm	blank_url2,4,4
	.comm	blank_url1,4,4
	.comm	bindf,4,4
	.comm	bind_info,4,4
	.comm	TRUE,4,4
	.comm	S_OK,4,4
	.comm	STG_E_FILENOTFOUND,4,4
	.comm	REGDB_E_CLASSNOTREG,4,4
	.comm	ITS_PROTOCOL,4,4
	.comm	INET_E_USE_DEFAULT_PROTOCOLHANDLER,4,4
	.comm	IID_IUnknown,4,4
	.comm	IID_IInternetProtocolInfo,4,4
	.comm	IID_IInternetProtocol,4,4
	.comm	IID_IClassFactory,4,4
	.comm	E_NOINTERFACE,4,4
	.comm	CLSID_ITSProtocol,4,4
	.comm	CLSCTX_INPROC_SERVER,4,4
	.comm	BINDF_NEEDFILE,4,4
	.comm	BINDF_FROMURLMON,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	wrong_url1.4288, %object
	.size	wrong_url1.4288, 25
wrong_url1.4288:
	.ascii	"its:test.chm::/blan.html\000"
	.space	3
	.type	wrong_url2.4289, %object
	.size	wrong_url2.4289, 25
wrong_url2.4289:
	.ascii	"its:tes.chm::b/lank.html\000"
	.space	3
	.type	wrong_url3.4290, %object
	.size	wrong_url3.4290, 24
wrong_url3.4290:
	.ascii	"its:test.chm/blank.html\000"
	.type	wrong_url4.4291, %object
	.size	wrong_url4.4291, 35
wrong_url4.4291:
	.ascii	"mk:@MSITStor:test.chm::/blank.html\000"
	.space	1
	.type	wrong_url5.4292, %object
	.size	wrong_url5.4292, 26
wrong_url5.4292:
	.ascii	"file:tes.chm::/blank.html\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
