	.file	"extr_libpmcstat_logging.c_pmcstat_close_log.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ERROR: logging failed"
	.text
	.p2align 4
	.globl	pmcstat_close_log
	.type	pmcstat_close_log, @function
pmcstat_close_log:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	cmp	DWORD PTR [rdi], -1
	mov	rbx, rdi
	jne	.L9
.L3:
	mov	eax, DWORD PTR 4[rbx]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	test	DWORD PTR FLAG_HAS_PIPE[rip], eax
	mov	eax, DWORD PTR PMCSTAT_EXITING[rip]
	cmove	eax, DWORD PTR PMCSTAT_FINISHED[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	xor	eax, eax
	call	pmc_close_logfile@PLT
	test	rax, rax
	jns	.L3
	mov	edi, DWORD PTR EX_OSERR[rip]
	lea	rsi, .LC0[rip]
	call	err@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	pmcstat_close_log, .-pmcstat_close_log
	.comm	PMCSTAT_FINISHED,4,4
	.comm	PMCSTAT_EXITING,4,4
	.comm	FLAG_HAS_PIPE,4,4
	.comm	EX_OSERR,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_libpmcstat_logging.c_pmcstat_close_log.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ERROR: logging failed\000"
	.text
	.align	2
	.global	pmcstat_close_log
	.syntax unified
	.arm
	.fpu softvfp
	.type	pmcstat_close_log, %function
pmcstat_close_log:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, lr}
	cmn	r3, #1
	mov	r4, r0
	bne	.L9
.L3:
	ldr	r3, .L10
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	tst	r2, r3
	ldrne	r3, .L10+4
	ldreq	r3, .L10+8
	ldr	r0, [r3]
	pop	{r4, pc}
.L9:
	bl	pmc_close_logfile
	cmp	r0, #0
	bge	.L3
	ldr	r3, .L10+12
	ldr	r1, .L10+16
	ldr	r0, [r3]
	bl	err
	b	.L3
.L11:
	.align	2
.L10:
	.word	FLAG_HAS_PIPE
	.word	PMCSTAT_EXITING
	.word	PMCSTAT_FINISHED
	.word	EX_OSERR
	.word	.LC0
	.size	pmcstat_close_log, .-pmcstat_close_log
	.comm	PMCSTAT_FINISHED,4,4
	.comm	PMCSTAT_EXITING,4,4
	.comm	FLAG_HAS_PIPE,4,4
	.comm	EX_OSERR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
