	.file	"extr_spool.c_TruncBatchLog.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	TruncBatchLog
	.type	TruncBatchLog, @function
TruncBatchLog:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	sub	rsp, 288
	.cfi_def_cfa_offset 304
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 280[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR gOurDirectoryPath[rip]
	cmp	BYTE PTR [rax], 0
	jne	.L8
.L1:
	mov	rax, QWORD PTR 280[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 288
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	lea	rdi, 8[rsp]
	lea	rbp, 16[rsp]
	call	time@PLT
	mov	edx, DWORD PTR kSpoolLog[rip]
	mov	esi, 256
	mov	rdi, rbp
	sub	QWORD PTR 8[rsp], 86400
	call	OurDirectoryPath@PLT
	mov	rsi, rsp
	mov	rdi, rbp
	call	stat@PLT
	test	rax, rax
	jne	.L1
	mov	rax, QWORD PTR 8[rsp]
	cmp	QWORD PTR [rsp], rax
	jge	.L1
	mov	esi, DWORD PTR O_WRONLY[rip]
	mov	rdi, rbp
	or	esi, DWORD PTR O_TRUNC[rip]
	mov	edx, 384
	call	open@PLT
	mov	edi, eax
	test	eax, eax
	js	.L1
	call	close@PLT
	jmp	.L1
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	TruncBatchLog, .-TruncBatchLog
	.comm	kSpoolLog,4,4
	.comm	gOurDirectoryPath,8,8
	.comm	O_WRONLY,4,4
	.comm	O_TRUNC,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_spool.c_TruncBatchLog.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	TruncBatchLog
	.syntax unified
	.arm
	.fpu softvfp
	.type	TruncBatchLog, %function
TruncBatchLog:
	@ args = 0, pretend = 0, frame = 272
	@ frame_needed = 0, uses_anonymous_args = 0
	str	lr, [sp, #-4]!
	ldr	r3, .L10
	ldr	r2, .L10+4
	ldr	r3, [r3]
	sub	sp, sp, #276
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r2, [r2]
	str	r2, [sp, #268]
	mov	r2,#0
	cmp	r3, #0
	bne	.L8
.L1:
	ldr	r3, .L10+4
	ldr	r2, [r3]
	ldr	r3, [sp, #268]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #276
	@ sp needed
	ldr	pc, [sp], #4
.L8:
	add	r0, sp, #8
	bl	time
	ldr	r3, [sp, #8]
	ldr	r2, .L10+8
	sub	r3, r3, #86016
	sub	r3, r3, #384
	mov	r1, #256
	ldr	r2, [r2]
	add	r0, sp, #12
	str	r3, [sp, #8]
	bl	OurDirectoryPath
	add	r0, sp, #12
	add	r1, sp, #4
	bl	stat
	cmp	r0, #0
	bne	.L1
	ldmib	sp, {r2, r3}
	cmp	r2, r3
	bge	.L1
	ldr	r2, .L10+12
	ldr	r3, .L10+16
	ldr	r1, [r2]
	ldr	r3, [r3]
	mov	r2, #384
	add	r0, sp, #12
	orr	r1, r1, r3
	bl	open
	cmp	r0, #0
	blt	.L1
	bl	close
	b	.L1
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	gOurDirectoryPath
	.word	.LC0
	.word	kSpoolLog
	.word	O_WRONLY
	.word	O_TRUNC
	.size	TruncBatchLog, .-TruncBatchLog
	.comm	kSpoolLog,4,4
	.comm	gOurDirectoryPath,4,4
	.comm	O_WRONLY,4,4
	.comm	O_TRUNC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
