	.file	"extr_pdh.c_test_PdhAddEnglishCounterA.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"PdhOpenQueryA failed 0x%08x\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"PdhCollectQueryData failed 0x%08x\n"
	.section	.rodata.str1.1
.LC2:
	.string	"\\System\\System Up Time"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"PdhAddEnglishCounterA failed 0x%08x\n"
	.section	.rodata.str1.1
.LC4:
	.string	"\\System\\System Down Time"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"PdhAddEnglishCounterA failed %p\n"
	.align 8
.LC6:
	.string	"PdhRemoveCounter failed 0x%08x\n"
	.section	.rodata.str1.1
.LC7:
	.string	"PdhCloseQuery failed 0x%08x\n"
	.text
	.p2align 4
	.type	test_PdhAddEnglishCounterA, @function
test_PdhAddEnglishCounterA:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	esi, esi
	xor	edi, edi
	sub	rsp, 32
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	rdx, 8[rsp]
	lea	r12, 16[rsp]
	call	PdhOpenQueryA@PLT
	xor	edi, edi
	cmp	QWORD PTR ERROR_SUCCESS[rip], rax
	lea	rsi, .LC0[rip]
	sete	dil
	mov	rdx, rax
	call	ok@PLT
	mov	rdi, QWORD PTR 8[rsp]
	call	PdhCollectQueryData@PLT
	xor	edi, edi
	cmp	QWORD PTR PDH_NO_DATA[rip], rax
	lea	rsi, .LC1[rip]
	sete	dil
	mov	rdx, rax
	call	ok@PLT
	xor	ecx, ecx
	xor	edx, edx
	xor	edi, edi
	lea	rsi, .LC2[rip]
	call	pPdhAddEnglishCounterA@PLT
	xor	edi, edi
	cmp	QWORD PTR PDH_INVALID_ARGUMENT[rip], rax
	lea	rsi, .LC3[rip]
	sete	dil
	mov	rdx, rax
	call	ok@PLT
	mov	rcx, r12
	xor	edx, edx
	xor	edi, edi
	lea	rsi, .LC2[rip]
	call	pPdhAddEnglishCounterA@PLT
	xor	edi, edi
	cmp	QWORD PTR PDH_INVALID_ARGUMENT[rip], rax
	lea	rsi, .LC3[rip]
	sete	dil
	mov	rdx, rax
	call	ok@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	rcx, r12
	xor	edx, edx
	xor	esi, esi
	call	pPdhAddEnglishCounterA@PLT
	xor	edi, edi
	cmp	QWORD PTR PDH_INVALID_ARGUMENT[rip], rax
	lea	rsi, .LC3[rip]
	sete	dil
	mov	rdx, rax
	call	ok@PLT
	mov	rdi, QWORD PTR 8[rsp]
	xor	ecx, ecx
	xor	edx, edx
	lea	rsi, .LC2[rip]
	call	pPdhAddEnglishCounterA@PLT
	xor	edi, edi
	cmp	QWORD PTR PDH_INVALID_ARGUMENT[rip], rax
	lea	rsi, .LC3[rip]
	sete	dil
	mov	rdx, rax
	call	ok@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	rcx, r12
	xor	edx, edx
	lea	rsi, .LC4[rip]
	call	pPdhAddEnglishCounterA@PLT
	xor	edi, edi
	cmp	QWORD PTR PDH_CSTATUS_NO_COUNTER[rip], rax
	lea	rsi, .LC3[rip]
	sete	dil
	mov	rdx, rax
	call	ok@PLT
	mov	rdx, QWORD PTR 16[rsp]
	xor	edi, edi
	lea	rsi, .LC5[rip]
	test	rdx, rdx
	sete	dil
	call	ok@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	rcx, r12
	xor	edx, edx
	lea	rsi, .LC2[rip]
	call	pPdhAddEnglishCounterA@PLT
	xor	edi, edi
	cmp	QWORD PTR ERROR_SUCCESS[rip], rax
	lea	rsi, .LC3[rip]
	sete	dil
	mov	rdx, rax
	call	ok@PLT
	mov	rdi, QWORD PTR 8[rsp]
	call	PdhCollectQueryData@PLT
	xor	edi, edi
	cmp	QWORD PTR ERROR_SUCCESS[rip], rax
	lea	rsi, .LC1[rip]
	sete	dil
	mov	rdx, rax
	call	ok@PLT
	mov	rdi, QWORD PTR 16[rsp]
	call	PdhRemoveCounter@PLT
	xor	edi, edi
	cmp	QWORD PTR ERROR_SUCCESS[rip], rax
	lea	rsi, .LC6[rip]
	sete	dil
	mov	rdx, rax
	call	ok@PLT
	mov	rdi, QWORD PTR 8[rsp]
	call	PdhCloseQuery@PLT
	xor	edi, edi
	cmp	QWORD PTR ERROR_SUCCESS[rip], rax
	lea	rsi, .LC7[rip]
	sete	dil
	mov	rdx, rax
	call	ok@PLT
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L5
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	test_PdhAddEnglishCounterA, .-test_PdhAddEnglishCounterA
	.comm	PDH_NO_DATA,8,8
	.comm	PDH_INVALID_ARGUMENT,8,8
	.comm	PDH_CSTATUS_NO_COUNTER,8,8
	.comm	ERROR_SUCCESS,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_pdh.c_test_PdhAddEnglishCounterA.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"PdhOpenQueryA failed 0x%08x\012\000"
	.align	2
