	.file	"extr_http.c_InternetOpenRequest_test.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Wine Regression Test"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Unable to open Internet session\n"
	.align 8
.LC2:
	.string	"InternetConnectA should have failed\n"
	.align 8
.LC3:
	.string	"InternetConnectA with NULL server named should have failed with ERROR_INVALID_PARAMETER instead of %d\n"
	.section	.rodata.str1.1
.LC4:
	.string	""
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"InternetConnectA with blank server named should have failed with ERROR_INVALID_PARAMETER instead of %d\n"
	.section	.rodata.str1.1
.LC6:
	.string	"test.winehq.org"
	.section	.rodata.str1.8
	.align 8
.LC7:
	.string	"Unable to connect to http://test.winehq.org with error %d\n"
	.section	.rodata.str1.1
.LC8:
	.string	"/"
	.section	.rodata.str1.8
	.align 8
.LC9:
	.string	"Network unreachable, skipping test\n"
	.align 8
.LC10:
	.string	"Failed to open request handle err %u\n"
	.section	.rodata.str1.1
.LC11:
	.string	"HttpSendRequest failed: %u\n"
.LC12:
	.string	"Close request handle failed\n"
.LC13:
	.string	"Close connect handle failed\n"
.LC14:
	.string	"Close session handle failed\n"
	.text
	.p2align 4
	.type	InternetOpenRequest_test, @function
InternetOpenRequest_test:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xor	r8d, r8d
	xor	ecx, ecx
	xor	edx, edx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	lea	rdi, .LC0[rip]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR INTERNET_OPEN_TYPE_PRECONFIG[rip]
	call	InternetOpenA@PLT
	xor	edi, edi
	lea	rsi, .LC1[rip]
	test	rax, rax
	mov	rbp, rax
	setne	dil
	xor	eax, eax
	call	ok@PLT
	push	0
	.cfi_def_cfa_offset 56
	mov	r9d, DWORD PTR INTERNET_SERVICE_HTTP[rip]
	xor	ecx, ecx
	push	0
	.cfi_def_cfa_offset 64
	mov	edx, DWORD PTR INTERNET_DEFAULT_HTTP_PORT[rip]
	xor	r8d, r8d
	xor	esi, esi
	mov	rdi, rbp
	call	InternetConnectA@PLT
	xor	edi, edi
	lea	rsi, .LC2[rip]
	test	rax, rax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	xor	eax, eax
	call	GetLastError@PLT
	mov	r12, rax
	xor	eax, eax
	call	GetLastError@PLT
	xor	edi, edi
	mov	rdx, r12
	cmp	QWORD PTR ERROR_INVALID_PARAMETER[rip], rax
	sete	dil
	lea	rsi, .LC3[rip]
	xor	eax, eax
	call	ok@PLT
	push	0
	.cfi_def_cfa_offset 72
	mov	r9d, DWORD PTR INTERNET_SERVICE_HTTP[rip]
	xor	ecx, ecx
	push	0
	.cfi_def_cfa_offset 80
	mov	edx, DWORD PTR INTERNET_DEFAULT_HTTP_PORT[rip]
	xor	r8d, r8d
	mov	rdi, rbp
	lea	rsi, .LC4[rip]
	call	InternetConnectA@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 48
	xor	edi, edi
	lea	rsi, .LC2[rip]
	test	rax, rax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	xor	eax, eax
	call	GetLastError@PLT
	mov	r12, rax
	xor	eax, eax
	call	GetLastError@PLT
	xor	edi, edi
	mov	rdx, r12
	cmp	QWORD PTR ERROR_INVALID_PARAMETER[rip], rax
	sete	dil
	lea	rsi, .LC5[rip]
	xor	eax, eax
	call	ok@PLT
	push	0
	.cfi_def_cfa_offset 56
	mov	r9d, DWORD PTR INTERNET_SERVICE_HTTP[rip]
	xor	ecx, ecx
	push	0
	.cfi_def_cfa_offset 64
	mov	edx, DWORD PTR INTERNET_DEFAULT_HTTP_PORT[rip]
	xor	r8d, r8d
	mov	rdi, rbp
	lea	rsi, .LC6[rip]
	call	InternetConnectA@PLT
	mov	r12, rax
	xor	eax, eax
	call	GetLastError@PLT
	xor	edi, edi
	test	r12, r12
	lea	rsi, .LC7[rip]
	setne	dil
	mov	rdx, rax
	xor	eax, eax
	call	ok@PLT
	mov	eax, DWORD PTR INTERNET_FLAG_NO_CACHE_WRITE[rip]
	push	0
	.cfi_def_cfa_offset 72
	xor	r8d, r8d
	lea	r9, types.1983[rip]
	xor	ecx, ecx
	xor	esi, esi
	mov	rdi, r12
	push	rax
	.cfi_def_cfa_offset 80
	lea	rdx, .LC8[rip]
	call	HttpOpenRequestA@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 48
	mov	r13, rax
	test	rax, rax
	je	.L6
