	.file	"extr_query.c_test_select.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"query failed %08x\n"
.LC1:
	.string	"query %u failed: %08x\n"
	.text
	.p2align 4
	.type	test_select, @function
test_select:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	mov	r12, rdi
	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	rdi, QWORD PTR wqlW[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	r13, 16[rsp]
	call	SysAllocString@PLT
	lea	rdi, sqlW.1952[rip]
	mov	r15, rax
	call	SysAllocString@PLT
	lea	rdi, query1.1953[rip]
	mov	r14, rax
	call	SysAllocString@PLT
	xor	r8d, r8d
	xor	ecx, ecx
	mov	r9, r13
	xor	edx, edx
	xor	esi, esi
	mov	rdi, r12
	mov	rbp, rax
	call	IWbemServices_ExecQuery@PLT
	xor	edi, edi
	cmp	QWORD PTR WBEM_E_INVALID_PARAMETER[rip], rax
	lea	rsi, .LC0[rip]
	sete	dil
	mov	rdx, rax
	xor	eax, eax
	call	ok@PLT
	xor	r8d, r8d
	xor	ecx, ecx
	mov	r9, r13
	mov	rdx, rbp
	xor	esi, esi
	mov	rdi, r12
	call	IWbemServices_ExecQuery@PLT
	xor	edi, edi
	cmp	QWORD PTR WBEM_E_INVALID_PARAMETER[rip], rax
	lea	rsi, .LC0[rip]
	sete	dil
	mov	rdx, rax
	xor	eax, eax
	call	ok@PLT
	xor	r8d, r8d
	xor	ecx, ecx
	mov	r9, r13
	xor	edx, edx
	mov	rsi, r15
	mov	rdi, r12
	call	IWbemServices_ExecQuery@PLT
	xor	edi, edi
	cmp	QWORD PTR WBEM_E_INVALID_PARAMETER[rip], rax
	lea	rsi, .LC0[rip]
	sete	dil
	mov	rdx, rax
	xor	eax, eax
	call	ok@PLT
	xor	r8d, r8d
	xor	ecx, ecx
	mov	r9, r13
	mov	rdx, rbp
	mov	rsi, r14
	mov	rdi, r12
	call	IWbemServices_ExecQuery@PLT
	xor	edi, edi
	cmp	QWORD PTR WBEM_E_INVALID_QUERY_TYPE[rip], rax
	lea	rsi, .LC0[rip]
	sete	dil
	mov	rdx, rax
	xor	eax, eax
	call	ok@PLT
	xor	r8d, r8d
	xor	ecx, ecx
	mov	r9, r13
	xor	edx, edx
	mov	rsi, r14
	mov	rdi, r12
	call	IWbemServices_ExecQuery@PLT
	xor	edi, edi
	cmp	QWORD PTR WBEM_E_INVALID_PARAMETER[rip], rax
	lea	rsi, .LC0[rip]
	sete	dil
	mov	rdx, rax
	xor	eax, eax
	call	ok@PLT
	mov	rdi, rbp
	lea	rbp, test.1966[rip]
	call	SysFreeString@PLT
	lea	rdi, emptyW.1951[rip]
	call	SysAllocString@PLT
	xor	r8d, r8d
	xor	ecx, ecx
	mov	r9, r13
	mov	rdx, rax
	mov	rsi, r15
	mov	rdi, r12
	mov	QWORD PTR 8[rsp], rax
	call	IWbemServices_ExecQuery@PLT
	xor	edi, edi
	cmp	QWORD PTR WBEM_E_INVALID_PARAMETER[rip], rax
	lea	rsi, .LC0[rip]
	sete	dil
	mov	rdx, rax
	xor	eax, eax
	xor	ebx, ebx
	call	ok@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rsi, QWORD PTR 0[rbp+rbx*8]
	mov	rdx, r13
	mov	rdi, r12
	call	exec_query@PLT
	xor	edi, edi
	mov	rdx, rbx
	cmp	QWORD PTR S_OK[rip], rax
	sete	dil
	mov	rcx, rax
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	ok@PLT
	mov	rdi, QWORD PTR 16[rsp]
	test	rdi, rdi
	je	.L3
	call	IEnumWbemClassObject_Release@PLT
.L3:
	add	rbx, 1
.L2:
	mov	rdi, rbp
	call	ARRAY_SIZE@PLT
	cmp	rax, rbx
	ja	.L4
	mov	rdi, r15
	call	SysFreeString@PLT
	mov	rdi, r14
	call	SysFreeString@PLT
	mov	rdi, QWORD PTR 8[rsp]
	call	SysFreeString@PLT
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	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
.L11:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	test_select, .-test_select
	.section	.rodata
	.align 16
	.type	query2.1954, @object
	.size	query2.1954, 25
query2.1954:
	.string	"SELECT * FROM Win32_BIOS"
	.align 32
	.type	query3.1955, @object
	.size	query3.1955, 58
query3.1955:
	.string	"SELECT * FROM Win32_LogicalDisk WHERE \"NTFS\" = FileSystem"
	.align 16
	.type	query4.1956, @object
	.size	query4.1956, 16
query4.1956:
	.string	"SELECT a FROM b"
	.align 16
	.type	query5.1957, @object
	.size	query5.1957, 25
query5.1957:
	.string	"SELECT a FROM Win32_Bios"
	.align 32
	.type	query6.1958, @object
	.size	query6.1958, 35
query6.1958:
	.string	"SELECT Description FROM Win32_Bios"
	.align 32
	.type	query7.1959, @object
	.size	query7.1959, 60
query7.1959:
	.string	"SELECT * FROM Win32_Process WHERE Caption LIKE '%%REGEDIT%'"
	.align 32
	.type	query8.1960, @object
	.size	query8.1960, 69
query8.1960:
	.string	"SELECT * FROM Win32_DiskDrive WHERE DeviceID=\"\\\\\\\\.\\\\PHYSICALDRIVE0\""
	.align 16
	.type	query9.1961, @object
	.size	query9.1961, 16
query9.1961:
	.string	"SELECT\na\rFROM\tb"
	.align 32
	.type	query10.1962, @object
	.size	query10.1962, 62
query10.1962:
	.string	"SELECT * FROM Win32_Process WHERE Caption LIKE \"%firefox.exe\""
	.align 32
	.type	query11.1963, @object
	.size	query11.1963, 61
query11.1963:
	.string	"SELECT * FROM Win32_VideoController where availability = '3'"
	.align 32
	.type	query12.1964, @object
	.size	query12.1964, 44
query12.1964:
	.string	"SELECT * FROM Win32_BIOS WHERE NAME <> NULL"
	.align 32
	.type	query13.1965, @object
	.size	query13.1965, 43
query13.1965:
	.string	"SELECT * FROM Win32_BIOS WHERE NULL = NAME"
	.section	.data.rel.local,"aw"
	.align 32
	.type	test.1966, @object
	.size	test.1966, 104
test.1966:
	.quad	query1.1953
	.quad	query2.1954
	.quad	query3.1955
	.quad	query4.1956
	.quad	query5.1957
	.quad	query6.1958
	.quad	query7.1959
	.quad	query8.1960
	.quad	query9.1961
	.quad	query10.1962
	.quad	query11.1963
	.quad	query12.1964
	.quad	query13.1965
	.section	.rodata
	.type	emptyW.1951, @object
	.size	emptyW.1951, 1
emptyW.1951:
	.zero	1
	.align 32
	.type	query1.1953, @object
	.size	query1.1953, 47
query1.1953:
	.string	"SELECT HOTFIXID FROM Win32_QuickFixEngineering"
	.type	sqlW.1952, @object
	.size	sqlW.1952, 4
sqlW.1952:
	.string	"SQL"
	.comm	wqlW,8,8
	.comm	WBEM_E_INVALID_QUERY_TYPE,8,8
	.comm	WBEM_E_INVALID_PARAMETER,8,8
	.comm	S_OK,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_query.c_test_select.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"query failed %08x\012\000"
	.align	2
.LC1:
	.ascii	"query %u failed: %08x\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_select, %function
test_select:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L12
	mov	r6, r0
	ldr	r0, [r3]
	ldr	r3, .L12+4
	sub	sp, sp, #28
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	SysAllocString
	mov	fp, r0
	ldr	r0, .L12+8
	bl	SysAllocString
	mov	r3, r0
	ldr	r0, .L12+12
	mov	r4, #0
	mov	r9, r3
	str	r3, [sp, #8]
	bl	SysAllocString
	add	r7, sp, #16
	mov	r8, r0
	mov	r3, r4
	mov	r2, r4
	mov	r1, r4
	mov	r0, r6
	str	r4, [sp]
	str	r7, [sp, #4]
	bl	IWbemServices_ExecQuery
	mov	r2, r0
	ldr	r5, .L12+16
	ldr	r1, .L12+20
	ldr	r0, [r5]
	ldr	r10, .L12+24
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	mov	r2, r8
	mov	r3, r4
	mov	r1, r4
	mov	r0, r6
	stm	sp, {r4, r7}
	bl	IWbemServices_ExecQuery
	mov	r2, r0
	ldr	r0, [r5]
	ldr	r1, .L12+20
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	mov	r3, r4
	mov	r1, fp
	mov	r2, r4
	mov	r0, r6
	stm	sp, {r4, r7}
	bl	IWbemServices_ExecQuery
	mov	r2, r0
	ldr	r0, [r5]
	ldr	r1, .L12+20
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	mov	r2, r8
	mov	r1, r9
	mov	r3, r4
	mov	r0, r6
	stm	sp, {r4, r7}
	bl	IWbemServices_ExecQuery
	mov	r2, r0
	ldr	r3, .L12+28
	ldr	r1, .L12+20
	ldr	r0, [r3]
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	mov	r3, r4
	mov	r1, r9
	mov	r2, r4
	mov	r0, r6
	stm	sp, {r4, r7}
	bl	IWbemServices_ExecQuery
	mov	r2, r0
	ldr	r0, [r5]
	ldr	r1, .L12+20
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	mov	r0, r8
	bl	SysFreeString
	ldr	r0, .L12+32
	bl	SysAllocString
	mov	r1, fp
	mov	r2, r0
	mov	r3, r4
	str	r0, [sp, #12]
	stm	sp, {r4, r7}
	mov	r0, r6
	bl	IWbemServices_ExecQuery
	mov	r2, r0
	ldr	r0, [r5]
	ldr	r5, .L12+36
	sub	r0, r0, r2
	clz	r0, r0
	ldr	r1, .L12+20
	lsr	r0, r0, #5
	bl	ok
	ldr	r9, .L12+40
	add	r8, r5, #4
	b	.L2
.L4:
	mov	r2, r7
	ldr	r1, [r5, #4]!
	mov	r0, r6
	bl	exec_query
	mov	r3, r0
	ldr	r0, [r10]
	mov	r2, r4
	sub	r0, r0, r3
	clz	r0, r0
	mov	r1, r9
	lsr	r0, r0, #5
	bl	ok
	ldr	r0, [sp, #16]
	cmp	r0, #0
	beq	.L3
	bl	IEnumWbemClassObject_Release
.L3:
	add	r4, r4, #1
.L2:
	mov	r0, r8
	bl	ARRAY_SIZE
	cmp	r0, r4
	bhi	.L4
	mov	r0, fp
	bl	SysFreeString
	ldr	r0, [sp, #8]
	bl	SysFreeString
	ldr	r0, [sp, #12]
	bl	SysFreeString
	ldr	r3, .L12+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	wqlW
	.word	.LC2
	.word	.LANCHOR0
	.word	.LANCHOR0+4
	.word	WBEM_E_INVALID_PARAMETER
	.word	.LC0
	.word	S_OK
	.word	WBEM_E_INVALID_QUERY_TYPE
	.word	.LANCHOR0+52
	.word	.LANCHOR1-4
	.word	.LC1
	.size	test_select, .-test_select
	.comm	wqlW,4,4
	.comm	WBEM_E_INVALID_QUERY_TYPE,4,4
	.comm	WBEM_E_INVALID_PARAMETER,4,4
	.comm	S_OK,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	sqlW.4236, %object
	.size	sqlW.4236, 4
sqlW.4236:
	.ascii	"SQL\000"
	.type	query1.4237, %object
	.size	query1.4237, 47
query1.4237:
	.ascii	"SELECT HOTFIXID FROM Win32_QuickFixEngineering\000"
	.space	1
	.type	emptyW.4235, %object
	.size	emptyW.4235, 1
emptyW.4235:
	.space	1
	.space	3
	.type	query2.4238, %object
	.size	query2.4238, 25
query2.4238:
	.ascii	"SELECT * FROM Win32_BIOS\000"
	.space	3
	.type	query3.4239, %object
	.size	query3.4239, 58
query3.4239:
	.ascii	"SELECT * FROM Win32_LogicalDisk WHERE \"NTFS\" = Fi"
	.ascii	"leSystem\000"
	.space	2
	.type	query4.4240, %object
	.size	query4.4240, 16
query4.4240:
	.ascii	"SELECT a FROM b\000"
	.type	query5.4241, %object
	.size	query5.4241, 25
query5.4241:
	.ascii	"SELECT a FROM Win32_Bios\000"
	.space	3
	.type	query6.4242, %object
	.size	query6.4242, 35
query6.4242:
	.ascii	"SELECT Description FROM Win32_Bios\000"
	.space	1
	.type	query7.4243, %object
	.size	query7.4243, 60
query7.4243:
	.ascii	"SELECT * FROM Win32_Process WHERE Caption LIKE '%%R"
	.ascii	"EGEDIT%'\000"
	.type	query8.4244, %object
	.size	query8.4244, 69
query8.4244:
	.ascii	"SELECT * FROM Win32_DiskDrive WHERE DeviceID=\"\\\\"
	.ascii	"\\\\.\\\\PHYSICALDRIVE0\"\000"
	.space	3
	.type	query9.4245, %object
	.size	query9.4245, 16
query9.4245:
	.ascii	"SELECT\012a\015FROM\011b\000"
	.type	query10.4246, %object
	.size	query10.4246, 62
query10.4246:
	.ascii	"SELECT * FROM Win32_Process WHERE Caption LIKE \"%f"
	.ascii	"irefox.exe\"\000"
	.space	2
	.type	query11.4247, %object
	.size	query11.4247, 61
query11.4247:
	.ascii	"SELECT * FROM Win32_VideoController where availabil"
	.ascii	"ity = '3'\000"
	.space	3
	.type	query12.4248, %object
	.size	query12.4248, 44
query12.4248:
	.ascii	"SELECT * FROM Win32_BIOS WHERE NAME <> NULL\000"
	.type	query13.4249, %object
	.size	query13.4249, 43
query13.4249:
	.ascii	"SELECT * FROM Win32_BIOS WHERE NULL = NAME\000"
	.data
	.align	2
	.set	.LANCHOR1,. + 0
	.type	test.4250, %object
	.size	test.4250, 52
test.4250:
	.word	query1.4237
	.word	query2.4238
	.word	query3.4239
	.word	query4.4240
	.word	query5.4241
	.word	query6.4242
	.word	query7.4243
	.word	query8.4244
	.word	query9.4245
	.word	query10.4246
	.word	query11.4247
	.word	query12.4248
	.word	query13.4249
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