.LC1:
	.ascii	"PdhCollectQueryData failed 0x%08x\012\000"
	.align	2
.LC2:
	.ascii	"\\System\\System Up Time\000"
	.align	2
.LC3:
	.ascii	"PdhAddEnglishCounterA failed 0x%08x\012\000"
	.align	2
.LC4:
	.ascii	"\\System\\System Down Time\000"
	.align	2
.LC5:
	.ascii	"PdhAddEnglishCounterA failed %p\012\000"
	.align	2
.LC6:
	.ascii	"PdhRemoveCounter failed 0x%08x\012\000"
	.align	2
.LC7:
	.ascii	"PdhCloseQuery failed 0x%08x\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_PdhAddEnglishCounterA, %function
test_PdhAddEnglishCounterA:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r1, #0
	push	{r4, r5, lr}
	ldr	r3, .L6
	sub	sp, sp, #20
	mov	r0, r1
	add	r2, sp, #4
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	PdhOpenQueryA
	mov	r2, r0
	ldr	r4, .L6+4
	ldr	r1, .L6+8
	ldr	r0, [r4]
	ldr	r5, .L6+12
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r0, [sp, #4]
	bl	PdhCollectQueryData
	mov	r2, r0
	ldr	r3, .L6+16
	ldr	r1, .L6+20
	ldr	r0, [r3]
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	mov	r3, #0
	ldr	r1, .L6+24
	mov	r2, r3
	mov	r0, r3
	bl	pPdhAddEnglishCounterA
	mov	r2, r0
	ldr	r0, [r5]
	ldr	r1, .L6+28
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	mov	r2, #0
	add	r3, sp, #8
	mov	r0, r2
	ldr	r1, .L6+24
	bl	pPdhAddEnglishCounterA
	mov	r2, r0
	ldr	r0, [r5]
	ldr	r1, .L6+28
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	mov	r2, #0
	add	r3, sp, #8
	mov	r1, r2
	ldr	r0, [sp, #4]
	bl	pPdhAddEnglishCounterA
	mov	r2, r0
	ldr	r0, [r5]
	ldr	r1, .L6+28
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	mov	r3, #0
	ldr	r1, .L6+24
	mov	r2, r3
	ldr	r0, [sp, #4]
	bl	pPdhAddEnglishCounterA
	mov	r2, r0
	ldr	r0, [r5]
	ldr	r1, .L6+28
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	mov	r2, #0
	ldr	r1, .L6+32
	add	r3, sp, #8
	ldr	r0, [sp, #4]
	bl	pPdhAddEnglishCounterA
	mov	r2, r0
	ldr	r3, .L6+36
	ldr	r1, .L6+28
	ldr	r0, [r3]
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r2, [sp, #8]
	ldr	r1, .L6+40
	clz	r0, r2
	lsr	r0, r0, #5
	bl	ok
	add	r3, sp, #8
	mov	r2, #0
	ldr	r1, .L6+24
	ldr	r0, [sp, #4]
	bl	pPdhAddEnglishCounterA
	mov	r2, r0
	ldr	r0, [r4]
	ldr	r1, .L6+28
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r0, [sp, #4]
	bl	PdhCollectQueryData
	mov	r2, r0
	ldr	r0, [r4]
	ldr	r1, .L6+20
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r0, [sp, #8]
	bl	PdhRemoveCounter
	mov	r2, r0
	ldr	r0, [r4]
	ldr	r1, .L6+44
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r0, [sp, #4]
	bl	PdhCloseQuery
	mov	r2, r0
	ldr	r0, [r4]
	ldr	r1, .L6+48
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r3, .L6
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L5:
	bl	__stack_chk_fail
.L7:
	.align	2
.L6:
	.word	.LC8
	.word	ERROR_SUCCESS
	.word	.LC0
	.word	PDH_INVALID_ARGUMENT
	.word	PDH_NO_DATA
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	PDH_CSTATUS_NO_COUNTER
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	test_PdhAddEnglishCounterA, .-test_PdhAddEnglishCounterA
	.comm	PDH_NO_DATA,4,4
	.comm	PDH_INVALID_ARGUMENT,4,4
	.comm	PDH_CSTATUS_NO_COUNTER,4,4
	.comm	ERROR_SUCCESS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