.L2:
	xor	eax, eax
	call	GetLastError@PLT
	xor	edi, edi
	test	r13, r13
	lea	rsi, .LC10[rip]
	setne	dil
	mov	rdx, rax
	xor	eax, eax
	call	ok@PLT
	xor	r8d, r8d
	xor	ecx, ecx
	xor	edx, edx
	xor	esi, esi
	mov	rdi, r13
	call	HttpSendRequestW@PLT
	mov	r14d, eax
	xor	eax, eax
	call	GetLastError@PLT
	lea	rsi, .LC11[rip]
	mov	edi, r14d
	mov	rdx, rax
	xor	eax, eax
	call	ok@PLT
	mov	rdi, r13
	call	InternetCloseHandle@PLT
	lea	rsi, .LC12[rip]
	mov	edi, eax
	xor	eax, eax
	call	ok@PLT
	mov	eax, DWORD PTR INTERNET_FLAG_NO_CACHE_WRITE[rip]
	push	0
	.cfi_def_cfa_offset 56
	xor	r8d, r8d
	lea	r9, typesW.1987[rip]
	xor	ecx, ecx
	xor	esi, esi
	mov	rdi, r12
	push	rax
	.cfi_def_cfa_offset 64
	lea	rdx, slash.1984[rip]
	call	HttpOpenRequestW@PLT
	mov	r13, rax
	xor	eax, eax
	call	GetLastError@PLT
	xor	edi, edi
	test	r13, r13
	lea	rsi, .LC10[rip]
	setne	dil
	mov	rdx, rax
	xor	eax, eax
	call	ok@PLT
	xor	r8d, r8d
	xor	ecx, ecx
	xor	edx, edx
	xor	esi, esi
	mov	rdi, r13
	call	HttpSendRequestA@PLT
	mov	r14d, eax
	xor	eax, eax
	call	GetLastError@PLT
	lea	rsi, .LC11[rip]
	mov	edi, r14d
	mov	rdx, rax
	xor	eax, eax
	call	ok@PLT
	mov	rdi, r13
	call	InternetCloseHandle@PLT
	lea	rsi, .LC12[rip]
	mov	edi, eax
	xor	eax, eax
	call	ok@PLT
	pop	rax
	.cfi_def_cfa_offset 56
	pop	rdx
	.cfi_def_cfa_offset 48
.L3:
	mov	rdi, r12
	call	InternetCloseHandle@PLT
	lea	rsi, .LC13[rip]
	mov	edi, eax
	xor	eax, eax
	call	ok@PLT
	mov	rdi, rbp
	call	InternetCloseHandle@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	lea	rsi, .LC14[rip]
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	edi, eax
	pop	r12
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	ok@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	xor	eax, eax
	call	GetLastError@PLT
	cmp	rax, QWORD PTR ERROR_INTERNET_NAME_NOT_RESOLVED[rip]
	jne	.L2
	lea	rdi, .LC9[rip]
	call	skip@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	InternetOpenRequest_test, .-InternetOpenRequest_test
	.section	.rodata
	.type	any.1985, @object
	.size	any.1985, 2
any.1985:
	.string	"*"
	.type	empty.1986, @object
	.size	empty.1986, 1
empty.1986:
	.zero	1
	.section	.data.rel.local,"aw"
	.align 16
	.type	typesW.1987, @object
	.size	typesW.1987, 24
typesW.1987:
	.quad	any.1985
	.quad	empty.1986
	.quad	0
	.section	.rodata
	.type	slash.1984, @object
	.size	slash.1984, 2
slash.1984:
	.string	"/"
	.section	.rodata.str1.1
.LC15:
	.string	"*"
	.section	.data.rel.local
	.align 16
	.type	types.1983, @object
	.size	types.1983, 24
