	.file	"extr_hints-engine.c_reopen_logs.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"/dev/null"
.LC1:
	.string	"logs reopened.\n"
	.text
	.p2align 4
	.globl	reopen_logs
	.type	reopen_logs, @function
reopen_logs:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	edi, DWORD PTR stdout[rip]
	call	fflush@PLT
	mov	edi, DWORD PTR stderr[rip]
	call	fflush@PLT
	mov	esi, DWORD PTR O_RDWR[rip]
	xor	edx, edx
	lea	rdi, .LC0[rip]
	call	open@PLT
	cmp	eax, -1
	jne	.L14
.L3:
	mov	rdi, QWORD PTR logname[rip]
	test	rdi, rdi
	je	.L6
	mov	esi, DWORD PTR O_WRONLY[rip]
	mov	edx, 416
	or	esi, DWORD PTR O_APPEND[rip]
	or	esi, DWORD PTR O_CREAT[rip]
	call	open@PLT
	mov	ebp, eax
	cmp	eax, -1
	jne	.L15
.L6:
	cmp	QWORD PTR verbosity[rip], 0
	jg	.L16
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	mov	esi, 2
	mov	edi, ebp
	call	dup2@PLT
	cmp	ebp, 2
	jle	.L6
	mov	edi, ebp
	call	close@PLT
	not	rax
	mov	rdi, rax
	shr	rdi, 63
	call	assert@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L14:
	mov	ebp, eax
	xor	esi, esi
	mov	edi, eax
	call	dup2@PLT
	mov	esi, 1
	mov	edi, ebp
	call	dup2@PLT
	mov	esi, 2
	mov	edi, ebp
	call	dup2@PLT
	cmp	ebp, 2
	jle	.L3
	mov	edi, ebp
	call	close@PLT
	not	rax
	mov	rdi, rax
	shr	rdi, 63
	call	assert@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L16:
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	fprintf@PLT
	.cfi_endproc
.LFE0:
	.size	reopen_logs, .-reopen_logs
	.comm	verbosity,8,8
	.comm	stdout,4,4
	.comm	stderr,4,4
	.comm	logname,8,8
	.comm	O_WRONLY,4,4
	.comm	O_RDWR,4,4
	.comm	O_CREAT,4,4
	.comm	O_APPEND,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_hints-engine.c_reopen_logs.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"/dev/null\000"
	.align	2
.LC1:
	.ascii	"logs reopened.\012\000"
	.text
	.align	2
	.global	reopen_logs
	.syntax unified
	.arm
	.fpu softvfp
	.type	reopen_logs, %function
reopen_logs:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L16
	push	{r4, r5, r6, lr}
	ldr	r5, .L16+4
	ldr	r0, [r3]
	bl	fflush
	ldr	r0, [r5]
	bl	fflush
	ldr	r3, .L16+8
	mov	r2, #0
	ldr	r1, [r3]
	ldr	r0, .L16+12
	bl	open
	cmn	r0, #1
	bne	.L14
.L3:
	ldr	r3, .L16+16
	ldr	r0, [r3]
	cmp	r0, #0
	beq	.L6
	ldr	r3, .L16+20
	ldr	r2, .L16+24
	ldr	r1, .L16+28
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, [r1]
	orr	r3, r3, r2
	orr	r1, r3, r1
	mov	r2, #416
	bl	open
	cmn	r0, #1
	mov	r4, r0
	bne	.L15
.L6:
	ldr	r3, .L16+32
	ldr	r3, [r3]
	cmp	r3, #0
	pople	{r4, r5, r6, pc}
	ldr	r0, [r5]
	ldr	r1, .L16+36
	pop	{r4, r5, r6, lr}
	b	fprintf
.L15:
	mov	r1, #1
	bl	dup2
	mov	r1, #2
	mov	r0, r4
	bl	dup2
	cmp	r4, #2
	ble	.L6
	mov	r0, r4
	bl	close
	mvn	r0, r0
	lsr	r0, r0, #31
	bl	assert
	b	.L6
.L14:
	mov	r4, r0
	mov	r1, #0
	bl	dup2
	mov	r1, #1
	mov	r0, r4
	bl	dup2
	mov	r1, #2
	mov	r0, r4
	bl	dup2
	cmp	r4, #2
	ble	.L3
	mov	r0, r4
	bl	close
	mvn	r0, r0
	lsr	r0, r0, #31
	bl	assert
	b	.L3
.L17:
	.align	2
.L16:
	.word	stdout
	.word	stderr
	.word	O_RDWR
	.word	.LC0
	.word	logname
	.word	O_WRONLY
	.word	O_APPEND
	.word	O_CREAT
	.word	verbosity
	.word	.LC1
	.size	reopen_logs, .-reopen_logs
	.comm	verbosity,4,4
	.comm	stdout,4,4
	.comm	stderr,4,4
	.comm	logname,4,4
	.comm	O_WRONLY,4,4
	.comm	O_RDWR,4,4
	.comm	O_CREAT,4,4
	.comm	O_APPEND,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