types.1983:
	.quad	.LC15
	.quad	.LC4
	.quad	0
	.comm	INTERNET_SERVICE_HTTP,4,4
	.comm	INTERNET_OPEN_TYPE_PRECONFIG,4,4
	.comm	INTERNET_FLAG_NO_CACHE_WRITE,4,4
	.comm	INTERNET_DEFAULT_HTTP_PORT,4,4
	.comm	ERROR_INVALID_PARAMETER,8,8
	.comm	ERROR_INTERNET_NAME_NOT_RESOLVED,8,8
	.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_http.c_InternetOpenRequest_test.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Wine Regression Test\000"
	.align	2
.LC1:
	.ascii	"Unable to open Internet session\012\000"
	.align	2
.LC2:
	.ascii	"InternetConnectA should have failed\012\000"
	.align	2
.LC3:
	.ascii	"InternetConnectA with NULL server named should have"
	.ascii	" failed with ERROR_INVALID_PARAMETER instead of %d\012"
	.ascii	"\000"
	.align	2
.LC4:
	.ascii	"\000"
	.align	2
.LC5:
	.ascii	"InternetConnectA with blank server named should hav"
	.ascii	"e failed with ERROR_INVALID_PARAMETER instead of %d"
	.ascii	"\012\000"
	.align	2
.LC6:
	.ascii	"test.winehq.org\000"
	.align	2
.LC7:
	.ascii	"Unable to connect to http://test.winehq.org with er"
	.ascii	"ror %d\012\000"
	.align	2
.LC8:
	.ascii	"/\000"
	.align	2
.LC9:
	.ascii	"Network unreachable, skipping test\012\000"
	.align	2
.LC10:
	.ascii	"Failed to open request handle err %u\012\000"
	.align	2
.LC11:
	.ascii	"HttpSendRequest failed: %u\012\000"
	.align	2
.LC12:
	.ascii	"Close request handle failed\012\000"
	.align	2
.LC13:
	.ascii	"Close connect handle failed\012\000"
	.align	2
.LC14:
	.ascii	"Close session handle failed\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	InternetOpenRequest_test, %function
InternetOpenRequest_test:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, #0
	sub	sp, sp, #16
	ldr	r1, .L7
	str	r4, [sp]
	mov	r3, r4
	mov	r2, r4
	ldr	r1, [r1]
	ldr	r0, .L7+4
	bl	InternetOpenA
	mov	r5, r0
	ldr	r7, .L7+8
	subs	r0, r0, r4
	movne	r0, #1
	ldr	r1, .L7+12
	bl	ok
	ldr	r3, [r7]
	ldr	r6, .L7+16
	str	r3, [sp, #4]
	str	r4, [sp, #12]
	str	r4, [sp, #8]
	str	r4, [sp]
	mov	r3, r4
	ldr	r2, [r6]
	mov	r1, r4
	mov	r0, r5
	bl	InternetConnectA
	clz	r0, r0
	ldr	r1, .L7+20
	lsr	r0, r0, #5
	bl	ok
	bl	GetLastError
	ldr	r10, .L7+24
	ldr	r8, .L7+28
	ldr	r9, [r10]
	sub	r9, r9, r0
	clz	r9, r9
	bl	GetLastError
	lsr	r9, r9, #5
	mov	r2, r0
	ldr	r1, .L7+32
	mov	r0, r9
	bl	ok
	ldr	r3, [r7]
	str	r4, [sp, #12]
	str	r3, [sp, #4]
	str	r4, [sp, #8]
	str	r4, [sp]
	mov	r3, r4
	ldr	r2, [r6]
	ldr	r1, .L7+36
	mov	r0, r5
	bl	InternetConnectA
	clz	r0, r0
	ldr	r1, .L7+20
	lsr	r0, r0, #5
	bl	ok
	bl	GetLastError
	ldr	r9, [r10]
	sub	r9, r9, r0
	clz	r9, r9
	bl	GetLastError
	lsr	r9, r9, #5
	mov	r2, r0
	ldr	r1, .L7+40
	mov	r0, r9
	bl	ok
	ldr	r3, [r7]
	str	r4, [sp, #12]
	stmib	sp, {r3, r4}
	str	r4, [sp]
	mov	r3, r4
	ldr	r2, [r6]
	ldr	r1, .L7+44
	mov	r0, r5
	bl	InternetConnectA
	mov	r6, r0
	bl	GetLastError
	mov	r2, r0
	subs	r0, r6, r4
	movne	r0, #1
	ldr	r1, .L7+48
	bl	ok
	ldr	r3, [r8]
	ldr	r2, .L7+52
	str	r3, [sp, #8]
	str	r2, [sp, #4]
	mov	r0, r6
	mov	r3, r4
	mov	r1, r4
	ldr	r2, .L7+56
	str	r4, [sp, #12]
	str	r4, [sp]
	bl	HttpOpenRequestA
	subs	r7, r0, #0
	beq	.L6
.L2:
	mov	r4, #0
	bl	GetLastError
	mov	r2, r0
	subs	r0, r7, r4
	movne	r0, #1
	ldr	r1, .L7+60
	bl	ok
	mov	r3, r4
	mov	r2, r4
	mov	r1, r4
	mov	r0, r7
	str	r4, [sp]
	bl	HttpSendRequestW
	mov	r9, r0
	bl	GetLastError
	ldr	r1, .L7+64
	mov	r2, r0
	mov	r0, r9
	bl	ok
	mov	r0, r7
	bl	InternetCloseHandle
	ldr	r1, .L7+68
	bl	ok
	ldr	r3, [r8]
	ldr	r2, .L7+72
	mov	r1, r4
	str	r4, [sp, #12]
	str	r4, [sp]
	str	r3, [sp, #8]
	str	r2, [sp, #4]
	mov	r3, r4
	ldr	r2, .L7+76
	mov	r0, r6
	bl	HttpOpenRequestW
	mov	r7, r0
	bl	GetLastError
	mov	r2, r0
	subs	r0, r7, r4
	movne	r0, #1
	ldr	r1, .L7+60
	bl	ok
	mov	r3, r4
	mov	r2, r4
	mov	r1, r4
	str	r4, [sp]
	mov	r0, r7
	bl	HttpSendRequestA
	mov	r4, r0
	bl	GetLastError
	ldr	r1, .L7+64
	mov	r2, r0
	mov	r0, r4
	bl	ok
	mov	r0, r7
	bl	InternetCloseHandle
	ldr	r1, .L7+68
	bl	ok
.L3:
	mov	r0, r6
	bl	InternetCloseHandle
	ldr	r1, .L7+80
	bl	ok
	mov	r0, r5
	bl	InternetCloseHandle
	ldr	r1, .L7+84
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	ok
.L6:
	bl	GetLastError
	ldr	r3, .L7+88
	ldr	r3, [r3]
	cmp	r0, r3
	bne	.L2
	ldr	r0, .L7+92
	bl	skip
	b	.L3
.L8:
	.align	2
.L7:
	.word	INTERNET_OPEN_TYPE_PRECONFIG
	.word	.LC0
	.word	INTERNET_SERVICE_HTTP
	.word	.LC1
	.word	INTERNET_DEFAULT_HTTP_PORT
	.word	.LC2
	.word	ERROR_INVALID_PARAMETER
	.word	INTERNET_FLAG_NO_CACHE_WRITE
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LANCHOR0
	.word	.LC8
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LANCHOR0+12
	.word	.LANCHOR1
	.word	.LC13
	.word	.LC14
	.word	ERROR_INTERNET_NAME_NOT_RESOLVED
	.word	.LC9
	.size	InternetOpenRequest_test, .-InternetOpenRequest_test
	.section	.rodata.str1.4
	.align	2
.LC15:
	.ascii	"*\000"
	.comm	INTERNET_SERVICE_HTTP,4,4
	.comm	INTERNET_OPEN_TYPE_PRECONFIG,4,4
	.comm	INTERNET_FLAG_NO_CACHE_WRITE,4,4
	.comm	INTERNET_DEFAULT_HTTP_PORT,4,4
	.comm	ERROR_INVALID_PARAMETER,4,4
	.comm	ERROR_INTERNET_NAME_NOT_RESOLVED,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR1,. + 0
	.type	slash.4268, %object
	.size	slash.4268, 2
slash.4268:
	.ascii	"/\000"
	.space	2
	.type	any.4269, %object
	.size	any.4269, 2
any.4269:
	.ascii	"*\000"
	.space	2
	.type	empty.4270, %object
	.size	empty.4270, 1
empty.4270:
	.space	1
	.data
	.align	2
	.set	.LANCHOR0,. + 0
	.type	types.4267, %object
	.size	types.4267, 12
types.4267:
	.word	.LC15
	.word	.LC4
	.word	0
	.type	typesW.4271, %object
	.size	typesW.4271, 12
typesW.4271:
	.word	any.4269
	.word	empty.4270
	.word	0
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
